openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Dellisanti <nicola.dellisa...@gmail.com>
Subject Jar not loaded: Unknown module type
Date Wed, 09 Feb 2011 10:46:43 GMT
Hi,

I'm running openejb 3.1.4, tomcat 6.0.32 integrated. I have e jar (ejb +
jpa) named richtestejb.jar in webapps tomcat's folder. I invoked a metod (a
call to a namedQuery) in my ejb in the openejb JNDI web page (
http://localhost:8080/openejb/viewejb.jsp), but the result was not what I'm
expecting.

I saw an exception in openejb.log:

2011-02-09 11:47:14,484 - INFO  - openejb.home =
C:\Programmi\apache-tomcat-6.0.32
2011-02-09 11:47:14,484 - INFO  - openejb.base =
C:\Programmi\apache-tomcat-6.0.32
2011-02-09 11:47:15,062 - INFO  - Using
'openejb.provider.default=org.apache.openejb.tomcat'
2011-02-09 11:47:15,093 - INFO  - Configuring Service(id=Tomcat Security
Service, type=SecurityService, provider-id=Tomcat Security Service)
2011-02-09 11:47:15,093 - INFO  - Configuring Service(id=Default Transaction
Manager, type=TransactionManager, provider-id=Default Transaction Manager)
2011-02-09 11:47:15,093 - INFO  - Configuring Service(id=My DataSource,
type=Resource, provider-id=Default JDBC Database)
2011-02-09 11:47:15,109 - INFO  - Configuring Service(id=My Unmanaged
DataSource, type=Resource, provider-id=Default JDBC Database)
2011-02-09 11:47:15,109 - INFO  - Configuring Service(id=MySqlDataSource,
type=Resource, provider-id=Default JDBC Database)
2011-02-09 11:47:15,109 - INFO  - Configuring Service(id=My JMS Resource
Adapter, type=Resource, provider-id=Default JMS Resource Adapter)
2011-02-09 11:47:15,109 - INFO  - Configuring Service(id=My JMS Connection
Factory, type=Resource, provider-id=Default JMS Connection Factory)
2011-02-09 11:47:15,109 - INFO  - Configuring Service(id=My Stateful
Container, type=Container, provider-id=Default Stateful Container)
2011-02-09 11:47:15,109 - INFO  - Configuring Service(id=My Stateless
Container, type=Container, provider-id=Default Stateless Container)
2011-02-09 11:47:15,109 - INFO  - Configuring Service(id=My MDB Container,
type=Container, provider-id=Default MDB Container)
2011-02-09 11:47:15,171 - WARN  - Jar not loaded.
C:\Programmi\apache-tomcat-6.0.32\richtestejb.jar.  Unable to determine
module type for jar:
file:/C:/Programmi/apache-tomcat-6.0.32/richtestejb.jar: Unknown module
type: url=file:/C:/Programmi/apache-tomcat-6.0.32/richtestejb.jar
org.apache.openejb.config.UnknownModuleTypeException: Unable to determine
module type for jar:
file:/C:/Programmi/apache-tomcat-6.0.32/richtestejb.jar: Unknown module
type: url=file:/C:/Programmi/apache-tomcat-6.0.32/richtestejb.jar
 at
org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:122)
 at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:512)
 at
org.apache.openejb.config.ConfigurationFactory.getOpenEjbConfiguration(ConfigurationFactory.java:367)
 at
org.apache.openejb.assembler.classic.Assembler.getOpenEjbConfiguration(Assembler.java:300)
 at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:279)
 at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:125)
 at org.apache.openejb.OpenEJB.init(OpenEJB.java:271)
 at
org.apache.openejb.tomcat.catalina.TomcatLoader.init(TomcatLoader.java:161)
 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.openejb.loader.Embedder.init(Embedder.java:75)
 at org.apache.openejb.tomcat.loader.TomcatHook.hook(TomcatHook.java:137)
 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.openejb.tomcat.loader.TomcatEmbedder.embed(TomcatEmbedder.java:92)
 at
org.apache.openejb.tomcat.loader.OpenEJBListener.lifecycleEvent(OpenEJBListener.java:64)
 at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
 at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:813)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
 at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
 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.startup.Bootstrap.load(Bootstrap.java:261)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.apache.openejb.config.UnknownModuleTypeException: Unknown
module type: url=file:/C:/Programmi/apache-tomcat-6.0.32/richtestejb.jar
 at
org.apache.openejb.config.DeploymentLoader.discoverModuleType(DeploymentLoader.java:1224)
 at
org.apache.openejb.config.DeploymentLoader.discoverModuleType(DeploymentLoader.java:1144)
 at
org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:120)
 ... 29 more

what does mean "Unknown module type" ?

N.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message