Re: [JBoss-user] JBoss 3.0.4: ManagedConnectionFactory becomes null

2003-08-02 Thread David Jencks
I've never seen this happen, and I'm not sure what you mean.  An
application never uses a ManagedConnectionFactory directly, so what are the
symptoms you see?

david jencks

On 2003.07.13 06:46 Jason C Yip wrote:
> 
> 
> 
> 
> Posted this to the forums with no response...
> 
> I'm getting this problem with JBoss 3.0.4 and I'm wondering if anyone has
> experienced something similar.
> 
> I have multiple applications connecting to the same database using a
> shared
> data source service. If the applications are being used simultaneously,
> at
> some point the ManagedConnectionFactory becomes null for one of the
> applications.
> 
> I've worked around this for now by using separate data source services
> per
> application and will probably upgrade to JBoss 3.2.x later on... but I'm
> interested if someone can confirm that this was an issue with JBoss 3.0.4
> or whether I need to investigate further.
> 
> Jason Yip
> Software Developer, ThoughtWorks, Inc
> http://www.thoughtworks.com
> "We ourselves feel that what we are doing is just a drop in the ocean. 
> But
> if that drop was not in the ocean, I think the ocean would be less
> because
> of that missing drop." (Mother Teresa)
> 
> 
> 
> 
> ---
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps1
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] ALERT - GroupShield ticket number OA11_1059845167_AAQMAIP01_3 was generated

2003-08-02 Thread GroupShield for Exchange (AAQMAIP01)
Action Taken:
The attachment was quarantined from the message and replaced with a text
file informing the recipient of the action taken.

To:
Jboss-user <[EMAIL PROTECTED]>

From:
[EMAIL PROTECTED] <[EMAIL PROTECTED]>

Sent:
813324032,29579358

Subject:
[EMAIL PROTECTED] - Found word(s) Best regards, Administrator in
the Text body. - [JBoss-user] your account uanuikoi

Attachment Details:-

Attachment Name: message.zip
File: message.zip
Infected? No
Repaired? No
Blocked? Yes
Deleted? No
Virus Name: 




<>

Re: [JBoss-user] Authentication exception, principal=testUser

2003-08-02 Thread Scott M Stark
Either the password is incorrect, which does not appear to be the case, or the
users.properties is not found on the server side.
See the updated (again today) javaworld article available from sourceforge which 
is here:
http://prdownloads.sourceforge.net/jboss/jaashowto-32x.zip?download

It demonstrates what you are trying to do.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Christofer Dutz wrote:

Hi,

I am still vaving big problems with loging in to a remote jboss-server 
from my client. After debuging as far as I could. I could see the 
correct username and password was transmitted to jboss.
I am using the org.jboss.security.auth.spi.UsersRolesLoginModule on 
jboss-side (I set 
java:/jaas/helloworld) and my 
login-config.xml contains this part:
   
   
   
   guest
   
   
   

I also created roles.properties:
testUser=everyone,Administrator
guest=everyone
And user.properties:
testUser=testPassword
This is the Client-Side Code I am using:

package de.test.client;

import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.security.auth.login.LoginContext;
import org.jboss.security.auth.callback.UsernamePasswordHandler;
import java.net.MalformedURLException;
import java.net.URL;
import de.test.security.ejb.userManagerSes.UserManagerSesHome;
import de.test.security.ejb.userManagerSes.UserManagerSesRemote;
public class TestClient {
   private static String authConfig = "jaas.conf";
   public static void setAuthConfig(String authConfURL)
   throws MalformedURLException {
   // Set the JAAS login config file if not already set
   ClassLoader loader = Thread.currentThread().getContextClassLoader();
   URL loginConfig = loader.getResource(authConfURL);
   if (loginConfig != null) {
   System.setProperty(
   "java.security.auth.login.config",
   loginConfig.toExternalForm());
   } else {
   }
   }
   public static void main(String[] args) {
   try {
   Context ctx = null;
   Properties p = new Properties();
 setAuthConfig(authConfig);
   System.out.println("Auth-Config set ...");
 p.put(Context.PROVIDER_URL, "localhost:1099");
   
p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.security.jndi.LoginInitialContextFactory"); 

   
p.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
   p.put(Context.SECURITY_PROTOCOL, "remoteClientLogin");
   p.put(Context.SECURITY_PRINCIPAL, "testUser");
   p.put(Context.SECURITY_CREDENTIALS, "testPassword");
   ctx = new InitialContext(p);
   System.out.println("InitialContext created ...");

   UsernamePasswordHandler handler = new 
UsernamePasswordHandler("testUser", "testPassword".toCharArray());
   LoginContext lc = new LoginContext("remoteClientLogin", 
handler);
   lc.login();
   System.out.println("Logged in to JBoss server ...");
 Object objRef = 
ctx.lookup("ejb/security/UserManagerSes");
   UserManagerSesHome managerHome = (UserManagerSesHome) 
javax.rmi.PortableRemoteObject.narrow(objRef, UserManagerSesHome.class);
   System.out.println("Retrieved UserManagerSesRemote ...");
 UserManagerSesRemote manager = managerHome.create();
   System.out.println("New user created ...");

   lc.logout();
   } catch (Exception e) {
   e.printStackTrace();
   }
   }
}
Everything goes fine until the create-method is called ... I don't have 
any more ideas fo what to check.
Yes, I did read the article from JavaWorld, but it is some kind of out 
of date on some parts.Especialy the ones of how
everything is configured on jboss side.

