You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jan <vi...@gmx.de> on 2002/08/16 21:06:21 UTC

J2EE needed? UserTransaction not found..

It seems to be that Cocoon uses J2EE (witch I do not have) for it uses javax.transaction.UserTransaction.. is this correct or have I possibly done something wrong during the build process?
The whole trace is included below.
Oh by the way: The link is in a class within the scratchpad, so... maybe this will be solved and is just for the moment?

Cheers,
Jan

java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: javax/transaction/UserTransaction
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
        at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:553)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at org.apache.cocoon.components.repository.impl.SlideRepository.<init>(SlideRepository.java:103)
        at java.lang.Class.newInstance0(Native Method)
        at java.lang.Class.newInstance(Class.java:237)
        at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:102)
        at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
        at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponent(ExcaliburComponentSelector.java:537)
        at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedComponentSelector.java:265)
        at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:185)
        at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize(ThreadSafeComponentHandler.java:98)
        at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(ExcaliburComponentManager.java:158)
        at org.apache.cocoon.Cocoon.initialize(Cocoon.java:275)
        at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1235)
        at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:437)
        at org.apache.tomcat.facade.ServletHandler.doInit(ServletHandler.java:410)
        at org.apache.tomcat.facade.ServletHandler.init(ServletHandler.java:265)
        at org.apache.tomcat.facade.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:136)
        at org.apache.tomcat.core.Context.init(Context.java:537)
        at org.apache.tomcat.core.ContextManager.init(ContextManager.java:531)
        at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTomcat.java:245)
        at org.apache.tomcat.startup.Tomcat.start(Tomcat.java:149)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:92)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.java:87)
        at org.apache.tomcat.startup.Main.execute(Main.java:322)
        at org.apache.tomcat.startup.Main.main(Main.java:189)


Re: J2EE needed? UserTransaction not found..

Posted by Stephan Michels <st...@apache.org>.


On Sun, 18 Aug 2002, Jan wrote:

> > Where do you get this error?
> On startup.

Urgh :-| Can you this more explain?! Tomcat? Version? Version of Cocoon?
Install method? Parameters?



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: J2EE needed? UserTransaction not found..

Posted by Jan <vi...@gmx.de>.
> Where do you get this error?
On startup.


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: J2EE needed? UserTransaction not found..

Posted by Stephan Michels <st...@apache.org>.
On Fri, 16 Aug 2002, Jan wrote:

> It seems to be that Cocoon uses J2EE (witch I do not have) for it uses javax.transaction.UserTransaction.. is this correct or have I possibly done something wrong during the build process?
> The whole trace is included below.
> Oh by the way: The link is in a class within the scratchpad, so... maybe this will be solved and is just for the moment?
>
> Cheers,
> Jan
>
> java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: javax/transaction/UserTransaction


After a look into the J2EE specs, I see that the JTA is part of J2EE. The
Slide Class uses the JTA, and lib can be found at the moment in
src/scratchpad/lib. I think this must be removed in the next time, because
there exists problems with SUN licence and the APACHE licence, I think.

But you shouldn't get a compilation error with the current CVS HEAD.

Where do you get this error?

Stephan.

_______________________________________________________________________
         Stephan Michels               EMail: stephan@apache.org
         ICQ: 115535699                Tel: +49-030-314-21583
----+----|----+----|----+----|----+----|----+----|----+----|----+----|-|



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>