You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Shanna7463 <sh...@yahoo.com> on 2007/04/03 20:43:15 UTC
servicemix-web-3.2 classpath
I am running Servicemix-web-3.2 on Jonas 4.8.4, and I wrote a simple jsp
(which is located in servicemix-3.2 war file) that calls a method from a jbi
that I deployed using servicemix-web. The jbi methods are located in
JONAS_HOME/data/smx/service-assemblies/, and the servicemix-web war file is
opened in the JONAS_HOME/work/webapps/jonas/single directory.
When I run the jsp I get an error saying:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 9 in the jsp file: /performSearch.jsp
Generated servlet error:
HelloWorld cannot be resolved to a type
at
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
at
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
at
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at
org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(ApplicationContextFilter.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
at
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
at
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
at
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(ResetAuthenticationValve.java:62)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
It seems to me that the jsp is unable to find the neccessary package, thus
its a classloader issue? I'm not sure where to configure the servicemix-web
classpath.
Any suggestions would be greatly appreciated!! Thanks! :)
-- Shanna --
--
View this message in context: http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9823469
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: servicemix-web-3.2 classpath
Posted by Guillaume Nodet <gn...@gmail.com>.
The jsr181 component is a Service Engine.
Currently, you would have to use an http or jms binding components
and send an http or jms message from your own web application.
If you work from inside the apache-servicemix-web, you can also
retrieve a reference to the JBI container and use the client api .
On 4/4/07, Shanna7463 <sh...@yahoo.com> wrote:
>
>
> Could you please elaborate on using a Binding Component to access the JBI?
> Do I need to create my own or can i use the jsr-181 BC? Could you give me
> an example on how I would go about doing this?
>
> Thanks!
>
> -- Shanna --
>
>
> gnodet wrote:
> >
> > There is no way to access classes deployed as JBI artifacts from the
> > container classloader.
> > It would be as if you want to access a jar deployed in a way from the
> web
> > container classloader.
> > You need to use a BC to access the JBI bus, or enhance ServiceMix so
> that
> > the ClientFactory
> > can be correctly registered in a global JNDI tree.
> >
> > On 4/3/07, Shanna7463 <sh...@yahoo.com> wrote:
> >>
> >>
> >> I am using the apache-servicemix-web distribution. The HelloWorld
> class
> >> file
> >> is located under JONAS_HOME/data/smx/service-assemblies (its part of a
> >> sa
> >> that i deployed with apache-servicemix-web, which deployed without any
> >> errors).
> >>
> >> Is there a config file within apache-servicemix-web that I need to add
> a
> >> classpath to?
> >>
> >> Thanks!
> >>
> >> -- Shanna --
> >>
> >>
> >> gnodet wrote:
> >> >
> >> > Are you using the servicemix-web example or the apahce-servicemix-web
> >> > distribution ?
> >> > You must ensure that the HelloWorld class is in the web application.
> >> > I'm not sure what you are trying to achieve or if this class has been
> >> > generated or not, but you need to put it in servicemix-web (if you
> use
> >> > the web app example).
> >> >
> >> > On 4/3/07, Shanna7463 <sh...@yahoo.com> wrote:
> >> >>
> >> >>
> >> >> I am running Servicemix-web-3.2 on Jonas 4.8.4, and I wrote a simple
> >> jsp
> >> >> (which is located in servicemix-3.2 war file) that calls a method
> from
> >> a
> >> >> jbi
> >> >> that I deployed using servicemix-web. The jbi methods are located in
> >> >> JONAS_HOME/data/smx/service-assemblies/, and the servicemix-web war
> >> file
> >> >> is
> >> >> opened in the JONAS_HOME/work/webapps/jonas/single directory.
> >> >>
> >> >> When I run the jsp I get an error saying:
> >> >>
> >> >> org.apache.jasper.JasperException: Unable to compile class for JSP
> >> >>
> >> >> An error occurred at line: 9 in the jsp file: /performSearch.jsp
> >> >> Generated servlet error:
> >> >> HelloWorld cannot be resolved to a type
> >> >>
> >> >>
> >> >> at
> >> >> org.apache.jasper.compiler.DefaultErrorHandler.javacError(
> >> >> DefaultErrorHandler.java:84)
> >> >> at
> >> >> org.apache.jasper.compiler.ErrorDispatcher.javacError(
> >> ErrorDispatcher.java
> >> >> :328)
> >> >> at
> >> >> org.apache.jasper.compiler.JDTCompiler.generateClass(
> JDTCompiler.java
> >> :414)
> >> >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java
> >> :297)
> >> >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java
> >> :276)
> >> >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java
> >> :264)
> >> >> at
> >> >> org.apache.jasper.JspCompilationContext.compile(
> >> JspCompilationContext.java
> >> >> :563)
> >> >> at
> >> >> org.apache.jasper.servlet.JspServletWrapper.service(
> >> JspServletWrapper.java
> >> >> :303)
> >> >> at org.apache.jasper.servlet.JspServlet.serviceJspFile(
> >> >> JspServlet.java:314)
> >> >> at
> >> org.apache.jasper.servlet.JspServlet.service(JspServlet.java
> >> >> :264)
> >> >> at
> >> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >> >> at
> >> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> >> NativeMethodAccessorImpl.java
> >> >> :39)
> >> >> at
> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> >> DelegatingMethodAccessorImpl.java:25)
> >> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> >> at org.apache.catalina.security.SecurityUtil$1.run(
> >> >> SecurityUtil.java:243)
> >> >> at java.security.AccessController.doPrivileged(Native
> Method)
> >> >> at
> >> javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> >> >> at org.apache.catalina.security.SecurityUtil.execute(
> >> >> SecurityUtil.java:275)
> >> >> at
> >> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(
> >> SecurityUtil.java
> >> >> :161)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >> >> ApplicationFilterChain.java:245)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain.access$000(
> >> >> ApplicationFilterChain.java:50)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain$1.run(
> >> >> ApplicationFilterChain.java:156)
> >> >> at java.security.AccessController.doPrivileged(Native
> Method)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >> >> ApplicationFilterChain.java:152)
> >> >> at
> >> >> org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(
> >> >> ApplicationContextFilter.java:81)
> >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >> >> at
> >> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> >> NativeMethodAccessorImpl.java
> >> >> :39)
> >> >> at
> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> >> DelegatingMethodAccessorImpl.java:25)
> >> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> >> at org.apache.catalina.security.SecurityUtil$1.run(
> >> >> SecurityUtil.java:243)
> >> >> at java.security.AccessController.doPrivileged(Native
> Method)
> >> >> at
> >> javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> >> >> at org.apache.catalina.security.SecurityUtil.execute(
> >> >> SecurityUtil.java:275)
> >> >> at
> >> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(
> >> SecurityUtil.java
> >> >> :217)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >> >> ApplicationFilterChain.java:197)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain.access$000(
> >> >> ApplicationFilterChain.java:50)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain$1.run(
> >> >> ApplicationFilterChain.java:156)
> >> >> at java.security.AccessController.doPrivileged(Native
> Method)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >> >> ApplicationFilterChain.java:152)
> >> >> at
> >> >> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(
> >> >> PageFilter.java:118)
> >> >> at
> >> >> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
> >> >> PageFilter.java:52)
> >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >> >> at
> >> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> >> NativeMethodAccessorImpl.java
> >> >> :39)
> >> >> at
> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> >> DelegatingMethodAccessorImpl.java:25)
> >> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> >> at org.apache.catalina.security.SecurityUtil$1.run(
> >> >> SecurityUtil.java:243)
> >> >> at java.security.AccessController.doPrivileged(Native
> Method)
> >> >> at
> >> javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> >> >> at org.apache.catalina.security.SecurityUtil.execute(
> >> >> SecurityUtil.java:275)
> >> >> at
> >> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(
> >> SecurityUtil.java
> >> >> :217)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >> >> ApplicationFilterChain.java:197)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain.access$000(
> >> >> ApplicationFilterChain.java:50)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain$1.run(
> >> >> ApplicationFilterChain.java:156)
> >> >> at java.security.AccessController.doPrivileged(Native
> Method)
> >> >> at
> >> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >> >> ApplicationFilterChain.java:152)
> >> >> at
> >> >> org.apache.catalina.core.StandardWrapperValve.invoke(
> >> >> StandardWrapperValve.java:213)
> >> >> at
> >> >> org.apache.catalina.core.StandardContextValve.invoke(
> >> >> StandardContextValve.java:178)
> >> >> at
> >> >> org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(
> >> >> ResetAuthenticationValve.java:62)
> >> >> at
> >> >> org.apache.catalina.core.StandardHostValve.invoke(
> >> StandardHostValve.java
> >> >> :126)
> >> >> at
> >> >> org.apache.catalina.valves.ErrorReportValve.invoke(
> >> ErrorReportValve.java
> >> >> :105)
> >> >> at
> >> >> org.apache.catalina.core.StandardEngineValve.invoke(
> >> >> StandardEngineValve.java:107)
> >> >> at
> >> >> org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java
> >> >> :148)
> >> >> at
> >> >> org.apache.coyote.http11.Http11Processor.process(
> Http11Processor.java
> >> :869)
> >> >> at
> >> >>
> >> >>
> >>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> >> >> (Http11BaseProtocol.java:664)
> >> >> at
> >> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> >> >> PoolTcpEndpoint.java:527)
> >> >> at
> >> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> >> >> LeaderFollowerWorkerThread.java:80)
> >> >> at
> >> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >> >> ThreadPool.java:684)
> >> >> at java.lang.Thread.run(Thread.java:595)
> >> >>
> >> >> It seems to me that the jsp is unable to find the neccessary
> package,
> >> >> thus
> >> >> its a classloader issue? I'm not sure where to configure the
> >> >> servicemix-web
> >> >> classpath.
> >> >>
> >> >> Any suggestions would be greatly appreciated!! Thanks! :)
> >> >>
> >> >> -- Shanna --
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9823469
> >> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Cheers,
> >> > Guillaume Nodet
> >> > ------------------------
> >> > Architect, LogicBlaze (http://www.logicblaze.com/)
> >> > Blog: http://gnodet.blogspot.com/
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9825554
> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Architect, LogicBlaze (http://www.logicblaze.com/)
> > Blog: http://gnodet.blogspot.com/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9827296
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/
Re: servicemix-web-3.2 classpath
Posted by Shanna7463 <sh...@yahoo.com>.
Could you please elaborate on using a Binding Component to access the JBI?
Do I need to create my own or can i use the jsr-181 BC? Could you give me
an example on how I would go about doing this?
Thanks!
-- Shanna --
gnodet wrote:
>
> There is no way to access classes deployed as JBI artifacts from the
> container classloader.
> It would be as if you want to access a jar deployed in a way from the web
> container classloader.
> You need to use a BC to access the JBI bus, or enhance ServiceMix so that
> the ClientFactory
> can be correctly registered in a global JNDI tree.
>
> On 4/3/07, Shanna7463 <sh...@yahoo.com> wrote:
>>
>>
>> I am using the apache-servicemix-web distribution. The HelloWorld class
>> file
>> is located under JONAS_HOME/data/smx/service-assemblies (its part of a
>> sa
>> that i deployed with apache-servicemix-web, which deployed without any
>> errors).
>>
>> Is there a config file within apache-servicemix-web that I need to add a
>> classpath to?
>>
>> Thanks!
>>
>> -- Shanna --
>>
>>
>> gnodet wrote:
>> >
>> > Are you using the servicemix-web example or the apahce-servicemix-web
>> > distribution ?
>> > You must ensure that the HelloWorld class is in the web application.
>> > I'm not sure what you are trying to achieve or if this class has been
>> > generated or not, but you need to put it in servicemix-web (if you use
>> > the web app example).
>> >
>> > On 4/3/07, Shanna7463 <sh...@yahoo.com> wrote:
>> >>
>> >>
>> >> I am running Servicemix-web-3.2 on Jonas 4.8.4, and I wrote a simple
>> jsp
>> >> (which is located in servicemix-3.2 war file) that calls a method from
>> a
>> >> jbi
>> >> that I deployed using servicemix-web. The jbi methods are located in
>> >> JONAS_HOME/data/smx/service-assemblies/, and the servicemix-web war
>> file
>> >> is
>> >> opened in the JONAS_HOME/work/webapps/jonas/single directory.
>> >>
>> >> When I run the jsp I get an error saying:
>> >>
>> >> org.apache.jasper.JasperException: Unable to compile class for JSP
>> >>
>> >> An error occurred at line: 9 in the jsp file: /performSearch.jsp
>> >> Generated servlet error:
>> >> HelloWorld cannot be resolved to a type
>> >>
>> >>
>> >> at
>> >> org.apache.jasper.compiler.DefaultErrorHandler.javacError(
>> >> DefaultErrorHandler.java:84)
>> >> at
>> >> org.apache.jasper.compiler.ErrorDispatcher.javacError(
>> ErrorDispatcher.java
>> >> :328)
>> >> at
>> >> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java
>> :414)
>> >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java
>> :297)
>> >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java
>> :276)
>> >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java
>> :264)
>> >> at
>> >> org.apache.jasper.JspCompilationContext.compile(
>> JspCompilationContext.java
>> >> :563)
>> >> at
>> >> org.apache.jasper.servlet.JspServletWrapper.service(
>> JspServletWrapper.java
>> >> :303)
>> >> at org.apache.jasper.servlet.JspServlet.serviceJspFile(
>> >> JspServlet.java:314)
>> >> at
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java
>> >> :264)
>> >> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >> at
>> >> sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java
>> >> :39)
>> >> at
>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> >> DelegatingMethodAccessorImpl.java:25)
>> >> at java.lang.reflect.Method.invoke(Method.java:585)
>> >> at org.apache.catalina.security.SecurityUtil$1.run(
>> >> SecurityUtil.java:243)
>> >> at java.security.AccessController.doPrivileged(Native Method)
>> >> at
>> javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>> >> at org.apache.catalina.security.SecurityUtil.execute(
>> >> SecurityUtil.java:275)
>> >> at
>> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(
>> SecurityUtil.java
>> >> :161)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> >> ApplicationFilterChain.java:245)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain.access$000(
>> >> ApplicationFilterChain.java:50)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain$1.run(
>> >> ApplicationFilterChain.java:156)
>> >> at java.security.AccessController.doPrivileged(Native Method)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> >> ApplicationFilterChain.java:152)
>> >> at
>> >> org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(
>> >> ApplicationContextFilter.java:81)
>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >> at
>> >> sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java
>> >> :39)
>> >> at
>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> >> DelegatingMethodAccessorImpl.java:25)
>> >> at java.lang.reflect.Method.invoke(Method.java:585)
>> >> at org.apache.catalina.security.SecurityUtil$1.run(
>> >> SecurityUtil.java:243)
>> >> at java.security.AccessController.doPrivileged(Native Method)
>> >> at
>> javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>> >> at org.apache.catalina.security.SecurityUtil.execute(
>> >> SecurityUtil.java:275)
>> >> at
>> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(
>> SecurityUtil.java
>> >> :217)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> >> ApplicationFilterChain.java:197)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain.access$000(
>> >> ApplicationFilterChain.java:50)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain$1.run(
>> >> ApplicationFilterChain.java:156)
>> >> at java.security.AccessController.doPrivileged(Native Method)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> >> ApplicationFilterChain.java:152)
>> >> at
>> >> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(
>> >> PageFilter.java:118)
>> >> at
>> >> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
>> >> PageFilter.java:52)
>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >> at
>> >> sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java
>> >> :39)
>> >> at
>> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> >> DelegatingMethodAccessorImpl.java:25)
>> >> at java.lang.reflect.Method.invoke(Method.java:585)
>> >> at org.apache.catalina.security.SecurityUtil$1.run(
>> >> SecurityUtil.java:243)
>> >> at java.security.AccessController.doPrivileged(Native Method)
>> >> at
>> javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>> >> at org.apache.catalina.security.SecurityUtil.execute(
>> >> SecurityUtil.java:275)
>> >> at
>> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(
>> SecurityUtil.java
>> >> :217)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> >> ApplicationFilterChain.java:197)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain.access$000(
>> >> ApplicationFilterChain.java:50)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain$1.run(
>> >> ApplicationFilterChain.java:156)
>> >> at java.security.AccessController.doPrivileged(Native Method)
>> >> at
>> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> >> ApplicationFilterChain.java:152)
>> >> at
>> >> org.apache.catalina.core.StandardWrapperValve.invoke(
>> >> StandardWrapperValve.java:213)
>> >> at
>> >> org.apache.catalina.core.StandardContextValve.invoke(
>> >> StandardContextValve.java:178)
>> >> at
>> >> org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(
>> >> ResetAuthenticationValve.java:62)
>> >> at
>> >> org.apache.catalina.core.StandardHostValve.invoke(
>> StandardHostValve.java
>> >> :126)
>> >> at
>> >> org.apache.catalina.valves.ErrorReportValve.invoke(
>> ErrorReportValve.java
>> >> :105)
>> >> at
>> >> org.apache.catalina.core.StandardEngineValve.invoke(
>> >> StandardEngineValve.java:107)
>> >> at
>> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
>> >> :148)
>> >> at
>> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
>> :869)
>> >> at
>> >>
>> >>
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
>> >> (Http11BaseProtocol.java:664)
>> >> at
>> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
>> >> PoolTcpEndpoint.java:527)
>> >> at
>> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
>> >> LeaderFollowerWorkerThread.java:80)
>> >> at
>> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
>> >> ThreadPool.java:684)
>> >> at java.lang.Thread.run(Thread.java:595)
>> >>
>> >> It seems to me that the jsp is unable to find the neccessary package,
>> >> thus
>> >> its a classloader issue? I'm not sure where to configure the
>> >> servicemix-web
>> >> classpath.
>> >>
>> >> Any suggestions would be greatly appreciated!! Thanks! :)
>> >>
>> >> -- Shanna --
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9823469
>> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>> > --
>> > Cheers,
>> > Guillaume Nodet
>> > ------------------------
>> > Architect, LogicBlaze (http://www.logicblaze.com/)
>> > Blog: http://gnodet.blogspot.com/
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9825554
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Architect, LogicBlaze (http://www.logicblaze.com/)
> Blog: http://gnodet.blogspot.com/
>
>
--
View this message in context: http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9827296
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: servicemix-web-3.2 classpath
Posted by Guillaume Nodet <gn...@gmail.com>.
There is no way to access classes deployed as JBI artifacts from the
container classloader.
It would be as if you want to access a jar deployed in a way from the web
container classloader.
You need to use a BC to access the JBI bus, or enhance ServiceMix so that
the ClientFactory
can be correctly registered in a global JNDI tree.
On 4/3/07, Shanna7463 <sh...@yahoo.com> wrote:
>
>
> I am using the apache-servicemix-web distribution. The HelloWorld class
> file
> is located under JONAS_HOME/data/smx/service-assemblies (its part of a sa
> that i deployed with apache-servicemix-web, which deployed without any
> errors).
>
> Is there a config file within apache-servicemix-web that I need to add a
> classpath to?
>
> Thanks!
>
> -- Shanna --
>
>
> gnodet wrote:
> >
> > Are you using the servicemix-web example or the apahce-servicemix-web
> > distribution ?
> > You must ensure that the HelloWorld class is in the web application.
> > I'm not sure what you are trying to achieve or if this class has been
> > generated or not, but you need to put it in servicemix-web (if you use
> > the web app example).
> >
> > On 4/3/07, Shanna7463 <sh...@yahoo.com> wrote:
> >>
> >>
> >> I am running Servicemix-web-3.2 on Jonas 4.8.4, and I wrote a simple
> jsp
> >> (which is located in servicemix-3.2 war file) that calls a method from
> a
> >> jbi
> >> that I deployed using servicemix-web. The jbi methods are located in
> >> JONAS_HOME/data/smx/service-assemblies/, and the servicemix-web war
> file
> >> is
> >> opened in the JONAS_HOME/work/webapps/jonas/single directory.
> >>
> >> When I run the jsp I get an error saying:
> >>
> >> org.apache.jasper.JasperException: Unable to compile class for JSP
> >>
> >> An error occurred at line: 9 in the jsp file: /performSearch.jsp
> >> Generated servlet error:
> >> HelloWorld cannot be resolved to a type
> >>
> >>
> >> at
> >> org.apache.jasper.compiler.DefaultErrorHandler.javacError(
> >> DefaultErrorHandler.java:84)
> >> at
> >> org.apache.jasper.compiler.ErrorDispatcher.javacError(
> ErrorDispatcher.java
> >> :328)
> >> at
> >> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java
> :414)
> >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java
> :297)
> >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java
> :276)
> >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java
> :264)
> >> at
> >> org.apache.jasper.JspCompilationContext.compile(
> JspCompilationContext.java
> >> :563)
> >> at
> >> org.apache.jasper.servlet.JspServletWrapper.service(
> JspServletWrapper.java
> >> :303)
> >> at org.apache.jasper.servlet.JspServlet.serviceJspFile(
> >> JspServlet.java:314)
> >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java
> >> :264)
> >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java
> >> :39)
> >> at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> DelegatingMethodAccessorImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> at org.apache.catalina.security.SecurityUtil$1.run(
> >> SecurityUtil.java:243)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> >> at org.apache.catalina.security.SecurityUtil.execute(
> >> SecurityUtil.java:275)
> >> at
> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(
> SecurityUtil.java
> >> :161)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >> ApplicationFilterChain.java:245)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.access$000(
> >> ApplicationFilterChain.java:50)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain$1.run(
> >> ApplicationFilterChain.java:156)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >> ApplicationFilterChain.java:152)
> >> at
> >> org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(
> >> ApplicationContextFilter.java:81)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java
> >> :39)
> >> at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> DelegatingMethodAccessorImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> at org.apache.catalina.security.SecurityUtil$1.run(
> >> SecurityUtil.java:243)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> >> at org.apache.catalina.security.SecurityUtil.execute(
> >> SecurityUtil.java:275)
> >> at
> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(
> SecurityUtil.java
> >> :217)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >> ApplicationFilterChain.java:197)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.access$000(
> >> ApplicationFilterChain.java:50)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain$1.run(
> >> ApplicationFilterChain.java:156)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >> ApplicationFilterChain.java:152)
> >> at
> >> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(
> >> PageFilter.java:118)
> >> at
> >> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
> >> PageFilter.java:52)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java
> >> :39)
> >> at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> DelegatingMethodAccessorImpl.java:25)
> >> at java.lang.reflect.Method.invoke(Method.java:585)
> >> at org.apache.catalina.security.SecurityUtil$1.run(
> >> SecurityUtil.java:243)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> >> at org.apache.catalina.security.SecurityUtil.execute(
> >> SecurityUtil.java:275)
> >> at
> >> org.apache.catalina.security.SecurityUtil.doAsPrivilege(
> SecurityUtil.java
> >> :217)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> >> ApplicationFilterChain.java:197)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.access$000(
> >> ApplicationFilterChain.java:50)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain$1.run(
> >> ApplicationFilterChain.java:156)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at
> >> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> >> ApplicationFilterChain.java:152)
> >> at
> >> org.apache.catalina.core.StandardWrapperValve.invoke(
> >> StandardWrapperValve.java:213)
> >> at
> >> org.apache.catalina.core.StandardContextValve.invoke(
> >> StandardContextValve.java:178)
> >> at
> >> org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(
> >> ResetAuthenticationValve.java:62)
> >> at
> >> org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java
> >> :126)
> >> at
> >> org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java
> >> :105)
> >> at
> >> org.apache.catalina.core.StandardEngineValve.invoke(
> >> StandardEngineValve.java:107)
> >> at
> >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> >> :148)
> >> at
> >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :869)
> >> at
> >>
> >>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> >> (Http11BaseProtocol.java:664)
> >> at
> >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> >> PoolTcpEndpoint.java:527)
> >> at
> >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> >> LeaderFollowerWorkerThread.java:80)
> >> at
> >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> >> ThreadPool.java:684)
> >> at java.lang.Thread.run(Thread.java:595)
> >>
> >> It seems to me that the jsp is unable to find the neccessary package,
> >> thus
> >> its a classloader issue? I'm not sure where to configure the
> >> servicemix-web
> >> classpath.
> >>
> >> Any suggestions would be greatly appreciated!! Thanks! :)
> >>
> >> -- Shanna --
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9823469
> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > --
> > Cheers,
> > Guillaume Nodet
> > ------------------------
> > Architect, LogicBlaze (http://www.logicblaze.com/)
> > Blog: http://gnodet.blogspot.com/
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9825554
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/
Re: servicemix-web-3.2 classpath
Posted by Shanna7463 <sh...@yahoo.com>.
I am using the apache-servicemix-web distribution. The HelloWorld class file
is located under JONAS_HOME/data/smx/service-assemblies (its part of a sa
that i deployed with apache-servicemix-web, which deployed without any
errors).
Is there a config file within apache-servicemix-web that I need to add a
classpath to?
Thanks!
-- Shanna --
gnodet wrote:
>
> Are you using the servicemix-web example or the apahce-servicemix-web
> distribution ?
> You must ensure that the HelloWorld class is in the web application.
> I'm not sure what you are trying to achieve or if this class has been
> generated or not, but you need to put it in servicemix-web (if you use
> the web app example).
>
> On 4/3/07, Shanna7463 <sh...@yahoo.com> wrote:
>>
>>
>> I am running Servicemix-web-3.2 on Jonas 4.8.4, and I wrote a simple jsp
>> (which is located in servicemix-3.2 war file) that calls a method from a
>> jbi
>> that I deployed using servicemix-web. The jbi methods are located in
>> JONAS_HOME/data/smx/service-assemblies/, and the servicemix-web war file
>> is
>> opened in the JONAS_HOME/work/webapps/jonas/single directory.
>>
>> When I run the jsp I get an error saying:
>>
>> org.apache.jasper.JasperException: Unable to compile class for JSP
>>
>> An error occurred at line: 9 in the jsp file: /performSearch.jsp
>> Generated servlet error:
>> HelloWorld cannot be resolved to a type
>>
>>
>> at
>> org.apache.jasper.compiler.DefaultErrorHandler.javacError(
>> DefaultErrorHandler.java:84)
>> at
>> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java
>> :328)
>> at
>> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
>> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
>> at
>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
>> :563)
>> at
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
>> :303)
>> at org.apache.jasper.servlet.JspServlet.serviceJspFile(
>> JspServlet.java:314)
>> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java
>> :264)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
>> :39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.apache.catalina.security.SecurityUtil$1.run(
>> SecurityUtil.java:243)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>> at org.apache.catalina.security.SecurityUtil.execute(
>> SecurityUtil.java:275)
>> at
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java
>> :161)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:245)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.access$000(
>> ApplicationFilterChain.java:50)
>> at
>> org.apache.catalina.core.ApplicationFilterChain$1.run(
>> ApplicationFilterChain.java:156)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:152)
>> at
>> org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(
>> ApplicationContextFilter.java:81)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
>> :39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.apache.catalina.security.SecurityUtil$1.run(
>> SecurityUtil.java:243)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>> at org.apache.catalina.security.SecurityUtil.execute(
>> SecurityUtil.java:275)
>> at
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java
>> :217)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:197)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.access$000(
>> ApplicationFilterChain.java:50)
>> at
>> org.apache.catalina.core.ApplicationFilterChain$1.run(
>> ApplicationFilterChain.java:156)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:152)
>> at
>> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(
>> PageFilter.java:118)
>> at
>> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
>> PageFilter.java:52)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
>> :39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:585)
>> at org.apache.catalina.security.SecurityUtil$1.run(
>> SecurityUtil.java:243)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
>> at org.apache.catalina.security.SecurityUtil.execute(
>> SecurityUtil.java:275)
>> at
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java
>> :217)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>> ApplicationFilterChain.java:197)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.access$000(
>> ApplicationFilterChain.java:50)
>> at
>> org.apache.catalina.core.ApplicationFilterChain$1.run(
>> ApplicationFilterChain.java:156)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(
>> ApplicationFilterChain.java:152)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(
>> StandardWrapperValve.java:213)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(
>> StandardContextValve.java:178)
>> at
>> org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(
>> ResetAuthenticationValve.java:62)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
>> :126)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
>> :105)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(
>> StandardEngineValve.java:107)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
>> :148)
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>> at
>>
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
>> (Http11BaseProtocol.java:664)
>> at
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
>> PoolTcpEndpoint.java:527)
>> at
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
>> LeaderFollowerWorkerThread.java:80)
>> at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
>> ThreadPool.java:684)
>> at java.lang.Thread.run(Thread.java:595)
>>
>> It seems to me that the jsp is unable to find the neccessary package,
>> thus
>> its a classloader issue? I'm not sure where to configure the
>> servicemix-web
>> classpath.
>>
>> Any suggestions would be greatly appreciated!! Thanks! :)
>>
>> -- Shanna --
>> --
>> View this message in context:
>> http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9823469
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Architect, LogicBlaze (http://www.logicblaze.com/)
> Blog: http://gnodet.blogspot.com/
>
>
--
View this message in context: http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9825554
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: servicemix-web-3.2 classpath
Posted by Guillaume Nodet <gn...@gmail.com>.
Are you using the servicemix-web example or the apahce-servicemix-web
distribution ?
You must ensure that the HelloWorld class is in the web application.
I'm not sure what you are trying to achieve or if this class has been
generated or not, but you need to put it in servicemix-web (if you use
the web app example).
On 4/3/07, Shanna7463 <sh...@yahoo.com> wrote:
>
>
> I am running Servicemix-web-3.2 on Jonas 4.8.4, and I wrote a simple jsp
> (which is located in servicemix-3.2 war file) that calls a method from a
> jbi
> that I deployed using servicemix-web. The jbi methods are located in
> JONAS_HOME/data/smx/service-assemblies/, and the servicemix-web war file
> is
> opened in the JONAS_HOME/work/webapps/jonas/single directory.
>
> When I run the jsp I get an error saying:
>
> org.apache.jasper.JasperException: Unable to compile class for JSP
>
> An error occurred at line: 9 in the jsp file: /performSearch.jsp
> Generated servlet error:
> HelloWorld cannot be resolved to a type
>
>
> at
> org.apache.jasper.compiler.DefaultErrorHandler.javacError(
> DefaultErrorHandler.java:84)
> at
> org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java
> :328)
> at
> org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:414)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
> at
> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
> :563)
> at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
> :303)
> at org.apache.jasper.servlet.JspServlet.serviceJspFile(
> JspServlet.java:314)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java
> :264)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.catalina.security.SecurityUtil$1.run(
> SecurityUtil.java:243)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> at org.apache.catalina.security.SecurityUtil.execute(
> SecurityUtil.java:275)
> at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java
> :161)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:245)
> at
> org.apache.catalina.core.ApplicationFilterChain.access$000(
> ApplicationFilterChain.java:50)
> at
> org.apache.catalina.core.ApplicationFilterChain$1.run(
> ApplicationFilterChain.java:156)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:152)
> at
> org.apache.servicemix.web.filter.ApplicationContextFilter.doFilter(
> ApplicationContextFilter.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.catalina.security.SecurityUtil$1.run(
> SecurityUtil.java:243)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> at org.apache.catalina.security.SecurityUtil.execute(
> SecurityUtil.java:275)
> at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java
> :217)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:197)
> at
> org.apache.catalina.core.ApplicationFilterChain.access$000(
> ApplicationFilterChain.java:50)
> at
> org.apache.catalina.core.ApplicationFilterChain$1.run(
> ApplicationFilterChain.java:156)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:152)
> at
> com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(
> PageFilter.java:118)
> at
> com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(
> PageFilter.java:52)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> :39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.apache.catalina.security.SecurityUtil$1.run(
> SecurityUtil.java:243)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
> at org.apache.catalina.security.SecurityUtil.execute(
> SecurityUtil.java:275)
> at
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java
> :217)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:197)
> at
> org.apache.catalina.core.ApplicationFilterChain.access$000(
> ApplicationFilterChain.java:50)
> at
> org.apache.catalina.core.ApplicationFilterChain$1.run(
> ApplicationFilterChain.java:156)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:152)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:213)
> at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:178)
> at
> org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(
> ResetAuthenticationValve.java:62)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
> :126)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
> :105)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:107)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :148)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> at
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
> at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> PoolTcpEndpoint.java:527)
> at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> LeaderFollowerWorkerThread.java:80)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:684)
> at java.lang.Thread.run(Thread.java:595)
>
> It seems to me that the jsp is unable to find the neccessary package, thus
> its a classloader issue? I'm not sure where to configure the
> servicemix-web
> classpath.
>
> Any suggestions would be greatly appreciated!! Thanks! :)
>
> -- Shanna --
> --
> View this message in context:
> http://www.nabble.com/servicemix-web-3.2-classpath-tf3521447s12049.html#a9823469
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/