You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dave Filchak <su...@zuka.net> on 2011/10/21 23:53:07 UTC

tomcat error 404

Folks, I know I have asked about this site befor with a number of
problems and one of the suggestions was to find the original programmer
for help. Well I cannot find him ... he is not available unfortunately.
I was originally getting some except errors but now, after my host
"turned off" my server because I was three days late in paying an
invoice, I am receiving a HTTP Status 404 error. I have verified that
tomcat and apache are running. My host will now help ( pissed about that
) so I am hoping someone can help be fix this. I am NOT a tomcat person
and I do not actually think this app is set up in what I understand to
be a normal way.

If anyone can help me I really would appreciate it as the site is down
completely at this point.

Server CentOS
Tomcat 5.5.33
Apache 2.2.19

thank you in advance

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Re: : tomcat error 404

Posted by Tim Watts <ti...@cliftonfarm.org>.
On Mon, 2011-10-24 at 12:41 -0400, Dave Filchak wrote:
> Humm, well I did the whole export CLASSPATH thing. So I should just have 
> to place them in my apps lib directory, as shown below, and it should 
> load automagically?
> 
Indeed it should.  No need to monkey with CLASSPATH.  You may need to
restart the app and/or tomcat, however.  Since you're getting the same
error, can you post a directory listing of WEB-INF/lib?


> Dave
> 
> On 22/07/64 2:59 PM, Pid wrote:
> > On 24/10/2011 00:18, Dave Filchak wrote:
> >> I upload the JavaMail and JAF libs to
> >> /home/######/public_html/WEB-INF/lib/ and added them to my $CLASSPATH I
> >> now get the following:
> > How did you add them to the classpath?  Tomcat automatically loads Jars
> > &  resources found in its various lib&  classes directories, so don't do
> > that...
> >
> >
> > p
> >
> >
> >> Error initializing sub-systems:
> >> Please check the following:
> >> 1. That your machine has a valid connection to jdbc:mysql://localhost:3306/#####_exodus Using:
> >>     Username: #####_exodus
> >>     Password: #####
> >>     Driver: com.mysql.jdbc.Driver
> >>
> >>
> >> *DETAILS FOLLOW:*
> >> java.lang.Exception: Unable to Initialize Environment:
> >> java.lang.NoClassDefFoundError: javax/mail/Address
> >> 	at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
> >> 	at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
> >> 	at com.snapmedia.SystemController.init(SystemController.java:86)
> >> 	at com.snapmedia.WebSystemController.init(WebSystemController.java:39)
> >> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
> >> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
> >> 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
> >> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
> >> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> >> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
> >> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> >> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> >> 	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
> >> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
> >> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> >> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> 	at java.lang.reflect.Method.invoke(Method.java:597)
> >> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
> >> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> 	at java.lang.reflect.Method.invoke(Method.java:597)
> >> 	at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
> >> Caused by: java.lang.ClassNotFoundException: javax.mail.Address
> >> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
> >> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
> >> 	... 25 more
> >>
> >>
> >> which is a different error but seemingly still to do with mail?
> >>
> >> Dave
> >>
> >>
> >>
> >> <snip>
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Re: : tomcat error 404

Posted by Dave Filchak <su...@zuka.net>.
Humm, well I did the whole export CLASSPATH thing. So I should just have 
to place them in my apps lib directory, as shown below, and it should 
load automagically?

Dave

On 22/07/64 2:59 PM, Pid wrote:
> On 24/10/2011 00:18, Dave Filchak wrote:
>> I upload the JavaMail and JAF libs to
>> /home/######/public_html/WEB-INF/lib/ and added them to my $CLASSPATH I
>> now get the following:
> How did you add them to the classpath?  Tomcat automatically loads Jars
> &  resources found in its various lib&  classes directories, so don't do
> that...
>
>
> p
>
>
>> Error initializing sub-systems:
>> Please check the following:
>> 1. That your machine has a valid connection to jdbc:mysql://localhost:3306/#####_exodus Using:
>>     Username: #####_exodus
>>     Password: #####
>>     Driver: com.mysql.jdbc.Driver
>>
>>
>> *DETAILS FOLLOW:*
>> java.lang.Exception: Unable to Initialize Environment:
>> java.lang.NoClassDefFoundError: javax/mail/Address
>> 	at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
>> 	at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
>> 	at com.snapmedia.SystemController.init(SystemController.java:86)
>> 	at com.snapmedia.WebSystemController.init(WebSystemController.java:39)
>> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>> 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
>> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
>> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>> 	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
>> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> 	at java.lang.reflect.Method.invoke(Method.java:597)
>> 	at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
>> Caused by: java.lang.ClassNotFoundException: javax.mail.Address
>> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
>> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
>> 	... 25 more
>>
>>
>> which is a different error but seemingly still to do with mail?
>>
>> Dave
>>
>>
>>
>> <snip>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: : tomcat error 404

Posted by Pid <pi...@pidster.com>.
On 24/10/2011 00:18, Dave Filchak wrote:
> I upload the JavaMail and JAF libs to
> /home/######/public_html/WEB-INF/lib/ and added them to my $CLASSPATH I
> now get the following:

How did you add them to the classpath?  Tomcat automatically loads Jars
& resources found in its various lib & classes directories, so don't do
that...


p


> Error initializing sub-systems:
> Please check the following:
> 1. That your machine has a valid connection to jdbc:mysql://localhost:3306/#####_exodus Using:
>    Username: #####_exodus
>    Password: #####
>    Driver: com.mysql.jdbc.Driver
>    
> 
> *DETAILS FOLLOW:*
> java.lang.Exception: Unable to Initialize Environment:
> java.lang.NoClassDefFoundError: javax/mail/Address
> 	at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
> 	at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
> 	at com.snapmedia.SystemController.init(SystemController.java:86)
> 	at com.snapmedia.WebSystemController.init(WebSystemController.java:39)
> 	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
> 	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
> 	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
> Caused by: java.lang.ClassNotFoundException: javax.mail.Address
> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
> 	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
> 	... 25 more
> 
> 
> which is a different error but seemingly still to do with mail?
> 
> Dave
> 
> On 23/10/11 6:34 PM, Pid wrote:
>> On 23/10/2011 23:32, Dave Filchak wrote:
>>> The logs, at least the catalina.err and catalina.out files do not say
>>> anything much, at least as far as an error goes. I cannot find any other
>>> log files specific only to this app so they appear not to be working.
>>>
>>> I only see this in catalina.err in the last while:
>>>
>>> Oct 23, 2011 2:59:10 PM org.apache.catalina.core.StandardWrapperValve
>>> invoke
>>> SEVERE: Servlet.service() for servlet jsp threw exception
>>> org.apache.jasper.JasperException:
>>> /include/../../include/system-checkup.jsp(2,0) The value for the useBean
>>> class attribute com.snapmedia.WebSystemController is invalid.
>> If that class/servlet didn't start because the JavaMail libs are missing
>> that would explain why you can't use it.
>>
>>
>> p
>>
>>>     at
>>> org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
>>>
>>>     at
>>> org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
>>>
>>>     at
>>> org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
>>>
>>>     at
>>> org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1204)
>>>
>>>     at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1117)
>>>     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
>>>     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
>>>     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
>>>     at org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
>>>     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
>>>     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
>>>     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2240)
>>>     at
>>> org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:598)
>>>     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
>>>     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
>>>     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
>>>     at org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
>>>     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
>>>     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
>>>     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2240)
>>>     at
>>> org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:598)
>>>     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
>>>     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
>>>     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
>>>     at org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
>>>     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
>>>     at org.apache.jasper.compiler.Generator.generate(Generator.java:3384)
>>>     at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:207)
>>>     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:326)
>>>     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:307)
>>>     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
>>>     at
>>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)
>>>
>>>     at
>>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:309)
>>>
>>>     at
>>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
>>>     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>>>
>>>     at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>>
>>>     at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>>
>>>     at
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
>>>
>>>     at
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>>
>>>     at
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>>>
>>>     at
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>>>
>>>     at
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>>>     at
>>> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
>>>     at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
>>>     at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)
>>>     at
>>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)
>>>
>>>     at
>>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)
>>>
>>>     at
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>>>
>>>     at java.lang.Thread.run(Thread.java:662)
>>>
>>> Everything looks OK as far as I can tell under catalina.out.
>>>
>>> On 22/07/64 2:59 PM, Pid wrote:
>>>> On 23/10/2011 19:57, Dave Filchak wrote:
>>>>> I know this is probably screwed up now so I appreciate the help I have
>>>>> had so far and would seriously appreciate any input as to how to
>>>>> straighten this out and get the connection to the database functional. I
>>>>> really need to get the site up and running today.
>>>>>
>>>>> Thanks for your consideration and your time.
>>>> What do the logs say?  We don't know what's wrong this time.
>>>>
>>>>
>>>> p
>>>>
>>>>
>>



Re: Re: : tomcat error 404

Posted by Dave Filchak <su...@zuka.net>.
The logs, at least the catalina.err and catalina.out files do not say 
anything much, at least as far as an error goes. I cannot find any other 
log files specific only to this app so they appear not to be working.

I only see this in catalina.err in the last while:

Oct 23, 2011 2:59:10 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: 
/include/../../include/system-checkup.jsp(2,0) The value for the useBean 
class attribute com.snapmedia.WebSystemController is invalid.
     at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
     at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
     at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
     at 
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1204)
     at org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1117)
     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
     at org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2240)
     at 
org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:598)
     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
     at org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2240)
     at 
org.apache.jasper.compiler.Node$IncludeDirective.accept(Node.java:598)
     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
     at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2216)
     at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2222)
     at org.apache.jasper.compiler.Node$Root.accept(Node.java:457)
     at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2166)
     at org.apache.jasper.compiler.Generator.generate(Generator.java:3384)
     at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:207)
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:326)
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:307)
     at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
     at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:565)
     at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:309)
     at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:308)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
     at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
     at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
     at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
     at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
     at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
     at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
     at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:200)
     at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
     at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:775)
     at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:704)
     at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:897)
     at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
     at java.lang.Thread.run(Thread.java:662)

Everything looks OK as far as I can tell under catalina.out.

On 22/07/64 2:59 PM, Pid wrote:
> On 23/10/2011 19:57, Dave Filchak wrote:
>> I know this is probably screwed up now so I appreciate the help I have
>> had so far and would seriously appreciate any input as to how to
>> straighten this out and get the connection to the database functional. I
>> really need to get the site up and running today.
>>
>> Thanks for your consideration and your time.
> What do the logs say?  We don't know what's wrong this time.
>
>
> p
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: : tomcat error 404

Posted by Pid <pi...@pidster.com>.
On 23/10/2011 19:57, Dave Filchak wrote:
> I know this is probably screwed up now so I appreciate the help I have
> had so far and would seriously appreciate any input as to how to
> straighten this out and get the connection to the database functional. I
> really need to get the site up and running today.
> 
> Thanks for your consideration and your time.

What do the logs say?  We don't know what's wrong this time.


p



Re: Re: : tomcat error 404

Posted by Dave Filchak <su...@zuka.net>.
Yes ... can't find him.

On 22/07/64 2:59 PM, Pid wrote:
> On 23/10/2011 19:57, Dave Filchak wrote:
>> <description>
>>        Please contact Nick should any questions or issues arise about
>> this application.
>> </description>
> Have you tried contacting 'Nick'?
>
>
> p
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: : tomcat error 404

Posted by Pid <pi...@pidster.com>.
On 23/10/2011 19:57, Dave Filchak wrote:
> <description>
>       Please contact Nick should any questions or issues arise about
> this application.
> </description>

Have you tried contacting 'Nick'?


p


Re: RE: Re: : tomcat error 404

Posted by Dave Filchak <su...@zuka.net>.
As I said, I have been trying to crash learn. I am not, I repeat not, a
tomcat user but willing to try and learn. It is not always clear to us
who have not been doing this for a long time. Try to be patient with us

I did actually move the context to META-INF.

Cheers,

Dave



On 22/07/64 2:59 PM, Caldarale, Charles R wrote:
> The META-INF/context.xml location is the usual, when you're packaging a webapp up for distribution.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: : tomcat error 404

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Pid [mailto:pid@pidster.com] 
> Subject: Re: : tomcat error 404

> Apparently I'm rusty too...  :s

Time flies when you're having bugs...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.

Re: : tomcat error 404

Posted by Pid <pi...@pidster.com>.
On 24/10/2011 00:07, Caldarale, Charles R wrote:
>> From: Dave Filchak [mailto:submit@zuka.net] 
>> Subject: Re: Re: : tomcat error 404
> 
>> So where should the Context be?
> 
> Apparently, you haven't read the 5.5 docs.  To quote:

Apparently I'm rusty too...  :s

p

> "For Tomcat 5, unlike Tomcat 4.x, it is NOT recommended to place <Context> elements directly in the server.xml file.
> 
> "Context elements may be explicitly defined:
> 
> "    In the $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps.
> 
> "    In the $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host.
> 
> "    In individual files (with a ".xml" extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory.
>  
> "    Only if a context file does not exist for the application in the $CATALINA_HOME/conf/[enginename]/[hostname]/; in an individual file at /META-INF/context.xml inside the application files."
> 
> The META-INF/context.xml location is the usual, when you're packaging a webapp up for distribution.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
> 



RE: Re: : tomcat error 404

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Dave Filchak [mailto:submit@zuka.net] 
> Subject: Re: Re: : tomcat error 404

> So where should the Context be?

Apparently, you haven't read the 5.5 docs.  To quote:

"For Tomcat 5, unlike Tomcat 4.x, it is NOT recommended to place <Context> elements directly in the server.xml file.

"Context elements may be explicitly defined:

"    In the $CATALINA_HOME/conf/context.xml file: the Context element information will be loaded by all webapps.

"    In the $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default file: the Context element information will be loaded by all webapps of that host.

"    In individual files (with a ".xml" extension) in the $CATALINA_HOME/conf/[enginename]/[hostname]/ directory.
 
"    Only if a context file does not exist for the application in the $CATALINA_HOME/conf/[enginename]/[hostname]/; in an individual file at /META-INF/context.xml inside the application files."

The META-INF/context.xml location is the usual, when you're packaging a webapp up for distribution.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


Re: Re: : tomcat error 404

Posted by Dave Filchak <su...@zuka.net>.
So where should the Context be?


On 22/07/64 2:59 PM, Pid wrote:
> Don't put a Context in server.xml.  That is a massive can of worms all
> on its own.
>
> On 23/10/2011 19:57, Dave Filchak wrote:
>> <Context path='' docBase='/home/#####/public_html/' debug='0'
>> <Resource name="jdbc/exodus" auth="Container" type="javax.sql.DataSource"
>>               username="#####_#####"
>>               password="#####"
>>               driverClassName="com.mysql.jdbc.Driver"
>>
>> url="jdbc:mysql://localhost:3306/#####_#####?useUnicode=true&amp;characterEncoding=utf8"
>>
>>               maxActive="15"
>>               maxIdle="7"
>>               defaultTransactionIsolation="READ_COMMITTED"
>>               validationQuery="Select 1" />
>>      />
>
> The above won't work, it should really stop Tomcat from starting.
>
> Wrong:
>
> <Context
>    <Resource ... />
>   />
>
> Right:
>
> <Context>
>    <Resource ... />
> </Context>
>
>
> p
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: : tomcat error 404

Posted by Pid <pi...@pidster.com>.
Don't put a Context in server.xml.  That is a massive can of worms all
on its own.

On 23/10/2011 19:57, Dave Filchak wrote:
> <Context path='' docBase='/home/#####/public_html/' debug='0'
> <Resource name="jdbc/exodus" auth="Container" type="javax.sql.DataSource"
>              username="#####_#####"
>              password="#####"
>              driverClassName="com.mysql.jdbc.Driver"
>             
> url="jdbc:mysql://localhost:3306/#####_#####?useUnicode=true&amp;characterEncoding=utf8"
> 
>              maxActive="15"
>              maxIdle="7"
>              defaultTransactionIsolation="READ_COMMITTED"
>              validationQuery="Select 1" />
>     />


The above won't work, it should really stop Tomcat from starting.

Wrong:

<Context
  <Resource ... />
 />

Right:

<Context>
  <Resource ... />
</Context>


p


Re: : tomcat error 404

Posted by Pid <pi...@pidster.com>.
On 23/10/2011 19:57, Dave Filchak wrote:
> My environment.xml file @ /home/######/public_html/WEB-INF/conf/

Once again: this is not a Tomcat configuration file, it's application
specific.


p



Re:: tomcat error 404

Posted by Dave Filchak <su...@zuka.net>.
Alright well, I am having a hell of a time getting this to work. I am 
adding all my pertinent xml files so that maybe someone has some time to 
help me get this straightened out. I know everyone is busy and it is 
Sunday so I'll let it sit after this but at this point, I have pages 
that work but no database connectivity.

My web.xml file @ /home/######/public_html/WEB-INF/

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>

<display-name>Mushroom</display-name>
<description>
    Snap Media Mushroom Site
</description>

<context-param>
<param-name>webmaster</param-name>
<param-value>support@######.com</param-value>
<description>
       Please contact Nick should any questions or issues arise about 
this application.
</description>
</context-param>

<context-param>
<param-name>root</param-name>
<param-value>/home/######/public_html</param-value>
<description>
       Path to where the system begins
</description>
</context-param>

<context-param>
<param-name>xmlprops</param-name>
<param-value>/home/######/public_html/WEB-INF/conf/environment.xml</param-value>
<description>
       Used to find path to local XML props file.
</description>
</context-param>

<servlet>
<servlet-name>WebSystemController</servlet-name>
<servlet-class>com.snapmedia.WebSystemController</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>WebSystemController</servlet-name>
<url-pattern>/servlet/WebSystemController</url-pattern>
</servlet-mapping>

<session-config>
<session-timeout>30</session-timeout>
</session-config>

<resource-ref>
<description>Connection Pool</description>
<res-ref-name>jdbc/exodus</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>

</web-app>

My environment.xml file @ /home/######/public_html/WEB-INF/conf/

<?xml version="1.0"?>
<mushroom>

<environment>
<systemVersion>2.0</systemVersion>
<systemBuildCode>005523</systemBuildCode>
<systemLastUpdate>April 29, 2005</systemLastUpdate>
<systemIPAddress>127.0.0.1</systemIPAddress>
<SMTPHost>174.122.30.18</SMTPHost> <!-- Used by JavaMail -->
<mailFrom>it-ops@quickplay.com</mailFrom>
<sysAdmin>N. Dingle</sysAdmin>
<debug>true</debug>
</environment>

<!--
       This node contains the paths to "static systems". These should 
always be
       Fully-qualified URLs to the system in question, including domain, 
context
       root and any pertinent subdirectory. If code references any 
system which
       does not exist here, "base" will be used as a default.
    -->
<staticSystems>
<base>http://www.exodusdecoded.com</base>
<admin>http://www.exodusdecoded.com/tools</admin>
</staticSystems>

<!--
       This node is recursive so that any paths set here will be 
automatically
       loaded into the environment class. Paths end up being converted into
       Name/Value pairs and are dumped into a Hashtable
    -->
<paths>
<loginJSP>/login.jsp</loginJSP>
<parentControlJSP>/parentControl.jsp</parentControlJSP>

<baseRoot>/home/exodus/public_html/</baseRoot>
<dataRoot>/data</dataRoot>
<instanceFile></instanceFile>
<systemLogFolder>/home/exodus/public_html/WEB-INF/logs/</systemLogFolder>
<systemArchiveFolder>/home/exodus/public_html/WEB-INF/logs/archive/</systemArchiveFolder>
<logFile>/home/exodus/public_html/WEB-INF/logs/codelog.txt</logFile>
<cronLog>/home/exodus/public_html/WEB-INF/logs/scheduler.txt</cronLog>
<broadcastLog>/home/exodus/public_html/WEB-INF/logs/broadcast.txt</broadcastLog>
<memoryLog>/home/exodus/public_html/WEB-INF/logs/memory.txt</memoryLog>
<securityLog>/home/exodus/public_html/WEB-INF/logs/security.txt</securityLog>
<ipmanifestlog>/home/exodus/public_html/WEB-INF/logs/ipmanifest.txt</ipmanifestlog>
<forumArchiveLog>/home/exodus/public_html/WEB-INF/logs/forum.txt</forumArchiveLog>
</paths>

<logging>
<connectionPool>false</connectionPool>
<memoryManager>false</memoryManager>
<cronSystem>true</cronSystem>
<broadcastSystem>false</broadcastSystem>
</logging>

<users>
<UserCookie1>AEFK67897PI30</UserCookie1>
<UserCookie2>AEFK6S897PI50</UserCookie2>
<SessionTimeout>30</SessionTimeout>
<CookieDomain>exodusdecoded.com</CookieDomain>
<MaxHandleLength>25</MaxHandleLength>
<DiskQuota>204800</DiskQuota>
<emailVerifyTimeout>0</emailVerifyTimeout>
</users>

<!-- BELOW, FIND CONFIGURATION FOR MUSHROOM'S SUB-SYSTEMS -->

<CronScheduler>
<enabled>true</enabled>
<instanceSensitive>false</instanceSensitive>
<runForInstance>1</runForInstance>
<scanForJobs>10</scanForJobs>
</CronScheduler>

<BroadcastSystem>
<enabled>true</enabled>
<interval>5</interval>
</BroadcastSystem>

<ParentalGuidance>
<enabled>true</enabled>
<MinRegistrationAge>13</MinRegistrationAge>
</ParentalGuidance>

<MemoryManager>
<enabled>false</enabled>
<frequency>15</frequency>
<warnLevel>450</warnLevel>
<notifyEnabled>true</notifyEnabled>
<notifyGroup>sdeboer@snapmedia.com</notifyGroup>
</MemoryManager>

<BlockedUserManager>
<enabled>true</enabled>
<daysBlocked>3</daysBlocked>
</BlockedUserManager>

<SecurityWatcher>
<enabled>false</enabled>
<rftEnabled>true</rftEnabled>
<rftThreshold>10</rftThreshold>
<rftActionPoint>1500</rftActionPoint>
<rftClearPoint>4000</rftClearPoint>
<rftHoldTime>10</rftHoldTime>
<rftDailyMaxViolations>5</rftDailyMaxViolations>
<autoLogoutEnabled>true</autoLogoutEnabled>
</SecurityWatcher>

<!-- BELOW, FIND CONFIGURATION FOR THE SYSTEM'S DATABASE ## Note that I 
have commented this out in order to try configuring the dB connection 
using methods I found online or in a book that I have - but to no avail -->

<!-- <jdbc-config>
<driver>com.mysql.jdbc.Driver</driver>
<url>jdbc:mysql://www.exodusdecoded.com/exodus_exodus</url>
<user>exodus_exodus</user>
<password>simcha</password>
<max>10</max>
<init>10</init>
<queueQuery>select now()</queueQuery>
<logFile>/home/exodus/public_html/WEB-INF/logs/pool.txt</logFile>
</jdbc-config> -->

</mushroom>

My server.xml file at /home/#####/public_html/conf/

<?xml version='1.0' encoding='utf-8'?>

<Server port='8105' shutdown='SHUTDOWN' debug='0'>
<Listener className="org.apache.catalina.core.AprLifecycleListener" 
SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
               type="org.apache.catalina.UserDatabase"
               description="User database that can be updated and saved"
               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
               pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>

<Service name='Catalina'>
<Connector port="8180" protocol="HTTP/1.1"
            maxThreads="150" connectionTimeout="20000"
                redirectPort="8443" address="/home/exodus/public_html" />

<Connector port="8010" protocol="AJP/1.3" redirectPort="8443" 
address="/home/exodus/public_html" />

<Engine name="Catalina" defaultHost="www.exodusdecoded.com">

<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
              resourceName="UserDatabase"/>
<Host name="www.exodusdecoded.com"  appBase="/home/exodus/public_html"
             unpackWARs="true" autoDeploy="true"
             xmlValidation="false" xmlNamespaceAware="false">

<Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"
                prefix="exodus_access" suffix=".log" pattern="common" 
resolveHosts="false"/>
<Logger className='org.apache.catalina.logger.FileLogger'
            directory="logs" prefix="exodus_catalina" suffix=".log" 
timestamp="true" />

<!-- Here I tried to define a context based on information I again fould 
in a book that I have and online -->
<Context path='' docBase='/home/#####/public_html/' debug='0'
<Resource name="jdbc/exodus" auth="Container" type="javax.sql.DataSource"
              username="#####_#####"
              password="#####"
              driverClassName="com.mysql.jdbc.Driver"
              
url="jdbc:mysql://localhost:3306/#####_#####?useUnicode=true&amp;characterEncoding=utf8"
              maxActive="15"
              maxIdle="7"
              defaultTransactionIsolation="READ_COMMITTED"
              validationQuery="Select 1" />
     />
</Host>
</Engine>
</Service>
</Server>

My context file, which I created while again trying to solve why the 
database connection fails at /home/#####/public_html/META-INF/

<Context>
<Resource name="jdbc/exodus"
     auth="Container"
     type=javax.sql.DataSource
     maxActive="10"
     maxIdle="20"
     macWait="10000"
     username="#####_######"
     password="#####"
     driverClassName="com.mysql.jdbc.Driver"
     url="jdbc:mysql://localhost:3306/#####_######?autoReconnect=true"
     removeAbandoned="true"
     removeAbandonedTomeout="120"
     />
</Context>

I know this is probably screwed up now so I appreciate the help I have 
had so far and would seriously appreciate any input as to how to 
straighten this out and get the connection to the database functional. I 
really need to get the site up and running today.

Thanks for your consideration and your time.

Dave

On 22/07/64 2:59 PM, Dave Filchak wrote:
> Ok, perhaps this will be more helpful. To follow is the way the db
> connection is set up now, and I am not sure it is correct because, as I
> understand it, you are supposed to add a context to the server.xml file
> defining the db connection through jdbc/mysql ( which I am not sure of
> the format yet ), either in the main system one or the application
> specific one, OR to the META-INF/content.xml file, which I do not have.
> What I do have is this, in my application directory at
> /home/XXXXXX/public_html/WEB-INF/conf/environment.xml:
>
> <jdbc-config>
> <driver>com.mysql.jdbc.Driver</driver>
> <url>jdbc:mysql://###.###.###.###:3306/#######_exodus</url>
> <user>#########_exodus</user>
> <password>#####</password>
> <max>10</max>
> <init>10</init>
> <queueQuery>select now()</queueQuery>
> <logFile>/home/#####/public_html/WEB-INF/logs/pool.txt</logFile>
> </jdbc-config>
>
> When I modify the<url>, it does show up in the error that is generated
> so the app must be reading from this entry while trying to make the
> connection to the database. I do not believe there is any other location
> where a reference to the database is made.
>
> Apparently, you are also supposed
> to add an entry in the</*CONTEXT_HOME*/>/WEB-INF/web.xml and I am not
> sure if this is true but in my/home/#####/public_html/WEB-INF/web.xml
> there is no reference to the database. However, this used to work on the
> old server. So, in a nutshell, the only reference to a database
> connection is in the environment.xml file.
>
> Dave
>
>
>
> On 22/07/64 2:59 PM, Dave Filchak wrote:
>> Hi André,
>>
>> Sorry about the comments. Wasn't thinking. So, I did find that one of
>> the closing comment tags in my web.xml was entered as ==>. Fixing that
>> gave me some progress in that the site's homepage now comes up. However,
>> I now get the following error when clicking on a few links, which
>> obviously refer to a connection to the database:
>>
>> Error initializing sub-systems:
>> Please check the following:
>> 1. That your machine has a valid connection to 
>> jdbc:mysql://localhost/########_exodus Using:
>>     Username: ########_exodus
>>     Password: ######
>>     Driver: com.mysql.jdbc.Driver
>>
>>
>> *DETAILS FOLLOW:*
>> java.lang.Exception: Unable to Initialize Environment:
>> java.lang.NoClassDefFoundError: javax/mail/Address
>>     at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
>>     at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
>>     at com.snapmedia.SystemController.init(SystemController.java:86)
>>     at 
>> com.snapmedia.WebSystemController.init(WebSystemController.java:39)
>>     at 
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>>     at 
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>>     at 
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
>>     at 
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
>>     at 
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>     at 
>> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>>     at 
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>     at 
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>     at 
>> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>>     at 
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>>     at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>     at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>     at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>     at 
>> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
>> Caused by: java.lang.ClassNotFoundException: javax.mail.Address
>>     at 
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
>>     at 
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
>>     ... 25 more
>>
>> I have verified that thew username and password are correct by logging
>> into the MySQL server from the command line. Something with the driver?
>>
>> Dave
>>
>>
>>
>> On 22/07/64 2:59 PM, André Warnier wrote:
>>> Hi.
>>>
>>> One thing at a time..
>>>
>>> 1) When you send XML configuration files, please remove everything 
>>> that is a comment.
>>> XML files are already being wrapped by the email program, and are 
>>> difficult to read as it is. Having plenty of comments in them in 
>>> addition makes is really a hassle to figure out what is being used 
>>> or not.
>>> (Note: an XML comment is anything between a pair of <!-- and --> )
>>>
>>> 2) one error message below talks about an invalid XML file.
>>> Inside one of the comments (between a leading <!-- and a trailing 
>>> -->), there is another pair of -- . That is incorrect and causes the 
>>> entire file to be rejected/ignored.
>>> Inspect that file carefully, remove the offending --, and try again.
>>>
>>> (Note: the extra -- may also be due to a previous bad edit of the 
>>> file.  It may have been a <!-- or a --> , where someone tried to 
>>> comment or de-comment something, and either removed too much or 
>>> added not enough.
>>> Remember that everything between a pair of <!-- and --> is a comment 
>>> (normally ignored), and inside of such a comment, you cannot have 
>>> another pair of -- )
>>>
>>> Do this carefully, as it may be the basic cause why the whole thing 
>>> is not working.
>>> Keep a backup of the original, for each file that you start editing.
>>>
>>> (Another note: there exist text editors which can show you if a file 
>>> is correct XML or not.  For a windows PC, look up Notepad++ in Google)
>>>
>>> 3) what happens when, in your browser, you enter the URL :
>>>
>>> http://your-host-name:8180
>>>
>>> ?
>>> (replace your-host-name by .. your real host name (or its IP address))
>>>
>>>
>>>
>>> <snip>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: tomcat error 404

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave,

On 10/23/2011 12:20 PM, Dave Filchak wrote:
> Ok, perhaps this will be more helpful. To follow is the way the db 
> connection is set up now, and I am not sure it is correct because,
> as I understand it, you are supposed to add a context to the
> server.xml

It's better to use a META-INF/context.xml file instead of adding a
<Context> to server.xml.

> file defining the db connection through jdbc/mysql ( which I am not
> sure of the format yet ), either in the main system one or the
> application specific one, OR to the META-INF/content.xml file,
> which I do not have. What I do have is this, in my application
> directory at 
> /home/XXXXXX/public_html/WEB-INF/conf/environment.xml:

If you have environment.xml, then your JDBC connection pool is
probably being configured by some other component and you don't
necessarily need Tomcat's connection pool.

> <jdbc-config> <driver>com.mysql.jdbc.Driver</driver> 
> <url>jdbc:mysql://###.###.###.###:3306/#######_exodus</url> 
> <user>#########_exodus</user> <password>#####</password> 
> <max>10</max> <init>10</init> <queueQuery>select
> now()</queueQuery>

For "queueQuery" (presumably a connection test), use "/* ping */
SELECT 1" -- it will usually be faster than a real query, and
falls-back to "SELECT 1" (pretty simple) if your driver doesn't
understand the "ping" hint.

> <logFile>/home/#####/public_html/WEB-INF/logs/pool.txt</logFile>

Beware of putting log files into the webapp's deployment directory:
they will be deleted when the webapp is undeployed.

> Apparently, you are also supposed to add an entry in
> the</*CONTEXT_HOME*/>/WEB-INF/web.xml and I am not sure if this is
> true but in my/home/#####/public_html/WEB-INF/web.xml there is no
> reference to the database.

You don't need one: if you define the data source within your own
webapp, then you don't need anything in web.xml (you were probably
reading about <resource-ref>).

> However, this used to work on the old server. So, in a nutshell,
> the only reference to a database connection is in the
> environment.xml file.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6murgACgkQ9CaO5/Lv0PBLfQCbBGJYap+/Gg7ZnUp9DNRp/xpt
7hkAnRZmVM9d41eURr1NJ0X0Cx5M9/6C
=YhrE
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Re: Re: tomcat error 404

Posted by Dave Filchak <su...@zuka.net>.
Ok, perhaps this will be more helpful. To follow is the way the db
connection is set up now, and I am not sure it is correct because, as I
understand it, you are supposed to add a context to the server.xml file
defining the db connection through jdbc/mysql ( which I am not sure of
the format yet ), either in the main system one or the application
specific one, OR to the META-INF/content.xml file, which I do not have.
What I do have is this, in my application directory at
/home/XXXXXX/public_html/WEB-INF/conf/environment.xml:

<jdbc-config>
<driver>com.mysql.jdbc.Driver</driver>
<url>jdbc:mysql://###.###.###.###:3306/#######_exodus</url>
<user>#########_exodus</user>
<password>#####</password>
<max>10</max>
<init>10</init>
<queueQuery>select now()</queueQuery>
<logFile>/home/#####/public_html/WEB-INF/logs/pool.txt</logFile>
</jdbc-config>

When I modify the<url>, it does show up in the error that is generated
so the app must be reading from this entry while trying to make the
connection to the database. I do not believe there is any other location
where a reference to the database is made.

Apparently, you are also supposed
to add an entry in the</*CONTEXT_HOME*/>/WEB-INF/web.xml and I am not
sure if this is true but in my/home/#####/public_html/WEB-INF/web.xml
there is no reference to the database. However, this used to work on the
old server. So, in a nutshell, the only reference to a database
connection is in the environment.xml file.

Dave



On 22/07/64 2:59 PM, Dave Filchak wrote:
> Hi André,
>
> Sorry about the comments. Wasn't thinking. So, I did find that one of
> the closing comment tags in my web.xml was entered as ==>. Fixing that
> gave me some progress in that the site's homepage now comes up. However,
> I now get the following error when clicking on a few links, which
> obviously refer to a connection to the database:
>
> Error initializing sub-systems:
> Please check the following:
> 1. That your machine has a valid connection to 
> jdbc:mysql://localhost/########_exodus Using:
>     Username: ########_exodus
>     Password: ######
>     Driver: com.mysql.jdbc.Driver
>
>
> *DETAILS FOLLOW:*
> java.lang.Exception: Unable to Initialize Environment:
> java.lang.NoClassDefFoundError: javax/mail/Address
>     at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
>     at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
>     at com.snapmedia.SystemController.init(SystemController.java:86)
>     at 
> com.snapmedia.WebSystemController.init(WebSystemController.java:39)
>     at 
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>     at 
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>     at 
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
>     at 
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
>     at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>     at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>     at 
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>     at 
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>     at 
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>     at 
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:597)
>     at 
> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
> Caused by: java.lang.ClassNotFoundException: javax.mail.Address
>     at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
>     at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
>     ... 25 more
>
> I have verified that thew username and password are correct by logging
> into the MySQL server from the command line. Something with the driver?
>
> Dave
>
>
>
> On 22/07/64 2:59 PM, André Warnier wrote:
>> Hi.
>>
>> One thing at a time..
>>
>> 1) When you send XML configuration files, please remove everything 
>> that is a comment.
>> XML files are already being wrapped by the email program, and are 
>> difficult to read as it is. Having plenty of comments in them in 
>> addition makes is really a hassle to figure out what is being used or 
>> not.
>> (Note: an XML comment is anything between a pair of <!-- and --> )
>>
>> 2) one error message below talks about an invalid XML file.
>> Inside one of the comments (between a leading <!-- and a trailing 
>> -->), there is another pair of -- . That is incorrect and causes the 
>> entire file to be rejected/ignored.
>> Inspect that file carefully, remove the offending --, and try again.
>>
>> (Note: the extra -- may also be due to a previous bad edit of the 
>> file.  It may have been a <!-- or a --> , where someone tried to 
>> comment or de-comment something, and either removed too much or added 
>> not enough.
>> Remember that everything between a pair of <!-- and --> is a comment 
>> (normally ignored), and inside of such a comment, you cannot have 
>> another pair of -- )
>>
>> Do this carefully, as it may be the basic cause why the whole thing 
>> is not working.
>> Keep a backup of the original, for each file that you start editing.
>>
>> (Another note: there exist text editors which can show you if a file 
>> is correct XML or not.  For a windows PC, look up Notepad++ in Google)
>>
>> 3) what happens when, in your browser, you enter the URL :
>>
>> http://your-host-name:8180
>>
>> ?
>> (replace your-host-name by .. your real host name (or its IP address))
>>
>>
>>
>>
>> Dave Filchak wrote:
>>> Hello Charles,
>>>
>>> Hopefully this helps and it is not too much info.
>>>
>>> Dave
>>>
>>> On 22/07/64 2:59 PM, Caldarale, Charles R wrote:
>>>>> From: Dave Filchak [mailto:submit@zuka.net]
>>>>> Subject: tomcat error 404
>>>>> I am receiving a HTTP Status 404 error.
>>>> Can you tell if the 404 is coming from Tomcat or httpd?
>>> Well, I cannot seem to connect to the site using 8080 either or the 
>>> example files but, this site is a VPS controlled with cpanel. Cpanel 
>>> says it is running and when I ssh to the server and run ps -aux, it 
>>> shows an instance of tomcat running. This also verifies that httpd 
>>> is running from your next question as well. However, in the 
>>> catalina.err file, it shows the following errors:
>>>
>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
>>> applicationWebConfig
>>> SEVERE: Parse error in application web.xml file at 
>>> jndi:/exodusdecoded.com/WEB-INF/web.xml
>>> org.xml.sax.SAXParseException: The string "--" is not permitted 
>>> within comments.
>>>
>>> and then;
>>>
>>> SEVERE: Occurred at line 32 column 5
>>> Oct 21, 2011 1:40:34 PM org.apache.catalina.startup.ContextConfig start
>>> SEVERE: Marking this application unavailable due to previous error(s)
>>> Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
>>> SEVERE: Error getConfigured
>>> Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
>>> SEVERE: Context [] startup failed due to previous errors
>>> Oct 21, 2011 1:40:35 PM org.apache.catalina.startup.HostConfig 
>>> deployWAR
>>> INFO: Deploying web application archive exodus.war
>>>
>>> and
>>>
>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
>>> applicationWebConfig
>>> SEVERE: Occurred at line 32 column 5
>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig start
>>> SEVERE: Marking this application unavailable due to previous error(s)
>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
>>> SEVERE: Error getConfigured
>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
>>> SEVERE: Context [] startup failed due to previous errors
>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.HostConfig 
>>> deployWAR
>>> INFO: Deploying web application archive exodus.war
>>> Oct 21, 2011 1:54:21 PM org.apache.catalina.core.StandardHost start
>>> INFO: XML validation disabled
>>> Oct 21, 2011 1:54:21 PM org.apache.catalina.startup.HostConfig 
>>> deployWAR
>>> INFO: Deploying web application archive exodus.war
>>>
>>> with exodus being the name of the app I am trying to deploy. Then it 
>>> shows:
>>>
>>> SEVERE: Servlet.service() for servlet jsp threw exception
>>> org.apache.jasper.JasperException: 
>>> /include/../../include/system-checkup.jsp(2,0) The value for the 
>>> useBean class attribute com.snapmedia.WebSystemController is invalid.
>>>
>>>
>>>>
>>>>> I have verified that tomcat and apache are running.
>>>> By "apache" [sic], I presume you mean httpd.  How did you verify 
>>>> they're running?
>>>>
>>>>> My host will now help
>>>> So if the host will help, why aren't you asking them?  (Or did you 
>>>> really mean "not" there?)
>>> Sorry, I meant "not", as in will not help.
>>>>
>>>>> If anyone can help me I really would appreciate it as the
>>>>> site is down completely at this point.
>>>> Without considerably more information, there's not much anyone can 
>>>> help you with.  For starters, you need to examine the logs, post 
>>>> your server.xml file (obfuscated as needed), show us the<Context>  
>>>> element (if there is one) for your webapp, tell us the mechanism 
>>>> you're using to connect httpd to Tomcat, and provide the config for 
>>>> that.
>>> environment.xml file:
>>>
>>> <?xml version="1.0"?>
>>> <mushroom>
>>>
>>> <environment>
>>> <systemVersion>2.0</systemVersion>
>>> <systemBuildCode>005523</systemBuildCode>
>>> <systemLastUpdate>April 29, 2005</systemLastUpdate>
>>> <systemIPAddress>127.0.0.1</systemIPAddress>
>>> <SMTPHost>174.122.30.18</SMTPHost> <!-- Used by JavaMail -->
>>> <mailFrom>it-ops@quickplay.com</mailFrom>
>>> <sysAdmin>N. Dingle</sysAdmin>
>>> <debug>true</debug>
>>> </environment>
>>>
>>> <!--
>>>       This node contains the paths to "static systems". These should 
>>> always be
>>>       Fully-qualified URLs to the system in question, including 
>>> domain, context
>>>       root and any pertinent subdirectory. If code references any 
>>> system which
>>>       does not exist here, "base" will be used as a default.
>>>    -->
>>> <staticSystems>
>>> <base>http://www.#######.com</base>
>>> <admin>http://www.#######.com/tools</admin>
>>> </staticSystems>
>>>
>>> <!--
>>>       This node is recursive so that any paths set here will be 
>>> automatically
>>>       loaded into the environment class. Paths end up being 
>>> converted into
>>>       Name/Value pairs and are dumped into a Hashtable
>>>    -->
>>> <paths>
>>> <loginJSP>/login.jsp</loginJSP>
>>> <parentControlJSP>/parentControl.jsp</parentControlJSP>
>>>
>>> <baseRoot>/usr/local/tomcat/webapps/exodus</baseRoot>
>>>
>>> ##NOTE: this path does not exist on this server. It is the path that 
>>> existed on the old server.
>>>
>>> <dataRoot>/data</dataRoot>
>>> <instanceFile></instanceFile>
>>> <systemLogFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/</systemLogFolder> 
>>>
>>>
>>> ##NOTE: obviously this one does not exist either
>>>
>>> <systemArchiveFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/archive/</systemArchiveFolder> 
>>>
>>> <logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/codelog.txt</logFile> 
>>>
>>> <cronLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/scheduler.txt</cronLog> 
>>>
>>> <broadcastLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/broadcast.txt</broadcastLog> 
>>>
>>> <memoryLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/memory.txt</memoryLog> 
>>>
>>> <securityLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/security.txt</securityLog> 
>>>
>>> <ipmanifestlog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/ipmanifest.txt</ipmanifestlog> 
>>>
>>> <forumArchiveLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/forum.txt</forumArchiveLog> 
>>>
>>> </paths>
>>>
>>> ##NOTE: in fact none of these exist. The path to the WEB-INF folder 
>>> for this app ( unless there is another one by default? ) is at: 
>>> /home/exodus/public_html/WEB-INF/ so should I edit all these paths 
>>> to reflect that new path? Or, do I put a copy of the WEB-INF folder 
>>> here?
>>>
>>> <logging>
>>> <connectionPool>false</connectionPool> <!-- Set to true to enable 
>>> verbose logging of database connection activity
>>>  -->
>>> <memoryManager>false</memoryManager> <!-- Set to true to enable 
>>> logging of MemoryManager status -->
>>> <cronSystem>true</cronSystem> <!-- Set to true to enable 
>>> CronScheduler logging -->
>>> <broadcastSystem>false</broadcastSystem> <!-- Set to true to enable 
>>> BroadcastSystem logging -->
>>> </logging>
>>>
>>> <users>
>>> <UserCookie1>AEFK67897PI30</UserCookie1>
>>> <UserCookie2>AEFK6S897PI50</UserCookie2>
>>> <SessionTimeout>30</SessionTimeout> <!-- Time before application 
>>> expires user and forces them back to the login
>>>  screen (in Minutes) -->
>>> <CookieDomain>########.com</CookieDomain> <!-- In Development mode, 
>>> leave this blank -->
>>> <MaxHandleLength>25</MaxHandleLength> <!-- Maximum length to allow 
>>> user handles.  This is arbitrary for now -->
>>> <DiskQuota>204800</DiskQuota> <!-- 200 K -->
>>> <emailVerifyTimeout>0</emailVerifyTimeout> <!-- number of days a 
>>> user can go before having to verify his email address
>>>  -->
>>> </users>
>>>
>>> <!-- BELOW, FIND CONFIGURATION FOR MUSHROOM'S SUB-SYSTEMS -->
>>>
>>> <CronScheduler>
>>> <enabled>true</enabled> <!-- Set to true to enable the Use of a 
>>> system scheduler that imitates UNIX
>>>  CRON functionality -->
>>> <instanceSensitive>false</instanceSensitive> <!-- Used to force only 
>>> one instance of this manager to load in a clustered
>>>  environment -->
>>> <runForInstance>1</runForInstance> <!-- Which instance number should 
>>> control this manager.  (see the degrassi.
>>> instance properties file) -->
>>> <scanForJobs>10</scanForJobs> <!-- How often should the scheduler 
>>> wake up and scan for tasks (in minutes)
>>>  -->
>>> </CronScheduler>
>>>
>>> <BroadcastSystem>
>>> <enabled>true</enabled> <!-- Set to true to enable outbound 
>>> messaging (WAP/Email) -->
>>> <interval>5</interval> <!-- Time in minutes to sleep and check 
>>> message queue size -->
>>> </BroadcastSystem>
>>>
>>> <ParentalGuidance>
>>> <enabled>true</enabled> <!--Does this system treat underage children 
>>> differently?  (TRUE=YES, FALSE=
>>> NO) -->
>>> <MinRegistrationAge>13</MinRegistrationAge> <!--Children who are 
>>> less than this age require parental guidance (PG13) --
>>> >
>>> </ParentalGuidance>
>>>
>>> <MemoryManager>
>>> <enabled>false</enabled> <!-- Set to true to enable the 
>>> MemoryManager thread to queue for JVM memsta
>>> te -->
>>> <frequency>15</frequency> <!-- (in Minutes) How often the state of 
>>> memory in the JVM should be checke
>>> d -->
>>> <warnLevel>450</warnLevel> <!-- (in MB) Size of memory used to 
>>> trigger e-mail notification (if enabled
>>> ) -->
>>> <notifyEnabled>true</notifyEnabled> <!-- Set to true to send email 
>>> to everyone when memory gets low -->
>>> <notifyGroup>######@########.com</notifyGroup> <!-- Semi-colon 
>>> delimited list of whomever should be notified in the event
>>> of a 'low-memory' state -->
>>> </MemoryManager>
>>>
>>> <BlockedUserManager>
>>> <enabled>true</enabled>
>>> <daysBlocked>3</daysBlocked>
>>> </BlockedUserManager>
>>>
>>> <SecurityWatcher>
>>> <enabled>false</enabled> <!-- [TRUE = ENABLED | FALSE = DISABLED] 
>>> overrides all other toggles -->
>>> <rftEnabled>true</rftEnabled> <!-- (RFT = REQUEST FREQUENCY TEST - 
>>> [TRUE|FALSE]) set to true to have the
>>> system test the frequency of client requests for abuse. -->
>>> <rftThreshold>10</rftThreshold> <!-- MAXIMUM NUMBER OF ABUSE FLAGS A 
>>> USER CAN HAVE BEFORE ACTION IS TAKEN -
>>> ->
>>> <rftActionPoint>1500</rftActionPoint> <!-- EXPRESSED IN 
>>> MILLISECONDS, THIS REPRESENTS THE POINT WHERE A REQUEST I
>>> S CONSIDERED TOO RAPID AND WE INCREMENT A COUNTER UNTIL WE HIT THE 
>>> THRESHOLD. -->
>>> <rftClearPoint>4000</rftClearPoint> <!-- EXPRESSED IN MILLISECONDS, 
>>> THIS REPRESENTS THE POINT WHERE WE SHOULD C
>>> LEAR ALL FLAGS AND RESET THRESHOLD. -->
>>> <rftHoldTime>10</rftHoldTime> <!-- EXPRESSED IN MINUTES, HOW LONG 
>>> SHOULD WE TEMPORARILY DENY A VIOLATOR A
>>> CCESS TO THE SITE -->
>>> <rftDailyMaxViolations>5</rftDailyMaxViolations> <!-- HOW MANY TIMES 
>>> CAN A USER BE TEMPORARILY DENIED ACCESS BEFORE THEY MAK
>>> E IT TO THE DETENTION CENTRE -->
>>> <autoLogoutEnabled>true</autoLogoutEnabled> <!-- [TRUE|FALSE] - SET 
>>> TO TRUE TO HAVE A THREAD CHECK THE SESSIONS AND LOG
>>> OUT USERS THAT ARE INACTIVE (i.e. HAVE ABANDONED THEIR SESSIONS) -->
>>> </SecurityWatcher>
>>>
>>> <!-- BELOW, FIND CONFIGURATION FOR THE SYSTEM'S DATABASE -->
>>>
>>> <jdbc-config>
>>> <driver>com.mysql.jdbc.Driver</driver> <!-- Java MySQL Driver -->
>>> <url>jdbc:mysql://localhost/#######</url> <!-- Server/DSN combo -->
>>> <user>#######</user> <!-- Database username -->
>>> <password>#####</password> <!-- Database password -->
>>> <max>10</max> <!-- The maximum number of connections to persistently 
>>> be held in the pool
>>> -->
>>> <init>10</init> <!-- The number of connections to initially (and 
>>> optimally) be held in the
>>> pool -->
>>> <queueQuery>select now()</queueQuery> <!-- Query used by the pool 
>>> watcher to determine whether or not a conn is a
>>> ctive. -->
>>> <logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/pool.txt</logFile> 
>>> <!-- NEW! Where does the pool output go (if logging is enabled [see
>>> logging node]) -->
>>> </jdbc-config>
>>>
>>> </mushroom>
>>>
>>> SERVER.XML
>>>
>>> <?xml version='1.0' encoding='utf-8'?>
>>> <!--
>>>   Licensed to the Apache Software Foundation (ASF) under one or more
>>>   contributor license agreements.  See the NOTICE file distributed with
>>>   this work for additional information regarding copyright ownership.
>>>   The ASF licenses this file to You under the Apache License, 
>>> Version 2.0
>>>   (the "License"); you may not use this file except in compliance with
>>>   the License.  You may obtain a copy of the License at
>>>
>>>       http://www.apache.org/licenses/LICENSE-2.0
>>>
>>>   Unless required by applicable law or agreed to in writing, software
>>>   distributed under the License is distributed on an "AS IS" BASIS,
>>>   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
>>> implied.
>>>   See the License for the specific language governing permissions and
>>>   limitations under the License.
>>> -->
>>> <!-- Note:  A "Server" is not itself a "Container", so you may not
>>>      define subcomponents such as "Valves" at this level.
>>>      Documentation at /docs/config/server.html
>>>  -->
>>> <Server port='8105' shutdown='SHUTDOWN' debug='0'>
>>>
>>> <!--APR library loader. Documentation at /docs/apr.html -->
>>> <Listener className="org.apache.catalina.core.AprLifecycleListener" 
>>> SSLEngine="on" />
>>> <!--Initialize Jasper prior to webapps are loaded. Documentation at 
>>> /docs/jasper-howto.html -->
>>> <Listener className="org.apache.catalina.core.JasperListener" />
>>> <!-- JMX Support for the Tomcat server. Documentation at 
>>> /docs/non-existent.html -->
>>> <Listener 
>>> className="org.apache.catalina.mbeans.ServerLifecycleListener" />
>>> <Listener 
>>> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" 
>>> />
>>>
>>> <!-- Global JNDI resources
>>>        Documentation at /docs/jndi-resources-howto.html
>>>   -->
>>> <GlobalNamingResources>
>>> <!-- Editable user database that can also be used by
>>>          UserDatabaseRealm to authenticate users
>>>     -->
>>> <Resource name="UserDatabase" auth="Container"
>>>               type="org.apache.catalina.UserDatabase"
>>>               description="User database that can be updated and saved"
>>>               
>>> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>>>               pathname="conf/tomcat-users.xml" />
>>> </GlobalNamingResources>
>>>
>>> <!-- A "Service" is a collection of one or more "Connectors" that share
>>>        a single "Container" Note:  A "Service" is not itself a 
>>> "Container",
>>>        so you may not define subcomponents such as "Valves" at this 
>>> level.
>>>        Documentation at /docs/config/service.html
>>>    -->
>>> <Service name='Catalina'>
>>>
>>> <!--The connectors can use a shared executor, you can define one or 
>>> more named thread pools-->
>>> <!--
>>> <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
>>>         maxThreads="150" minSpareThreads="4"/>
>>>     -->
>>>
>>>
>>> <!-- A "Connector" represents an endpoint by which requests are 
>>> received
>>>          and responses are returned. Documentation at :
>>>          Java HTTP Connector: /docs/config/http.html (blocking & 
>>> non-blocking)
>>>          Java AJP  Connector: /docs/config/ajp.html
>>>          APR (HTTP/AJP) Connector: /docs/apr.html
>>>          Define a non-SSL HTTP/1.1 Connector on port 8080
>>>     -->
>>> <Connector port="8180" protocol="HTTP/1.1"
>>>            maxThreads="150" connectionTimeout="20000"
>>>                redirectPort="8443" address="/home/XXXX/public_html" />
>>> <!-- A "Connector" using the shared thread pool-->
>>> <!--
>>> <Connector executor="tomcatThreadPool"
>>>                port="8080" protocol="HTTP/1.1"
>>>                connectionTimeout="20000"
>>>                redirectPort="8443" />
>>>     -->
>>> <!-- Define a SSL HTTP/1.1 Connector on port 8443
>>>          This connector uses the JSSE configuration, when using APR, 
>>> the
>>>          connector should be using the OpenSSL style configuration
>>>          described in the APR documentation -->
>>> <!--
>>> <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
>>>                maxThreads="150" scheme="https" secure="true"
>>>                clientAuth="false" sslProtocol="TLS" />
>>>     -->
>>>
>>> <!-- Define an AJP 1.3 Connector on port 8009/8010 -->
>>> <Connector port="8010" protocol="AJP/1.3" redirectPort="8443" 
>>> address="/home/#####/public_html" />
>>>
>>> <!-- An Engine represents the entry point (within Catalina) that 
>>> processes
>>>          every request.  The Engine implementation for Tomcat stand 
>>> alone
>>>          analyzes the HTTP headers included with the request, and 
>>> passes them
>>>          on to the appropriate Host (virtual host).
>>>          Documentation at /docs/config/engine.html -->
>>>
>>> <!-- You should set jvmRoute to support load-balancing via AJP ie :
>>> <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
>>>     -->
>>> <Engine name="Catalina" defaultHost="www.XXXXXXXX.com">
>>>
>>> <!--For clustering, please take a look at documentation at:
>>>           /docs/cluster-howto.html  (simple how to)
>>>           /docs/config/cluster.html (reference documentation) -->
>>> <!--
>>> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
>>>       -->
>>>
>>> <!-- The request dumper valve dumps useful debugging information about
>>>
>>>            the request and response data received and sent by Tomcat.
>>>            Documentation at: /docs/config/valve.html -->
>>> <!--
>>> <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
>>>       -->
>>>
>>> <!-- This Realm uses the UserDatabase configured in the global JNDI
>>>            resources under the key "UserDatabase".  Any edits
>>>            that are performed against this UserDatabase are immediately
>>>            available for use by the Realm.  -->
>>> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>>>              resourceName="UserDatabase"/>
>>>
>>> <!-- Define the default virtual host
>>>            Note: XML Schema validation will not work with Xerces 2.2.
>>>        -->
>>> <Host name="www.XXXXXXXX.com"  appBase="/home/XXXXX/public_html"
>>>             unpackWARs="true" autoDeploy="true"
>>>             xmlValidation="false" xmlNamespaceAware="false">
>>>
>>>
>>> <!-- SingleSignOn valve, share authentication between web applications
>>>              Documentation at: /docs/config/valve.html -->
>>> <!--
>>> <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
>>>         -->
>>>
>>> <!-- Access log processes all example.
>>>              Documentation at: /docs/config/valve.html -->
>>>
>>> <Valve className="org.apache.catalina.valves.AccessLogValve" 
>>> directory="logs"
>>>                prefix="exodus_access." suffix=".log" 
>>> pattern="common" resolveHosts="false"/>
>>> <Logger className='org.apache.catalina.logger.FileLogger'
>>>            directory="logs" prefix="exodus_catalina." suffix=".log" 
>>> timestamp="true" />
>>> <Context path='' docBase='ROOT' debug='0' />
>>>         ##NOTE: the is no ROOT directory in the app.
>>>
>>> </Host>
>>> </Engine>
>>> </Service>
>>> </Server>
>>>
>>>
>>>
>>> LoadModule jk_module modules/mod_jk.so
>>>
>>> ajp13 listening on /0.0.0.0:8009
>>>>
>>>>   - Chuck
>>>>
>>>>
>>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
>>>> PROPRIETARY MATERIAL and is thus for use only by the intended 
>>>> recipient. If you received this in error, please contact the sender 
>>>> and delete the e-mail and its attachments from all computers.
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>>
>

Re: Re: tomcat error 404

Posted by Dave Filchak <su...@zuka.net>.
Hi Pid,

On 22/07/64 2:59 PM, Pid * wrote:

> On 23 Oct 2011, at 17:21, Dave Filchak<su...@zuka.net>   wrote:
>
>> Ok, perhaps this will be more helpful. To follow is the way the db
>> connection is set up now, and I am not sure it is correct because, as I
>> understand it, you are supposed to add a context to the server.xml
> ... not recommended in the last 2 major versions of Tomcat.
But this is Tomcat 5.5?

>> file
>> defining the db connection through jdbc/mysql ( which I am not sure of
>> the format yet ), either in the main system one or the application
>> specific one, OR to the META-INF/content.xml file,
> You mean 'context.xml' of course.
Yes

>> which I do not have.
>> What I do have is this, in my application directory at
>> /home/XXXXXX/public_html/WEB-INF/conf/environment.xml:
> That is not a Tomcat file.  Could it be an application specific file?
I guess it must be. I thought it was a tomcat file. So, in the
application, the database was always configured in this environment.xml
file. Is it possible to have a database connection defined in a
application specific file and not in any of the actual tomcat files
under tomcat 5.5?

>> <jdbc-config>
>> <driver>com.mysql.jdbc.Driver</driver>
>> <url>jdbc:mysql://###.###.###.###:3306/#######_exodus</url>
>> <user>#########_exodus</user>
>> <password>#####</password>
>> <max>10</max>
>> <init>10</init>
>> <queueQuery>select now()</queueQuery>
>> <logFile>/home/#####/public_html/WEB-INF/logs/pool.txt</logFile>
>> </jdbc-config>
> Logging inside the api action is generally considered to be A Bad Idea.
OK ... I will take it out as it is not working anyway as far as I can tell.

>> When I modify the<url>, it does show up in the error that is generated
>> so the app
> <snip>
>
>>> Error initializing sub-systems:
>>> Please check the following:
>>> 1. That your machine has a valid connection to
>>> jdbc:mysql://localhost/########_exodus Using:
>>>      Username: ########_exodus
>>>      Password: ######
>>>      Driver: com.mysql.jdbc.Driver
> The stacktrace below indicates that the JavaMail libs are missing.
>
> They would either be in your apps WEB-INF/lib or tomcat/lib. In an old
> Tomcat it might have been in tomcat/common/lib or tomcat/shared/lib.
OK, I will Google for them and try to get them installed

