aspose file tools*
The moose likes Tomcat and the fly likes Apache server 6.0.18 error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache server 6.0.18 error" Watch "Apache server 6.0.18 error" New topic
Author

Apache server 6.0.18 error

Gina vernon
Ranch Hand

Joined: Jan 16, 2009
Posts: 108
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.

Nadja Breme
Greenhorn

Joined: Mar 16, 2009
Posts: 1
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

Joined: Jan 16, 2009
Posts: 108
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

Joined: Jan 16, 2009
Posts: 108
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.


Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Jan 16, 2009
Posts: 108
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


[Thumbnail for Picture 1.png]

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You need to place public files in /WebContent, not in /WebContent/WEB-INF.
Gina vernon
Ranch Hand

Joined: Jan 16, 2009
Posts: 108
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

Joined: Oct 08, 2006
Posts: 2458
You're welcome.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache server 6.0.18 error