Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Exception: org.apache.jasper.JasperException: /Result.jsp(10,0)
Exception: org.apache.jasper.JasperException: /Result.jsp(10,0) [message #167722] Thu, 27 April 2006 15:19 Go to next message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
I created a Web Service from a WSDL, then generated cliets for the Web
Service using the WSDL. Running from Eclipse with the clients work fine.
I then wanted to move the clients to the server and access them from
there. I am running on Apache Tomcat 5.5.15.

I copied the 4 jsp files (TestClient, Result, Method, and Input) to the
C:\Program Files\Apache Software Foundation\Tomcat 5.5.15\webapps\ROOT
directory. I then started up the Tomcat server and chose the following
path: http://localhost:8080/TestClient.jsp on IE. The Methods and Input
sections of the client displayed my information fine. However, I received
an error in the Results section of the client.

I would appreciate any help with this. The entire error message that was
returned is as follows:

HTTP Status 500 -

------------------------------------------------------------ --------------------

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: /Result.jsp(10,0) The value for the
useBean class attribute org.tempuri.Library_Support_ServicesSoapProxy is
invalid.
org.apache.jasper.servlet.JspServletWrapper.handleJspExcepti on(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

org.apache.jasper.JasperException: /Result.jsp(10,0) The value for the
useBean class attribute org.tempuri.Library_Support_ServicesSoapProxy is
invalid.
org.apache.jasper.compiler.DefaultErrorHandler.jspError(Defa ultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDis patcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDis patcher.java:146)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(G enerator.java:1174)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:111 6)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java: 2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219 )
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Generator.generate(Generator.java :3304)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.ja va:198)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 5)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 6)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 4)
org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.15 logs.


------------------------------------------------------------ --------------------

Apache Tomcat/5.5.15
Re: Exception: org.apache.jasper.JasperException: /Result.jsp(10,0) [message #167758 is a reply to message #167722] Thu, 27 April 2006 17:35 Go to previous messageGo to next message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
I am not sure if this is part of the issue or not but am still looking for
answers.

This is the first time that I have tried to deploy a JSP, in the past I
have always deployed the service and then wrote seperate clients that ran
locally to access the services. When I deployed the services in the past,
I created JAR files for the services and placed them in the C:\Program
Files\Apache Software Foundation\Tomcat 5.5.15\webapps\axis\WEB-INF\lib
directory and then ran the deploy.wsdd file to deploy the service. The
service then showed up and my clients could access it.

For deploying a JSP:
1) Do I have to package (JAR files) the source code (even if I have not
modified it) that was created when I generated the JSP files? If so,
where do I place the packaged source code?

2) Is there a deployment descriptor file that I also need to run for the
JSP files?

Thanks for the help,
Ben
Re: Exception: org.apache.jasper.JasperException: /Result.jsp(10,0) [message #167765 is a reply to message #167758] Thu, 27 April 2006 18:07 Go to previous messageGo to next message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
I packaged the source code (into a JAR file) that was generated when the
JSP clients were created from the WSDL file. I then placed the source
code in the following directory: C:\Program Files\Apache Software
Foundation\Tomcat 5.5.15\webapps\ROOT\WEB-INF\lib. I stoped and then
restarted the server before running the JSP client again. This time I got
a different message, so I am going to make an assumption that I was
supposed to place the packaged source in the before mentioned directory.
However, I'm not sure why I'm receiving the following error message. As I
stated before, I don't know if I'm supposed to running a deploy.wsdd on
this service. If so, I don't see one created in the web service client
project. I am including the error message that is not received below and
would appreciate again any help that can be provided to help me clear this
up.

HTTP Status 500 -

------------------------------------------------------------ --------------------

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: javax/xml/rpc/ServiceException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :272)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:23 28)
java.lang.Class.getConstructor0(Class.java:2640)
java.lang.Class.getConstructor(Class.java:1629)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(G enerator.java:1164)
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:111 6)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java: 2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219 )
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Generator.generate(Generator.java :3304)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.ja va:198)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:29 5)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:27 6)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:26 4)
org.apache.jasper.JspCompilationContext.compile(JspCompilati onContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServl etWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServl et.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java :264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.15 logs.


------------------------------------------------------------ --------------------

Apache Tomcat/5.5.15

r/
Ben
Re: Exception: org.apache.jasper.JasperException: /Result.jsp(10,0) [message #167773 is a reply to message #167765] Thu, 27 April 2006 18:44 Go to previous messageGo to next message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
OK, I'm making progress, I copied the same (non-web service specific) jar
files that I had placed in the C:\Program Files\Apache Software
Foundation\Tomcat 5.5.15\webapps\axis\WEB-INF\lib diredtory when I
deployed my web service:
xmlsec-1.3.0.jar
wsdl4j-1.5.1.jar
saaj.jar
mysql-connector-java-3.1.8-bin.jar
mailapi.jar
log4j-1.2.8.jar
jaxrpc.jar
commons-logging-1.0.4.jar
commons-discovery-0.2.jar
axis.jar
axis-ant.jar
activation.jar

This solved almost all my problems. I can not call the JSP client using
IE http://localhost:8080/LibraryClient.jsp. Now when my web page comes up
there are no error message. This is GREAT!!!

Then I try to run my service methods and I encounter an error.
(1) I click on one of the methods - the input parameters show up just as
they should.
(2) I fill in the input parameters and hit the "invoke" button. I then
get a short error message in the result area:

exception: (404)/BASS_WebServices/services/Library_Support_ServicesSoap

I want to re-hash some of what I know up to this point:
- I have deployed Web Services before to Axis, run the deploy wsdd and
written Java clients that have accessed those methods without any errors.
- I have used the Eclise Web Services Explorer to run the deployed Web
Services using the WSDL optionn and had no problem
- I have run the JSP clients from Eclipse, chaing the IP address to the
deployed address, and had no problem.

What I think is taking place but cannot verify is that the client JSP
files, which are deployed under root and not axis (within the Tomcat
webapps directory) cannot find the deployed services. I'm not sure if
I'm doing this correctly. I would have hoped that it would have found the
deployed axis services correctly without issue.

So my question:
1) Is the issue that it cannot find the deployed service?

if so;
2) How do I make it see the deployed axis services?
3) If I cannot make it see the deployed axis services then where do I put
the services?

Thanks,
Ben
Re: Exception: org.apache.jasper.JasperException: /Result.jsp(10,0) [message #167781 is a reply to message #167773] Thu, 27 April 2006 18:52 Go to previous message
Ben Sisson is currently offline Ben SissonFriend
Messages: 202
Registered: July 2009
Senior Member
I have the final answer to the puzzle. I needed to go into the
serviceLocator.java file and change the address of the service to the
axis service address. I then restarted the server and the JSP client
worked fine. I hope this helps someone else.

r/
Ben
Previous Topic:high CPU usage on BP
Next Topic:Reload webapp with tomcat
Goto Forum:
  


Current Time: Sat Dec 20 13:53:21 GMT 2014

Powered by FUDForum. Page generated in 0.01700 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software