p
>>> *DETAILS FOLLOW:*
>>> java.lang.Exception: Unable to Initialize Environment:
>>> java.lang.NoClassDefFoundError: javax/mail/Address
>>>     at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
>>>     at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
>>>     at com.snapmedia.SystemController.init(SystemController.java:86)
>>>     at
>>> com.snapmedia.WebSystemController.init(WebSystemController.java:39)
>>>     at
>>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>>>     at
>>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>>>     at
>>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
>>>     at
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
>>>     at
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>>     at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>>>     at
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>>     at
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>>     at
>>> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>>>     at
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>>>     at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>     at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>     at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>     at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>     at java.lang.reflect.Method.invoke(Method.java:597)
>>>     at
>>> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
>>> Caused by: java.lang.ClassNotFoundException: javax.mail.Address
>>>     at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
>>>     at
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
>>>     ... 25 more
>>>
>>> I have verified that thew username and password are correct by logging
>>> into the MySQL server from the command line. Something with the driver?
>>>
>>> Dave
>>>
>>>
>>>
>>> On 22/07/64 2:59 PM, André Warnier wrote:
>>>> Hi.
>>>>
>>>> One thing at a time..
>>>>
>>>> 1) When you send XML configuration files, please remove everything
>>>> that is a comment.
>>>> XML files are already being wrapped by the email program, and are
>>>> difficult to read as it is. Having plenty of comments in them in
>>>> addition makes is really a hassle to figure out what is being used or
>>>> not.
>>>> (Note: an XML comment is anything between a pair of<!-- and -->  )
>>>>
>>>> 2) one error message below talks about an invalid XML file.
>>>> Inside one of the comments (between a leading<!-- and a trailing
>>>> -->), there is another pair of -- . That is incorrect and causes the
>>>> entire file to be rejected/ignored.
>>>> Inspect that file carefully, remove the offending --, and try again.
>>>>
>>>> (Note: the extra -- may also be due to a previous bad edit of the
>>>> file.  It may have been a<!-- or a -->  , where someone tried to
>>>> comment or de-comment something, and either removed too much or added
>>>> not enough.
>>>> Remember that everything between a pair of<!-- and -->  is a comment
>>>> (normally ignored), and inside of such a comment, you cannot have
>>>> another pair of -- )
>>>>
>>>> Do this carefully, as it may be the basic cause why the whole thing
>>>> is not working.
>>>> Keep a backup of the original, for each file that you start editing.
>>>>
>>>> (Another note: there exist text editors which can show you if a file
>>>> is correct XML or not.  For a windows PC, look up Notepad++ in Google)
>>>>
>>>> 3) what happens when, in your browser, you enter the URL :
>>>>
>>>> http://your-host-name:8180
>>>>
>>>> ?
>>>> (replace your-host-name by .. your real host name (or its IP address))
>>>>
>>>>
>>>>
>>>>
>>>> Dave Filchak wrote:
>>>>> Hello Charles,
>>>>>
>>>>> Hopefully this helps and it is not too much info.
>>>>>
>>>>> Dave
>>>>>
>>>>> On 22/07/64 2:59 PM, Caldarale, Charles R wrote:
>>>>>>> From: Dave Filchak [mailto:submit@zuka.net]
>>>>>>> Subject: tomcat error 404
>>>>>>> I am receiving a HTTP Status 404 error.
>>>>>> Can you tell if the 404 is coming from Tomcat or httpd?
>>>>> Well, I cannot seem to connect to the site using 8080 either or the
>>>>> example files but, this site is a VPS controlled with cpanel. Cpanel
>>>>> says it is running and when I ssh to the server and run ps -aux, it
>>>>> shows an instance of tomcat running. This also verifies that httpd
>>>>> is running from your next question as well. However, in the
>>>>> catalina.err file, it shows the following errors:
>>>>>
>>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig
>>>>> applicationWebConfig
>>>>> SEVERE: Parse error in application web.xml file at
>>>>> jndi:/exodusdecoded.com/WEB-INF/web.xml
>>>>> org.xml.sax.SAXParseException: The string "--" is not permitted
>>>>> within comments.
>>>>>
>>>>> and then;
>>>>>
>>>>> SEVERE: Occurred at line 32 column 5
>>>>> Oct 21, 2011 1:40:34 PM org.apache.catalina.startup.ContextConfig start
>>>>> SEVERE: Marking this application unavailable due to previous error(s)
>>>>> Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
>>>>> SEVERE: Error getConfigured
>>>>> Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
>>>>> SEVERE: Context [] startup failed due to previous errors
>>>>> Oct 21, 2011 1:40:35 PM org.apache.catalina.startup.HostConfig
>>>>> deployWAR
>>>>> INFO: Deploying web application archive exodus.war
>>>>>
>>>>> and
>>>>>
>>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig
>>>>> applicationWebConfig
>>>>> SEVERE: Occurred at line 32 column 5
>>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig start
>>>>> SEVERE: Marking this application unavailable due to previous error(s)
>>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
>>>>> SEVERE: Error getConfigured
>>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
>>>>> SEVERE: Context [] startup failed due to previous errors
>>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.HostConfig
>>>>> deployWAR
>>>>> INFO: Deploying web application archive exodus.war
>>>>> Oct 21, 2011 1:54:21 PM org.apache.catalina.core.StandardHost start
>>>>> INFO: XML validation disabled
>>>>> Oct 21, 2011 1:54:21 PM org.apache.catalina.startup.HostConfig
>>>>> deployWAR
>>>>> INFO: Deploying web application archive exodus.war
>>>>>
>>>>> with exodus being the name of the app I am trying to deploy. Then it
>>>>> shows:
>>>>>
>>>>> SEVERE: Servlet.service() for servlet jsp threw exception
>>>>> org.apache.jasper.JasperException:
>>>>> /include/../../include/system-checkup.jsp(2,0) The value for the
>>>>> useBean class attribute com.snapmedia.WebSystemController is invalid.
>>>>>
>>>>>
>>>>>>> I have verified that tomcat and apache are running.
>>>>>> By "apache" [sic], I presume you mean httpd.  How did you verify
>>>>>> they're running?
>>>>>>
>>>>>>> My host will now help
>>>>>> So if the host will help, why aren't you asking them?  (Or did you
>>>>>> really mean "not" there?)
>>>>> Sorry, I meant "not", as in will not help.
>>>>>>> If anyone can help me I really would appreciate it as the
>>>>>>> site is down completely at this point.
>>>>>> Without considerably more information, there's not much anyone can
>>>>>> help you with.  For starters, you need to examine the logs, post
>>>>>> your server.xml file (obfuscated as needed), show us the<Context>
>>>>>> element (if there is one) for your webapp, tell us the mechanism
>>>>>> you're using to connect httpd to Tomcat, and provide the config for
>>>>>> that.
>>>>> environment.xml file:
>>>>>
>>>>> <?xml version=.0"?>
>>>>> <mushroom>
>>>>>
>>>>> <environment>
>>>>> <systemVersion>2.0</systemVersion>
>>>>> <systemBuildCode>005523</systemBuildCode>
>>>>> <systemLastUpdate>April 29, 2005</systemLastUpdate>
>>>>> <systemIPAddress>127.0.0.1</systemIPAddress>
>>>>> <SMTPHost>174.122.30.18</SMTPHost>  <!-- Used by JavaMail -->
>>>>> <mailFrom>it-ops@quickplay.com</mailFrom>
>>>>> <sysAdmin>N. Dingle</sysAdmin>
>>>>> <debug>true</debug>
>>>>> </environment>
>>>>>
>>>>> <!--
>>>>>       This node contains the paths to "static systems". These should
>>>>> always be
>>>>>       Fully-qualified URLs to the system in question, including
>>>>> domain, context
>>>>>       root and any pertinent subdirectory. If code references any
>>>>> system which
>>>>>       does not exist here, "base" will be used as a default.
>>>>>    -->
>>>>> <staticSystems>
>>>>> <base>http://www.#######.com</base>
>>>>> <admin>http://www.#######.com/tools</admin>
>>>>> </staticSystems>
>>>>>
>>>>> <!--
>>>>>       This node is recursive so that any paths set here will be
>>>>> automatically
>>>>>       loaded into the environment class. Paths end up being
>>>>> converted into
>>>>>       Name/Value pairs and are dumped into a Hashtable
>>>>>    -->
>>>>> <paths>
>>>>> <loginJSP>/login.jsp</loginJSP>
>>>>> <parentControlJSP>/parentControl.jsp</parentControlJSP>
>>>>>
>>>>> <baseRoot>/usr/local/tomcat/webapps/exodus</baseRoot>
>>>>>
>>>>> ##NOTE: this path does not exist on this server. It is the path that
>>>>> existed on the old server.
>>>>>
>>>>> <dataRoot>/data</dataRoot>
>>>>> <instanceFile></instanceFile>
>>>>> <systemLogFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/</systemLogFolder>
>>>>>
>>>>>
>>>>> ##NOTE: obviously this one does not exist either
>>>>>
>>>>> <systemArchiveFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/archive/</systemArchiveFolder>
>>>>>
>>>>> <logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/codelog.txt</logFile>
>>>>>
>>>>> <cronLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/scheduler.txt</cronLog>
>>>>>
>>>>> <broadcastLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/broadcast.txt</broadcastLog>
>>>>>
>>>>> <memoryLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/memory.txt</memoryLog>
>>>>>
>>>>> <securityLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/security.txt</securityLog>
>>>>>
>>>>> <ipmanifestlog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/ipmanifest.txt</ipmanifestlog>
>>>>>
>>>>> <forumArchiveLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/forum.txt</forumArchiveLog>
>>>>>
>>>>> </paths>
>>>>>
>>>>> ##NOTE: in fact none of these exist. The path to the WEB-INF folder
>>>>> for this app ( unless there is another one by default? ) is at:
>>>>> /home/exodus/public_html/WEB-INF/ so should I edit all these paths
>>>>> to reflect that new path? Or, do I put a copy of the WEB-INF folder
>>>>> here?
>>>>>
>>>>> <logging>
>>>>> <connectionPool>false</connectionPool>  <!-- Set to true to enable
>>>>> verbose logging of database connection activity
>>>>> -->
>>>>> <memoryManager>false</memoryManager>  <!-- Set to true to enable
>>>>> logging of MemoryManager status -->
>>>>> <cronSystem>true</cronSystem>  <!-- Set to true to enable
>>>>> CronScheduler logging -->
>>>>> <broadcastSystem>false</broadcastSystem>  <!-- Set to true to enable
>>>>> BroadcastSystem logging -->
>>>>> </logging>
>>>>>
>>>>> <users>
>>>>> <UserCookie1>AEFK67897PI30</UserCookie1>
>>>>> <UserCookie2>AEFK6S897PI50</UserCookie2>
>>>>> <SessionTimeout>30</SessionTimeout>  <!-- Time before application
>>>>> expires user and forces them back to the login
>>>>> screen (in Minutes) -->
>>>>> <CookieDomain>########.com</CookieDomain>  <!-- In Development mode,
>>>>> leave this blank -->
>>>>> <MaxHandleLength>25</MaxHandleLength>  <!-- Maximum length to allow
>>>>> user handles.  This is arbitrary for now -->
>>>>> <DiskQuota>204800</DiskQuota>  <!-- 200 K -->
>>>>> <emailVerifyTimeout>0</emailVerifyTimeout>  <!-- number of days a
>>>>> user can go before having to verify his email address
>>>>> -->
>>>>> </users>
>>>>>
>>>>> <!-- BELOW, FIND CONFIGURATION FOR MUSHROOM'S SUB-SYSTEMS -->
>>>>>
>>>>> <CronScheduler>
>>>>> <enabled>true</enabled>  <!-- Set to true to enable the Use of a
>>>>> system scheduler that imitates UNIX
>>>>> CRON functionality -->
>>>>> <instanceSensitive>false</instanceSensitive>  <!-- Used to force only
>>>>> one instance of this manager to load in a clustered
>>>>> environment -->
>>>>> <runForInstance>1</runForInstance>  <!-- Which instance number should
>>>>> control this manager.  (see the degrassi.
>>>>> instance properties file) -->
>>>>> <scanForJobs>10</scanForJobs>  <!-- How often should the scheduler
>>>>> wake up and scan for tasks (in minutes)
>>>>> -->
>>>>> </CronScheduler>
>>>>>
>>>>> <BroadcastSystem>
>>>>> <enabled>true</enabled>  <!-- Set to true to enable outbound
>>>>> messaging (WAP/Email) -->
>>>>> <interval>5</interval>  <!-- Time in minutes to sleep and check
>>>>> message queue size -->
>>>>> </BroadcastSystem>
>>>>>
>>>>> <ParentalGuidance>
>>>>> <enabled>true</enabled>  <!--Does this system treat underage children
>>>>> differently?  (TRUE=S, FALSE>>>  NO) -->
>>>>> <MinRegistrationAge>13</MinRegistrationAge>  <!--Children who are
>>>>> less than this age require parental guidance (PG13) --
>>>>> </ParentalGuidance>
>>>>>
>>>>> <MemoryManager>
>>>>> <enabled>false</enabled>  <!-- Set to true to enable the
>>>>> MemoryManager thread to queue for JVM memsta
>>>>> te -->
>>>>> <frequency>15</frequency>  <!-- (in Minutes) How often the state of
>>>>> memory in the JVM should be checke
>>>>> d -->
>>>>> <warnLevel>450</warnLevel>  <!-- (in MB) Size of memory used to
>>>>> trigger e-mail notification (if enabled
>>>>> ) -->
>>>>> <notifyEnabled>true</notifyEnabled>  <!-- Set to true to send email
>>>>> to everyone when memory gets low -->
>>>>> <notifyGroup>######@########.com</notifyGroup>  <!-- Semi-colon
>>>>> delimited list of whomever should be notified in the event
>>>>> of a 'low-memory' state -->
>>>>> </MemoryManager>
>>>>>
>>>>> <BlockedUserManager>
>>>>> <enabled>true</enabled>
>>>>> <daysBlocked>3</daysBlocked>
>>>>> </BlockedUserManager>
>>>>>
>>>>> <SecurityWatcher>
>>>>> <enabled>false</enabled>  <!-- [TRUE =NABLED | FALSE = DISABLED]
>>>>> overrides all other toggles -->
>>>>> <rftEnabled>true</rftEnabled>  <!-- (RFT =EQUEST FREQUENCY TEST -
>>>>> [TRUE|FALSE]) set to true to have the
>>>>> system test the frequency of client requests for abuse. -->
>>>>> <rftThreshold>10</rftThreshold>  <!-- MAXIMUM NUMBER OF ABUSE FLAGS A
>>>>> USER CAN HAVE BEFORE ACTION IS TAKEN -
>>>>> ->
>>>>> <rftActionPoint>1500</rftActionPoint>  <!-- EXPRESSED IN
>>>>> MILLISECONDS, THIS REPRESENTS THE POINT WHERE A REQUEST I
>>>>> S CONSIDERED TOO RAPID AND WE INCREMENT A COUNTER UNTIL WE HIT THE
>>>>> THRESHOLD. -->
>>>>> <rftClearPoint>4000</rftClearPoint>  <!-- EXPRESSED IN MILLISECONDS,
>>>>> THIS REPRESENTS THE POINT WHERE WE SHOULD C
>>>>> LEAR ALL FLAGS AND RESET THRESHOLD. -->
>>>>> <rftHoldTime>10</rftHoldTime>  <!-- EXPRESSED IN MINUTES, HOW LONG
>>>>> SHOULD WE TEMPORARILY DENY A VIOLATOR A
>>>>> CCESS TO THE SITE -->
>>>>> <rftDailyMaxViolations>5</rftDailyMaxViolations>  <!-- HOW MANY TIMES
>>>>> CAN A USER BE TEMPORARILY DENIED ACCESS BEFORE THEY MAK
>>>>> E IT TO THE DETENTION CENTRE -->
>>>>> <autoLogoutEnabled>true</autoLogoutEnabled>  <!-- [TRUE|FALSE] - SET
>>>>> TO TRUE TO HAVE A THREAD CHECK THE SESSIONS AND LOG
>>>>> OUT USERS THAT ARE INACTIVE (i.e. HAVE ABANDONED THEIR SESSIONS) -->
>>>>> </SecurityWatcher>
>>>>>
>>>>> <!-- BELOW, FIND CONFIGURATION FOR THE SYSTEM'S DATABASE -->
>>>>>
>>>>> <jdbc-config>
>>>>> <driver>com.mysql.jdbc.Driver</driver>  <!-- Java MySQL Driver -->
>>>>> <url>jdbc:mysql://localhost/#######</url>  <!-- Server/DSN combo -->
>>>>> <user>#######</user>  <!-- Database username -->
>>>>> <password>#####</password>  <!-- Database password -->
>>>>> <max>10</max>  <!-- The maximum number of connections to persistently
>>>>> be held in the pool
>>>>> -->
>>>>> <init>10</init>  <!-- The number of connections to initially (and
>>>>> optimally) be held in the
>>>>> pool -->
>>>>> <queueQuery>select now()</queueQuery>  <!-- Query used by the pool
>>>>> watcher to determine whether or not a conn is a
>>>>> ctive. -->
>>>>> <logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/pool.txt</logFile>
>>>>> <!-- NEW! Where does the pool output go (if logging is enabled [see
>>>>> logging node]) -->
>>>>> </jdbc-config>
>>>>>
>>>>> </mushroom>
>>>>>
>>>>> SERVER.XML
>>>>>
>>>>> <?xml version=.0' encoding='utf-8'?>
>>>>> <!--
>>>>>   Licensed to the Apache Software Foundation (ASF) under one or more
>>>>>   contributor license agreements.  See the NOTICE file distributed with
>>>>>   this work for additional information regarding copyright ownership.
>>>>>   The ASF licenses this file to You under the Apache License,
>>>>> Version 2.0
>>>>>   (the "License"); you may not use this file except in compliance with
>>>>>   the License.  You may obtain a copy of the License at
>>>>>
>>>>>       http://www.apache.org/licenses/LICENSE-2.0
>>>>>
>>>>>   Unless required by applicable law or agreed to in writing, software
>>>>>   distributed under the License is distributed on an "AS IS" BASIS,
>>>>>   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>>>> implied.
>>>>>   See the License for the specific language governing permissions and
>>>>>   limitations under the License.
>>>>> -->
>>>>> <!-- Note:  A "Server" is not itself a "Container", so you may not
>>>>>      define subcomponents such as "Valves" at this level.
>>>>>      Documentation at /docs/config/server.html
>>>>> -->
>>>>> <Server port=105' shutdown='SHUTDOWN' debug='0'>
>>>>>
>>>>> <!--APR library loader. Documentation at /docs/apr.html -->
>>>>> <Listener className=rg.apache.catalina.core.AprLifecycleListener"
>>>>> SSLEngine=n" />
>>>>> <!--Initialize Jasper prior to webapps are loaded. Documentation at
>>>>> /docs/jasper-howto.html -->
>>>>> <Listener className=rg.apache.catalina.core.JasperListener" />
>>>>> <!-- JMX Support for the Tomcat server. Documentation at
>>>>> /docs/non-existent.html -->
>>>>> <Listener
>>>>> className=rg.apache.catalina.mbeans.ServerLifecycleListener" />
>>>>> <Listener
>>>>> className=rg.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>>>>> />
>>>>>
>>>>> <!-- Global JNDI resources
>>>>>        Documentation at /docs/jndi-resources-howto.html
>>>>>   -->
>>>>> <GlobalNamingResources>
>>>>> <!-- Editable user database that can also be used by
>>>>>          UserDatabaseRealm to authenticate users
>>>>>     -->
>>>>> <Resource name=serDatabase" auth="Container"
>>>>>               type=rg.apache.catalina.UserDatabase"
>>>>>               description=ser database that can be updated and saved"
>>>>>
>>>>> factory=rg.apache.catalina.users.MemoryUserDatabaseFactory"
>>>>>               pathname=onf/tomcat-users.xml" />
>>>>> </GlobalNamingResources>
>>>>>
>>>>> <!-- A "Service" is a collection of one or more "Connectors" that share
>>>>>        a single "Container" Note:  A "Service" is not itself a
>>>>> "Container",
>>>>>        so you may not define subcomponents such as "Valves" at this
>>>>> level.
>>>>>        Documentation at /docs/config/service.html
>>>>>    -->
>>>>> <Service name=atalina'>
>>>>>
>>>>> <!--The connectors can use a shared executor, you can define one or
>>>>> more named thread pools-->
>>>>> <!--
>>>>> <Executor name=omcatThreadPool" namePrefix="catalina-exec-"
>>>>>         maxThreads=50" minSpareThreads="4"/>
>>>>>     -->
>>>>>
>>>>>
>>>>> <!-- A "Connector" represents an endpoint by which requests are
>>>>> received
>>>>>          and responses are returned. Documentation at :
>>>>>          Java HTTP Connector: /docs/config/http.html (blocking&
>>>>> non-blocking)
>>>>>          Java AJP  Connector: /docs/config/ajp.html
>>>>>          APR (HTTP/AJP) Connector: /docs/apr.html
>>>>>          Define a non-SSL HTTP/1.1 Connector on port 8080
>>>>>     -->
>>>>> <Connector port=180" protocol="HTTP/1.1"
>>>>>            maxThreads=50" connectionTimeout="20000"
>>>>>                redirectPort=443" address="/home/XXXX/public_html" />
>>>>> <!-- A "Connector" using the shared thread pool-->
>>>>> <!--
>>>>> <Connector executor=omcatThreadPool"
>>>>>                port=080" protocol="HTTP/1.1"
>>>>>                connectionTimeout=0000"
>>>>>                redirectPort=443" />
>>>>>     -->
>>>>> <!-- Define a SSL HTTP/1.1 Connector on port 8443
>>>>>          This connector uses the JSSE configuration, when using APR,
>>>>> the
>>>>>          connector should be using the OpenSSL style configuration
>>>>>          described in the APR documentation -->
>>>>> <!--
>>>>> <Connector port=443" protocol="HTTP/1.1" SSLEnabled="true"
>>>>>                maxThreads=50" scheme="https" secure="true"
>>>>>                clientAuth=alse" sslProtocol="TLS" />
>>>>>     -->
>>>>>
>>>>> <!-- Define an AJP 1.3 Connector on port 8009/8010 -->
>>>>> <Connector port=010" protocol="AJP/1.3" redirectPort="8443"
>>>>> address=home/#####/public_html" />
>>>>>
>>>>> <!-- An Engine represents the entry point (within Catalina) that
>>>>> processes
>>>>>          every request.  The Engine implementation for Tomcat stand
>>>>> alone
>>>>>          analyzes the HTTP headers included with the request, and
>>>>> passes them
>>>>>          on to the appropriate Host (virtual host).
>>>>>          Documentation at /docs/config/engine.html -->
>>>>>
>>>>> <!-- You should set jvmRoute to support load-balancing via AJP ie :
>>>>> <Engine name=atalina" defaultHost="localhost" jvmRoute="jvm1">
>>>>>     -->
>>>>> <Engine name=atalina" defaultHost="www.XXXXXXXX.com">
>>>>>
>>>>> <!--For clustering, please take a look at documentation at:
>>>>>           /docs/cluster-howto.html  (simple how to)
>>>>>           /docs/config/cluster.html (reference documentation) -->
>>>>> <!--
>>>>> <Cluster className=rg.apache.catalina.ha.tcp.SimpleTcpCluster"/>
>>>>>       -->
>>>>>
>>>>> <!-- The request dumper valve dumps useful debugging information about
>>>>>
>>>>>            the request and response data received and sent by Tomcat.
>>>>>            Documentation at: /docs/config/valve.html -->
>>>>> <!--
>>>>> <Valve className=rg.apache.catalina.valves.RequestDumperValve"/>
>>>>>       -->
>>>>>
>>>>> <!-- This Realm uses the UserDatabase configured in the global JNDI
>>>>>            resources under the key "UserDatabase".  Any edits
>>>>>            that are performed against this UserDatabase are immediately
>>>>>            available for use by the Realm.  -->
>>>>> <Realm className=rg.apache.catalina.realm.UserDatabaseRealm"
>>>>>              resourceName=serDatabase"/>
>>>>>
>>>>> <!-- Define the default virtual host
>>>>>            Note: XML Schema validation will not work with Xerces 2.2.
>>>>>        -->
>>>>> <Host name=ww.XXXXXXXX.com"  appBase="/home/XXXXX/public_html"
>>>>>             unpackWARs=rue" autoDeploy="true"
>>>>>             xmlValidation=alse" xmlNamespaceAware="false">
>>>>>
>>>>>
>>>>> <!-- SingleSignOn valve, share authentication between web applications
>>>>>              Documentation at: /docs/config/valve.html -->
>>>>> <!--
>>>>> <Valve className=rg.apache.catalina.authenticator.SingleSignOn" />
>>>>>         -->
>>>>>
>>>>> <!-- Access log processes all example.
>>>>>              Documentation at: /docs/config/valve.html -->
>>>>>
>>>>> <Valve className=rg.apache.catalina.valves.AccessLogValve"
>>>>> directory=ogs"
>>>>>                prefix=xodus_access." suffix=".log"
>>>>> pattern=ommon" resolveHosts="false"/>
>>>>> <Logger className=rg.apache.catalina.logger.FileLogger'
>>>>>            directory=ogs" prefix="exodus_catalina." suffix=".log"
>>>>> timestamp=rue" />
>>>>> <Context path= docBase='ROOT' debug='0' />
>>>>>         ##NOTE: the is no ROOT directory in the app.
>>>>>
>>>>> </Host>
>>>>> </Engine>
>>>>> </Service>
>>>>> </Server>
>>>>>
>>>>>
>>>>>
>>>>> LoadModule jk_module modules/mod_jk.so
>>>>>
>>>>> ajp13 listening on /0.0.0.0:8009
>>>>>>   - Chuck
>>>>>>
>>>>>>
>>>>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
>>>>>> PROPRIETARY MATERIAL and is thus for use only by the intended
>>>>>> recipient. If you received this in error, please contact the sender
>>>>>> and delete the e-mail and its attachments from all computers.
>>>>>>
>>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>>
>>>>