Here is the Exception I got:

java.rmi.ServerException: RemoteException occurred in server thread; 
nested exception is:
   java.rmi.ServerException: EJBException:; nested exception is:
   javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
   Authentication exception, principal=testUser
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
   at sun.rmi.transport.Transport$1.run(Transport.java:148)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
   at 


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] CMR remove results in UPDATE? (which fails because of NOT NULL c onstraint)

2003-08-02 Thread Alexey Loubyansky
Hello Troy,

by default, JBoss follows the spec strictly. By the spec, before
entity instance is removed physically, all the relationships the
instance participates in must be destroyed. You can treat it
differently. But there are two things: destroying relationships in
object model and in the data store. By default, JBoss destroys
relationships in both: object model and data store.

You can turn on sync-on-commit-only in container configuration and
relationships will be destroyed in object model only and on commit
only DELETE should be executed.

alex

Friday, August 01, 2003, 8:36:12 PM, Troy Poppe wrote:


PT> Hello,

PT> I have defined a bi-directional one-to-many CMR between two EJBs, PerformancePlan
PT> and AssignedPerformanceElement.  In my database, the FK field (PerformancePlanID)
PT> in AssignedPerformanceElement is defined as NOT NULLable.

PT> In my code, I am trying to remove an AssignedPerformanceElement from a
PT> PerformancePlan, and I make my ValueObject (from XDoclet) to reflect this.  When
PT> I set this value object on the PerformancePlan, it attempts to call remove() on a
PT> AssignedPerformanceElement instance.

PT> In the console log, I get the following:

PT> 11:40:01,090 DEBUG [AssignedPerformanceElement] Executing SQL: UPDATE
PT> ASSIGNEDPERFORMANCEELEMENT SET performancePlanID=? WHERE
PT> assignedPerformanceElementID=?
PT> 11:40:01,131 INFO  [STDOUT] p6spy - 1059752401131|41|3|statement|UPDATE
PT> ASSIGNEDPERFORMANCEELEMENT SET performancePlanID=? WHERE
PT> assignedPerformanceElementID=?|UPDATE ASSIGNEDPERFORMANCEELEMENT SET
PT> performancePlanID='' WHERE assignedPerformanceElementID='170'
PT> 11:40:01,211 ERROR [LogInterceptor] TransactionRolledbackLocalException,
PT> causedBy:
PT> java.sql.SQLException: ORA-01407: cannot update
PT> ("HR"."ASSIGNEDPERFORMANCEELEMENT"."PERFORMANCEPLANID") to NULL

PT> First, why is JBoss trying to UPDATE to remove the AssignedPerformanceElement?
PT> Shouldn't this be a DELETE instead?

PT> What am I missing?  Is there anything in the documentation (I bought the whole
PT> subscription set!  I highly recommend it to anyone who hasnt bought it yet.)

PT> Thanks

PT> Troy Poppe



PT> ---
PT> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
PT> Data Reports, E-commerce, Portals, and Forums are available now.
PT> Download today and enter to win an XBOX or Visual Studio .NET.
PT> http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
PT> ___
PT> JBoss-user mailing list
PT> [EMAIL PROTECTED]
PT> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Home Interface not found?

2003-08-02 Thread Alexey Loubyansky
Hello Juraj,

what is the packaging structure?

alex

Friday, August 01, 2003, 6:27:54 PM, Juraj Lenharcik wrote:

JLtsc> Hello,

JLtsc> I want to connect my EAR App and get this exception:
JLtsc> javax.naming.CommunicationException [Root exception is 
java.lang.ClassNotFoundException: com.test.TestEJBHome]

JLtsc> The Home Interface is in the EAR package. In older versions of Jboss it has 
worked. I tried 3.2.1. Any ideas?

JLtsc> ejb-jar.xml:
JLtsc>   
JLtsc>  

JLtsc>  TestEJB

JLtsc>  com.test.TestEJBHome
JLtsc>  com.test.TestEJBRemote
JLtsc>  com.test.TestEJBLocalHome
JLtsc>  com.test.TestEJB
JLtsc>  com.test.TestEJBBean
JLtsc>  Stateless
JLtsc>  Container

