 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: Problem running Resin 3.1.6 in MyEclipse - missing libraries
Posted: Jul 28, 2008 - 03:48 PM
|
|

Joined: Nov 14, 2006
Posts: 3
|
|
When running my application in MyEclipse 6.5.1 using Resin 3.1.6, I noticed the following exception on some pages:
| Code: |
om.caucho.jsp.JspParseException: javax/xml/ws/WebServiceRef
at com.caucho.jsp.JspCompilerInstance.compile(JspCompilerInstance.java:440)
at com.caucho.jsp.JspManager.compile(JspManager.java:241)
at com.caucho.jsp.JspManager.createPage(JspManager.java:170)
at com.caucho.jsp.JspManager.createPage(JspManager.java:149)
at com.caucho.jsp.PageManager.getPage(PageManager.java:248)
at com.caucho.jsp.PageManager.getPage(PageManager.java:178)
at com.caucho.jsp.PageManager.getPage(PageManager.java:161)
at com.caucho.jsp.QServlet.getSubPage(QServlet.java:295)
at com.caucho.jsp.QServlet.getPage(QServlet.java:210)
at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:238)
at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:145)
at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:283)
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:108)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:142)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:239)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1142)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:879)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:283)
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:108)
at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NoClassDefFoundError: javax/xml/ws/WebServiceRef
at com.caucho.jsp.TagAnalyzer.analyzeByReflection(TagAnalyzer.java:278)
at com.caucho.jsp.TagAnalyzer.analyze(TagAnalyzer.java:101)
at com.caucho.jsp.TagAnalyzer.analyze(TagAnalyzer.java:92)
at com.caucho.jsp.TaglibManager.analyzeTag(TaglibManager.java:135)
at com.caucho.jsp.ParseTagManager.analyzeTag(ParseTagManager.java:72)
at com.caucho.jsp.TagInstance.<init>(TagInstance.java:118)
at com.caucho.jsp.TagInstance.addTag(TagInstance.java:305)
at com.caucho.jsp.java.GenericTag.generatePrologue(GenericTag.java:346)
at com.caucho.jsp.java.JspContainerNode.generatePrologueChildren(JspContainerNode.java:466)
at com.caucho.jsp.java.JspNode.generatePrologue(JspNode.java:687)
at com.caucho.jsp.java.JavaJspGenerator.generatePageHeader(JavaJspGenerator.java:954)
at com.caucho.jsp.java.JavaJspGenerator.generate(JavaJspGenerator.java:733)
at com.caucho.jsp.java.JavaJspGenerator.generate(JavaJspGenerator.java:603)
at com.caucho.jsp.JspCompilerInstance.generate(JspCompilerInstance.java:465)
at com.caucho.jsp.JspCompilerInstance.compile(JspCompilerInstance.java:386)
at com.caucho.jsp.JspManager.compile(JspManager.java:241)
at com.caucho.jsp.JspManager.createPage(JspManager.java:170)
at com.caucho.jsp.JspManager.createPage(JspManager.java:149)
at com.caucho.jsp.PageManager.getPage(PageManager.java:248)
at com.caucho.jsp.PageManager.getPage(PageManager.java:178)
at com.caucho.jsp.PageManager.getPage(PageManager.java:161)
at com.caucho.jsp.QServlet.getSubPage(QServlet.java:295)
at com.caucho.jsp.QServlet.getPage(QServlet.java:210)
at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:238)
at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:145)
at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:283)
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:108)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:142)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:239)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1142)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:879)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
at com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:103)
at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:283)
at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:108)
at org.tuckey.web.filters.urlrewrite.RewrittenUrl.doRewrite(RewrittenUrl.java:176)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:728)
at com.caucho.server.dispatch.FilterFilterChain.doFilter(FilterFilterChain.java:87)
at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187)
at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:266)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:270)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:678)
at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:721)
at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:643)
at java.lang.Thread.run(Thread.java:595)
|
If I look at the launch configuration for Resin 3.x, it is not including some libraries under %RESIN_HOME%/lib, namely:
webbeans-16.jar
ejb-15.jar
hessian.jar
j2ee-management-10.jar
javamail-14.jar
jaxrpc-15.jar
jaxws-api.jar
jsdk-15.jar
jsf-12.jar
jsr88.jar
jws-15.jar
resin-deploy.jar
resin-util.jar
script-10.jar
A workaround is to add these libraries to the classpath in the Path section under Servers->Resin->Resin 3.x->Paths, however I believe they should be automatically added to the classpath. Resin's classpath can be seen by running the server outside of Eclipse with the -verbose flag.
My installation summary
| Code: |
*** Date:
Monday, July 28, 2008 10:46:44 AM EDT
** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.5.0_12
*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.5.1 GA
Build id: 6.5.1-GA-20080715
*** Eclipse details:
MyEclipse Enterprise Workbench
Version: 6.5.1 GA
Build id: 6.5.1-GA-20080715
Eclipse Platform
Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800
Eclipse RCP
Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800
Eclipse Java Development Tools
Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800
Eclipse Plug-in Development Environment
Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800
Eclipse Project SDK
Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
Build id: M20080221-1800
Eclipse Graphical Editing Framework
Version: 3.3.2.v20080129
Build id: 20080221-1602
Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-showsplash
-launcher
C:\dev_software\MyEclipse6.5\eclipse\eclipse.exe
-name
Eclipse
--launcher.library
C:\dev_software\MyEclipse6.5\eclipse\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
-startup
C:\dev_software\MyEclipse6.5\eclipse\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
-exitdata
15b4_60
-clean
-clean
-vm
C:\dev_software\jdk1.5.0_12\bin\javaw.exe
|
|
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Problem running Resin 3.1.6 in MyEclipse - missing libra
Posted: Jul 28, 2008 - 04:38 PM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8013
|
|
| Ideally, these libraries should be present in the lib directory of the server. Since they are not present in this case, you have to add them under the resin connector. |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: Libraries under resin/lib
Posted: Jul 28, 2008 - 06:42 PM
|
|

Joined: Nov 14, 2006
Posts: 3
|
|
| These libraries are present under Resin's lib folder, they don't seem to be in the classpath when the server is started. If I try to create a custom launch configuration and look at the classpath that is setup, these libraries are missing. The plugin for resin 3.x should include them by default. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: Libraries under resin/lib
Posted: Jul 30, 2008 - 05:56 PM
|
|
Registered Member

Joined: Jan 06, 2004
Posts: 23881
|
|
Jeff,
This is a bug and your workaround is exactly the right one for the time being.
Sorry for the inconvenience, I've filed it for our dev team to fix. |
_________________ Riyad
MyEclipse Support
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |