Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
|
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 18th, 2006, 11:06 PM
Registered User
 
Join Date: Jul 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in running jsp

hi all
we r running jsp in pocket pc using wistone server
 given exception

Status Code:500

Exception: Unable to compile class for JSP Generated servlet error:
java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError:
java.lang.J9VMInternals.verifyImpl(native Method)at
java.lang.J9VMInternals.verify(Unknown Source)at
java.lang.J9VMinternals.initialize(unknown source)at
com.sun.tools.javac.v8.Main.complie(Unknown source)at
com.sun.tools.javac.Main.compile(unknown source)at
java.lang.reflect.AccessibleObject.invokeI(unknown source)at
java.lang.reflect.Method.invoke(unknown source)at
org.apache.tools.ant.taskdefs.compilers.Javac13.ex ecute(unknown source)at
org.apache.tools.ant.taskdefs.Javac.compile(unknow n source)at
org.apache.tools.ant.taskdefs.Javac.execute(unknow n source)at
org.apache.jasper.compiler.Compiler.generteClass(u nknown source)at
org.apache.jasper.compiler.Compiler.compile(unknow n source)at
org.apache.jasper.compiler.Compiler.compile(unknow n source)at
org.apache.jasper.compiler.Compiler.compile(unknow n source)at
org.apache.jasper.JspCompilationContext.Compile(un known source)at
org.apache.jasper.servlet.JspServletWrapper.servic e(unknown source)at
org.apache.jasper.servlet.JspServlet.serviceJspFil e(unknown source)at
org.apache.jasper.servlet.JspServlet.service(unkno wn source)at
javax.servlet.http.HttpServlet.service(unknown source)at
winstone.servletConfiguration.execute(unknown source)at
winstone.RequestDispatcher.forward(unknown source)at
winstone.RequestHandlerThread.process(unknown source)at
winstone.RequestHandlerThread.run(unknown source)at
java.lang.Thread.run(unknown source)
Gernerated Servlet error:[Error]
Compiler-Ev:Compile:javaFileName=/TEMP/winstone.tmp/default/webapp//org/apache/jsp\index_jsp.java
classpath=\itanyplace\sampleshealthclient.war\WEB-INF\classes/;\TEMP\winstone.temp\default\webapp;\itanyplace\sa mples\healthclient.war\WEB-INFclasses;\itanyplace\lib\tools.jar;
\itanyplace\lib\common-io-1.1.jar;
\itanyplace\lib\commons-logging.jar;
\itanyplace\lib\jsp-api.jar;
\itanyplace\lib\servlet-api.jar;
\itanyplace\lib\axis.jar;
\itanyplace\lib\runtime.jar;
\itanyplace\lib\db40-java1.2.jar;
\itanyplace\lib\commoms-logging-api.jar;
\itanyplace\lib\commons-el.jar;
\itanyplace\lib\ant.jar;
\itanyplace\lib\jasper-runtime.jar;
\itanyplace\lib\jasper-compiler.jar;
cp=\itanyplace\winstone-0.8.1.jar;
cp=\itanyplace\samples\healthclient.war\WEB-INF\classes cp=\TEMP\winstone.temp\default\webapp cp=\itanyplace\samples\healthclient.war\WEB-INF\classes cp=\itanyplace\lib\tools.jar cp=\itanyplace\lib\commons-io-1.1.jar cp=\itanyplace\lib\commons-logging.jar
cp=\itanyplace\lib\jsp-api.jar
cp=\itanyplace\lib\servlet-api.jar
cp=\itanyplace\lib\axis.jar
cp=\itanyplace\lib\runtime.jar
cp=\itanyplace\lib\db40-5.0-java1.2.jar
cp=\itanyplace\lib\commons-logging-api.jar
cp=\itanyplace\lib\common-ej.jar

cp=\itanyplace\lib\ant.jar
cp=\itanyplace\lib\jasper-runtime.jar
cp=\itanyplace\lib\jasper-compiler.jar


work dir=\TEMP\winstone.tmp\default\webapp extension dir=\j9\PPRO10\lib\ext
srcDir=\TEMP\winstone.tmp\default\webapp include=org/apache/jsp/index_jsp.java

Stacktrace:

org.apache.jasper.JasperException:
Unable to compile class for jsp

Generated servlet error:
java.lang.reflect.InvocationTargetException:

java.lang.NoClassDefFoundError:
java.lang.AssertionError
at
java.lang.J9VMInternals.verifyImpl(Native Method)

at
java.lang.J9VMInternals.verify(Unknown Source)
at
java.lang.J9VMInternals.initialize(Unknown Source)
at
com.sun.tools.javac.v8.Main.compile(Unknown Source)
com.sun.tools.javac.Main.compile(Unknown Source)

java.lang.reflect.AccessibleObject.invoke(Unknown Source)
at
java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.tools.ant.taskdefs.compilers.Java13.exe cute(Unknown Source)
at
org.apache.tools.ant.taskdefs.javac.compile(Unknow n Source)
at
org.apache.tools.ant.taskdefs.javac.execute(Unknow n Source)
at
org.apache.jasper.compiler.Compiler.generateClass( Unknown source)

at
org.apache.jasper.compiler.Compiler.compile(Unknow n source)

at
org.apache.jasper.compiler.Compiler.compile(Unknow n source)

at
org.apache.jasper.compiler.Compiler.compile(Unknow n source)

at
org.apache.jasper.compiler.Compiler.compile(Unknow n source)

at
org.apache.jasper.compiler.Compiler.compile(Unknow n source)

at
org.apache.jasper.JspCompilationContext.Compile(Un known source)

at
org.apache.jasper.servlet.JspServletWrapper.servic e(Unknown source)

at
org.apache.jasper.servlet.JspServletr.serviceJspFi le(Unknown source)

at

org.apache.jasper.servlet.JspServletr.service(Unkn own source)

at
javax.Servlet.http.HttpServlet.service(Unknown source)

at
winstone.ServletConfiguration.execute(Unknown source)

at
winstone.RequestDispatcher.forward(Unknown source)

at
winstone.RequestHandlerThrad.processRequest(Unknow n source)

at
winstone.RequesthandlerThrad.run(Unknown source)

java.lang.thread.run(Unknown source)

Generated servlet error:
[ERROR] Complier - Env:
Compile: javaFileName=/TEMP/winstone.tmp/default/webapp//org/apache/jsp\index_jsp.java

   classpath=\itanyplace\samples\healthclient.war\WEB-INF\classes/;\TEMP\winstone.tmp\default\webapp;
\itanyplace\samples\healthclient.war\WEB-INF\classes;
\TEMP\winstone.tmp\default\webapp;
\itanyplace\samples\healthclient.war\WEB-INF\classes;
\itanyplace\lib\tools.jar;
\itanyplace\lib\tools.jar;
\itanyplace\lib\tools.jar;
\itanyplace\lib\commons-io-1.1.jar; \itanyplace\lib\commons-logging.jar;
\itanyplace\lib\jsp-api.jar;
\itanyplace\lib\servlet-api.jar;
\itanyplace\lib\axis.jar;
\itanyplace\lib\runtime.jar;
\itanyplace\lib\db40-5.0-java1.2.jar;
\itanyplace\lib\commons-logging-api.jar;
\itanyplace\lib\common-ej.jar;

\itanyplace\lib\ant.jar;
\itanyplace\lib\jasper-runtime.jar;
\itanyplace\lib\jasper-compiler.jar;

cp=\itanyplace\winstone-0.8.1.jar

cp=\itanyplace\healthclient.war\WEB-INF\classes
cp=\itanyplace\default\webapp

cp=\itanyplace\healthclient.war\WEB-INF\classes

cp=\itanyplace\lib\tools.jar
cp=\itanyplace\lib\commons-io-1.1.jar cp=\itanyplace\lib\commons-logging.jar
cp=\itanyplace\lib\jsp-api.jar
cp=\itanyplace\lib\servlet-api.jar
cp=\itanyplace\lib\axis.jar
cp=\itanyplace\lib\runtime.jar
cp=\itanyplace\lib\db40-5.0-java1.2.jar
cp=\itanyplace\lib\commons-logging-api.jar
cp=\itanyplace\lib\common-ej.jar

cp=\itanyplace\lib\ant.jar
cp=\itanyplace\lib\jasper-runtime.jar
cp=\itanyplace\lib\jasper-compiler.jar

work dir=\TEMP\winstone.tmp\default\webapp extension dir=\j9\PPRO10\lib\ext

srcDir=\TEMP\winstone.tmp\default\webapp
  include=org/apache/jsp/index_jsp.java


at
org.apache.jasper.compiler.DefaultErrorHandler.jav acError(Unknown source)

at
org.apache.jasper.compiler.ErrorDispatcher.javacEr ror(Unknown source)
at
org.apache.jasper.compiler.Compiler.generateClass( Unknown source)

at
org.apache.jasper.compiler.Compiler.compile(Unknow n source)

at
org.apache.jasper.compiler.Compiler.compile(Unknow n source)

at
org.apache.jasper.compiler.Compiler.compile(Unknow n source)

at
org.apache.jasper.compiler.Compiler.compile(Unknow n source)

at
org.apache.jasper.compiler.Compiler.compile(Unknow n source)

at
org.apache.jasper.JspCompilationContext.Compile(Un known source)

at
org.apache.jasper.servlet.JspServletWrapper.servic e(Unknown source)

at
org.apache.jasper.servlet.JspServletr.serviceJspFi le(Unknown source)

at

org.apache.jasper.servlet.JspServletr.service(Unkn own source)

at
javax.Servlet.http.HttpServlet.service(Unknown source)

at
winstone.ServletConfiguration.execute(Unknown source)

at
winstone.RequestDispatcher.forward(Unknown source)

at
winstone.RequestHandlerThrad.processRequest(Unknow n source)

at
winstone.RequesthandlerThrad.run(Unknown source)

java.lang.thread.run(Unknown source)





rakeshtripahti
 
Old July 19th, 2006, 05:47 PM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It seems like you're accessing a bean attribute that's not available. Have you ever gotten the JSP to compile? If so, what changes have you made since then? Is your JSP small enough that you can paste it here?

Also, thank you for the very long stack trace -- but are there other error messages in the logs about JSP syntax errors?

Jon Emerson
http://blogs.adobe.com/jon.emerson/
 
Old July 23rd, 2006, 02:53 AM
Registered User
 
Join Date: Jul 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by panacea
 It seems like you're accessing a bean attribute that's not available. Have you ever gotten the JSP to compile? If so, what changes have you made since then? Is your JSP small enough that you can paste it here?

Also, thank you for the very long stack trace -- but are there other error messages in the logs about JSP syntax errors?

Jon Emerson
http://blogs.adobe.com/jon.emerson/
rakeshtripahti
 
Old July 23rd, 2006, 02:57 AM
Registered User
 
Join Date: Jul 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi we solve this problem.....change.. jasper runtime and jasper compiler....

but we r fecing new problem winstone server run one time then stop..
create servlet file and class file.........

but we dont why stop winstone server......

any how plz help me


rakeshtripahti





Similar Threads
Thread Thread Starter Forum Replies Last Post
JSP FILE IS NOT RUNNING asif2979 JSP Basics 1 May 30th, 2008 09:34 AM
Problem running a JSP arzamendip Pro JSP 0 September 11th, 2006 03:48 PM
running jsp from WAR files samarthvn JSP Basics 3 April 2nd, 2006 09:59 PM
Running JSP in Tomcat. javamaniac JSP Basics 6 December 17th, 2005 08:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.