Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
rvauradkar
Post subject: Running Resin 2.0.5 from within MyEclipse [Closed]  PostPosted: Nov 18, 2003 - 03:48 PM
Veteran Member
Veteran Member


Joined: Nov 11, 2003
Posts: 10

When I run Resin 2.0.5 I get the following errors. I fixed the path to include the "bin" of the Resin installation. I am running eclipse 2.0.5 and JDK 1.4.1.
Thanks in Advance
Raj Auradkar

Could not load Logmanager "com.caucho.log.LogManagerImpl"
java.lang.ClassNotFoundException: com.caucho.log.LogManagerImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.util.logging.LogManager.<clinit>(LogManager.java:141)
at java.lang.System.initializeSystemClass(System.java:882)
Resin 2.0.5 (built Fri Jan 11 08:29:05 PST 2002)
Copyright(c) 1998-2001 Caucho Technology. All rights reserved.

Starting Resin on Tue, 18 Nov 2003 09:46:05 -0600 (CST)
http listening to *:8080
srun listening to 127.0.0.1:6802
java.lang.NoClassDefFoundError: javax/transaction/UserTransaction
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:250)
at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:272)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:552)
at com.caucho.server.http.ServletServer.init(ServletServer.java:427)
at com.caucho.server.http.ResinServer.init(ResinServer.java:407)
at com.caucho.server.http.ResinServer.main(ResinServer.java:963)
at com.caucho.server.http.HttpServer.main(HttpServer.java:102)
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
rvauradkar
Post subject:   PostPosted: Nov 18, 2003 - 04:47 PM
Veteran Member
Veteran Member


Joined: Nov 11, 2003
Posts: 10

A correction Please, I am running
Resin 2.0.5
Eclipse 2.1.1
JDK 1.4.1

Thanks,
Raj Auradkar
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Nov 19, 2003 - 04:10 AM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6578

Raj,

Can you please post all the information we request in the 'Posting Guidelines' thread on the support forum? Once we have all that information we'll be able to help you better.

--Scott
MyEclipse Support

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
rvauradkar
Post subject:   PostPosted: Nov 19, 2003 - 03:04 PM
Veteran Member
Veteran Member


Joined: Nov 11, 2003
Posts: 10

Soctt,
Here is the information you asked.

What operating system and version are you running? Microsoft Windows XP Professional
What Eclipse version and build id are you using? (Help > About Eclipse Platform) Version: 2.1.0 Build id: 200303272130
- Was Eclipse freshly installed for MyEclipse? - No
- If not, was it upgraded to its current version using the update manager? - No
- Are any other external plugins installed? - No
- How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.* - 7
What MyEclipse version are you using? (Help > About Eclipse Platform > Features) - 2.6.4
What JDK version are you using to run Eclipse? (java -version) - 1.3.1
What JDK version are you using to launch your application server? - 1.4.1
What steps did you take that resulted in the issue? - Configured Resin 2.0.5 as per instructions including setting the bin direcotry for Resin "paths/add to library path"
What application server are you using? - Resin 2.0.5
Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log) - No

Thanks,
Raj Auradkar
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Nov 19, 2003 - 04:25 PM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6578

Raj,

The problem you're seeing with the log manager exception is caused by running on JDK 1.4.1. I see the same thing with Resin 2.1.11 and JDK 1.4.1. But, Resing seems to work fine, except for this. Changing the JDK used to launch Resin 2 to JDK 1.3.1 gets rid of the exception completely. I have a feeling this interaction problem is caused because Resin 2 was developed for JDK 1.3.1, not for JDK 1.4 and doesn't appear to be 100% 1.4 compatible.

So, to resolve the issue you can run with JDK 1.4.1, to get hotswap debugging, and ignore the exception, or use JDK 1.3.1 to remove the exception, or upgrade to Resin 3.0.

--Scott
MyEclipse Support

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
rvauradkar
Post subject:   PostPosted: Nov 19, 2003 - 09:05 PM
Veteran Member
Veteran Member


Joined: Nov 11, 2003
Posts: 10

Scott,
It fixed the first problem, but not the second. Here is the problem (what jar file do i need?)

Resin 2.0.5 (built Fri Jan 11 08:29:05 PST 2002)
Copyright(c) 1998-2001 Caucho Technology. All rights reserved.

Starting Resin on Wed, 19 Nov 2003 14:59:51 -0600 (CST)
http listening to *:8080
srun listening to 127.0.0.1:6802
java.lang.NoClassDefFoundError: javax/transaction/UserTransaction
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:552)
at com.caucho.server.http.ServletServer.init(ServletServer.java:427)
at com.caucho.server.http.ResinServer.init(ResinServer.java:407)
at com.caucho.server.http.ResinServer.main(ResinServer.java:963)
at com.caucho.server.http.HttpServer.main(HttpServer.java:102)

Thanks,
Raj Auradkar
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-scott
Post subject:   PostPosted: Nov 20, 2003 - 03:44 AM
Moderator
Moderator


Joined: May 06, 2003
Posts: 6578

Raj,

It's in jta_101.jar in the resin lib directory.

--Scott
MyEclipse Support

_________________
--Scott
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
rvauradkar
Post subject:   PostPosted: Nov 21, 2003 - 03:00 PM
Veteran Member
Veteran Member


Joined: Nov 11, 2003
Posts: 10

Scott,
Thanks a lot! I did an explicit include of the JAR and it works. Saves me oodles of time. I am sold on MyEclipse!
Raj Auradkar
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
IronDuck
Post subject: The Real Solution  PostPosted: Apr 22, 2006 - 08:18 PM
Veteran Member
Veteran Member


Joined: Jul 15, 2004
Posts: 44

I know this is an ancient thread, but I recently setup a Resin instance to mirror the configuration of a hosting provider we're looking at. They use Resin 2.1.14 with Java 5.0, and I hit this issue when I first tried to launch Resin. After some digging, I found that you can make it work just fine if you add -Xbootclasspath/p:$RESIN_JARS to the Optional Java VM Arguments. Replace $RESIN_JARS with a colon-separated (or semicolon on windows) list of the paths to all the JARs in the $RESIN_HOME/lib directory. In my case, the argument looks like this:

Code:
-Xbootclasspath/p:/Developer/Applications/resin-2.1.14/lib/dom.jar:/Developer/Applications/resin-2.1.14/lib/jaxp.jar:/Developer/Applications/resin-2.1.14/lib/jdbc-mysql.jar:/Developer/Applications/resin-2.1.14/lib/jdbc2_0-stdext.jar:/Developer/Applications/resin-2.1.14/lib/jmx.jar:/Developer/Applications/resin-2.1.14/lib/jndi.jar:/Developer/Applications/resin-2.1.14/lib/jsdk23.jar:/Developer/Applications/resin-2.1.14/lib/jta_101.jar:/Developer/Applications/resin-2.1.14/lib/resin.jar:/Developer/Applications/resin-2.1.14/lib/sax.jar:/Developer/Applications/resin-2.1.14/lib/webutil.jar


Hope that helps someone, would be nice if the launcher would handle that...
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Apr 23, 2006 - 05:29 PM
Moderator
Moderator


Joined: Jan 06, 2004
Posts: 23347

IronDuck great followup, thank you for taking the time to post it.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits