You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Luke FERNANDEZ <LF...@weber.edu> on 2004/09/16 01:22:34 UTC

Problem rendering JSP 2.0 examples on Tomcat install

Has anybody else had difficulty running  the JSP 2.0 examples after
Tomcat 5.0 install?  The JSP 1.2 Examples work correctly but 2.0 do
not.....what am I doing wrong?

Here's a typical exception when running the HelloWorld Tab example:

javax.servlet.ServletException: Error instantiating servlet class
org.apache.jsp.jsp2.simpletag.hello_jsp
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	java.lang.Thread.run(Thread.java:534)


root cause 

java.lang.VerifyError: (class: org/apache/jsp/jsp2/simpletag/hello_jsp,
method: _jspx_meth_mytag_helloWorld_0 signature:
(Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function
	java.lang.Class.getDeclaredConstructors0(Native Method)
	java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
	java.lang.Class.getConstructor0(Class.java:1930)
	java.lang.Class.newInstance0(Class.java:278)
	java.lang.Class.newInstance(Class.java:261)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
	org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
	java.lang.Thread.run(Thread.java:534)



>>> patricia.swarbrick@ideaca.com 9/15/2004 2:44:20 PM >>>
Yep, I have.  its port 8015 now.

Patricia

-----Original Message-----
From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com] 
Sent: Tuesday, September 14, 2004 2:32 PM
To: Tomcat Users List
Subject: RE: problem configuring 2 tomcat instances apache 2.0.48
tomcat
5.0.19



Hi,
Have you modified the shutdown port for the 2nd instance so it doesn't
clash with the 1st instance (default port 8005)?

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Patricia Swarbrick [mailto:patricia.swarbrick@ideaca.com] 
>Sent: Tuesday, September 14, 2004 4:05 PM
>To: Tomcat Users List
>Subject: problem configuring 2 tomcat instances apache 2.0.48 tomcat
5.0.19
>
>I'm attempting to configure two tomcat instances, one set up on the
normal
>ports and the other is connected to server port 8015, connector port
8088
>and 8019
>
>the problem is I can't load any .jsp pages for the second port.  I
get
an
>http 400 error.  I've checked the directory permissions, checked and
>rechecked the workers2.properties file and the vhosts.conf in apache.
>
>I'm not sure whats going on here.  any help would be apreciated.
>
>workers2.properties file (there's prolly a lot of useless stuff in
here):
>
>[shm]
>file=/usr/local/apache/current/logs/mod_jk2.shm
>size=1048576
>[channel.socket:localhost:8009]
>port=8009
>host=127.0.0.1
>tomcatid=localhost:8009
>channel=channel.socket:localhost:8009
>[ajp13:localhost:8009]
>[channel.socket:thesite:8009]
>port=8009
>host=127.0.0.1
>channel=channel.socket:thesite:8009
>[ajp13:thesite:8009]
>[channel.socket:localhost:8019]
>port=8019
>host=127.0.0.1
>tomcatid=localhost:8019
>channel=channel.socket:localhost:8019
>[channel.socket:theothersite:8019]
>port=8019
>host=127.0.0.1
>channel=channel.socket:theothersite:8019
>[ajp13:theothersite:8019]
>
># status'' worker - shows status of jk2 module
>[status:status]
>[uri:10.99.1.75:80/status/*]
>worker=status:status
>
>
>section of the vhosts.conf:
>
><VirtualHost blah:80>
>  ServerAdmin webmaster@thesite.com 
>  DocumentRoot /home/httpd/html/thesite_com
>  ServerName thesite
>  ServerAlias thesite.com
>  ErrorLog logs/thesite_com-error_log
>  CustomLog logs/thesite_com-access_log combined
>  <Location /*.jsp>
>    JkUriSet worker ajp13:localhost:8009
>  </Location>
>  <Location /*.do>
>    JkUriSet worker ajp13:localhost:8009
>  </Location>
></VirtualHost>
><VirtualHost blah:80>
>  ServerAdmin webmaster@thesite.com 
>  DocumentRoot /home/httpd/html/theothersite_com
>  ServerName theothersite
>  ServerAlias theothersite.com
>  ErrorLog logs/theothersite_com-error_log
>  CustomLog logs/theothersite_com-access_log combined
>  <Location /*.jsp>
>    JkUriSet worker ajp13:localhost:8019
>  </Location>
>  <Location /*.do>
>    JkUriSet worker ajp13:localhost:8019
>  </Location>
></VirtualHost>




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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


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


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


Re: Problem rendering JSP 2.0 examples on Tomcat install

Posted by Fred Blaise <ch...@madpenguin.org>.
it seems like you're passing the wrong argument to the function... 
method: _jspx_meth_mytag_helloWorld_0 signature:
(Ljavax/servlet/jsp/PageContext;)Z) Incompatible argument to function

code?

fb.

On Wed, 2004-09-15 at 17:22 -0600, Luke FERNANDEZ wrote:
> Incompatible argument to function


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