tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veggen <the_name_i_chose_fi...@yahoo.com>
Subject Bean deployment on Tomcat error
Date Sun, 04 May 2008 11:32:50 GMT

I'm using Tomcat 6.0.16 with OpenEJB 3.0-bet2 on WinXP and jdk 1.6_03.
I dropped openejb.war into tomcat/webapps, ran the installer, restarted
Tomcat. It tells me the listener is not installed, but I do see it's entry
in server.xml.
I made a very simple session bean (code below), packed it into a .war and
uploaded it through the tomcat management page. It appeared in the list of
applicatiopn, but a moment later it disappeared.
I checked the logs:

[openejb.log]

last few lines:

008-05-03 13:05:15,265 - INFO  - Undeploying app:
C:\Java\tomcat\webapps\SimpleSessionApp
2008-05-03 13:05:15,281 - INFO  - Configuring app:
C:\Java\tomcat\webapps\SimpleSessionApp
2008-05-03 13:05:15,312 - INFO  - Loaded Module:
C:\Java\tomcat\webapps\SimpleSessionApp
2008-05-03 13:05:15,312 - INFO  - Assembling app:
C:\Java\tomcat\webapps\SimpleSessionApp
2008-05-03 13:05:15,375 - INFO  - Jndi(name=SimpleSessionBeanRemote) -->
Ejb(deployment-id=SimpleSessionBean)
2008-05-03 13:05:15,375 - INFO  - Created
Ejb(deployment-id=SimpleSessionBean, ejb-name=SimpleSessionBean,
container=My Stateless Container)
2008-05-03 13:05:15,375 - INFO  - Deployed
Application(path=C:\Java\tomcat\webapps\SimpleSessionApp)
2008-05-03 13:09:26,296 - INFO  - Undeploying app:
C:\Java\tomcat\webapps\ROOT
2008-05-03 13:09:26,312 - INFO  - Undeploying app:
C:\Java\tomcat\webapps\manager
2008-05-03 13:09:26,312 - INFO  - Undeploying app:
C:\Java\tomcat\webapps\docs
2008-05-03 13:09:26,312 - INFO  - Undeploying app:
C:\Java\tomcat\webapps\examples
2008-05-03 13:09:26,328 - INFO  - Undeploying app:
C:\Java\tomcat\webapps\openejb
2008-05-03 13:09:26,328 - INFO  - Undeploying app:
C:\Java\tomcat\webapps\host-manager

[catalina.2008-05-03.log]

...
May 3, 2008 1:05:15 PM org.apache.catalina.loader.WebappClassLoader
loadClass
INFO: Illegal access: this web application instance has been stopped
already.  Could not load org.apache.openjpa.enhance.PCRegistry.  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:1246)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
	at
org.apache.openejb.ClassLoaderUtil.cleanOpenJPACache(ClassLoaderUtil.java:83)
...

Any ideas what I might be doing wrong?
I'm very sorry if my question is dumb but don't really know what else to do
but post here...

[SimpleSessionBean code]

package beans;
import javax.ejb.Stateless;
@Stateless
public class SimpleSessionBean implements SimpleSession {
	public String getEchoString(String clientString) {
		return clientString + " - from session bean";
	}
}

[SimpleSession code]

package beans;
import javax.ejb.Remote;
@Remote
public interface SimpleSession
{
	public String getEchoString(String clientString);
}

-- 
View this message in context: http://www.nabble.com/Bean-deployment-on-Tomcat-error-tp17045391p17045391.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message