Re: [JBoss-user] MVCSoft Persistant Manager relationship problem

2001-05-15 Thread Brenton House

It sounds like your DefaultDS is not setup.


- Original Message -
From: "Rune Hamnvik" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 5:29 AM
Subject: [JBoss-user] MVCSoft Persistant Manager relationship problem


Hello
We want to start using the EJB 2.0 CMP model and have bought the MVCSofts
Persistant
Manager Educational Release. We have defined two local (same ear) Entity
beans with
a one-to-many relationship between those two. The deployment under JBoss
2.2.1 seems
to work fine, but when we try to add elements to the relationship we get an
exception.
See the dump below. Has anyone any idea why we get this exception ?

We are using MySql and all the tables has been created, and creating new
entities works
fine, but accessing the relationship fails.

Regards
Rune Hamnvik
Mobinor AS
Norway

[ProductManagerEJB] javax.naming.NameNotFoundException: jdbc not bound
[ProductManagerEJB] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:474)
[ProductManagerEJB] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:482)
[ProductManagerEJB] at
org.jnp.server.NamingServer.getObject(NamingServer.java:488)
[ProductManagerEJB] at
org.jnp.server.NamingServer.lookup(NamingServer.java:254)
[ProductManagerEJB] at
org.jnp.server.NamingServer.lookup(NamingServer.java:257)
[ProductManagerEJB] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:295)
[ProductManagerEJB] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:403)
[ProductManagerEJB] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
[ProductManagerEJB] at
javax.naming.InitialContext.lookup(InitialContext.java:350)
[ProductManagerEJB] at
com.mvcsoft.persistence.util.NamespaceUtil.getTransactionalConnection(Namesp
aceUtil.java:68)
[ProductManagerEJB] at
com.mobinor.mymobile.product.ejb.PersistentRelationshipServiceHasCategories.
deleteRelationshipMembers(PersistentRelationshipServiceHasCategories.java:14
7)
[ProductManagerEJB] at
com.mvcsoft.persistence.relationship.RelationshipBase.storeRemovals(Relation
shipBase.java:194)
[ProductManagerEJB] at
com.mvcsoft.persistence.jboss.spi.ContainerImpl.storeRelationshipUpdates(Con
tainerImpl.java:253)
[ProductManagerEJB] at
com.mvcsoft.persistence.jboss.spi.ContainerImpl.storeForTransaction(Containe
rImpl.java:266)
[ProductManagerEJB] at
com.mvcsoft.persistence.jboss.spi.ContainerImpl$PersistenceSynchronization.b
eforeCompletion(ContainerImpl.java:283)
[ProductManagerEJB] at
org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1228)
[ProductManagerEJB] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:322)
[ProductManagerEJB] at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
[ProductManagerEJB] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:318)
[ProductManagerEJB] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[ProductManagerEJB] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:19
0)
[ProductManagerEJB] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[ProductManagerEJB] at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271)
[ProductManagerEJB] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:392)
[ProductManagerEJB] at java.lang.reflect.Method.invoke(Native Method)
[ProductManagerEJB] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[ProductManagerEJB] at
sun.rmi.transport.Transport$1.run(Transport.java:142)
[ProductManagerEJB] at
java.security.AccessController.doPrivileged(Native Method)
[ProductManagerEJB] at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[ProductManagerEJB] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[ProductManagerEJB] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43)
[ProductManagerEJB] at java.lang.Thread.run(Thread.java:484)
[ProductManagerEJB] javax.ejb.EJBException
[ProductManagerEJB] at
com.mvcsoft.persistence.util.NamespaceUtil.getTransactionalConnection(Namesp
aceUtil.java:75)
[ProductManagerEJB] at
com.mobinor.mymobile.product.ejb.PersistentRelationshipServiceHasCategories.
deleteRelationshipMembers(PersistentRelationshipServiceHasCategories.java:14
7)
[ProductManagerEJB] at
com.mvcsoft.persistence.relationship.RelationshipBase.storeRemovals(Relation
shipBase.java:194)
[ProductManagerEJB] at
com.mvcsoft.persistence.jboss.spi.ContainerImpl.storeRelationshipUpdates(Con
tainerImpl.java:253)
[ProductManagerEJB] at
com.mvcsoft.persistence.jboss.spi.ContainerImpl.storeForTransaction(Containe
rImpl.java:266)
[ProductManagerEJB] at
com.mvcsoft.persistence.jboss.spi.ContainerImpl$PersistenceSynchronization.b
eforeCompletion(ContainerImpl.java:283)
[ProductManagerEJB

Re: [JBoss-user] for weblogic JDBC Type 4 Drivers

2001-03-30 Thread Brenton House

Still no luck on the Atinav drivers.  I think I must be missing a specific
property name
and that is why it is throwing a nullPointerException.  I was getting this
same exception
with the Weblogic drivers before I got each and every property name exactly
right.

I am also trying to get JBoss to work with the Type 4 driver that ships with
JRun 3.0 Advanced and Enterprise.  It is a Merant OEM, so I tried the Merant
property names, but I am still getting a nullPointerException with that one
as well.

Good news is the Weblogic driver is up, running, and working great with
JBoss.

thanks!

brenton
::

I've forwarded it to Kunle. BTW, how did you resolve the problems with the
Atinav drivers?. I looked at the post but couldn't see any reason for the
error and since I don't have/use the Atinav drivers...

Did you resolve the issue?. Any pearls of wisdom that you can pass on to
others in the community?

Cheers!,

Micheal

PS Some of the property names below are foreign to me. I presume they are
specific to the WebLogic driver. Are they passed on to the WebLogic jDriver
transparently?. I also presume that this info is from a tested, working,
JBoss configuration. Is this the case?.


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Brenton
> House
> Sent: 29 March 2001 21:44
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user]  for weblogic JDBC Type 4 Drivers
>
>
> I'm not sure what the process is to add this to the How To Page at:
> http://jboss.org/documentation/mssql.htm
> but here is the  for weblogic JDBC Type 4 Drivers.
>
> Enjoy!
>
> Brenton House
> ::
> ::
> 
>
> Driver:   weblogic.jdbc.mssqlserver4.Driver
>
>  name="DefaultDomain:service=XADataSource,name=SQLServerPool">
> name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADat
> aSourceImp
> l
>SQLServerPool
>jdbc:weblogic:mssqlserver4:SERVER
>1
>4
>10
>2
>true
>15
>10
>dual
> name="props">user=USERNAME;password=PASSWORD;server=SERVER
> 
>
>
> _
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] for weblogic JDBC Type 4 Drivers

2001-03-29 Thread Brenton House

I'm not sure what the process is to add this to the How To Page at:
http://jboss.org/documentation/mssql.htm
but here is the  for weblogic JDBC Type 4 Drivers.

Enjoy!

Brenton House



Driver:   weblogic.jdbc.mssqlserver4.Driver


   org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
   SQLServerPool
   jdbc:weblogic:mssqlserver4:SERVER
   1
   4
   10
   2
   true
   15
   10
   dual
   user=USERNAME;password=PASSWORD;server=SERVER



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] MS SQL7 w/ Atinav aveConnect JDBC

2001-03-28 Thread Brenton House

I am using this  with Atinav aveConnect JDBC Drivers:


   org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
   SQLServerPool2
   jdbc:AvenirDriver://SERVER:1433/DATABASE
   user=username; password=password;
serverVersion=Sql7


I know the driver is loaded because I have this message: [JDBC provider]
Loaded JDBC-driver:net.avenir.jdbc2.Driver

but I am getting this error:

[SQLServerPool2] Starting
[SQLServerPool2] XA Connection pool SQLServerPool2 bound to
java:/SQLServerPool2
[SQLServerPool2] Stopped
[SQLServerPool2] java.lang.NullPointerException
[SQLServerPool2]at
org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSourc
e.java:165)
[SQLServerPool2]at
org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330)
[SQLServerPool2]at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[SQLServerPool2]at java.lang.reflect.Method.invoke(Native Method)
[SQLServerPool2]at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[SQLServerPool2]at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[SQLServerPool2]at
org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[SQLServerPool2]at java.lang.reflect.Method.invoke(Native Method)
[SQLServerPool2]at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[SQLServerPool2]at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[SQLServerPool2]at org.jboss.Main.(Main.java:190)
[SQLServerPool2]at org.jboss.Main$1.run(Main.java:94)
[SQLServerPool2]at
java.security.AccessController.doPrivileged(Native Method)
[SQLServerPool2]at org.jboss.Main.main(Main.java:90)


Can anybody tell me what I am missing?

Thanks!

Brenton



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] MS SQL7 JDBC-ODBC parameters

2001-03-27 Thread Brenton House

Here is a doc page on SQL Server:
http://www.jboss.org/documentation/mssql.htm

Plus you need to add a jaws.xml file that is similar to this:




java:/SQLServerPool

 MS SQLSERVER
 
  false
 

 
  MS SQLSERVER



   
   

 
   
---
Brenton House
Java Software Engineer
Pixel Magic Imaging, Inc.


- Original Message - 
From: "Steve Shier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 27, 2001 4:05 AM
Subject: [JBoss-user] MS SQL7 JDBC-ODBC parameters


I want to use the JDBC-ODBC bridge to a Microsoft SQL 7.0 database and 
would like to know the configuration parameters.  They are listed in
the manual only for MS Access (see 
http://www.jboss.org/documentation/HTML/ch03s05.html) and shown here 
below-which of these MS Access parameters needs to be changed for MSSQL7 
and to what values?

MS Access Configuration:
1. jboss.properties
jdbc.drivers=sun.jdbc.odbc.JdbcOdbcDriver

2. jboss.conf



  
  


3. jboss.jcml



  jdbc:odbc:ODBC datasource name
  
  


Is there anything else that needs to be done/avoided, such as in the 
mappings in the jaws.xml file?  I am using JDK 1.3 and JBoss 2.0 on WinNT 
4.0 Server SP6a .


TIA,

Steve Shier

___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user