Hi there,
we're trying to use JBOSS 2.0 PR4 and EJBs to store our data in a Oracle
DB.
We updated the entity bean from the CD example and tried to use EJX for
the XML-files.
The first problem is that if you copy the oracle jdbc driver to the
lib/ext directory you're not able to create a new XML-file with EJX and when
your
trying to open one, the file types (JBOSS-XML, EJB-XML and JAWS-XML) is
missing. So we are not able to open an existing file.
We don't know if this also causes the following problem :
We created a simple entity bean and the xml files as far as we understood
them.
After deploying the bean we got the following exception :
[JAWS] Initializing JAWS plugin for TestingBean
at java.lang.Class.getField0(Native Method)
at java.lang.Class.getField(Class.java:826)
and
[Container factory] Caught SQL NPE on JawsCMPField!
[Container factory] Caught JDBC NPE on JawsCMPField!
[Container factory] java.lang.NoSuchFieldException
[Container factory] at java.lang.Class.getField0(Native Method)
[Container factory] at java.lang.Class.getField(Class.java:826)
[Container factory] at
org.jboss.ejb.plugins.jaws.CMPFieldInfo.jdbcTypeFromTypeName(CMPFieldInfo.ja
va:181)
Can anybody give as a hint to solve that.
Thanks a lot
Markus & Michael
HERE THE COMPLETE CONSOLE OUTPUT:
[Console logging] Logging started
[Classpath] Added directory:file:/E:/jboss/log/
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
[Info] System: Windows 2000 5.0,x86
[Classpath] Added directory:file:/E:/jboss/db/
[Classpath] Added library:file:/E:/jboss/lib/ext/activation.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/awt.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/classes12.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/dynaserver.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/ejb.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/ejxeditor.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/ejxejb.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/ejxjaws.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/ejxjboss.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/hsql.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/idb.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/jboss.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/jdbc2_0-stdext.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/jmxtools.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/jndi.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/jnpserver.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/jpl-util-0_5b.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/jta-spec1_0_1.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/mail.jar
[Classpath] Added library:file:/E:/jboss/lib/ext/xml.jar
[JDBC] Loaded JDBC-driver:org.hsql.jdbcDriver
[JDBC] Loaded JDBC-driver:jdbc.idbDriver
[JDBC] Loaded JDBC-driver:oracle.jdbc.driver.OracleDriver
[Webserver] Initializing
[Webserver] Initialized
[Hypersonic] Initializing
[Hypersonic] Server 1.4 is running
[Hypersonic] Database started
[Hypersonic] Initialized
[Naming] Initializing
[Naming] Naming started on port 1099
[Naming] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[Simple Realm Mapping] Initializing
[Simple Realm Mapping] Initialized
[Security manager] Initializing
[Security manager] Initialized
[DataSource] Initializing
[DataSource] Connection pool for jdbc:oracle:thin:@192.168.0.1:1521:PMWEB
bound
to Oracle
[DataSource] Initialized
[DataSource] Initializing
[DataSource] Connection pool for jdbc:idb:../conf/instantdb.properties bound
to
InstantDB
InstantDB - Version 3.12
[DataSource] Copyright (c) 1997-1999 Instant Computer Solutions Ltd.
[DataSource] Initialized
[DataSource] Initializing
[DataSource] Connection pool for jdbc:HypersonicSQL:hsql://localhost bound
to Hy
personic
[DataSource] Initialized
[Container factory] Initializing
[Container factory] Initialized
[Auto deploy] Watching E:\jboss\deploy
[Auto deployer] Initializing
[Auto deployer] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[Configuration] Initializing
[Configuration] Initialized
[Configuration] MaxActiveClientCount set to 10 in Adaptor:name=html
[Configuration] Port set to 8082 in Adaptor:name=html
[Configuration] LibraryDirectory set to e:\jboss\bin in
DefaultDomain:service=ML
et
[Configuration] Format set to [{2}] {4} in
DefaultDomain:service=Logging,type=Co
nsole
[Configuration] Port set to 8083 in DefaultDomain:service=Webserver
[Configuration] VerifyDeployments set to false in
EJB:service=ContainerFactory
[DataSource] Starting
[DataSource] Started
[Naming] Starting
[Naming] Started
[JMX RMI Adaptor] Starting
[JMX RMI Adaptor] Started
[Container factory] Starting
[Container factory] Started
[DataSource] Starting
[DataSource] Started
[Auto deployer] Starting
[Auto deploy] Auto deploy of file:/E:/jboss/deploy/TestBeans.jar
[Container factory] Deploying:file:/E:/jboss/deploy/TestBeans.jar
[Container factory] Loading ejb-jar.xml :
jar:file:/C:/DOKUME~1/Markus/LOKALE~1/
Temp/tmpejbjar49485.jar!/META-INF/ejb-jar.xml
[Container factory] Loading standardjboss.xml :
jar:file:/E:/jboss/lib/ext/jboss
.jar!/org/jboss/metadata/standardjboss.xml
[Container factory] Deploying nextgen.EnterpriseEntity
[Container factory] Deploying nextgen.EntityBMP
[Container factory] Deploying nextgen.EntityPK
[Container factory] Deploying Account
[Container factory] Deploying nextgen.StatelessSession
[Container factory] Deploying nextgen.StatefulSession
[Container factory] Deploying AccountManager
[Container factory] Storing sessions for nextgen.StatefulSession
in:database\nex
tgen.StatefulSession
[Container factory] 0 old sessions removed
[JAWS] Initializing JAWS plugin for nextgen.EntityPK
[JAWS] Init SQL: CREATE TABLE nextgen_EntityPK (aLong BIGINT,anInt
INTEGER,other
Field INTEGER,aBoolean BIT,aString VARCHAR(256),aDouble DOUBLE)
[JAWS] Destroy SQL: DROP TABLE nextgen_EntityPK
[JAWS] Exists SQL: SELECT COUNT(*) AS Total FROM nextgen_EntityPK WHERE
aBoolean
=? AND anInt=? AND aLong=? AND aDouble=? AND aString=?
[JAWS] Create SQL: INSERT INTO nextgen_EntityPK
(aLong,anInt,otherField,aBoolean
,aString,aDouble) VALUES (?,?,?,?,?,?)
[JAWS] Remove SQL: DELETE FROM nextgen_EntityPK WHERE aBoolean=? AND anInt=?
AND
aLong=? AND aDouble=? AND aString=?
[JAWS] Load SQL: SELECT aLong,anInt,otherField,aBoolean,aString,aDouble FROM
nex
tgen_EntityPK WHERE aBoolean=? AND anInt=? AND aLong=? AND aDouble=? AND
aString
=?
[JAWS] Init command executing: CREATE TABLE nextgen_EntityPK (aLong
BIGINT,anInt
INTEGER,otherField INTEGER,aBoolean BIT,aString VARCHAR(256),aDouble
DOUBLE)
[JAWS] Table nextgen_EntityPK exists
[Container factory] Binding an EJBReference Account
[Container factory] Binding Account to external JNDI source: Account
[JAWS] Initializing JAWS plugin for Account
[JAWS] Init SQL: CREATE TABLE Account (name VARCHAR(256),password
VARCHAR(256))
[JAWS] Destroy SQL: DROP TABLE Account
[JAWS] Exists SQL: SELECT COUNT(*) AS Total FROM Account WHERE name=?
[JAWS] Create SQL: INSERT INTO Account (name,password) VALUES (?,?)
[JAWS] Remove SQL: DELETE FROM Account WHERE name=?
[JAWS] Load SQL: SELECT name,password FROM Account WHERE name=?
[JAWS] Init command executing: CREATE TABLE Account (name
VARCHAR(256),password
VARCHAR(256))
[JAWS] Table Account exists
[JAWS] Initializing JAWS plugin for nextgen.EnterpriseEntity
[JAWS] Init SQL: CREATE TABLE nextgen_EnterpriseEntity (name VARCHAR(256))
[JAWS] Destroy SQL: DROP TABLE nextgen_EnterpriseEntity
[JAWS] Exists SQL: SELECT COUNT(*) AS Total FROM nextgen_EnterpriseEntity
WHERE
name=?
[JAWS] Create SQL: INSERT INTO nextgen_EnterpriseEntity (name) VALUES (?)
[JAWS] Remove SQL: DELETE FROM nextgen_EnterpriseEntity WHERE name=?
[JAWS] Load SQL: SELECT name FROM nextgen_EnterpriseEntity WHERE name=?
[JAWS] Init command executing: CREATE TABLE nextgen_EnterpriseEntity (name
VARCH
AR(256))
[JAWS] Table nextgen_EnterpriseEntity exists
[Container factory] Binding an EJBReference ejb/myEJBRef
[Container factory] Binding ejb/myEJBRef to external JNDI source:
nextgen.Statel
essSession
[Container factory] Using default DataSource:Oracle
[Container factory] Bound nextgen.StatefulSession to nextgen.StatefulSession
[Container factory] Bound nextgen.EntityPK to nextgen.EntityPK
[Container factory] Bound AccountManager to AccountManager
[Container factory] Bound Account to Account
[Container factory] Bound nextgen.StatelessSession to
nextgen.StatelessSession
[Container factory] Bound nextgen.EnterpriseEntity to
nextgen.EnterpriseEntity
[Container factory] Bound nextgen.EntityBMP to nextgen.EntityBMP
[Container factory] Deployed application:
file:/E:/jboss/deploy/TestBeans.jar
[Auto deploy] Auto deploy of file:/E:/jboss/deploy/Testing.jar
[Container factory] Deploying:file:/E:/jboss/deploy/Testing.jar
[Container factory] Loading ejb-jar.xml :
jar:file:/C:/DOKUME~1/Markus/LOKALE~1/
Temp/tmpejbjar49486.jar!/META-INF/ejb-jar.xml
[Container factory] Loading standardjboss.xml :
jar:file:/E:/jboss/lib/ext/jboss
.jar!/org/jboss/metadata/standardjboss.xml
[Container factory]
jar:file:/C:/DOKUME~1/Markus/LOKALE~1/Temp/tmpejbjar49486.ja
r!/META-INF/jboss.xml found. Overriding defaults
[Container factory] Deploying TestingBean
[JAWS] Initializing JAWS plugin for TestingBean
at java.lang.Class.getField0(Native Method)
at java.lang.Class.getField(Class.java:826)
at
org.jboss.ejb.plugins.jaws.deployment.JawsCMPField.propertyChange(Jaw
sCMPField.java:210)
at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:230)
at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSup
port.java:157)
at
java.beans.beancontext.BeanContextChildSupport.firePropertyChange(Bea
nContextChildSupport.java:212)
at
org.jboss.ejb.plugins.jaws.deployment.JawsEjbJar.setTypeMapping(JawsE
jbJar.java:72)
at
org.jboss.ejb.plugins.jaws.deployment.JawsEjbJar.importXml(JawsEjbJar
.java:131)
at
org.jboss.ejb.plugins.jaws.deployment.JawsFileManager.load(JawsFileMa
nager.java:159)
at
org.jboss.ejb.plugins.jaws.MetaInfo.readJawsEjbJar(MetaInfo.java:194)
at org.jboss.ejb.plugins.jaws.MetaInfo.<init>(MetaInfo.java:61)
at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.<init>(JDBCCommand
Factory.java:67)[Container factory] java.lang.NoSuchFieldException
at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.init(JAWSPersistenc
eManager.java:79)
at
org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPPersistenceManage
r.java:83)
at org.jboss.ejb.EntityContainer.init(EntityContainer.java:191)
at org.jboss.ejb.Application.init(Application.java:158)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:544)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:193)
at java.lang.reflect.Method.invoke(Native Method)
at javax.management.MBeanServer.invoke(MBeanServer.java:1635)
at javax.management.MBeanServer.invoke(MBeanServer.java:1501)
at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:285)
at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:264)
at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:89)
at java.lang.reflect.Method.invoke(Native Method)
at javax.management.MBeanServer.invoke(MBeanServer.java:1635)
at javax.management.MBeanServer.invoke(MBeanServer.java:1501)
at org.jboss.Main.<init>(Main.java:155)
at org.jboss.Main.<init>(Main.java:86)
at org.jboss.Main$1.run(Main.java:76)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.Main.main(Main.java:67)
[Container factory] Caught SQL NPE on JawsCMPField!
[Container factory] Caught JDBC NPE on JawsCMPField!
[Container factory] java.lang.NoSuchFieldException
[Container factory] at java.lang.Class.getField0(Native Method)
[Container factory] at java.lang.Class.getField(Class.java:826)
[Container factory] at
org.jboss.ejb.plugins.jaws.CMPFieldInfo.jdbcTypeFromT
ypeName(CMPFieldInfo.java:181)
[Container factory] at
org.jboss.ejb.plugins.jaws.CMPFieldInfo.<init>(CMPFie
ldInfo.java:59)
[Container factory] at
org.jboss.ejb.plugins.jaws.MetaInfo.<init>(MetaInfo.j
ava:72)
[Container factory] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommandFactory.<i
nit>(JDBCCommandFactory.java:67)
[Container factory] at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.ini
t(JAWSPersistenceManager.java:79)
[Container factory] at
org.jboss.ejb.plugins.CMPPersistenceManager.init(CMPP
ersistenceManager.java:83)
[Container factory] at
org.jboss.ejb.EntityContainer.init(EntityContainer.ja
va:191)
[Container factory] at
org.jboss.ejb.Application.init(Application.java:158)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
y.java:544)
[Container factory] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
y.java:193)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
javax.management.MBeanServer.invoke(MBeanServer.java:
1635)
[Container factory] at
javax.management.MBeanServer.invoke(MBeanServer.java:
1501)
[Container factory] at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:2
85)
[Container factory] at
org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Container factory] at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.
java:264)
[Container factory] at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBean
Support.java:89)
[Container factory] at java.lang.reflect.Method.invoke(Native Method)
[Container factory] at
javax.management.MBeanServer.invoke(MBeanServer.java:
1635)
[Container factory] at
javax.management.MBeanServer.invoke(MBeanServer.java:
1501)
[Container factory] at org.jboss.Main.<init>(Main.java:155)
[Container factory] at org.jboss.Main.<init>(Main.java:86)
[Container factory] at org.jboss.Main$1.run(Main.java:76)
[Container factory] at
java.security.AccessController.doPrivileged(Native Me
thod)
[Container factory] at org.jboss.Main.main(Main.java:67)
[Auto deploy] Deployment failed:file:/E:/jboss/deploy/Testing.jar
[Auto deploy] javax.management.RuntimeMBeanException: RuntimeException
thrown in
operation deploy
[Auto deploy] at
javax.management.MBeanServer.invoke(MBeanServer.java:1647)
[Auto deploy] at
javax.management.MBeanServer.invoke(MBeanServer.java:1501)
[Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:285)
[Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy] at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:264
)
[Auto deploy] at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.
java:89)
[Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy] at
javax.management.MBeanServer.invoke(MBeanServer.java:1635)
[Auto deploy] at
javax.management.MBeanServer.invoke(MBeanServer.java:1501)
[Auto deploy] at org.jboss.Main.<init>(Main.java:155)
[Auto deploy] at org.jboss.Main.<init>(Main.java:86)
[Auto deploy] at org.jboss.Main$1.run(Main.java:76)
[Auto deploy] at java.security.AccessController.doPrivileged(Native
Method)
[Auto deploy] at org.jboss.Main.main(Main.java:67)
[Auto deployer] Started
[Simple Realm Mapping] Starting
[Simple Realm Mapping] Started
[Hypersonic] Starting
[Hypersonic] Started
[Security manager] Starting
[Security manager] Started
[Transaction manager] Starting
[Transaction manager] Started
[Webserver] Starting
[Webserver] Codebase set to http://localhost:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[DataSource] Starting
[DataSource] Started
[Default] Shutdown hook added
[Default] jBoss 2.0 Started
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]