Re: tomcat error 404

Posted by Pid * <pi...@pidster.com>.
On 23 Oct 2011, at 17:21, Dave Filchak <su...@zuka.net> wrote:

> Ok, perhaps this will be more helpful. To follow is the way the db
> connection is set up now, and I am not sure it is correct because, as I
> understand it, you are supposed to add a context to the server.xml

... not recommended in the last 2 major versions of Tomcat.

> file
> defining the db connection through jdbc/mysql ( which I am not sure of
> the format yet ), either in the main system one or the application
> specific one, OR to the META-INF/content.xml file,

You mean 'context.xml' of course.


> which I do not have.
> What I do have is this, in my application directory at
> /home/XXXXXX/public_html/WEB-INF/conf/environment.xml:

That is not a Tomcat file.  Could it be an application specific file?


> <jdbc-config>
> <driver>com.mysql.jdbc.Driver</driver>
> <url>jdbc:mysql://###.###.###.###:3306/#######_exodus</url>
> <user>#########_exodus</user>
> <password>#####</password>
> <max>10</max>
> <init>10</init>
> <queueQuery>select now()</queueQuery>
> <logFile>/home/#####/public_html/WEB-INF/logs/pool.txt</logFile>
> </jdbc-config>

Logging inside the api action is generally considered to be A Bad Idea.


> When I modify the<url>, it does show up in the error that is generated
> so the app

<snip>

>> Error initializing sub-systems:
>> Please check the following:
>> 1. That your machine has a valid connection to
>> jdbc:mysql://localhost/########_exodus Using:
>>    Username: ########_exodus
>>    Password: ######
>>    Driver: com.mysql.jdbc.Driver

The stacktrace below indicates that the JavaMail libs are missing.

They would either be in your apps WEB-INF/lib or tomcat/lib. In an old
Tomcat it might have been in tomcat/common/lib or tomcat/shared/lib.


p

>> *DETAILS FOLLOW:*
>> java.lang.Exception: Unable to Initialize Environment:
>> java.lang.NoClassDefFoundError: javax/mail/Address
>>    at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
>>    at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
>>    at com.snapmedia.SystemController.init(SystemController.java:86)
>>    at
>> com.snapmedia.WebSystemController.init(WebSystemController.java:39)
>>    at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
>>    at
>> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>>    at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
>>    at
>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
>>    at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>>    at
>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>>    at
>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>    at
>> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>>    at
>> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>>    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>    at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>    at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>    at java.lang.reflect.Method.invoke(Method.java:597)
>>    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>    at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>    at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>    at java.lang.reflect.Method.invoke(Method.java:597)
>>    at
>> org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
>> Caused by: java.lang.ClassNotFoundException: javax.mail.Address
>>    at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
>>    at
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
>>    ... 25 more
>>
>> I have verified that thew username and password are correct by logging
>> into the MySQL server from the command line. Something with the driver?
>>
>> Dave
>>
>>
>>
>> On 22/07/64 2:59 PM, André Warnier wrote:
>>> Hi.
>>>
>>> One thing at a time..
>>>
>>> 1) When you send XML configuration files, please remove everything
>>> that is a comment.
>>> XML files are already being wrapped by the email program, and are
>>> difficult to read as it is. Having plenty of comments in them in
>>> addition makes is really a hassle to figure out what is being used or
>>> not.
>>> (Note: an XML comment is anything between a pair of <!-- and --> )
>>>
>>> 2) one error message below talks about an invalid XML file.
>>> Inside one of the comments (between a leading <!-- and a trailing
>>> -->), there is another pair of -- . That is incorrect and causes the
>>> entire file to be rejected/ignored.
>>> Inspect that file carefully, remove the offending --, and try again.
>>>
>>> (Note: the extra -- may also be due to a previous bad edit of the
>>> file.  It may have been a <!-- or a --> , where someone tried to
>>> comment or de-comment something, and either removed too much or added
>>> not enough.
>>> Remember that everything between a pair of <!-- and --> is a comment
>>> (normally ignored), and inside of such a comment, you cannot have
>>> another pair of -- )
>>>
>>> Do this carefully, as it may be the basic cause why the whole thing
>>> is not working.
>>> Keep a backup of the original, for each file that you start editing.
>>>
>>> (Another note: there exist text editors which can show you if a file
>>> is correct XML or not.  For a windows PC, look up Notepad++ in Google)
>>>
>>> 3) what happens when, in your browser, you enter the URL :
>>>
>>> http://your-host-name:8180
>>>
>>> ?
>>> (replace your-host-name by .. your real host name (or its IP address))
>>>
>>>
>>>
>>>
>>> Dave Filchak wrote:
>>>> Hello Charles,
>>>>
>>>> Hopefully this helps and it is not too much info.
>>>>
>>>> Dave
>>>>
>>>> On 22/07/64 2:59 PM, Caldarale, Charles R wrote:
>>>>>> From: Dave Filchak [mailto:submit@zuka.net]
>>>>>> Subject: tomcat error 404
>>>>>> I am receiving a HTTP Status 404 error.
>>>>> Can you tell if the 404 is coming from Tomcat or httpd?
>>>> Well, I cannot seem to connect to the site using 8080 either or the
>>>> example files but, this site is a VPS controlled with cpanel. Cpanel
>>>> says it is running and when I ssh to the server and run ps -aux, it
>>>> shows an instance of tomcat running. This also verifies that httpd
>>>> is running from your next question as well. However, in the
>>>> catalina.err file, it shows the following errors:
>>>>
>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig
>>>> applicationWebConfig
>>>> SEVERE: Parse error in application web.xml file at
>>>> jndi:/exodusdecoded.com/WEB-INF/web.xml
>>>> org.xml.sax.SAXParseException: The string "--" is not permitted
>>>> within comments.
>>>>
>>>> and then;
>>>>
>>>> SEVERE: Occurred at line 32 column 5
>>>> Oct 21, 2011 1:40:34 PM org.apache.catalina.startup.ContextConfig start
>>>> SEVERE: Marking this application unavailable due to previous error(s)
>>>> Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
>>>> SEVERE: Error getConfigured
>>>> Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
>>>> SEVERE: Context [] startup failed due to previous errors
>>>> Oct 21, 2011 1:40:35 PM org.apache.catalina.startup.HostConfig
>>>> deployWAR
>>>> INFO: Deploying web application archive exodus.war
>>>>
>>>> and
>>>>
>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig
>>>> applicationWebConfig
>>>> SEVERE: Occurred at line 32 column 5
>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig start
>>>> SEVERE: Marking this application unavailable due to previous error(s)
>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
>>>> SEVERE: Error getConfigured
>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
>>>> SEVERE: Context [] startup failed due to previous errors
>>>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.HostConfig
>>>> deployWAR
>>>> INFO: Deploying web application archive exodus.war
>>>> Oct 21, 2011 1:54:21 PM org.apache.catalina.core.StandardHost start
>>>> INFO: XML validation disabled
>>>> Oct 21, 2011 1:54:21 PM org.apache.catalina.startup.HostConfig
>>>> deployWAR
>>>> INFO: Deploying web application archive exodus.war
>>>>
>>>> with exodus being the name of the app I am trying to deploy. Then it
>>>> shows:
>>>>
>>>> SEVERE: Servlet.service() for servlet jsp threw exception
>>>> org.apache.jasper.JasperException:
>>>> /include/../../include/system-checkup.jsp(2,0) The value for the
>>>> useBean class attribute com.snapmedia.WebSystemController is invalid.
>>>>
>>>>
>>>>>
>>>>>> I have verified that tomcat and apache are running.
>>>>> By "apache" [sic], I presume you mean httpd.  How did you verify
>>>>> they're running?
>>>>>
>>>>>> My host will now help
>>>>> So if the host will help, why aren't you asking them?  (Or did you
>>>>> really mean "not" there?)
>>>> Sorry, I meant "not", as in will not help.
>>>>>
>>>>>> If anyone can help me I really would appreciate it as the
>>>>>> site is down completely at this point.
>>>>> Without considerably more information, there's not much anyone can
>>>>> help you with.  For starters, you need to examine the logs, post
>>>>> your server.xml file (obfuscated as needed), show us the<Context>
>>>>> element (if there is one) for your webapp, tell us the mechanism
>>>>> you're using to connect httpd to Tomcat, and provide the config for
>>>>> that.
>>>> environment.xml file:
>>>>
>>>> <?xml version="1.0"?>
>>>> <mushroom>
>>>>
>>>> <environment>
>>>> <systemVersion>2.0</systemVersion>
>>>> <systemBuildCode>005523</systemBuildCode>
>>>> <systemLastUpdate>April 29, 2005</systemLastUpdate>
>>>> <systemIPAddress>127.0.0.1</systemIPAddress>
>>>> <SMTPHost>174.122.30.18</SMTPHost> <!-- Used by JavaMail -->
>>>> <mailFrom>it-ops@quickplay.com</mailFrom>
>>>> <sysAdmin>N. Dingle</sysAdmin>
>>>> <debug>true</debug>
>>>> </environment>
>>>>
>>>> <!--
>>>>      This node contains the paths to "static systems". These should
>>>> always be
>>>>      Fully-qualified URLs to the system in question, including
>>>> domain, context
>>>>      root and any pertinent subdirectory. If code references any
>>>> system which
>>>>      does not exist here, "base" will be used as a default.
>>>>   -->
>>>> <staticSystems>
>>>> <base>http://www.#######.com</base>
>>>> <admin>http://www.#######.com/tools</admin>
>>>> </staticSystems>
>>>>
>>>> <!--
>>>>      This node is recursive so that any paths set here will be
>>>> automatically
>>>>      loaded into the environment class. Paths end up being
>>>> converted into
>>>>      Name/Value pairs and are dumped into a Hashtable
>>>>   -->
>>>> <paths>
>>>> <loginJSP>/login.jsp</loginJSP>
>>>> <parentControlJSP>/parentControl.jsp</parentControlJSP>
>>>>
>>>> <baseRoot>/usr/local/tomcat/webapps/exodus</baseRoot>
>>>>
>>>> ##NOTE: this path does not exist on this server. It is the path that
>>>> existed on the old server.
>>>>
>>>> <dataRoot>/data</dataRoot>
>>>> <instanceFile></instanceFile>
>>>> <systemLogFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/</systemLogFolder>
>>>>
>>>>
>>>> ##NOTE: obviously this one does not exist either
>>>>
>>>> <systemArchiveFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/archive/</systemArchiveFolder>
>>>>
>>>> <logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/codelog.txt</logFile>
>>>>
>>>> <cronLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/scheduler.txt</cronLog>
>>>>
>>>> <broadcastLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/broadcast.txt</broadcastLog>
>>>>
>>>> <memoryLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/memory.txt</memoryLog>
>>>>
>>>> <securityLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/security.txt</securityLog>
>>>>
>>>> <ipmanifestlog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/ipmanifest.txt</ipmanifestlog>
>>>>
>>>> <forumArchiveLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/forum.txt</forumArchiveLog>
>>>>
>>>> </paths>
>>>>
>>>> ##NOTE: in fact none of these exist. The path to the WEB-INF folder
>>>> for this app ( unless there is another one by default? ) is at:
>>>> /home/exodus/public_html/WEB-INF/ so should I edit all these paths
>>>> to reflect that new path? Or, do I put a copy of the WEB-INF folder
>>>> here?
>>>>
>>>> <logging>
>>>> <connectionPool>false</connectionPool> <!-- Set to true to enable
>>>> verbose logging of database connection activity
>>>> -->
>>>> <memoryManager>false</memoryManager> <!-- Set to true to enable
>>>> logging of MemoryManager status -->
>>>> <cronSystem>true</cronSystem> <!-- Set to true to enable
>>>> CronScheduler logging -->
>>>> <broadcastSystem>false</broadcastSystem> <!-- Set to true to enable
>>>> BroadcastSystem logging -->
>>>> </logging>
>>>>
>>>> <users>
>>>> <UserCookie1>AEFK67897PI30</UserCookie1>
>>>> <UserCookie2>AEFK6S897PI50</UserCookie2>
>>>> <SessionTimeout>30</SessionTimeout> <!-- Time before application
>>>> expires user and forces them back to the login
>>>> screen (in Minutes) -->
>>>> <CookieDomain>########.com</CookieDomain> <!-- In Development mode,
>>>> leave this blank -->
>>>> <MaxHandleLength>25</MaxHandleLength> <!-- Maximum length to allow
>>>> user handles.  This is arbitrary for now -->
>>>> <DiskQuota>204800</DiskQuota> <!-- 200 K -->
>>>> <emailVerifyTimeout>0</emailVerifyTimeout> <!-- number of days a
>>>> user can go before having to verify his email address
>>>> -->
>>>> </users>
>>>>
>>>> <!-- BELOW, FIND CONFIGURATION FOR MUSHROOM'S SUB-SYSTEMS -->
>>>>
>>>> <CronScheduler>
>>>> <enabled>true</enabled> <!-- Set to true to enable the Use of a
>>>> system scheduler that imitates UNIX
>>>> CRON functionality -->
>>>> <instanceSensitive>false</instanceSensitive> <!-- Used to force only
>>>> one instance of this manager to load in a clustered
>>>> environment -->
>>>> <runForInstance>1</runForInstance> <!-- Which instance number should
>>>> control this manager.  (see the degrassi.
>>>> instance properties file) -->
>>>> <scanForJobs>10</scanForJobs> <!-- How often should the scheduler
>>>> wake up and scan for tasks (in minutes)
>>>> -->
>>>> </CronScheduler>
>>>>
>>>> <BroadcastSystem>
>>>> <enabled>true</enabled> <!-- Set to true to enable outbound
>>>> messaging (WAP/Email) -->
>>>> <interval>5</interval> <!-- Time in minutes to sleep and check
>>>> message queue size -->
>>>> </BroadcastSystem>
>>>>
>>>> <ParentalGuidance>
>>>> <enabled>true</enabled> <!--Does this system treat underage children
>>>> differently?  (TRUE=YES, FALSE>>> NO) -->
>>>> <MinRegistrationAge>13</MinRegistrationAge> <!--Children who are
>>>> less than this age require parental guidance (PG13) --
>>>> >
>>>> </ParentalGuidance>
>>>>
>>>> <MemoryManager>
>>>> <enabled>false</enabled> <!-- Set to true to enable the
>>>> MemoryManager thread to queue for JVM memsta
>>>> te -->
>>>> <frequency>15</frequency> <!-- (in Minutes) How often the state of
>>>> memory in the JVM should be checke
>>>> d -->
>>>> <warnLevel>450</warnLevel> <!-- (in MB) Size of memory used to
>>>> trigger e-mail notification (if enabled
>>>> ) -->
>>>> <notifyEnabled>true</notifyEnabled> <!-- Set to true to send email
>>>> to everyone when memory gets low -->
>>>> <notifyGroup>######@########.com</notifyGroup> <!-- Semi-colon
>>>> delimited list of whomever should be notified in the event
>>>> of a 'low-memory' state -->
>>>> </MemoryManager>
>>>>
>>>> <BlockedUserManager>
>>>> <enabled>true</enabled>
>>>> <daysBlocked>3</daysBlocked>
>>>> </BlockedUserManager>
>>>>
>>>> <SecurityWatcher>
>>>> <enabled>false</enabled> <!-- [TRUE = ENABLED | FALSE = DISABLED]
>>>> overrides all other toggles -->
>>>> <rftEnabled>true</rftEnabled> <!-- (RFT = REQUEST FREQUENCY TEST -
>>>> [TRUE|FALSE]) set to true to have the
>>>> system test the frequency of client requests for abuse. -->
>>>> <rftThreshold>10</rftThreshold> <!-- MAXIMUM NUMBER OF ABUSE FLAGS A
>>>> USER CAN HAVE BEFORE ACTION IS TAKEN -
>>>> ->
>>>> <rftActionPoint>1500</rftActionPoint> <!-- EXPRESSED IN
>>>> MILLISECONDS, THIS REPRESENTS THE POINT WHERE A REQUEST I
>>>> S CONSIDERED TOO RAPID AND WE INCREMENT A COUNTER UNTIL WE HIT THE
>>>> THRESHOLD. -->
>>>> <rftClearPoint>4000</rftClearPoint> <!-- EXPRESSED IN MILLISECONDS,
>>>> THIS REPRESENTS THE POINT WHERE WE SHOULD C
>>>> LEAR ALL FLAGS AND RESET THRESHOLD. -->
>>>> <rftHoldTime>10</rftHoldTime> <!-- EXPRESSED IN MINUTES, HOW LONG
>>>> SHOULD WE TEMPORARILY DENY A VIOLATOR A
>>>> CCESS TO THE SITE -->
>>>> <rftDailyMaxViolations>5</rftDailyMaxViolations> <!-- HOW MANY TIMES
>>>> CAN A USER BE TEMPORARILY DENIED ACCESS BEFORE THEY MAK
>>>> E IT TO THE DETENTION CENTRE -->
>>>> <autoLogoutEnabled>true</autoLogoutEnabled> <!-- [TRUE|FALSE] - SET
>>>> TO TRUE TO HAVE A THREAD CHECK THE SESSIONS AND LOG
>>>> OUT USERS THAT ARE INACTIVE (i.e. HAVE ABANDONED THEIR SESSIONS) -->
>>>> </SecurityWatcher>
>>>>
>>>> <!-- BELOW, FIND CONFIGURATION FOR THE SYSTEM'S DATABASE -->
>>>>
>>>> <jdbc-config>
>>>> <driver>com.mysql.jdbc.Driver</driver> <!-- Java MySQL Driver -->
>>>> <url>jdbc:mysql://localhost/#######</url> <!-- Server/DSN combo -->
>>>> <user>#######</user> <!-- Database username -->
>>>> <password>#####</password> <!-- Database password -->
>>>> <max>10</max> <!-- The maximum number of connections to persistently
>>>> be held in the pool
>>>> -->
>>>> <init>10</init> <!-- The number of connections to initially (and
>>>> optimally) be held in the
>>>> pool -->
>>>> <queueQuery>select now()</queueQuery> <!-- Query used by the pool
>>>> watcher to determine whether or not a conn is a
>>>> ctive. -->
>>>> <logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/pool.txt</logFile>
>>>> <!-- NEW! Where does the pool output go (if logging is enabled [see
>>>> logging node]) -->
>>>> </jdbc-config>
>>>>
>>>> </mushroom>
>>>>
>>>> SERVER.XML
>>>>
>>>> <?xml version='1.0' encoding='utf-8'?>
>>>> <!--
>>>>  Licensed to the Apache Software Foundation (ASF) under one or more
>>>>  contributor license agreements.  See the NOTICE file distributed with
>>>>  this work for additional information regarding copyright ownership.
>>>>  The ASF licenses this file to You under the Apache License,
>>>> Version 2.0
>>>>  (the "License"); you may not use this file except in compliance with
>>>>  the License.  You may obtain a copy of the License at
>>>>
>>>>      http://www.apache.org/licenses/LICENSE-2.0
>>>>
>>>>  Unless required by applicable law or agreed to in writing, software
>>>>  distributed under the License is distributed on an "AS IS" BASIS,
>>>>  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
>>>> implied.
>>>>  See the License for the specific language governing permissions and
>>>>  limitations under the License.
>>>> -->
>>>> <!-- Note:  A "Server" is not itself a "Container", so you may not
>>>>     define subcomponents such as "Valves" at this level.
>>>>     Documentation at /docs/config/server.html
>>>> -->
>>>> <Server port='8105' shutdown='SHUTDOWN' debug='0'>
>>>>
>>>> <!--APR library loader. Documentation at /docs/apr.html -->
>>>> <Listener className="org.apache.catalina.core.AprLifecycleListener"
>>>> SSLEngine="on" />
>>>> <!--Initialize Jasper prior to webapps are loaded. Documentation at
>>>> /docs/jasper-howto.html -->
>>>> <Listener className="org.apache.catalina.core.JasperListener" />
>>>> <!-- JMX Support for the Tomcat server. Documentation at
>>>> /docs/non-existent.html -->
>>>> <Listener
>>>> className="org.apache.catalina.mbeans.ServerLifecycleListener" />
>>>> <Listener
>>>> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>>>> />
>>>>
>>>> <!-- Global JNDI resources
>>>>       Documentation at /docs/jndi-resources-howto.html
>>>>  -->
>>>> <GlobalNamingResources>
>>>> <!-- Editable user database that can also be used by
>>>>         UserDatabaseRealm to authenticate users
>>>>    -->
>>>> <Resource name="UserDatabase" auth="Container"
>>>>              type="org.apache.catalina.UserDatabase"
>>>>              description="User database that can be updated and saved"
>>>>
>>>> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>>>>              pathname="conf/tomcat-users.xml" />
>>>> </GlobalNamingResources>
>>>>
>>>> <!-- A "Service" is a collection of one or more "Connectors" that share
>>>>       a single "Container" Note:  A "Service" is not itself a
>>>> "Container",
>>>>       so you may not define subcomponents such as "Valves" at this
>>>> level.
>>>>       Documentation at /docs/config/service.html
>>>>   -->
>>>> <Service name='Catalina'>
>>>>
>>>> <!--The connectors can use a shared executor, you can define one or
>>>> more named thread pools-->
>>>> <!--
>>>> <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
>>>>        maxThreads="150" minSpareThreads="4"/>
>>>>    -->
>>>>
>>>>
>>>> <!-- A "Connector" represents an endpoint by which requests are
>>>> received
>>>>         and responses are returned. Documentation at :
>>>>         Java HTTP Connector: /docs/config/http.html (blocking &
>>>> non-blocking)
>>>>         Java AJP  Connector: /docs/config/ajp.html
>>>>         APR (HTTP/AJP) Connector: /docs/apr.html
>>>>         Define a non-SSL HTTP/1.1 Connector on port 8080
>>>>    -->
>>>> <Connector port="8180" protocol="HTTP/1.1"
>>>>           maxThreads="150" connectionTimeout="20000"
>>>>               redirectPort="8443" address="/home/XXXX/public_html" />
>>>> <!-- A "Connector" using the shared thread pool-->
>>>> <!--
>>>> <Connector executor="tomcatThreadPool"
>>>>               port="8080" protocol="HTTP/1.1"
>>>>               connectionTimeout="20000"
>>>>               redirectPort="8443" />
>>>>    -->
>>>> <!-- Define a SSL HTTP/1.1 Connector on port 8443
>>>>         This connector uses the JSSE configuration, when using APR,
>>>> the
>>>>         connector should be using the OpenSSL style configuration
>>>>         described in the APR documentation -->
>>>> <!--
>>>> <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
>>>>               maxThreads="150" scheme="https" secure="true"
>>>>               clientAuth="false" sslProtocol="TLS" />
>>>>    -->
>>>>
>>>> <!-- Define an AJP 1.3 Connector on port 8009/8010 -->
>>>> <Connector port="8010" protocol="AJP/1.3" redirectPort="8443"
>>>> address="/home/#####/public_html" />
>>>>
>>>> <!-- An Engine represents the entry point (within Catalina) that
>>>> processes
>>>>         every request.  The Engine implementation for Tomcat stand
>>>> alone
>>>>         analyzes the HTTP headers included with the request, and
>>>> passes them
>>>>         on to the appropriate Host (virtual host).
>>>>         Documentation at /docs/config/engine.html -->
>>>>
>>>> <!-- You should set jvmRoute to support load-balancing via AJP ie :
>>>> <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
>>>>    -->
>>>> <Engine name="Catalina" defaultHost="www.XXXXXXXX.com">
>>>>
>>>> <!--For clustering, please take a look at documentation at:
>>>>          /docs/cluster-howto.html  (simple how to)
>>>>          /docs/config/cluster.html (reference documentation) -->
>>>> <!--
>>>> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
>>>>      -->
>>>>
>>>> <!-- The request dumper valve dumps useful debugging information about
>>>>
>>>>           the request and response data received and sent by Tomcat.
>>>>           Documentation at: /docs/config/valve.html -->
>>>> <!--
>>>> <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
>>>>      -->
>>>>
>>>> <!-- This Realm uses the UserDatabase configured in the global JNDI
>>>>           resources under the key "UserDatabase".  Any edits
>>>>           that are performed against this UserDatabase are immediately
>>>>           available for use by the Realm.  -->
>>>> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>>>>             resourceName="UserDatabase"/>
>>>>
>>>> <!-- Define the default virtual host
>>>>           Note: XML Schema validation will not work with Xerces 2.2.
>>>>       -->
>>>> <Host name="www.XXXXXXXX.com"  appBase="/home/XXXXX/public_html"
>>>>            unpackWARs="true" autoDeploy="true"
>>>>            xmlValidation="false" xmlNamespaceAware="false">
>>>>
>>>>
>>>> <!-- SingleSignOn valve, share authentication between web applications
>>>>             Documentation at: /docs/config/valve.html -->
>>>> <!--
>>>> <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
>>>>        -->
>>>>
>>>> <!-- Access log processes all example.
>>>>             Documentation at: /docs/config/valve.html -->
>>>>
>>>> <Valve className="org.apache.catalina.valves.AccessLogValve"
>>>> directory="logs"
>>>>               prefix="exodus_access." suffix=".log"
>>>> pattern="common" resolveHosts="false"/>
>>>> <Logger className='org.apache.catalina.logger.FileLogger'
>>>>           directory="logs" prefix="exodus_catalina." suffix=".log"
>>>> timestamp="true" />
>>>> <Context path='' docBase='ROOT' debug='0' />
>>>>        ##NOTE: the is no ROOT directory in the app.
>>>>
>>>> </Host>
>>>> </Engine>
>>>> </Service>
>>>> </Server>
>>>>
>>>>
>>>>
>>>> LoadModule jk_module modules/mod_jk.so
>>>>
>>>> ajp13 listening on /0.0.0.0:8009
>>>>>
>>>>>  - Chuck
>>>>>
>>>>>
>>>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
>>>>> PROPRIETARY MATERIAL and is thus for use only by the intended
>>>>> recipient. If you received this in error, please contact the sender
>>>>> and delete the e-mail and its attachments from all computers.
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>>
>>>
>>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Re: tomcat error 404

Posted by Dave Filchak <su...@zuka.net>.
Hi André,

Sorry about the comments. Wasn't thinking. So, I did find that one of
the closing comment tags in my web.xml was entered as ==>. Fixing that
gave me some progress in that the site's homepage now comes up. However,
I now get the following error when clicking on a few links, which
obviously refer to a connection to the database:

Error initializing sub-systems:
Please check the following:
1. That your machine has a valid connection to jdbc:mysql://localhost/########_exodus Using:
     Username: ########_exodus
     Password: ######
     Driver: com.mysql.jdbc.Driver


*DETAILS FOLLOW:*
java.lang.Exception: Unable to Initialize Environment:
java.lang.NoClassDefFoundError: javax/mail/Address
	at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
	at com.snapmedia.degrassi.base.BroadcastSystem.(Unknown Source)
	at com.snapmedia.SystemController.init(SystemController.java:86)
	at com.snapmedia.WebSystemController.init(WebSystemController.java:39)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
	at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:219)
Caused by: java.lang.ClassNotFoundException: javax.mail.Address
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1438)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1284)
	... 25 more

I have verified that thew username and password are correct by logging
into the MySQL server from the command line. Something with the driver?

Dave



On 22/07/64 2:59 PM, André Warnier wrote:
> Hi.
>
> One thing at a time..
>
> 1) When you send XML configuration files, please remove everything 
> that is a comment.
> XML files are already being wrapped by the email program, and are 
> difficult to read as it is. Having plenty of comments in them in 
> addition makes is really a hassle to figure out what is being used or 
> not.
> (Note: an XML comment is anything between a pair of <!-- and --> )
>
> 2) one error message below talks about an invalid XML file.
> Inside one of the comments (between a leading <!-- and a trailing 
> -->), there is another pair of -- . That is incorrect and causes the 
> entire file to be rejected/ignored.
> Inspect that file carefully, remove the offending --, and try again.
>
> (Note: the extra -- may also be due to a previous bad edit of the 
> file.  It may have been a <!-- or a --> , where someone tried to 
> comment or de-comment something, and either removed too much or added 
> not enough.
> Remember that everything between a pair of <!-- and --> is a comment 
> (normally ignored), and inside of such a comment, you cannot have 
> another pair of -- )
>
> Do this carefully, as it may be the basic cause why the whole thing is 
> not working.
> Keep a backup of the original, for each file that you start editing.
>
> (Another note: there exist text editors which can show you if a file 
> is correct XML or not.  For a windows PC, look up Notepad++ in Google)
>
> 3) what happens when, in your browser, you enter the URL :
>
> http://your-host-name:8180
>
> ?
> (replace your-host-name by .. your real host name (or its IP address))
>
>
>
>
> Dave Filchak wrote:
>> Hello Charles,
>>
>> Hopefully this helps and it is not too much info.
>>
>> Dave
>>
>> On 22/07/64 2:59 PM, Caldarale, Charles R wrote:
>>>> From: Dave Filchak [mailto:submit@zuka.net]
>>>> Subject: tomcat error 404
>>>> I am receiving a HTTP Status 404 error.
>>> Can you tell if the 404 is coming from Tomcat or httpd?
>> Well, I cannot seem to connect to the site using 8080 either or the 
>> example files but, this site is a VPS controlled with cpanel. Cpanel 
>> says it is running and when I ssh to the server and run ps -aux, it 
>> shows an instance of tomcat running. This also verifies that httpd is 
>> running from your next question as well. However, in the catalina.err 
>> file, it shows the following errors:
>>
>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
>> applicationWebConfig
>> SEVERE: Parse error in application web.xml file at 
>> jndi:/exodusdecoded.com/WEB-INF/web.xml
>> org.xml.sax.SAXParseException: The string "--" is not permitted 
>> within comments.
>>
>> and then;
>>
>> SEVERE: Occurred at line 32 column 5
>> Oct 21, 2011 1:40:34 PM org.apache.catalina.startup.ContextConfig start
>> SEVERE: Marking this application unavailable due to previous error(s)
>> Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Error getConfigured
>> Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Context [] startup failed due to previous errors
>> Oct 21, 2011 1:40:35 PM org.apache.catalina.startup.HostConfig deployWAR
>> INFO: Deploying web application archive exodus.war
>>
>> and
>>
>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
>> applicationWebConfig
>> SEVERE: Occurred at line 32 column 5
>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig start
>> SEVERE: Marking this application unavailable due to previous error(s)
>> Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Error getConfigured
>> Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
>> SEVERE: Context [] startup failed due to previous errors
>> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.HostConfig deployWAR
>> INFO: Deploying web application archive exodus.war
>> Oct 21, 2011 1:54:21 PM org.apache.catalina.core.StandardHost start
>> INFO: XML validation disabled
>> Oct 21, 2011 1:54:21 PM org.apache.catalina.startup.HostConfig deployWAR
>> INFO: Deploying web application archive exodus.war
>>
>> with exodus being the name of the app I am trying to deploy. Then it 
>> shows:
>>
>> SEVERE: Servlet.service() for servlet jsp threw exception
>> org.apache.jasper.JasperException: 
>> /include/../../include/system-checkup.jsp(2,0) The value for the 
>> useBean class attribute com.snapmedia.WebSystemController is invalid.
>>
>>
>>>
>>>> I have verified that tomcat and apache are running.
>>> By "apache" [sic], I presume you mean httpd.  How did you verify 
>>> they're running?
>>>
>>>> My host will now help
>>> So if the host will help, why aren't you asking them?  (Or did you 
>>> really mean "not" there?)
>> Sorry, I meant "not", as in will not help.
>>>
>>>> If anyone can help me I really would appreciate it as the
>>>> site is down completely at this point.
>>> Without considerably more information, there's not much anyone can 
>>> help you with.  For starters, you need to examine the logs, post 
>>> your server.xml file (obfuscated as needed), show us the<Context>  
>>> element (if there is one) for your webapp, tell us the mechanism 
>>> you're using to connect httpd to Tomcat, and provide the config for 
>>> that.
>> environment.xml file:
>>
>> <?xml version="1.0"?>
>> <mushroom>
>>
>> <environment>
>> <systemVersion>2.0</systemVersion>
>> <systemBuildCode>005523</systemBuildCode>
>> <systemLastUpdate>April 29, 2005</systemLastUpdate>
>> <systemIPAddress>127.0.0.1</systemIPAddress>
>> <SMTPHost>174.122.30.18</SMTPHost> <!-- Used by JavaMail -->
>> <mailFrom>it-ops@quickplay.com</mailFrom>
>> <sysAdmin>N. Dingle</sysAdmin>
>> <debug>true</debug>
>> </environment>
>>
>> <!--
>>       This node contains the paths to "static systems". These should 
>> always be
>>       Fully-qualified URLs to the system in question, including 
>> domain, context
>>       root and any pertinent subdirectory. If code references any 
>> system which
>>       does not exist here, "base" will be used as a default.
>>    -->
>> <staticSystems>
>> <base>http://www.#######.com</base>
>> <admin>http://www.#######.com/tools</admin>
>> </staticSystems>
>>
>> <!--
>>       This node is recursive so that any paths set here will be 
>> automatically
>>       loaded into the environment class. Paths end up being converted 
>> into
>>       Name/Value pairs and are dumped into a Hashtable
>>    -->
>> <paths>
>> <loginJSP>/login.jsp</loginJSP>
>> <parentControlJSP>/parentControl.jsp</parentControlJSP>
>>
>> <baseRoot>/usr/local/tomcat/webapps/exodus</baseRoot>
>>
>> ##NOTE: this path does not exist on this server. It is the path that 
>> existed on the old server.
>>
>> <dataRoot>/data</dataRoot>
>> <instanceFile></instanceFile>
>> <systemLogFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/</systemLogFolder> 
>>
>>
>> ##NOTE: obviously this one does not exist either
>>
>> <systemArchiveFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/archive/</systemArchiveFolder> 
>>
>> <logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/codelog.txt</logFile> 
>>
>> <cronLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/scheduler.txt</cronLog> 
>>
>> <broadcastLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/broadcast.txt</broadcastLog> 
>>
>> <memoryLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/memory.txt</memoryLog> 
>>
>> <securityLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/security.txt</securityLog> 
>>
>> <ipmanifestlog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/ipmanifest.txt</ipmanifestlog> 
>>
>> <forumArchiveLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/forum.txt</forumArchiveLog> 
>>
>> </paths>
>>
>> ##NOTE: in fact none of these exist. The path to the WEB-INF folder 
>> for this app ( unless there is another one by default? ) is at: 
>> /home/exodus/public_html/WEB-INF/ so should I edit all these paths to 
>> reflect that new path? Or, do I put a copy of the WEB-INF folder here?
>>
>> <logging>
>> <connectionPool>false</connectionPool> <!-- Set to true to enable 
>> verbose logging of database connection activity
>>  -->
>> <memoryManager>false</memoryManager> <!-- Set to true to enable 
>> logging of MemoryManager status -->
>> <cronSystem>true</cronSystem> <!-- Set to true to enable 
>> CronScheduler logging -->
>> <broadcastSystem>false</broadcastSystem> <!-- Set to true to enable 
>> BroadcastSystem logging -->
>> </logging>
>>
>> <users>
>> <UserCookie1>AEFK67897PI30</UserCookie1>
>> <UserCookie2>AEFK6S897PI50</UserCookie2>
>> <SessionTimeout>30</SessionTimeout> <!-- Time before application 
>> expires user and forces them back to the login
>>  screen (in Minutes) -->
>> <CookieDomain>########.com</CookieDomain> <!-- In Development mode, 
>> leave this blank -->
>> <MaxHandleLength>25</MaxHandleLength> <!-- Maximum length to allow 
>> user handles.  This is arbitrary for now -->
>> <DiskQuota>204800</DiskQuota> <!-- 200 K -->
>> <emailVerifyTimeout>0</emailVerifyTimeout> <!-- number of days a user 
>> can go before having to verify his email address
>>  -->
>> </users>
>>
>> <!-- BELOW, FIND CONFIGURATION FOR MUSHROOM'S SUB-SYSTEMS -->
>>
>> <CronScheduler>
>> <enabled>true</enabled> <!-- Set to true to enable the Use of a 
>> system scheduler that imitates UNIX
>>  CRON functionality -->
>> <instanceSensitive>false</instanceSensitive> <!-- Used to force only 
>> one instance of this manager to load in a clustered
>>  environment -->
>> <runForInstance>1</runForInstance> <!-- Which instance number should 
>> control this manager.  (see the degrassi.
>> instance properties file) -->
>> <scanForJobs>10</scanForJobs> <!-- How often should the scheduler 
>> wake up and scan for tasks (in minutes)
>>  -->
>> </CronScheduler>
>>
>> <BroadcastSystem>
>> <enabled>true</enabled> <!-- Set to true to enable outbound messaging 
>> (WAP/Email) -->
>> <interval>5</interval> <!-- Time in minutes to sleep and check 
>> message queue size -->
>> </BroadcastSystem>
>>
>> <ParentalGuidance>
>> <enabled>true</enabled> <!--Does this system treat underage children 
>> differently?  (TRUE=YES, FALSE=
>> NO) -->
>> <MinRegistrationAge>13</MinRegistrationAge> <!--Children who are less 
>> than this age require parental guidance (PG13) --
>> >
>> </ParentalGuidance>
>>
>> <MemoryManager>
>> <enabled>false</enabled> <!-- Set to true to enable the MemoryManager 
>> thread to queue for JVM memsta
>> te -->
>> <frequency>15</frequency> <!-- (in Minutes) How often the state of 
>> memory in the JVM should be checke
>> d -->
>> <warnLevel>450</warnLevel> <!-- (in MB) Size of memory used to 
>> trigger e-mail notification (if enabled
>> ) -->
>> <notifyEnabled>true</notifyEnabled> <!-- Set to true to send email to 
>> everyone when memory gets low -->
>> <notifyGroup>######@########.com</notifyGroup> <!-- Semi-colon 
>> delimited list of whomever should be notified in the event
>> of a 'low-memory' state -->
>> </MemoryManager>
>>
>> <BlockedUserManager>
>> <enabled>true</enabled>
>> <daysBlocked>3</daysBlocked>
>> </BlockedUserManager>
>>
>> <SecurityWatcher>
>> <enabled>false</enabled> <!-- [TRUE = ENABLED | FALSE = DISABLED] 
>> overrides all other toggles -->
>> <rftEnabled>true</rftEnabled> <!-- (RFT = REQUEST FREQUENCY TEST - 
>> [TRUE|FALSE]) set to true to have the
>> system test the frequency of client requests for abuse. -->
>> <rftThreshold>10</rftThreshold> <!-- MAXIMUM NUMBER OF ABUSE FLAGS A 
>> USER CAN HAVE BEFORE ACTION IS TAKEN -
>> ->
>> <rftActionPoint>1500</rftActionPoint> <!-- EXPRESSED IN MILLISECONDS, 
>> THIS REPRESENTS THE POINT WHERE A REQUEST I
>> S CONSIDERED TOO RAPID AND WE INCREMENT A COUNTER UNTIL WE HIT THE 
>> THRESHOLD. -->
>> <rftClearPoint>4000</rftClearPoint> <!-- EXPRESSED IN MILLISECONDS, 
>> THIS REPRESENTS THE POINT WHERE WE SHOULD C
>> LEAR ALL FLAGS AND RESET THRESHOLD. -->
>> <rftHoldTime>10</rftHoldTime> <!-- EXPRESSED IN MINUTES, HOW LONG 
>> SHOULD WE TEMPORARILY DENY A VIOLATOR A
>> CCESS TO THE SITE -->
>> <rftDailyMaxViolations>5</rftDailyMaxViolations> <!-- HOW MANY TIMES 
>> CAN A USER BE TEMPORARILY DENIED ACCESS BEFORE THEY MAK
>> E IT TO THE DETENTION CENTRE -->
>> <autoLogoutEnabled>true</autoLogoutEnabled> <!-- [TRUE|FALSE] - SET 
>> TO TRUE TO HAVE A THREAD CHECK THE SESSIONS AND LOG
>> OUT USERS THAT ARE INACTIVE (i.e. HAVE ABANDONED THEIR SESSIONS) -->
>> </SecurityWatcher>
>>
>> <!-- BELOW, FIND CONFIGURATION FOR THE SYSTEM'S DATABASE -->
>>
>> <jdbc-config>
>> <driver>com.mysql.jdbc.Driver</driver> <!-- Java MySQL Driver -->
>> <url>jdbc:mysql://localhost/#######</url> <!-- Server/DSN combo -->
>> <user>#######</user> <!-- Database username -->
>> <password>#####</password> <!-- Database password -->
>> <max>10</max> <!-- The maximum number of connections to persistently 
>> be held in the pool
>> -->
>> <init>10</init> <!-- The number of connections to initially (and 
>> optimally) be held in the
>> pool -->
>> <queueQuery>select now()</queueQuery> <!-- Query used by the pool 
>> watcher to determine whether or not a conn is a
>> ctive. -->
>> <logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/pool.txt</logFile> 
>> <!-- NEW! Where does the pool output go (if logging is enabled [see
>> logging node]) -->
>> </jdbc-config>
>>
>> </mushroom>
>>
>> SERVER.XML
>>
>> <?xml version='1.0' encoding='utf-8'?>
>> <!--
>>   Licensed to the Apache Software Foundation (ASF) under one or more
>>   contributor license agreements.  See the NOTICE file distributed with
>>   this work for additional information regarding copyright ownership.
>>   The ASF licenses this file to You under the Apache License, Version 
>> 2.0
>>   (the "License"); you may not use this file except in compliance with
>>   the License.  You may obtain a copy of the License at
>>
>>       http://www.apache.org/licenses/LICENSE-2.0
>>
>>   Unless required by applicable law or agreed to in writing, software
>>   distributed under the License is distributed on an "AS IS" BASIS,
>>   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
>> implied.
>>   See the License for the specific language governing permissions and
>>   limitations under the License.
>> -->
>> <!-- Note:  A "Server" is not itself a "Container", so you may not
>>      define subcomponents such as "Valves" at this level.
>>      Documentation at /docs/config/server.html
>>  -->
>> <Server port='8105' shutdown='SHUTDOWN' debug='0'>
>>
>> <!--APR library loader. Documentation at /docs/apr.html -->
>> <Listener className="org.apache.catalina.core.AprLifecycleListener" 
>> SSLEngine="on" />
>> <!--Initialize Jasper prior to webapps are loaded. Documentation at 
>> /docs/jasper-howto.html -->
>> <Listener className="org.apache.catalina.core.JasperListener" />
>> <!-- JMX Support for the Tomcat server. Documentation at 
>> /docs/non-existent.html -->
>> <Listener 
>> className="org.apache.catalina.mbeans.ServerLifecycleListener" />
>> <Listener 
>> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" 
>> />
>>
>> <!-- Global JNDI resources
>>        Documentation at /docs/jndi-resources-howto.html
>>   -->
>> <GlobalNamingResources>
>> <!-- Editable user database that can also be used by
>>          UserDatabaseRealm to authenticate users
>>     -->
>> <Resource name="UserDatabase" auth="Container"
>>               type="org.apache.catalina.UserDatabase"
>>               description="User database that can be updated and saved"
>>               
>> factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>>               pathname="conf/tomcat-users.xml" />
>> </GlobalNamingResources>
>>
>> <!-- A "Service" is a collection of one or more "Connectors" that share
>>        a single "Container" Note:  A "Service" is not itself a 
>> "Container",
>>        so you may not define subcomponents such as "Valves" at this 
>> level.
>>        Documentation at /docs/config/service.html
>>    -->
>> <Service name='Catalina'>
>>
>> <!--The connectors can use a shared executor, you can define one or 
>> more named thread pools-->
>> <!--
>> <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
>>         maxThreads="150" minSpareThreads="4"/>
>>     -->
>>
>>
>> <!-- A "Connector" represents an endpoint by which requests are received
>>          and responses are returned. Documentation at :
>>          Java HTTP Connector: /docs/config/http.html (blocking & 
>> non-blocking)
>>          Java AJP  Connector: /docs/config/ajp.html
>>          APR (HTTP/AJP) Connector: /docs/apr.html
>>          Define a non-SSL HTTP/1.1 Connector on port 8080
>>     -->
>> <Connector port="8180" protocol="HTTP/1.1"
>>            maxThreads="150" connectionTimeout="20000"
>>                redirectPort="8443" address="/home/XXXX/public_html" />
>> <!-- A "Connector" using the shared thread pool-->
>> <!--
>> <Connector executor="tomcatThreadPool"
>>                port="8080" protocol="HTTP/1.1"
>>                connectionTimeout="20000"
>>                redirectPort="8443" />
>>     -->
>> <!-- Define a SSL HTTP/1.1 Connector on port 8443
>>          This connector uses the JSSE configuration, when using APR, the
>>          connector should be using the OpenSSL style configuration
>>          described in the APR documentation -->
>> <!--
>> <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
>>                maxThreads="150" scheme="https" secure="true"
>>                clientAuth="false" sslProtocol="TLS" />
>>     -->
>>
>> <!-- Define an AJP 1.3 Connector on port 8009/8010 -->
>> <Connector port="8010" protocol="AJP/1.3" redirectPort="8443" 
>> address="/home/#####/public_html" />
>>
>> <!-- An Engine represents the entry point (within Catalina) that 
>> processes
>>          every request.  The Engine implementation for Tomcat stand 
>> alone
>>          analyzes the HTTP headers included with the request, and 
>> passes them
>>          on to the appropriate Host (virtual host).
>>          Documentation at /docs/config/engine.html -->
>>
>> <!-- You should set jvmRoute to support load-balancing via AJP ie :
>> <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
>>     -->
>> <Engine name="Catalina" defaultHost="www.XXXXXXXX.com">
>>
>> <!--For clustering, please take a look at documentation at:
>>           /docs/cluster-howto.html  (simple how to)
>>           /docs/config/cluster.html (reference documentation) -->
>> <!--
>> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
>>       -->
>>
>> <!-- The request dumper valve dumps useful debugging information about
>>
>>            the request and response data received and sent by Tomcat.
>>            Documentation at: /docs/config/valve.html -->
>> <!--
>> <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
>>       -->
>>
>> <!-- This Realm uses the UserDatabase configured in the global JNDI
>>            resources under the key "UserDatabase".  Any edits
>>            that are performed against this UserDatabase are immediately
>>            available for use by the Realm.  -->
>> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>>              resourceName="UserDatabase"/>
>>
>> <!-- Define the default virtual host
>>            Note: XML Schema validation will not work with Xerces 2.2.
>>        -->
>> <Host name="www.XXXXXXXX.com"  appBase="/home/XXXXX/public_html"
>>             unpackWARs="true" autoDeploy="true"
>>             xmlValidation="false" xmlNamespaceAware="false">
>>
>>
>> <!-- SingleSignOn valve, share authentication between web applications
>>              Documentation at: /docs/config/valve.html -->
>> <!--
>> <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
>>         -->
>>
>> <!-- Access log processes all example.
>>              Documentation at: /docs/config/valve.html -->
>>
>> <Valve className="org.apache.catalina.valves.AccessLogValve" 
>> directory="logs"
>>                prefix="exodus_access." suffix=".log" pattern="common" 
>> resolveHosts="false"/>
>> <Logger className='org.apache.catalina.logger.FileLogger'
>>            directory="logs" prefix="exodus_catalina." suffix=".log" 
>> timestamp="true" />
>> <Context path='' docBase='ROOT' debug='0' />
>>         ##NOTE: the is no ROOT directory in the app.
>>
>> </Host>
>> </Engine>
>> </Service>
>> </Server>
>>
>>
>>
>> LoadModule jk_module modules/mod_jk.so
>>
>> ajp13 listening on /0.0.0.0:8009
>>>
>>>   - Chuck
>>>
>>>
>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
>>> PROPRIETARY MATERIAL and is thus for use only by the intended 
>>> recipient. If you received this in error, please contact the sender 
>>> and delete the e-mail and its attachments from all computers.
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: tomcat error 404

Posted by André Warnier <aw...@ice-sa.com>.
Hi.

One thing at a time..

1) When you send XML configuration files, please remove everything that is a comment.
XML files are already being wrapped by the email program, and are difficult to read as it 
is. Having plenty of comments in them in addition makes is really a hassle to figure out 
what is being used or not.
(Note: an XML comment is anything between a pair of <!-- and --> )

2) one error message below talks about an invalid XML file.
Inside one of the comments (between a leading <!-- and a trailing -->), there is another 
pair of -- . That is incorrect and causes the entire file to be rejected/ignored.
Inspect that file carefully, remove the offending --, and try again.

(Note: the extra -- may also be due to a previous bad edit of the file.  It may have been 
a <!-- or a --> , where someone tried to comment or de-comment something, and either 
removed too much or added not enough.
Remember that everything between a pair of <!-- and --> is a comment (normally ignored), 
and inside of such a comment, you cannot have another pair of -- )

Do this carefully, as it may be the basic cause why the whole thing is not working.
Keep a backup of the original, for each file that you start editing.

(Another note: there exist text editors which can show you if a file is correct XML or 
not.  For a windows PC, look up Notepad++ in Google)

3) what happens when, in your browser, you enter the URL :

http://your-host-name:8180

?
(replace your-host-name by .. your real host name (or its IP address))




Dave Filchak wrote:
> Hello Charles,
> 
> Hopefully this helps and it is not too much info.
> 
> Dave
> 
> On 22/07/64 2:59 PM, Caldarale, Charles R wrote:
>>> From: Dave Filchak [mailto:submit@zuka.net]
>>> Subject: tomcat error 404
>>> I am receiving a HTTP Status 404 error.
>> Can you tell if the 404 is coming from Tomcat or httpd?
> Well, I cannot seem to connect to the site using 8080 either or the 
> example files but, this site is a VPS controlled with cpanel. Cpanel 
> says it is running and when I ssh to the server and run ps -aux, it 
> shows an instance of tomcat running. This also verifies that httpd is 
> running from your next question as well. However, in the catalina.err 
> file, it shows the following errors:
> 
> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
> applicationWebConfig
> SEVERE: Parse error in application web.xml file at 
> jndi:/exodusdecoded.com/WEB-INF/web.xml
> org.xml.sax.SAXParseException: The string "--" is not permitted within 
> comments.
> 
> and then;
> 
> SEVERE: Occurred at line 32 column 5
> Oct 21, 2011 1:40:34 PM org.apache.catalina.startup.ContextConfig start
> SEVERE: Marking this application unavailable due to previous error(s)
> Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error getConfigured
> Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [] startup failed due to previous errors
> Oct 21, 2011 1:40:35 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive exodus.war
> 
> and
> 
> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
> applicationWebConfig
> SEVERE: Occurred at line 32 column 5
> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig start
> SEVERE: Marking this application unavailable due to previous error(s)
> Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
> SEVERE: Error getConfigured
> Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
> SEVERE: Context [] startup failed due to previous errors
> Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive exodus.war
> Oct 21, 2011 1:54:21 PM org.apache.catalina.core.StandardHost start
> INFO: XML validation disabled
> Oct 21, 2011 1:54:21 PM org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive exodus.war
> 
> with exodus being the name of the app I am trying to deploy. Then it shows:
> 
> SEVERE: Servlet.service() for servlet jsp threw exception
> org.apache.jasper.JasperException: 
> /include/../../include/system-checkup.jsp(2,0) The value for the useBean 
> class attribute com.snapmedia.WebSystemController is invalid.
> 
> 
>>
>>> I have verified that tomcat and apache are running.
>> By "apache" [sic], I presume you mean httpd.  How did you verify 
>> they're running?
>>
>>> My host will now help
>> So if the host will help, why aren't you asking them?  (Or did you 
>> really mean "not" there?)
> Sorry, I meant "not", as in will not help.
>>
>>> If anyone can help me I really would appreciate it as the
>>> site is down completely at this point.
>> Without considerably more information, there's not much anyone can 
>> help you with.  For starters, you need to examine the logs, post your 
>> server.xml file (obfuscated as needed), show us the<Context>  element 
>> (if there is one) for your webapp, tell us the mechanism you're using 
>> to connect httpd to Tomcat, and provide the config for that.
> environment.xml file:
> 
> <?xml version="1.0"?>
> <mushroom>
> 
> <environment>
> <systemVersion>2.0</systemVersion>
> <systemBuildCode>005523</systemBuildCode>
> <systemLastUpdate>April 29, 2005</systemLastUpdate>
> <systemIPAddress>127.0.0.1</systemIPAddress>
> <SMTPHost>174.122.30.18</SMTPHost> <!-- Used by JavaMail -->
> <mailFrom>it-ops@quickplay.com</mailFrom>
> <sysAdmin>N. Dingle</sysAdmin>
> <debug>true</debug>
> </environment>
> 
> <!--
>       This node contains the paths to "static systems". These should 
> always be
>       Fully-qualified URLs to the system in question, including domain, 
> context
>       root and any pertinent subdirectory. If code references any system 
> which
>       does not exist here, "base" will be used as a default.
>    -->
> <staticSystems>
> <base>http://www.#######.com</base>
> <admin>http://www.#######.com/tools</admin>
> </staticSystems>
> 
> <!--
>       This node is recursive so that any paths set here will be 
> automatically
>       loaded into the environment class. Paths end up being converted into
>       Name/Value pairs and are dumped into a Hashtable
>    -->
> <paths>
> <loginJSP>/login.jsp</loginJSP>
> <parentControlJSP>/parentControl.jsp</parentControlJSP>
> 
> <baseRoot>/usr/local/tomcat/webapps/exodus</baseRoot>
> 
> ##NOTE: this path does not exist on this server. It is the path that 
> existed on the old server.
> 
> <dataRoot>/data</dataRoot>
> <instanceFile></instanceFile>
> <systemLogFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/</systemLogFolder> 
> 
> 
> ##NOTE: obviously this one does not exist either
> 
> <systemArchiveFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/archive/</systemArchiveFolder> 
> 
> <logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/codelog.txt</logFile> 
> 
> <cronLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/scheduler.txt</cronLog> 
> 
> <broadcastLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/broadcast.txt</broadcastLog> 
> 
> <memoryLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/memory.txt</memoryLog> 
> 
> <securityLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/security.txt</securityLog> 
> 
> <ipmanifestlog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/ipmanifest.txt</ipmanifestlog> 
> 
> <forumArchiveLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/forum.txt</forumArchiveLog> 
> 
> </paths>
> 
> ##NOTE: in fact none of these exist. The path to the WEB-INF folder for 
> this app ( unless there is another one by default? ) is at: 
> /home/exodus/public_html/WEB-INF/ so should I edit all these paths to 
> reflect that new path? Or, do I put a copy of the WEB-INF folder here?
> 
> <logging>
> <connectionPool>false</connectionPool> <!-- Set to true to enable 
> verbose logging of database connection activity
>  -->
> <memoryManager>false</memoryManager> <!-- Set to true to enable logging 
> of MemoryManager status -->
> <cronSystem>true</cronSystem> <!-- Set to true to enable CronScheduler 
> logging -->
> <broadcastSystem>false</broadcastSystem> <!-- Set to true to enable 
> BroadcastSystem logging -->
> </logging>
> 
> <users>
> <UserCookie1>AEFK67897PI30</UserCookie1>
> <UserCookie2>AEFK6S897PI50</UserCookie2>
> <SessionTimeout>30</SessionTimeout> <!-- Time before application expires 
> user and forces them back to the login
>  screen (in Minutes) -->
> <CookieDomain>########.com</CookieDomain> <!-- In Development mode, 
> leave this blank -->
> <MaxHandleLength>25</MaxHandleLength> <!-- Maximum length to allow user 
> handles.  This is arbitrary for now -->
> <DiskQuota>204800</DiskQuota> <!-- 200 K -->
> <emailVerifyTimeout>0</emailVerifyTimeout> <!-- number of days a user 
> can go before having to verify his email address
>  -->
> </users>
> 
> <!-- BELOW, FIND CONFIGURATION FOR MUSHROOM'S SUB-SYSTEMS -->
> 
> <CronScheduler>
> <enabled>true</enabled> <!-- Set to true to enable the Use of a system 
> scheduler that imitates UNIX
>  CRON functionality -->
> <instanceSensitive>false</instanceSensitive> <!-- Used to force only one 
> instance of this manager to load in a clustered
>  environment -->
> <runForInstance>1</runForInstance> <!-- Which instance number should 
> control this manager.  (see the degrassi.
> instance properties file) -->
> <scanForJobs>10</scanForJobs> <!-- How often should the scheduler wake 
> up and scan for tasks (in minutes)
>  -->
> </CronScheduler>
> 
> <BroadcastSystem>
> <enabled>true</enabled> <!-- Set to true to enable outbound messaging 
> (WAP/Email) -->
> <interval>5</interval> <!-- Time in minutes to sleep and check message 
> queue size -->
> </BroadcastSystem>
> 
> <ParentalGuidance>
> <enabled>true</enabled> <!--Does this system treat underage children 
> differently?  (TRUE=YES, FALSE=
> NO) -->
> <MinRegistrationAge>13</MinRegistrationAge> <!--Children who are less 
> than this age require parental guidance (PG13) --
>  >
> </ParentalGuidance>
> 
> <MemoryManager>
> <enabled>false</enabled> <!-- Set to true to enable the MemoryManager 
> thread to queue for JVM memsta
> te -->
> <frequency>15</frequency> <!-- (in Minutes) How often the state of 
> memory in the JVM should be checke
> d -->
> <warnLevel>450</warnLevel> <!-- (in MB) Size of memory used to trigger 
> e-mail notification (if enabled
> ) -->
> <notifyEnabled>true</notifyEnabled> <!-- Set to true to send email to 
> everyone when memory gets low -->
> <notifyGroup>######@########.com</notifyGroup> <!-- Semi-colon delimited 
> list of whomever should be notified in the event
> of a 'low-memory' state -->
> </MemoryManager>
> 
> <BlockedUserManager>
> <enabled>true</enabled>
> <daysBlocked>3</daysBlocked>
> </BlockedUserManager>
> 
> <SecurityWatcher>
> <enabled>false</enabled> <!-- [TRUE = ENABLED | FALSE = DISABLED] 
> overrides all other toggles -->
> <rftEnabled>true</rftEnabled> <!-- (RFT = REQUEST FREQUENCY TEST - 
> [TRUE|FALSE]) set to true to have the
> system test the frequency of client requests for abuse. -->
> <rftThreshold>10</rftThreshold> <!-- MAXIMUM NUMBER OF ABUSE FLAGS A 
> USER CAN HAVE BEFORE ACTION IS TAKEN -
> ->
> <rftActionPoint>1500</rftActionPoint> <!-- EXPRESSED IN MILLISECONDS, 
> THIS REPRESENTS THE POINT WHERE A REQUEST I
> S CONSIDERED TOO RAPID AND WE INCREMENT A COUNTER UNTIL WE HIT THE 
> THRESHOLD. -->
> <rftClearPoint>4000</rftClearPoint> <!-- EXPRESSED IN MILLISECONDS, THIS 
> REPRESENTS THE POINT WHERE WE SHOULD C
> LEAR ALL FLAGS AND RESET THRESHOLD. -->
> <rftHoldTime>10</rftHoldTime> <!-- EXPRESSED IN MINUTES, HOW LONG SHOULD 
> WE TEMPORARILY DENY A VIOLATOR A
> CCESS TO THE SITE -->
> <rftDailyMaxViolations>5</rftDailyMaxViolations> <!-- HOW MANY TIMES CAN 
> A USER BE TEMPORARILY DENIED ACCESS BEFORE THEY MAK
> E IT TO THE DETENTION CENTRE -->
> <autoLogoutEnabled>true</autoLogoutEnabled> <!-- [TRUE|FALSE] - SET TO 
> TRUE TO HAVE A THREAD CHECK THE SESSIONS AND LOG
> OUT USERS THAT ARE INACTIVE (i.e. HAVE ABANDONED THEIR SESSIONS) -->
> </SecurityWatcher>
> 
> <!-- BELOW, FIND CONFIGURATION FOR THE SYSTEM'S DATABASE -->
> 
> <jdbc-config>
> <driver>com.mysql.jdbc.Driver</driver> <!-- Java MySQL Driver -->
> <url>jdbc:mysql://localhost/#######</url> <!-- Server/DSN combo -->
> <user>#######</user> <!-- Database username -->
> <password>#####</password> <!-- Database password -->
> <max>10</max> <!-- The maximum number of connections to persistently be 
> held in the pool
> -->
> <init>10</init> <!-- The number of connections to initially (and 
> optimally) be held in the
> pool -->
> <queueQuery>select now()</queueQuery> <!-- Query used by the pool 
> watcher to determine whether or not a conn is a
> ctive. -->
> <logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/pool.txt</logFile> 
> <!-- NEW! Where does the pool output go (if logging is enabled [see
> logging node]) -->
> </jdbc-config>
> 
> </mushroom>
> 
> SERVER.XML
> 
> <?xml version='1.0' encoding='utf-8'?>
> <!--
>   Licensed to the Apache Software Foundation (ASF) under one or more
>   contributor license agreements.  See the NOTICE file distributed with
>   this work for additional information regarding copyright ownership.
>   The ASF licenses this file to You under the Apache License, Version 2.0
>   (the "License"); you may not use this file except in compliance with
>   the License.  You may obtain a copy of the License at
> 
>       http://www.apache.org/licenses/LICENSE-2.0
> 
>   Unless required by applicable law or agreed to in writing, software
>   distributed under the License is distributed on an "AS IS" BASIS,
>   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>   See the License for the specific language governing permissions and
>   limitations under the License.
> -->
> <!-- Note:  A "Server" is not itself a "Container", so you may not
>      define subcomponents such as "Valves" at this level.
>      Documentation at /docs/config/server.html
>  -->
> <Server port='8105' shutdown='SHUTDOWN' debug='0'>
> 
> <!--APR library loader. Documentation at /docs/apr.html -->
> <Listener className="org.apache.catalina.core.AprLifecycleListener" 
> SSLEngine="on" />
> <!--Initialize Jasper prior to webapps are loaded. Documentation at 
> /docs/jasper-howto.html -->
> <Listener className="org.apache.catalina.core.JasperListener" />
> <!-- JMX Support for the Tomcat server. Documentation at 
> /docs/non-existent.html -->
> <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
> <Listener 
> className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
> 
> <!-- Global JNDI resources
>        Documentation at /docs/jndi-resources-howto.html
>   -->
> <GlobalNamingResources>
> <!-- Editable user database that can also be used by
>          UserDatabaseRealm to authenticate users
>     -->
> <Resource name="UserDatabase" auth="Container"
>               type="org.apache.catalina.UserDatabase"
>               description="User database that can be updated and saved"
>               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
>               pathname="conf/tomcat-users.xml" />
> </GlobalNamingResources>
> 
> <!-- A "Service" is a collection of one or more "Connectors" that share
>        a single "Container" Note:  A "Service" is not itself a "Container",
>        so you may not define subcomponents such as "Valves" at this level.
>        Documentation at /docs/config/service.html
>    -->
> <Service name='Catalina'>
> 
> <!--The connectors can use a shared executor, you can define one or more 
> named thread pools-->
> <!--
> <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
>         maxThreads="150" minSpareThreads="4"/>
>     -->
> 
> 
> <!-- A "Connector" represents an endpoint by which requests are received
>          and responses are returned. Documentation at :
>          Java HTTP Connector: /docs/config/http.html (blocking & 
> non-blocking)
>          Java AJP  Connector: /docs/config/ajp.html
>          APR (HTTP/AJP) Connector: /docs/apr.html
>          Define a non-SSL HTTP/1.1 Connector on port 8080
>     -->
> <Connector port="8180" protocol="HTTP/1.1"
>            maxThreads="150" connectionTimeout="20000"
>                redirectPort="8443" address="/home/XXXX/public_html" />
> <!-- A "Connector" using the shared thread pool-->
> <!--
> <Connector executor="tomcatThreadPool"
>                port="8080" protocol="HTTP/1.1"
>                connectionTimeout="20000"
>                redirectPort="8443" />
>     -->
> <!-- Define a SSL HTTP/1.1 Connector on port 8443
>          This connector uses the JSSE configuration, when using APR, the
>          connector should be using the OpenSSL style configuration
>          described in the APR documentation -->
> <!--
> <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
>                maxThreads="150" scheme="https" secure="true"
>                clientAuth="false" sslProtocol="TLS" />
>     -->
> 
> <!-- Define an AJP 1.3 Connector on port 8009/8010 -->
> <Connector port="8010" protocol="AJP/1.3" redirectPort="8443" 
> address="/home/#####/public_html" />
> 
> <!-- An Engine represents the entry point (within Catalina) that processes
>          every request.  The Engine implementation for Tomcat stand alone
>          analyzes the HTTP headers included with the request, and passes 
> them
>          on to the appropriate Host (virtual host).
>          Documentation at /docs/config/engine.html -->
> 
> <!-- You should set jvmRoute to support load-balancing via AJP ie :
> <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
>     -->
> <Engine name="Catalina" defaultHost="www.XXXXXXXX.com">
> 
> <!--For clustering, please take a look at documentation at:
>           /docs/cluster-howto.html  (simple how to)
>           /docs/config/cluster.html (reference documentation) -->
> <!--
> <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
>       -->
> 
> <!-- The request dumper valve dumps useful debugging information about
> 
>            the request and response data received and sent by Tomcat.
>            Documentation at: /docs/config/valve.html -->
> <!--
> <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
>       -->
> 
> <!-- This Realm uses the UserDatabase configured in the global JNDI
>            resources under the key "UserDatabase".  Any edits
>            that are performed against this UserDatabase are immediately
>            available for use by the Realm.  -->
> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
>              resourceName="UserDatabase"/>
> 
> <!-- Define the default virtual host
>            Note: XML Schema validation will not work with Xerces 2.2.
>        -->
> <Host name="www.XXXXXXXX.com"  appBase="/home/XXXXX/public_html"
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false">
> 
> 
> <!-- SingleSignOn valve, share authentication between web applications
>              Documentation at: /docs/config/valve.html -->
> <!--
> <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
>         -->
> 
> <!-- Access log processes all example.
>              Documentation at: /docs/config/valve.html -->
> 
> <Valve className="org.apache.catalina.valves.AccessLogValve" 
> directory="logs"
>                prefix="exodus_access." suffix=".log" pattern="common" 
> resolveHosts="false"/>
> <Logger className='org.apache.catalina.logger.FileLogger'
>            directory="logs" prefix="exodus_catalina." suffix=".log" 
> timestamp="true" />
> <Context path='' docBase='ROOT' debug='0' />
>         ##NOTE: the is no ROOT directory in the app.
> 
> </Host>
> </Engine>
> </Service>
> </Server>
> 
> 
> 
> LoadModule jk_module modules/mod_jk.so
> 
> ajp13 listening on /0.0.0.0:8009
>>
>>   - Chuck
>>
>>
>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
>> PROPRIETARY MATERIAL and is thus for use only by the intended 
>> recipient. If you received this in error, please contact the sender 
>> and delete the e-mail and its attachments from all computers.
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: RE: tomcat error 404