JLtsc>   

JLtsc> Juraj


JLtsc> $ 17:22:24,687 INFO  [MainDeployer] Starting deployment of package: file:/D:/dev
JLtsc> /server/jboss-3.2.1/server/default/deploy/TestApp.ear
JLtsc> 17:22:24,687 INFO  [EARDeployer] Init J2EE application: file:/D:/dev/server/jbos
JLtsc> s-3.2.1/server/default/deploy/TestApp.ear
JLtsc> 17:22:24,968 INFO  [EjbModule] Creating
JLtsc> 17:22:24,968 INFO  [EjbModule] Deploying TestEJB
JLtsc> 17:22:24,968 INFO  [StatelessSessionContainer] Creating
JLtsc> 17:22:24,984 INFO  [StatelessSessionInstancePool] Creating
JLtsc> 17:22:24,984 INFO  [StatelessSessionInstancePool] Created
JLtsc> 17:22:24,984 INFO  [StatelessSessionContainer] Created
JLtsc> 17:22:24,984 INFO  [EjbModule] Created
JLtsc> 17:22:24,984 INFO  [EjbModule] Starting
JLtsc> 17:22:24,984 INFO  [StatelessSessionContainer] Starting
JLtsc> 17:22:25,000 INFO  [StatelessSessionInstancePool] Starting
JLtsc> 17:22:25,000 INFO  [StatelessSessionInstancePool] Started
JLtsc> 17:22:25,000 INFO  [StatelessSessionContainer] Started
JLtsc> 17:22:25,000 INFO  [EjbModule] Started
JLtsc> 17:22:25,000 INFO  [EJBDeployer] Deployed: file:/D:/dev/server/jboss-3.2.1/serve
JLtsc> r/default/tmp/deploy/server/default/deploy/TestApp.ear/34.TestApp.ear-contents/T
JLtsc> estApp.jar
JLtsc> 17:22:25,015 INFO  [EARDeployer] Started J2EE application: file:/D:/dev/server/j
JLtsc> boss-3.2.1/server/default/deploy/TestApp.ear
JLtsc> 17:22:25,031 INFO  [MainDeployer] Deployed package: file:/D:/dev/server/jboss-3.
JLtsc> 2.1/server/default/deploy/TestApp.ear





JLtsc> ---
JLtsc> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
JLtsc> Data Reports, E-commerce, Portals, and Forums are available now.
JLtsc> Download today and enter to win an XBOX or Visual Studio .NET.
JLtsc> http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
JLtsc> ___
JLtsc> JBoss-user mailing list
JLtsc> [EMAIL PROTECTED]
JLtsc> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Sybase type-mapping of NUMERIC(10,7) read in as int

2003-08-02 Thread Alexey Loubyansky
Hello Jonathan,

any stacktrace?

alex

Friday, August 01, 2003, 6:33:12 PM, Jonathan O'Connor wrote:

JOCxd> Hi,
JOCxd> I'm using JBoss 3.0.6, and I'm migrating from Oracle 9i to Sybase 12.0
JOCxd> One of my unit tests is failing because I have a column in a table defined 
JOCxd> as NUMERIC(10,7). When I write a value like 1.24, the DB gets 1.

JOCxd> Has anyone got any ideas? I tried adding in a mapping to jbossjdbccmp.xml 
JOCxd> for java.math.BigDecimal but that's no help.
JOCxd> Ciao,
JOCxd> Jonathan O'Connor
JOCxd> Development Manager
JOCxd> XCOM Dublin
JOCxd> Phone: +353 1 872 3305
JOCxd> Mobile: +353 86 824 9736


JOCxd> ---
JOCxd> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
JOCxd> Data Reports, E-commerce, Portals, and Forums are available now.
JOCxd> Download today and enter to win an XBOX or Visual Studio .NET.
JOCxd> http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
JOCxd> ___
JOCxd> JBoss-user mailing list
JOCxd> [EMAIL PROTECTED]
JOCxd> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Authentication exception, principal=testUser

2003-08-02 Thread Christofer Dutz
Hi,

I am still vaving big problems with loging in to a remote jboss-server 
from my client. After debuging as far as I could. I could see the 
correct username and password was transmitted to jboss.
I am using the org.jboss.security.auth.spi.UsersRolesLoginModule on 
jboss-side (I set 
java:/jaas/helloworld) and my 
login-config.xml contains this part:
   
   
   
   guest
   
   
   

I also created roles.properties:
testUser=everyone,Administrator
guest=everyone
And user.properties:
testUser=testPassword
This is the Client-Side Code I am using:

package de.test.client;

import java.util.Properties;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.security.auth.login.LoginContext;
import org.jboss.security.auth.callback.UsernamePasswordHandler;
import java.net.MalformedURLException;
import java.net.URL;
import de.test.security.ejb.userManagerSes.UserManagerSesHome;
import de.test.security.ejb.userManagerSes.UserManagerSesRemote;
public class TestClient {
   private static String authConfig = "jaas.conf";
   public static void setAuthConfig(String authConfURL)
   throws MalformedURLException {
   // Set the JAAS login config file if not already set
   ClassLoader loader = Thread.currentThread().getContextClassLoader();
   URL loginConfig = loader.getResource(authConfURL);
   if (loginConfig != null) {
   System.setProperty(
   "java.security.auth.login.config",
   loginConfig.toExternalForm());
   } else {
   }
   }
   public static void main(String[] args) {
   try {
   Context ctx = null;
   Properties p = new Properties();
  
   setAuthConfig(authConfig);
   System.out.println("Auth-Config set ...");
  
   p.put(Context.PROVIDER_URL, "localhost:1099");
   
p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jboss.security.jndi.LoginInitialContextFactory");
   
p.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
   p.put(Context.SECURITY_PROTOCOL, "remoteClientLogin");
   p.put(Context.SECURITY_PRINCIPAL, "testUser");
   p.put(Context.SECURITY_CREDENTIALS, "testPassword");
   ctx = new InitialContext(p);
   System.out.println("InitialContext created ...");

   UsernamePasswordHandler handler = new 
UsernamePasswordHandler("testUser", "testPassword".toCharArray());
   LoginContext lc = new LoginContext("remoteClientLogin", 
handler);
   lc.login();
   System.out.println("Logged in to JBoss server ...");
  
   Object objRef = ctx.lookup("ejb/security/UserManagerSes");
   UserManagerSesHome managerHome = (UserManagerSesHome) 
javax.rmi.PortableRemoteObject.narrow(objRef, UserManagerSesHome.class);
   System.out.println("Retrieved UserManagerSesRemote ...");
  
   UserManagerSesRemote manager = managerHome.create();
   System.out.println("New user created ...");

   lc.logout();
   } catch (Exception e) {
   e.printStackTrace();
   }
   }
}
Everything goes fine until the create-method is called ... I don't have 
any more ideas fo what to check.
Yes, I did read the article from JavaWorld, but it is some kind of out 
of date on some parts.Especialy the ones of how
everything is configured on jboss side.

Here is the Exception I got:

java.rmi.ServerException: RemoteException occurred in server thread; 
nested exception is:
   java.rmi.ServerException: EJBException:; nested exception is:
   javax.ejb.EJBException: checkSecurityAssociation; CausedByException is:
   Authentication exception, principal=testUser
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:292)
   at sun.rmi.transport.Transport$1.run(Transport.java:148)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
   at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
   at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
   at java.lang.Thread.run(Thread.java:536)
   at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
   at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
   at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown 
Source)
   at 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:135)
   at 
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:96)
   at 
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
   at 
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45)
   at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:173)
   at org.jboss.proxy.ClientContainer.invoke(ClientConta

Re: [JBoss-user] dynamic jms queues or bean polling

2003-08-02 Thread Scott M Stark
I guess you need to describe why the topic approach was a waste of bandwidth.
A collection of client subscribed to a topic with a filter really should come 
down to the same behavior as the dedicated dynamic queue approach unless the 
clients were filtering the messages after receipt.

--

Scott Stark
Chief Technology Officer
JBoss Group, LLC

Sebastian Hauer wrote:

Hi,

I have java GUI clients which connect to a clustered JBoss server
environment via JMS.  So far I was using JMS topics to broadcast certain
message to a topic all clients where subscribed to.  This turned out to
be a great waste of bandwidth because most message are only relevant for
a small subset of clients.
So I thought about it and came up with two possibilities to address this
issue:
#1
Because of the pub/sub nature of topics I thought that possibly
point-to-point message queues are better suited for my problem.  
I want to be able to publish messages from a MBean on the server side to
specific clients.  Because I need one queue per client and I don't know
how many clients will log into my system.  I think I will need to be
able to dynamically created queues.  
I briefly looked into temporary queues but the API said that one can
only use them within the same queue connection, which makes them
unusable for me.  I know that queues are just MBeans so I thought of
creating them through a bean call and returning the unique JNDI name to
the client which would look the Queue up and be able to subscribe.  I
might also have to think of something in case the JMS node in the
cluster dies and dynamically recreate the queues.

#2
Poll the app servers a few times a minute using ordinary bean calls and
forgetting about JMS.  Disadvantage is that I will have a possibly
bigger latency until the client will get the information than it would
if I would use JMS.  Waste some bandwidth for unnecessary bean calls.
Any feedback and alternative ideas are welcome.

Regards,
Sebastian


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user