Document contains no data

2003-06-02 Thread Gordon Shamblin
I helped setup TC-4.1.24/Apache-2.0.45/mod-jk2-2.0.2 on RH8.  When I was 
last associated with it, it seemed to work fine with some simple 
servlets.  Some modifications were made ( no one seems to know exactly 
what ) and now when requesting a servlet, it grinds awhile and returns 
Document contains no data
I tried accessing that TC on port 8080 ( I had left it listening ) and I 
receive the same error.
I installed a new copy of TC-4.1.24, changed CATALINA_HOME to the new 
install and receive the same Document contains.. when trying to access 
localhost:8080 or localhost:8080/examples, .
Since it does it with the clean install, I figure it is something other 
than the TC.
The only exception in the logs is in localhost_admin_log and the salient 
portion is below.  The other logs indicate nothing wrong and 
catalina.out ends with

Starting service Tomcat-Standalone
Apache Tomcat/4.1.24
May 31, 2003 7:27:30 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
May 31, 2003 7:27:30 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
May 31, 2003 7:27:30 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=14/242  
config=/usr/local/tomcat4/conf/jk2.properties

I checked the CLASSPATH to ensure that it was getting to the correct 
servlet.jar

I only have access to the machine via telnet when I am on campus, so it 
is a little hard to do too much exploring.

Any help as to where to start looking when I go back will be greatly 
appreciated.

Gordon

From localhost_admin_log:

2003-05-31 19:27:25 org.apache.webapp.admin.ApplicationServlet: init
2003-05-31 19:27:27 StandardContext[/admin]: Servlet /admin threw load() 
exception
javax.servlet.ServletException: Servlet.init() for servlet action threw 
exception
  at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:963) 

  at 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
  at 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420) 

  at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)

  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.lang.NoSuchMethodError: 
javax.servlet.ServletConfig.getServletName()Ljava/lang/String;
  at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1408)
  at 
org.apache.struts.action.ActionServlet.init(ActionServlet.java:474)
  at 
org.apache.webapp.admin.ApplicationServlet.init(ApplicationServlet.java:152) 

  at javax.servlet.GenericServlet.init(GenericServlet.java:266)

 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

2003-05-31 19:27:27 StandardWrapper[/admin:invoker]: Loading container 
servlet invoker
2003-05-31 19:27:27 org.apache.catalina.servlets.InvokerServlet: init
2003-05-31 19:27:27 org.apache.jasper.servlet.JspServlet: init



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


Re: Guilde on using MOD_JK2

2003-06-02 Thread Gordon Shamblin
Try this ( if you don't read Japanese, I don't ) follow the screen shots

http://www.hellohiro.com/apacheservlet.htm



joe wrote:

 Original Message - 
From: joe [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 2:32 AM
Subject: Guild on using MOD_JK2

 

Hi all, i've been playing with mod_jk connector and thanks to this email
chain that i've finally got it to work...However, it seems that i've read
that mod_jk2 connector is much better than mod_jk. Could anyone give me
   

some
 

update URL/guide or changes i need to make to migrate to use mod_jk2?

Those that i have found on the web or in this mailing lists are all
   

outdated
 

or it doesn't fit my configuration when i try to follow the step in
building/install the module. I really hope someone could come out with a
more updated links on building and using the latest version of source
available.(i wish i could if i know how to).
Below are the configuration that i'm using.
Red Hat 8.0
J2SDK 1.4.1
Apache 2.0.46
Tomcat 4.1.24
Regards,
Joe