Posted by Dave Filchak <su...@zuka.net>.
Hello Charles,

Hopefully this helps and it is not too much info.

Dave

On 22/07/64 2:59 PM, Caldarale, Charles R wrote:
>> From: Dave Filchak [mailto:submit@zuka.net]
>> Subject: tomcat error 404
>> I am receiving a HTTP Status 404 error.
> Can you tell if the 404 is coming from Tomcat or httpd?
Well, I cannot seem to connect to the site using 8080 either or the 
example files but, this site is a VPS controlled with cpanel. Cpanel 
says it is running and when I ssh to the server and run ps -aux, it 
shows an instance of tomcat running. This also verifies that httpd is 
running from your next question as well. However, in the catalina.err 
file, it shows the following errors:

Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
SEVERE: Parse error in application web.xml file at 
jndi:/exodusdecoded.com/WEB-INF/web.xml
org.xml.sax.SAXParseException: The string "--" is not permitted within 
comments.

and then;

SEVERE: Occurred at line 32 column 5
Oct 21, 2011 1:40:34 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:40:34 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 21, 2011 1:40:35 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war

and

Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
SEVERE: Occurred at line 32 column 5
Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.ContextConfig start
SEVERE: Marking this application unavailable due to previous error(s)
Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Error getConfigured
Oct 21, 2011 1:54:19 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 21, 2011 1:54:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war
Oct 21, 2011 1:54:21 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Oct 21, 2011 1:54:21 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive exodus.war

with exodus being the name of the app I am trying to deploy. Then it shows:

SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: 
/include/../../include/system-checkup.jsp(2,0) The value for the useBean 
class attribute com.snapmedia.WebSystemController is invalid.


>
>> I have verified that tomcat and apache are running.
> By "apache" [sic], I presume you mean httpd.  How did you verify they're running?
>
>> My host will now help
> So if the host will help, why aren't you asking them?  (Or did you really mean "not" there?)
Sorry, I meant "not", as in will not help.
>
>> If anyone can help me I really would appreciate it as the
>> site is down completely at this point.
> Without considerably more information, there's not much anyone can help you with.  For starters, you need to examine the logs, post your server.xml file (obfuscated as needed), show us the<Context>  element (if there is one) for your webapp, tell us the mechanism you're using to connect httpd to Tomcat, and provide the config for that.
environment.xml file:

<?xml version="1.0"?>
<mushroom>

<environment>
<systemVersion>2.0</systemVersion>
<systemBuildCode>005523</systemBuildCode>
<systemLastUpdate>April 29, 2005</systemLastUpdate>
<systemIPAddress>127.0.0.1</systemIPAddress>
<SMTPHost>174.122.30.18</SMTPHost> <!-- Used by JavaMail -->
<mailFrom>it-ops@quickplay.com</mailFrom>
<sysAdmin>N. Dingle</sysAdmin>
<debug>true</debug>
</environment>

<!--
       This node contains the paths to "static systems". These should 
always be
       Fully-qualified URLs to the system in question, including domain, 
context
       root and any pertinent subdirectory. If code references any 
system which
       does not exist here, "base" will be used as a default.
    -->
<staticSystems>
<base>http://www.#######.com</base>
<admin>http://www.#######.com/tools</admin>
</staticSystems>

<!--
       This node is recursive so that any paths set here will be 
automatically
       loaded into the environment class. Paths end up being converted into
       Name/Value pairs and are dumped into a Hashtable
    -->
<paths>
<loginJSP>/login.jsp</loginJSP>
<parentControlJSP>/parentControl.jsp</parentControlJSP>

<baseRoot>/usr/local/tomcat/webapps/exodus</baseRoot>

##NOTE: this path does not exist on this server. It is the path that 
existed on the old server.

<dataRoot>/data</dataRoot>
<instanceFile></instanceFile>
<systemLogFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/</systemLogFolder>

##NOTE: obviously this one does not exist either

<systemArchiveFolder>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/archive/</systemArchiveFolder>
<logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/codelog.txt</logFile>
<cronLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/scheduler.txt</cronLog>
<broadcastLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/broadcast.txt</broadcastLog>
<memoryLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/memory.txt</memoryLog>
<securityLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/security.txt</securityLog>
<ipmanifestlog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/ipmanifest.txt</ipmanifestlog>
<forumArchiveLog>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/forum.txt</forumArchiveLog>
</paths>

##NOTE: in fact none of these exist. The path to the WEB-INF folder for 
this app ( unless there is another one by default? ) is at: 
/home/exodus/public_html/WEB-INF/ so should I edit all these paths to 
reflect that new path? Or, do I put a copy of the WEB-INF folder here?

<logging>
<connectionPool>false</connectionPool> <!-- Set to true to enable 
verbose logging of database connection activity
  -->
<memoryManager>false</memoryManager> <!-- Set to true to enable logging 
of MemoryManager status -->
<cronSystem>true</cronSystem> <!-- Set to true to enable CronScheduler 
logging -->
<broadcastSystem>false</broadcastSystem> <!-- Set to true to enable 
BroadcastSystem logging -->
</logging>

<users>
<UserCookie1>AEFK67897PI30</UserCookie1>
<UserCookie2>AEFK6S897PI50</UserCookie2>
<SessionTimeout>30</SessionTimeout> <!-- Time before application expires 
user and forces them back to the login
  screen (in Minutes) -->
<CookieDomain>########.com</CookieDomain> <!-- In Development mode, 
leave this blank -->
<MaxHandleLength>25</MaxHandleLength> <!-- Maximum length to allow user 
handles.  This is arbitrary for now -->
<DiskQuota>204800</DiskQuota> <!-- 200 K -->
<emailVerifyTimeout>0</emailVerifyTimeout> <!-- number of days a user 
can go before having to verify his email address
  -->
</users>

<!-- BELOW, FIND CONFIGURATION FOR MUSHROOM'S SUB-SYSTEMS -->

<CronScheduler>
<enabled>true</enabled> <!-- Set to true to enable the Use of a system 
scheduler that imitates UNIX
  CRON functionality -->
<instanceSensitive>false</instanceSensitive> <!-- Used to force only one 
instance of this manager to load in a clustered
  environment -->
<runForInstance>1</runForInstance> <!-- Which instance number should 
control this manager.  (see the degrassi.
instance properties file) -->
<scanForJobs>10</scanForJobs> <!-- How often should the scheduler wake 
up and scan for tasks (in minutes)
  -->
</CronScheduler>

<BroadcastSystem>
<enabled>true</enabled> <!-- Set to true to enable outbound messaging 
(WAP/Email) -->
<interval>5</interval> <!-- Time in minutes to sleep and check message 
queue size -->
</BroadcastSystem>

<ParentalGuidance>
<enabled>true</enabled> <!--Does this system treat underage children 
differently?  (TRUE=YES, FALSE=
NO) -->
<MinRegistrationAge>13</MinRegistrationAge> <!--Children who are less 
than this age require parental guidance (PG13) --
 >
</ParentalGuidance>

<MemoryManager>
<enabled>false</enabled> <!-- Set to true to enable the MemoryManager 
thread to queue for JVM memsta
te -->
<frequency>15</frequency> <!-- (in Minutes) How often the state of 
memory in the JVM should be checke
d -->
<warnLevel>450</warnLevel> <!-- (in MB) Size of memory used to trigger 
e-mail notification (if enabled
) -->
<notifyEnabled>true</notifyEnabled> <!-- Set to true to send email to 
everyone when memory gets low -->
<notifyGroup>######@########.com</notifyGroup> <!-- Semi-colon delimited 
list of whomever should be notified in the event
of a 'low-memory' state -->
</MemoryManager>

<BlockedUserManager>
<enabled>true</enabled>
<daysBlocked>3</daysBlocked>
</BlockedUserManager>

<SecurityWatcher>
<enabled>false</enabled> <!-- [TRUE = ENABLED | FALSE = DISABLED] 
overrides all other toggles -->
<rftEnabled>true</rftEnabled> <!-- (RFT = REQUEST FREQUENCY TEST - 
[TRUE|FALSE]) set to true to have the
system test the frequency of client requests for abuse. -->
<rftThreshold>10</rftThreshold> <!-- MAXIMUM NUMBER OF ABUSE FLAGS A 
USER CAN HAVE BEFORE ACTION IS TAKEN -
->
<rftActionPoint>1500</rftActionPoint> <!-- EXPRESSED IN MILLISECONDS, 
THIS REPRESENTS THE POINT WHERE A REQUEST I
S CONSIDERED TOO RAPID AND WE INCREMENT A COUNTER UNTIL WE HIT THE 
THRESHOLD. -->
<rftClearPoint>4000</rftClearPoint> <!-- EXPRESSED IN MILLISECONDS, THIS 
REPRESENTS THE POINT WHERE WE SHOULD C
LEAR ALL FLAGS AND RESET THRESHOLD. -->
<rftHoldTime>10</rftHoldTime> <!-- EXPRESSED IN MINUTES, HOW LONG SHOULD 
WE TEMPORARILY DENY A VIOLATOR A
CCESS TO THE SITE -->
<rftDailyMaxViolations>5</rftDailyMaxViolations> <!-- HOW MANY TIMES CAN 
A USER BE TEMPORARILY DENIED ACCESS BEFORE THEY MAK
E IT TO THE DETENTION CENTRE -->
<autoLogoutEnabled>true</autoLogoutEnabled> <!-- [TRUE|FALSE] - SET TO 
TRUE TO HAVE A THREAD CHECK THE SESSIONS AND LOG
OUT USERS THAT ARE INACTIVE (i.e. HAVE ABANDONED THEIR SESSIONS) -->
</SecurityWatcher>

<!-- BELOW, FIND CONFIGURATION FOR THE SYSTEM'S DATABASE -->

<jdbc-config>
<driver>com.mysql.jdbc.Driver</driver> <!-- Java MySQL Driver -->
<url>jdbc:mysql://localhost/#######</url> <!-- Server/DSN combo -->
<user>#######</user> <!-- Database username -->
<password>#####</password> <!-- Database password -->
<max>10</max> <!-- The maximum number of connections to persistently be 
held in the pool
-->
<init>10</init> <!-- The number of connections to initially (and 
optimally) be held in the
pool -->
<queueQuery>select now()</queueQuery> <!-- Query used by the pool 
watcher to determine whether or not a conn is a
ctive. -->
<logFile>/usr/local/tomcat/webapps/exodus/WEB-INF/logs/pool.txt</logFile> <!-- 
NEW! Where does the pool output go (if logging is enabled [see
logging node]) -->
</jdbc-config>

</mushroom>

SERVER.XML

<?xml version='1.0' encoding='utf-8'?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
      define subcomponents such as "Valves" at this level.
      Documentation at /docs/config/server.html
  -->
<Server port='8105' shutdown='SHUTDOWN' debug='0'>

<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" 
SSLEngine="on" />
<!--Initialize Jasper prior to webapps are loaded. Documentation at 
/docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- JMX Support for the Tomcat server. Documentation at 
/docs/non-existent.html -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />

<!-- Global JNDI resources
        Documentation at /docs/jndi-resources-howto.html
   -->
<GlobalNamingResources>
<!-- Editable user database that can also be used by
          UserDatabaseRealm to authenticate users
     -->
<Resource name="UserDatabase" auth="Container"
               type="org.apache.catalina.UserDatabase"
               description="User database that can be updated and saved"
               factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
               pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>

<!-- A "Service" is a collection of one or more "Connectors" that share
        a single "Container" Note:  A "Service" is not itself a 
"Container",
        so you may not define subcomponents such as "Valves" at this level.
        Documentation at /docs/config/service.html
    -->
<Service name='Catalina'>

<!--The connectors can use a shared executor, you can define one or more 
named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
         maxThreads="150" minSpareThreads="4"/>
     -->


<!-- A "Connector" represents an endpoint by which requests are received
          and responses are returned. Documentation at :
          Java HTTP Connector: /docs/config/http.html (blocking & 
non-blocking)
          Java AJP  Connector: /docs/config/ajp.html
          APR (HTTP/AJP) Connector: /docs/apr.html
          Define a non-SSL HTTP/1.1 Connector on port 8080
     -->
<Connector port="8180" protocol="HTTP/1.1"
            maxThreads="150" connectionTimeout="20000"
                redirectPort="8443" address="/home/XXXX/public_html" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
                port="8080" protocol="HTTP/1.1"
                connectionTimeout="20000"
                redirectPort="8443" />
     -->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
          This connector uses the JSSE configuration, when using APR, the
          connector should be using the OpenSSL style configuration
          described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
                maxThreads="150" scheme="https" secure="true"
                clientAuth="false" sslProtocol="TLS" />
     -->

<!-- Define an AJP 1.3 Connector on port 8009/8010 -->
<Connector port="8010" protocol="AJP/1.3" redirectPort="8443" 
address="/home/#####/public_html" />

<!-- An Engine represents the entry point (within Catalina) that processes
          every request.  The Engine implementation for Tomcat stand alone
          analyzes the HTTP headers included with the request, and 
passes them
          on to the appropriate Host (virtual host).
          Documentation at /docs/config/engine.html -->

<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
     -->
<Engine name="Catalina" defaultHost="www.XXXXXXXX.com">

<!--For clustering, please take a look at documentation at:
           /docs/cluster-howto.html  (simple how to)
           /docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
       -->

<!-- The request dumper valve dumps useful debugging information about

            the request and response data received and sent by Tomcat.
            Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve"/>
       -->

<!-- This Realm uses the UserDatabase configured in the global JNDI
            resources under the key "UserDatabase".  Any edits
            that are performed against this UserDatabase are immediately
            available for use by the Realm.  -->
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
              resourceName="UserDatabase"/>

<!-- Define the default virtual host
            Note: XML Schema validation will not work with Xerces 2.2.
        -->
<Host name="www.XXXXXXXX.com"  appBase="/home/XXXXX/public_html"
             unpackWARs="true" autoDeploy="true"
             xmlValidation="false" xmlNamespaceAware="false">


<!-- SingleSignOn valve, share authentication between web applications
              Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
         -->

<!-- Access log processes all example.
              Documentation at: /docs/config/valve.html -->

<Valve className="org.apache.catalina.valves.AccessLogValve" 
directory="logs"
                prefix="exodus_access." suffix=".log" pattern="common" 
resolveHosts="false"/>
<Logger className='org.apache.catalina.logger.FileLogger'
            directory="logs" prefix="exodus_catalina." suffix=".log" 
timestamp="true" />
<Context path='' docBase='ROOT' debug='0' />
         ##NOTE: the is no ROOT directory in the app.

</Host>
</Engine>
</Service>
</Server>



LoadModule jk_module modules/mod_jk.so

ajp13 listening on /0.0.0.0:8009
>
>   - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: tomcat error 404

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Dave Filchak [mailto:submit@zuka.net] 
> Subject: tomcat error 404

> I am receiving a HTTP Status 404 error.

Can you tell if the 404 is coming from Tomcat or httpd?

> I have verified that tomcat and apache are running.

By "apache" [sic], I presume you mean httpd.  How did you verify they're running?

> My host will now help

So if the host will help, why aren't you asking them?  (Or did you really mean "not" there?)

> If anyone can help me I really would appreciate it as the 
> site is down completely at this point.

Without considerably more information, there's not much anyone can help you with.  For starters, you need to examine the logs, post your server.xml file (obfuscated as needed), show us the <Context> element (if there is one) for your webapp, tell us the mechanism you're using to connect httpd to Tomcat, and provide the config for that.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org