RE: [JBoss-user] unable to find login configuration file

2001-08-10 Thread Rune Hamnvik

Hello
You need to specify the java.security.auth.login.config parameter to Java.
Try
adding the folling to the java command in the bin/tomcat.sh script:

-Djava.security.auth.login.config=file:///home/JBoss-2.2.2_Tomcat-3.2.2/jbos
s/client/auth.conf

Of course, you need to change the path.

Rune Hamnvik
Mobinor AS

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Carlos
Ferrão
Sent: 10. august 2001 00:38
To: jboss ml
Subject: [JBoss-user] unable to find login configuration file



Hello list,
I'm trying to use JAAS based security in JBoss and I've followed the
example in jboss site. I'm using the UsersRolesLoginModule. Everything works
ok but when I try the same example running Tomcat and JBoss separated, I get
a Unable to find login configuration file. I guess this file is auth.conf
in jboss_home/client dir but I don't know how to tell Tomcat to find it. My
tomcat is running on a different machine but I'm using it with jboss
fine(communication with ejb's). I cannot use Jboss+tomcat because it
conflicts with tomcat+cocoon(if anyone has successfully been able to use
tomcat+cocoon integrated in jboss please let me know).
Anyone knows how to make the login configuration file available to client
(standalone app or tomcat(jsp/servlets))??

Thanks in advance,
Carlos Ferrao


___
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



[JBoss-user] MVCSoft Persistant Manager relationship problem

2001-05-15 Thread Rune Hamnvik

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] 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