Win a copy of Fixing your Scrum this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Rob Spoor
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Holloway
  • Piet Souris
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Himai Minh

java.io.FileNotFoundException: Template default/forum_base.htm not found

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have downloaded all the source, compiled it(after getting all the required libraries) and deployed it to OC4J 10.0.0.3 to the path
http://10.0.0.2/jforum2/ and have set the global property:
forum.link=http://10.0.0.2/jforum2/

The MySQL database is running but I get 2 exceptions and the page never loads when I try to access it. Seems like it is looking in the wrong directory for some reason.

Can anyone help me out here? Would be greatly appreciated!

-Christer

Exceptions below:


04/10/05 20:58:29 java.net.MalformedURLException: unknown protocol: f
at java.net.URL.<init>(URL.java:544)
at java.net.URL.<init>(URL.java:434)
at java.net.URL.<init>(URL.java:383)
at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:212)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:176)
at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:288)
at net.jforum.util.bbcode.BBCodeHandler.parse(BBCodeHandler.java:79)
at net.jforum.JForumCommonServlet.loadConfigStuff(JForumCommonServlet.java:173)
at net.jforum.JForumCommonServlet.init(JForumCommonServlet.java:114)
at net.jforum.JForum.init(JForum.java:88)
at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:1939)
at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4178)
at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2526)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:638)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:205)
at java.lang.Thread.run(Thread.java:534)


java.io.FileNotFoundException: Template default/forum_base.htm not found.
at freemarker.template.Configuration.getTemplate(Configuration.java:428)
at freemarker.template.Configuration.getTemplate(Configuration.java:391)
at net.jforum.Command.process(Command.java:100)
at net.jforum.JForum.service(JForum.java:247)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:781)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:311)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:788)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:205)
at java.lang.Thread.run(Thread.java:534)



















[originally posted on jforum.net by cnordvik]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
21:31:03,167 INFO [FileMonitor ] Watching F:\oc4j\j2ee\home\applications\jforum2\JForum2/WEB-INF/config/languages/en_US.properties
04/10/05 21:31:03 java.net.MalformedURLException: unknown protocol: f

Guess it should read file:///f:\... or something?

But I think the other exception is the main problem... so please help

-Christer
[originally posted on jforum.net by cnordvik]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You downlaoded the files from CVS? which host?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got the latest RC from http://sourceforge.net/project/showfiles.php?group_id=15940 (RC5).

Can try the CVS if you think it would help?

-Christer
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
RC5 is fine.

I remember I had ( or was someone else? ) this same problem once.. I just can't remember what was causing it... :?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah, here:

https://coderanch.com/t/574373

This same problem.. but, also, we didn't found the root of the problem..

You can try a shoot in the dark? get tomcat 5 and try with it.. as we don't don't know why the problem occurs, let's try isolate the problem..

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. I'll install Tomcat 5 and try with a newer version of MySQL. I'll post a reply if I manage to get it to work
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Worked great in Tomcat5. Should maybe try for yourself with OC4J from Oracle? Would be great if you could figure out why it happens, but I may change to Tomcat if you don't have the time

-Christer
[originally posted on jforum.net by cnordvik]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

cnordvik wrote: Worked great in Tomcat5. Should maybe try for yourself with OC4J from Oracle? Would be great if you could figure out why it happens, but I may change to Tomcat if you don't have the time

-Christer



Bizarre.

Right now I can't try it with OC4J, but I'll when I get some time.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i think the problem comes due to old Xerces jar file.
[originally posted on jforum.net by Anonymous]
 
Could you hold this puppy for a sec? I need to adjust this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic