----- Original Message -----
From: "Tommy Pham" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Sunday, August 17, 2008 11:50 PM
Subject: Tomcat 6.0.18 & JavaEE 5/EJB3.0
Hi,
I'm trying to develop a web app using JDK1.6 and Tomcat 6.0.18 and JPA.
When creating a new web app in Netbeans 6.1, I chose the Java EE 5
version. Then I proceed to create Entity Classes from Databases which
were successful. If I try to create JSF pages from Entity Classes, I get:
The class javax.transaction.UserTransaction is unavailable. Add an
appropriate jar file ...
After adding javaee.jar from Glassfish v2 into my web app and deployed the
web app, I got this error:
INFO: Illegal access: this web application instance has been stopped
already. Could not load java.lang.Object. The eventual following stack
trace is caused by an error thrown for debugging purposes as well as to
attempt to terminate the thread which caused the illegal access, and has
no functional impact.
java.lang.IllegalStateException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1273)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
I think it's because of the javaee.jar causing conflict with tomcat's jar
files.
I know that Tomcat is only a web container but is there a way I can
implement JavaEE5/EJB3.0 for full Persistence support without having to
switch to Geronimo 2.x or Glassfish v2/v3? (I think this is a stupid
question but I just want to know my options :) I rather not switch to
Glassfish if I don't have to because of default directory browsing
Glassfish has :D
Thanks,
Tommy
Tommy if you havnt already... have a look at Visual Web Pages... it has the
dB wizards and it works with TC.
Doesnt use JPA, it uses Cached Rowsets to persist... which are actually
easier to understand, I think ;)
... nothing stopping you from making a lib that uses JPA, and then using
that in TC, but you not going to get the dB wizards to work with the web...
Visual Web Pages is the JSF technology... I didnt even know Sun had got JPA
and WEB wizards working yet ;)
Anyway... TC and JSF are friendly... via VWP... if you wont to give that a
spin on NB
Make a web project... select VWP... choose TC as the server... maybe ;)
---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]