> Which version of the CocoBase Integration are you using - Is it the one
> downloaded with CocoBase?
Yes it is the version that came with cocobase (3.1 Service release 7)
>If you run the jndiView utility, do you see anything listed in JNDI.
no, there is nothing....
regards
Martin
-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Rob Castaneda
Gesendet: Dienstag, 5. Dezember 2000 05:37
An: jBoss
Betreff: RE: [jBoss-User] Anybody got JBoss and Cocobase working?
Which version of the CocoBase Integration are you using - Is it the one
downloaded with CocoBase?
If you run the jndiView utility, do you see anything listed in JNDI.
-Rob
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Martin Lilienthal
> Sent: Sunday, December 03, 2000 1:27 PM
> To: jboss
> Subject: [jBoss-User] Anybody got JBoss and Cocobase working?
>
>
> Hi,
>
> I tried to get JBoss and Cocobase working together, but had no success...
>
> My configuration:
> OS: Win 2000
> Database: Oracle 8i Enterprise
> App server: JBoss
> O/R mapping tool: Cocobase O/R Enterprise
>
> This is what I did:
>
> 1. Added Oracle database to jboss.conf:
> <MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar"
> CODEBASE="../lib/ext/">
> <ARG TYPE="java.lang.String" VALUE="OraclePool">
> <ARG TYPE="java.lang.String"
> VALUE="org.jboss.minerva.xa.XADataSourceImpl">
> <ARG TYPE="java.lang.String"
> VALUE="jdbc:oracle:thin:@localhost:1521:ORCL">
> <ARG TYPE="java.lang.String" VALUE="user">
> <ARG TYPE="java.lang.String" VALUE="password">
> <ARG TYPE="java.lang.String" VALUE="">
> <ARG TYPE="java.lang.Integer" VALUE="2">
> <ARG TYPE="java.lang.Integer" VALUE="5">
> <ARG TYPE="java.lang.String"
> VALUE="GCEnabled=true;ShrinkingEnabled=true;GCMinIdleTime=30000;GC
Interval=1
> 0000;ShrinkMinIdleTime=30000">
> </MLET>
>
> 2. added the Oracle driver to jboss.properties
>
> 3. copied the Classes12.zip file (oracle drivers) to %JBOSS_ROOT%/lib/ext
>
> 4. created the cocobase db-map
>
> 5. started the "generate java source code" wizard in cocobase
> - I selected the map previous created
> - selected "JBoss 2 Entity Bean BMP - All Parts"
> - a window titled "editing properties" opened. I set the
> "confDataSource"
> property to OraclePool and the jndiurl to xa.OraclePool
> - Then I selected a primery key for the map and generated
> the java sources
> and compiled them
>
> 6. everything seemed to be ok, so I put the generated .jar file in the
> %JBOSS_ROOT%/deploy directory. I got these messages:
> [Auto deploy] Auto deploy of
> file:/E:/jBoss-2.0_FINAL/deploy/Cityinfo.jar
> [J2EE Deployer] Deploy J2EE application:
> file:/E:/jBoss-2.0_FINAL/deploy/Cityinfo.jar
> [J2EE Deployer] Create application Cityinfo.jar
> [J2EE Deployer] Installing EJB package: Cityinfo.jar
> [J2EE Deployer] Cityinfo.jar doesnt contain MANIFEST.MF
> [J2EE Deployer] Starting module Cityinfo.jar
>
> 7. I wrote a small test-client, but I got the following error:
> javax.naming.NameNotFoundException: CityinfoApp not bound
>
> I tried the same with the super-tool
> (http://www.acelet.com/), and I got
> the same error...
>
>
>
> Here`s my ejb-jar.xml file:
>
> ------------------------------------------------------------------
> ----------
> -------------------------------------------------------
>
> <?xml version='1.0'?>
>
> <ejb-jar>
> <description>
> This ejb-jar file contains assembled enterprise beans that
> are part of
> The Cityinfo mapped Entity Bean.
> </description>
>
> <enterprise-beans>
> <entity>
> <description>
> This section defines the CMP Entity Bean Cityinfo
> </description>
> <ejb-name>CityinfoApp</ejb-name>
> <home>Cityinfo.CityinfoHome</home>
> <remote>Cityinfo.CityinfoInterface</remote>
> <ejb-class>Cityinfo.CityinfoEntityBean</ejb-class>
> <persistence-type>Bean</persistence-type>
> <prim-key-class>Cityinfo.CityinfoPK</prim-key-class>
> <reentrant>False</reentrant>
>
> <env-entry>
> <env-entry-name>cocosource.name</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
>
> <env-entry-value>thought.CocoBase.CocoPowderPlugin20</env-entry-value>
> </env-entry>
> <env-entry>
> <env-entry-name>cocosource.driver</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
>
> <env-entry-value>oracle.jdbc.driver.OracleDriver</env-entry-value>
> </env-entry>
> <env-entry>
> <env-entry-name>cocosource.url</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
>
> <env-entry-value>jdbc:oracle:thin:@localhost:1521:ORCL;cocorep=con
figresourc
> e:/Cityinfo/CityinfoConfig.properties:cocoprop=primarykey.lookup=f
> alse,jndiu
> rl=java:comp/env/xa.OraclePool</env-entry-value>
> </env-entry>
> <env-entry>
> <env-entry-name>cocosource.user</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value>NONE</env-entry-value>
> </env-entry>
> <env-entry>
> <env-entry-name>cocosource.password</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value>NONE</env-entry-value>
> </env-entry>
> <env-entry>
>
> <env-entry-name>cocosource.autoclose</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value>true</env-entry-value>
> </env-entry>
> <env-entry>
>
> <env-entry-name>cocosource.autotrans</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value>false</env-entry-value>
> </env-entry>
> <env-entry>
> <env-entry-name>cocosource.debug</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value>false</env-entry-value>
> </env-entry>
> <env-entry>
>
> <env-entry-name>cocosource.homefactory</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
>
> <env-entry-value>thought.CocoBase.GenericHomeFactory</env-entry-value>
> </env-entry>
> <env-entry>
>
> <env-entry-name>cocosource.cachefactory</env-entry-name>
> <env-entry-type>java.lang.String</env-entry-type>
> <env-entry-value>true</env-entry-value>
> </env-entry>
> <resource-ref>
> <res-ref-name>xa.OraclePool</res-ref-name>
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> </resource-ref>
> </entity>
> </enterprise-beans>
> <assembly-descriptor>
> <container-transaction>
> <method>
> <ejb-name>CityinfoApp</ejb-name>
> <method-intf>Remote</method-intf>
> <method-name>*</method-name>
> </method>
> <trans-attribute>Required</trans-attribute>
> </container-transaction>
> </assembly-descriptor>
>
> </ejb-jar>
> ------------------------------------------------------------------
> ----------
> ------------------------------------------------------
>
>
>
> And here`s the jboss.xml file:
> ------------------------------------------------------------------
> ----------
> --------------------------------------------
> <?xml version="1.0" encoding="Cp1252"?>
> <jboss>
> <resource-managers>
> <resource-manager
> res-class="org.jboss.ejb.deployment.JDBCResource">
> <res-name>xa.OraclePool</res-name>
> <res-jndi-name>OraclePool</res-jndi-name>
> </resource-manager>
> </resource-managers>
> </jboss>
>
> ------------------------------------------------------------------
> ---------
> --------------------------------------------
>
>
>
>
> Any ideas what`s wrong with it?
>
>
>
> Thanks in advance
>
>
>
> Martin Lilienthal
>
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]