• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache server 6.0.18 error

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to run a sample JSF tutorial on eclipse 3.2 on mac osx 10.5. The server comes back with a 'requested resource() not found error. From the server log in console, I found a warning as seen below:


Mar 15, 2009 7:03:00 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:JSFTutorial' did not find a matching property.
Mar 15, 2009 7:03:00 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Mar 15, 2009 7:03:00 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 15, 2009 7:03:00 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2031 ms
Mar 15, 2009 7:03:01 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 15, 2009 7:03:01 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Mar 15, 2009 7:03:02 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_09-b02-FCS) for context '/JSFTutorial'
Mar 15, 2009 7:03:05 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 15, 2009 7:03:05 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 15, 2009 7:03:05 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/90 config=null
Mar 15, 2009 7:03:05 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4916 ms

Anyone know what this means?

Thanks.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Same warning here, I got rid of it by removing the source property from the context in server.xml.
In my workspace its located at .metadata/.plugins/org.eclipse.wst.server.core/tmp0/conf/server.xml
Don't know what feature this source property is for, but tomcat seems to work fine without it.
 
Gina vernon
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Nadja Breme wrote:Same warning here, I got rid of it by removing the source property from the context in server.xml.
In my workspace its located at .metadata/.plugins/org.eclipse.wst.server.core/tmp0/conf/server.xml
Don't know what feature this source property is for, but tomcat seems to work fine without it.


Hi Nadja,
This did not work on my machine. I made the changes you suggested and when I restarted eclipse and ran the jsp, eclipse popped up a message saying "Problem occured. local-host config missing. server.xml file must have been corrupted."
So, I am back to square one.

 
Gina vernon
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried to access the URL http://localhost:8080 and I get the same error.

I cannot find the server logs in the Application\Apache\Logs folder. Anyone know if I have to setup logging or if I am looking in the wrong folder.


 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This warning is caused because you integrated Tomcat in Eclipse. Eclipse uses the 'source' attribute of the <context> tag for own reference. The XML validator in Tomcat doesn't recognize this attribute against the DTD and is thus giving an innocent warning. Nothing to worry about.

Regarding to your actual problem: either the URL is plain wrong, or the resource is wrongly mapped in web.xml, or the resource is actually not there in the webapp structure where you think it is.

Assuming that you want to kickoff with JSF+Eclipse+Tomcat, I can recommend you this article: http://balusc.blogspot.com/2008/01/jsf-tutorial-with-eclipse-and-tomcat.html
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Gina vernon wrote:I tried to access the URL http://localhost:8080 and I get the same error.

This is by default not possible when you integrate Tomcat in Eclipse. Only the deployed webapps are accessible. You need to configure Tomcat in Eclipse to get access to the Tomcat default homepage. This is also explained in the aforementioned tutorial.
 
Gina vernon
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bauke,
I did as the tutorial recommended and I am now able to access Tomcat's homepage at port 8080, but I still can't run the web application.

I have attached a screenshot of my workspace for this project. I am also inserting the config metadata for JSF & web.xml:



The tomcat logs folder now has 3 files in it, none of them have any information related to the error. But as per the link you provided the console should print out the server logs and I don't see any errors or info there. Here is the console log:
Mar 22, 2009 7:39:00 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
Mar 22, 2009 7:39:01 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 22, 2009 7:39:01 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1204 ms
Mar 22, 2009 7:39:01 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 22, 2009 7:39:01 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Mar 22, 2009 7:39:02 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra (1.2_09-b02-FCS) for context '/JSFTutorial'
Mar 22, 2009 7:39:04 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Mar 22, 2009 7:39:04 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Mar 22, 2009 7:39:05 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 22, 2009 7:39:05 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 22, 2009 7:39:05 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/63 config=null
Mar 22, 2009 7:39:05 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4181 ms
Mar 22, 2009 7:39:19 PM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Mar 22, 2009 7:39:20 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Mar 22, 2009 7:39:20 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextDestroyed()
Mar 22, 2009 7:39:20 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextDestroyed()
Mar 22, 2009 7:39:21 PM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080

Thanks
Picture-1.png
[Thumbnail for Picture-1.png]
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to place public files in /WebContent, not in /WebContent/WEB-INF.
 
Gina vernon
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Bauke.
It runs perfectly now. Moved the JSP folder to WebContent folder, updated my navigation rule in face-config.xml to reflect the change.
Thanks once again.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic