Servlet not displaying correctly HTML output.

2005-02-05 Thread Arturo Koosau
Hello,
I have installed Apache 2.0.51
and tomcat 4.1.31 in my Fedora 2 server.
I'm using mod_jk2 to  connect Apache and Tomcat.

I have this web application that I have installed under the webapps
directory called: store.war

I've added the context descriptor in the server.xml and 
the application works fine if I use the 8080 port.  ie. 
http://localhost:8080/store
However when I try to run the application without specifying the
8080 port. ie.  http://localhost/store, the servlets do not display
the formatted HTML output, but rather the HTML output itself.

I've modified the workers2.properties file to reflect the new application.

Since I'm able to run the application under tomcat without any
problems.
I think my problem lies with the configuration of the
workers2.properties file, but I can't find much documentation
and I've tried to copy all the entries that I could find for the
examples webapp, but it still doesn't work.

If anyone knows what I'm missing,  please let me know.

These are the lines I appended to the end of the 
workers2.properties file:

[uri:/store/*]
info=Map the whole webapp

The rest of the file is the same as the default.

This is a copy of my output when I run the Cart servlet 
under tomcat ( port 8080 )

Current Cart Contents:
Fish1.99

This is a copy of the output when I run the Cart servlet
when I use Apache's port 80

Current Cart Contents:


Fish1.99




Thanks in advance
Arturo.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error: 500

2002-08-30 Thread Arturo Koosau

Hello,

I am using Apache 1.3.14 and Tomcat as a Servlet  Server
and I am getting the following error:

Error: 500
Location: /servlet/What
Internal Servlet Error:
java.lang.NoClassDefFoundError: org/apache/xerces/dom/NamedNodeMapImpl
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Unknown Source)
   at What.printVer(What.java:88)
   at What.doGet(What.java:47)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
   at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
   at org.apache.tomcat.core.Handler.service(Handler.java:235)
   at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
   at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)


   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
   at
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341)


   at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
   at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)


   at java.lang.Thread.run(Unknown Source)

I am a newbie with this web server stuff,  so any direction as to how to
troubleshoot this problem is very
much appreciated.

The error_log file does not have any entries,  but the access_log file has
the following:

10.100.138.65 - - [30/Aug/2002:10:48:48 -0700] "GET /servlet/What HTTP/1.1"
401 483
10.100.138.65 - koosau [30/Aug/2002:10:48:53 -0700] "GET /servlet/What
HTTP/1.1" 500 1254




--
To unsubscribe, e-mail:   
For additional commands, e-mail: