无法在websphere上部署应用程序

时间:2014-01-28 23:06:55

标签: ejb-3.0 derby websphere-7

我正在使用一个使用以下技术的应用程序:Java,EJB 3,JPA,Websphere和Oracle。 我们根本没有使用德比,但是,当我尝试将耳朵部署到websphere时,它一直给我以下错误:

引起:java.lang.NoClassDefFoundError:org.apache.derby.jdbc.EmbeddedDriver(初始化失败)     在java.lang.J9VMInternals.initialize(J9VMInternals.java:140)     at org.apache.derby.jdbc.EmbeddedDataSource.findDriver(未知来源)     在org.apache.derby.jdbc.EmbeddedDataSource.getConnection(未知来源)     在org.apache.derby.jdbc.EmbeddedDataSource.getConnection(未知来源)     at org.apache.derby.jdbc.EmbeddedXADataSource.setupResourceAdapter(Unknown Source)     在org.apache.derby.jdbc.EmbeddedXADataSource.getXAConnection(未知来源)     at com.ibm.ws.rsadapter.spi.InternalGenericDataStoreHelper $ 1.run(InternalGenericDataStoreHelper.java:1221)     在com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)     在com.ibm.ws.rsadapter.spi.InternalGenericDataStoreHelper.getPooledConnection(InternalGenericDataStoreHelper.java:1258)     在com.ibm.ws.rsadapter.spi.WSRdbDataSource.getPooledConnection(WSRdbDataSource.java:2308)     at com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.createManagedConnection(WSManagedConnectionFactoryImpl.java:1598)     在com.ibm.ejs.j2c.FreePool.createManagedConnectionWithMCWrapper(FreePool.java:2034)     在com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.java:1711)     在com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:2471)     在com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionManager.java:1059)     在com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionManager.java:696)     在com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:668)     在com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcDataSource.java:635)     at com.ibm.ws.extensionhelper.db.impl.DatabaseHelperImpl $ DSWrapper.getConnection(DatabaseHelperImpl.java:1584)     在com.ibm.ws.extensionhelper.db.impl.DatabaseHelperImpl.getConnection(DatabaseHelperImpl.java:746)     在com.ibm.ws.extensionhelper.db.impl.DatabaseHelperImpl.getConnection(DatabaseHelperImpl.java:1354)     在com.ibm.ws.extensionhelper.db.impl.DatabaseHelperImpl.connect(DatabaseHelperImpl.java:544)     在com.ibm.ws.extensionhelper.db.impl.DatabaseHelperImpl.initialize(DatabaseHelperImpl.java:497)     ......还有75个 引起:java.lang.SecurityException:密封违规:包org.apache.derby.impl.store.raw.data被密封     at java.net.URLClassLoader.defineClass(URLClassLoader.java:487)     at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)     在java.net.URLClassLoader.access $ 300(URLClassLoader.java:79)     at java.net.URLClassLoader $ ClassFinder.run(URLClassLoader.java:1034)     在java.security.AccessController.doPrivileged(AccessController.java:284)     在java.net.URLClassLoader.findClass(URLClassLoader.java:429)     在com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:150)     at java.lang.ClassLoader.loadClass(ClassLoader.java:653)     在com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)     在java.lang.ClassLoader.loadClass(ClassLoader.java:619)     at java.lang.ClassLoader.defineClassImpl(Native Method)     at java.lang.ClassLoader.defineClass(ClassLoader.java:275)     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:69)     at java.net.URLClassLoader.defineClass(URLClassLoader.java:540)     at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)     在java.net.URLClassLoader.access $ 300(URLClassLoader.java:79)     at java.net.URLClassLoader $ ClassFinder.run(URLClassLoader.java:1034)     在java.security.AccessController.doPrivileged(AccessController.java:284)     在java.net.URLClassLoader.findClass(URLClassLoader.java:429)     在com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtClassLoader.java:150)     at java.lang.ClassLoader.loadClass(ClassLoader.java:653)     在com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtClassLoader.java:90)     在java.lang.ClassLoader.loadClass(ClassLoader.java:619)     at java.lang.Class.forNameImpl(Native Method)     at java.lang.Class.forName(Class.java:139)     at org.apache.derby.impl.services.monitor.BaseMonitor.getImplementations(Unknown Source)     at org.apache.derby.impl.services.monitor.BaseMonitor.getDefaultImplementations(Unknown Source)     at org.apache.derby.impl.services.monitor.BaseMonitor.runWithState(Unknown Source)     在org.apache.derby.impl.services.monitor.FileMonitor。(未知来源)     在org.apache.derby.iapi.services.monitor.Monitor.startMonitor(未知来源)     在org.apache.derby.iapi.jdbc.JDBCBoot.boot(未知来源)     在org.apache.derby.jdbc.EmbeddedDriver.boot(未知来源)     在org.apache.derby.jdbc.EmbeddedDriver。(未知来源)     at java.lang.J9VMInternals.initializeImpl(Native Method)     在java.lang.J9VMInternals.initialize(J9VMInternals.java:200)     at java.lang.Class.forNameImpl(Native Method)     at java.lang.Class.forName(Class.java:172)     在com.ibm.ws.runtime.component.EJBContainerImpl.timerDBExists(EJBContainerImpl.java:2091)     在com.ibm.ws.runtime.component.EJBContainerImpl.startModule(EJBContainerImpl.java:2550)     ... 67更多

顺便说一下,我的jdbcprovider和datasource已正确配置。我只是不明白我的应用程序和德比之间的关系。

有什么想法吗?任何帮助将不胜感激!

1 个答案:

答案 0 :(得分:0)

IBM Websphere使用Derby作为内部数据库。尝试重新启动服务器并在启动时检查服务器日志。您很可能遇到服务器配置问题并且您的应用程序没问题。顺便问一下,您是否尝试在此服务器上部署其他应用程序?