Discussion:
[Middlegen-user] Deploy ear file to jboss
m***@attbi.com
2003-03-28 20:35:22 UTC
Permalink
I am using jboss 3.0.4 with mssql server2000,
I have successfully built the airline example
with middlegen 2.0 beta 1, jboss started with no errors,
but when I drop the ear file into
jboss deploy directory, I get errors such as:

Caused by: javax.naming.NameNotFoundException: DefaultDS not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.<init>(JDBCEnt

Do I need to copy deployment descriptors from middlegen build directory also or
is the ear file enough?
I have searched the archives but cannot find anything.
Thanks in advance,
Mark
Aslak Hellesøy
2003-03-28 20:47:12 UTC
Permalink
I'm not a JBoss guru, but this is clearly a JBoss error. Ask the JBoss
people what's wrong. If Middlegen/XDoclet has generated bad code, tell us
what's bad, and we'll try to fix it. (It looks like you haven't configured
your datasource properly in JBoss. Middlegen doesn't do that for you, but in
my JBoss, DefaultDS is set up as deafult).

Also see read the seventh bullet here:

http://boss.bekk.no/boss/middlegen/nude.html

HTH,
Aslak
-----Original Message-----
Sent: 28. mars 2003 23:35
Subject: [Middlegen-user] Deploy ear file to jboss
I am using jboss 3.0.4 with mssql server2000,
I have successfully built the airline example
with middlegen 2.0 beta 1, jboss started with no errors,
but when I drop the ear file into
Caused by: javax.naming.NameNotFoundException: DefaultDS not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.<init>(JDBCEnt
Do I need to copy deployment descriptors from middlegen build
directory also or
is the ear file enough?
I have searched the archives but cannot find anything.
Thanks in advance,
Mark
-------------------------------------------------------
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
EEC - Darren Inwood
2003-03-28 20:51:20 UTC
Permalink
it's off-topic for this list, it's a jboss thing, but here's how to do it
anyway.

* copy the example mssql file from $JBOSS_HOME/docs/examples/jca/ into your
deploy directory, and that should deploy a datasource called MSSQLDS into
your Jboss container.
* change the <property name="datasource.jndi.name" value="java:/DefaultDS"/>
line in the samples/config/ejb/jboss.xml file to say MSSQLDS instead of
DefaultDS
* rebuild airline sample

should go!

if it doesn't work, the right place to get help is the jboss forums at
jboss.org :)

good luck!
-----Original Message-----
Sent: Saturday, 29 March 2003 10:35 a.m.
Subject: [Middlegen-user] Deploy ear file to jboss
I am using jboss 3.0.4 with mssql server2000,
I have successfully built the airline example
with middlegen 2.0 beta 1, jboss started with no errors,
but when I drop the ear file into
Caused by: javax.naming.NameNotFoundException: DefaultDS not bound
at
org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at
org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at
org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.<init>(JDBCEnt
Do I need to copy deployment descriptors from middlegen build
directory also or
is the ear file enough?
I have searched the archives but cannot find anything.
Thanks in advance,
Mark
-------------------------------------------------------
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
middlegen-user mailing list
https://lists.sourceforge.net/lists/listinfo/middlegen-user
Rod Macpherson
2003-04-01 21:05:11 UTC
Permalink
Gotta copy the oracle-service.xml (template in
/jboss/docs/examples/jca/oracle-service.xml) file to your "deploy"
directory with the database pointing to your oracle install. Basically
you just have to change three lines in oracle-service.xml:

...
<config-property name="ConnectionURL"
type="java.lang.String">jdbc:oracle:thin:@youroraclehost:1521:yoursid</c
onfig-property>
...
<config-property name="UserName"
type="java.lang.String">YOURNAMEGOESHERE</config-property>
<config-property name="Password"
type="java.lang.String">YOURPASSWORDGOESHERE</config-property>
....

Don't forget to put your classes12.jar (rename if its zip) in your
/jboss/server/default/lib directory (or whatever configuration yo are
using). That's the boot-time library directory, don't put it in deploy
since you could run into a dependency problem.




-----Original Message-----
From: ***@attbi.com [mailto:***@attbi.com]
Sent: Friday, March 28, 2003 2:35 PM
To: middlegen-***@lists.sourceforge.net
Subject: [Middlegen-user] Deploy ear file to jboss


I am using jboss 3.0.4 with mssql server2000,
I have successfully built the airline example
with middlegen 2.0 beta 1, jboss started with no errors,
but when I drop the ear file into
jboss deploy directory, I get errors such as:

Caused by: javax.naming.NameNotFoundException: DefaultDS not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:464)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:443)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.<init>(JDBCEnt

Do I need to copy deployment descriptors from middlegen build directory
also or is the ear file enough? I have searched the archives but cannot
find anything. Thanks in advance, Mark


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
middlegen-user mailing list middlegen-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Loading...