tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yun Sang Jung" <navi...@channeli.net>
Subject Re: Multiple jsp:plugin elements
Date Thu, 07 Sep 2000 06:19:06 GMT
I met same error when I tried to run multi applets on a jsp file.
I looked at the generated source and then I found multi declared variable in the source.
IMHO, this may be a bug in Tomcat.

To work around the problem, I use <applet> tag instead of <jsp:plugin>.

Regards,
Jung
  ----- Original Message ----- 
  From: Steve Buroff 
  To: tomcatUser 
  Cc: Buroff, Steven 
  Sent: Wednesday, September 06, 2000 1:02 AM
  Subject: Multiple jsp:plugin elements


  It appears that one cannot have 2 jsp:plugin elements in a JSP.
  In other words, you can't have 2 applets in the same page created
  froma JSP. Is this true? If so, is there a way to work around it?
  Thanks.

  I've attached my .jsp file and the error I get is below. The two
  applets are identical and each works alone. I created two after
  trying to include the same applet twice failed. I thought that
  might be the problem but it isn't.

  Steve Buroff

  Error: 500
  Location: /psip/testApplets.jsp
  Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSPC:\tomcat\work\localhost_8080%2Fpsip\_0002ftestApplets_0002ejsptestApplets_jsp_47.java:95:
Variable '_jspxString' is already defined in this method.
            String _jspxString = null;
                   ^
C:\tomcat\work\localhost_8080%2Fpsip\_0002ftestApplets_0002ejsptestApplets_jsp_47.java:98:
Variable '_jspxNSString' is already defined in this method.
            String [][] _jspxNSString = null;
                        ^
C:\tomcat\work\localhost_8080%2Fpsip\_0002ftestApplets_0002ejsptestApplets_jsp_47.java:99:
Variable 'i' is already defined in this method.
            int i = 0;
                ^
3 errors

	at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
	at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
	at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
	at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
	at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
	at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:156)
	at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
	at java.lang.Thread.run(Thread.java:484)


Mime
View raw message