[JBoss-user] JBOSS 2.2.1 BUG !!!

2001-05-20 Thread Artur Jonak

Hi,

There is a bug in JBOSS 2.2.1

I have a very simple BMP Entity Bean with following home interface:

public interface SimpleBeanHome extends BaseHome {}

and in another file:

public interface BaseHome extends EJBHome
{
Base create(String key) throws RemoteException, CreateException;
Base findByPrimaryKey(String key) throws RemoteException,
FinderException;
}

my implementation of the bean is trivial.
Let's assume that all code is correct.
In the client application I try to create my bean with key 'one' - it works
properly.
But if I try to find this bean using findByPrimaryKey the following
Exception is thrown

[SimpleBean] TRANSACTION ROLLBACK EXCEPTION:result of finder method is not a
valid return type: class java.lang.String; nested exception is:
 java.rmi.RemoteException: result of finder method is not a valid return
type: class java.lang.String
[SimpleBean] java.rmi.RemoteException: result of finder method is not a
valid return type: class java.lang.String
[SimpleBean]  at
org.jboss.ejb.plugins.BMPPersistenceManager.findEntities(BMPPersistenceManag
er.java:259)
[SimpleBean]  at
org.jboss.ejb.EntityContainer.find(EntityContainer.java:392)
[SimpleBean]  at java.lang.reflect.Method.invoke(Native Method)
[SimpleBean]  at 

The same code works on SUN J2EE 1.2.1 app server.

Note that if I don't inherit SimpleBeanHome interface from BaseHome but
simply from EJBHome with declared both methods the application works
perfectly.

I'm using JBOSS 2.2 with Tomcat 2.2.

Regards,
AJ.



Pozdrawiam,
AJ.






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



Re: [JBoss-user] Database connection pool hangs...

2001-05-20 Thread Phan Anh Tran

I found the problem.  I ran out of connections with blocking enabled on the
pool.

Anh

- Original Message -
From: "Phan Anh Tran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 20, 2001 11:32 PM
Subject: [JBoss-user] Database connection pool hangs...


> OS: Windows 2K.
> J2SDK1.3.0_02 and  and J2EE 1.3 beta.
> JBOSS 2.2.1 and Tomcat 3.2.1
> MySQL 3.23.36
> mm driver 2.0.4
>
> This code is running in the context of a stateless session bean:
>
> Context initCtx = new InitialContext();
> DataSource ds = (DataSource)initCtx.lookup("java:/" +
aDataSourceName);
> Connection conn = ds.getConnection();
>
> The code hangs some where in the ds.getConnection() after 5-6 iterations
> (calls to the bean's one and only method).  Is this a jboss or a mm driver
> problem?
>
> Thanks,
> Anh
>
>
>
> _
> 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


_
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] java.io.FileNotFoundException

2001-05-20 Thread Matt Davies

Hi Guys,

I need some pointers. So far in coming to grips with learning J2EE/JBoss I 
have found this list to be very useful as a reference.

I currently have a similar problem (to the posting below) and I am wondering 
if there were any ideas as to the cause of this problem for Ralf?

In my case this occurs everytime when trying to use the reference derived by 
context.getEJBObject() which has been passed to a service (bound to a JBoss 
JNDI context).

ie  ... in my EJB's ejbCreate(...) ...:

context = new InitialContext();
myService =
(MyService) context.lookup(SOME_JNDI_NAME);
myService.addMyEJB(source,
(MyServiceReqdInterface)
 PortableRemoteObject.narrow(session.getEJBObject(),
 MyServiceReqdInterface.class));

... and a direct method call back in the server (myService) during addMyEJB as 
called above causes the exception ...

java.rmi.NoSuchObjectException: Could not activate; nested exception is: 
java.io.FileNotFoundException: /.../JBoss-2.2.1_Tomcat-3.2.1/jboss/db/sessions
/MyEJB/990427192513.ser (No such file or directory)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemote
Call.java:245)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkn
own Source)
at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
at $Proxy0.create(Unknown Source)
at jet2.Test1.(Test1.java:102)
at jet2.Test1.main(Test1.java:72)

There is only one instance of one EJB in the entire server, being the one that 
uses the code above during ejbCreate(...);

Perhaps my style, or approach is wrong. I am trying to register EJB stateful 
objects as listeners on a server!

Kind Regards,

Matt


> 
> From: Ralf Purnhagen 
> Subject: [JBoss-user] java.io.FileNotFoundException 
> Date: Fri, 30 Mar 2001 02:22:19 -0800 
> Hi,
> we use current CVS of JBoss. Sometimes we get the following
> Exception:

> [SessionManager] TRANSACTION ROLLBACK EXCEPTION:Could not
> activate;
> nested
> exception is:
>  java.io.FileNotFoundException:
> E:\javalib\jboss\dist\db\sessions\SessionManager\985947443675.s
> er (Das
> System kann die angegebene Datei nicht finden); nested
> exception is:
>  java.rmi.NoSuchObjectException: Could not activate; nested
> exception
> is:
>  java.io.FileNotFoundException:
> E:\javalib\jboss\dist\db\sessions\SessionManager\985947443675.s
> er (Das
> System kann die angegebene Datei nicht finden)
> [SessionManager] java.rmi.NoSuchObjectException: Could not
> activate;
> nested
> exception is:
> [SessionManager]  java.io.FileNotFoundException:
> E:\javalib\jboss\dist\db\sessions\SessionManager\985947443675.s
> er (Das
> System kann die angegebene Datei nicht finden)
> [SessionManager]  at
> org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanc
> eCache.java:1
> 73)
> [SessionManager]  at
> org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke
> (StatefulSess
> ionInstanceInterceptor.java:157)
> [SessionManager]  at
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptor
> CMT.java:133)
> [SessionManager]  at
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIn
> terceptorCMT.
> java:263)
> [SessionManager]  at
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.
> java:99)
> [SessionManager]  at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java
> :195)
> [SessionManager]  at
> org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionCo
> ntainer.java:
> 326)
> [SessionManager]  at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(J
> RMPContainerI
> nvoker.java:482)
> [SessionManager]  at
> org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invo
> ke(StatefulSe
> ssionProxy.java:150)
> [SessionManager]  at $Proxy13.getCustomizations(Unknown
> Source)
> [SessionManager]  at de.imost.action.Style.execute(Style.java:3
> 2)
> [SessionManager]  at
> webwork.servlets.Dispatcher.service(Dispatcher.java:477)
> [SessionManager]  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> [SessionManager]  at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.
> java:404)
> [SessionManager]  at
> org.apache.tomcat.core.Handler.service(Handler.java:286)
> [SessionManager]  at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.ja
> va:

[JBoss-user] Database connection pool hangs...

2001-05-20 Thread Phan Anh Tran

OS: Windows 2K.
J2SDK1.3.0_02 and  and J2EE 1.3 beta.
JBOSS 2.2.1 and Tomcat 3.2.1
MySQL 3.23.36
mm driver 2.0.4

This code is running in the context of a stateless session bean:

Context initCtx = new InitialContext();
DataSource ds = (DataSource)initCtx.lookup("java:/" + aDataSourceName);
Connection conn = ds.getConnection();

The code hangs some where in the ds.getConnection() after 5-6 iterations
(calls to the bean's one and only method).  Is this a jboss or a mm driver
problem?

Thanks,
Anh



_
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] Transactions: Required vs. RequiredNew

2001-05-20 Thread RRokytskyy

Hi,

I have a couple of entity beans without corresponding session beans. Also I
have appropriate wrapper classes for use in the application. The business
logic is implemented on the "client" (more correctly, another tier) side
instead of session beans. The reason for such design is that I have to have
the possibility to use simultaneously EJB and non-EJB classes while
supporting the same interface.

The question is: what kind of transaction demarcation should I use to get
the atomic execution of EJB methods, while don't caring about the atomicity
of the subsequent execution of couple bean's methods?

TIA,
Roman Rokytskyy

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



Re: [JBoss-user] A rookie mistake?

2001-05-20 Thread Guy Rouillier

See if you have a jboss-2.2.1/db/jbossmq directory.  Seems this directory
got left out of the current distribution.

- Original Message -
From: "Greg Garson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 18, 2001 6:32 PM
Subject: [JBoss-user] A rookie mistake?


> Hi guys,
>
> I'm just trying to get started with JBoss and have got the server up and
> deploying .ears nicely.  The only problem i've got is each time I start
> up the server I get the following exceptions:
>
> [JBossMQ] Starting
> [JBossMQ] Cannot start the JMS server ! Invalid configuration.
> [JBossMQ] javax.jms.JMSException: Invalid configuration.
> [JBossMQ]   at
> org.jbossmq.server.PersistenceManager.(PersistenceManager.java:107)
>
> [JBossMQ]   at
> org.jbossmq.server.StartServer.run(StartServer.java:170)
> [JBossMQ]   at
> org.jbossmq.server.StartServer.start(StartServer.java:70)
> [JBossMQ]   at
> org.jbossmq.server.JBossMQService.startService(JBossMQService.java:66)
> [JBossMQ]   at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
> [JBossMQ]   at java.lang.reflect.Method.invoke(Native Method)
> [JBossMQ]   at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>
> [JBossMQ]   at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>
> [JBossMQ]   at
> org.jboss.util.ServiceControl.start(ServiceControl.java:97)
> [JBossMQ]   at java.lang.reflect.Method.invoke(Native Method)
> [JBossMQ]   at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
>
> [JBossMQ]   at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
>
> [JBossMQ]   at org.jboss.Main.(Main.java:203)
> [JBossMQ]   at org.jboss.Main$1.run(Main.java:107)
> [JBossMQ]   at java.security.AccessController.doPrivileged(Native
> Method)
> [JBossMQ]   at org.jboss.Main.main(Main.java:103)
>
> Is this something fairly regular that i'm missing?  I'm just puzzled as
> I didn't change anything from the base configuration I downloaded yet...
>
> Thanks,
>
> Greg
> --
> Razorfish, Inc.
>
> Greg Garson
> Technology Network
>
> 169 11th Street
> San Francisco
> CA 94103
>
> SF +1 415 343 6550
> E  [EMAIL PROTECTED]
>
> razorfish.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



Re: [JBoss-user] Beans in jsp

2001-05-20 Thread Guy Rouillier

Put them into a classpath that is visible to both JBoss and Tomcat.

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 18, 2001 10:41 AM
Subject: RE: [JBoss-user] Beans in jsp


> No clue, I never used .ear files.
> 
> Does anybody have any idea how to avoid having the multiple copies of the
> home and remote interfaces in jboss and tomcat?
> 
> > There's no way to create a context from the ejb jar and see the beans
> > without need of maintain two copies of my interfaces? 
> 
> ___
> 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] BM Entity Bean Example?

2001-05-20 Thread Christopher Cheng

Does anybody have an example of Bean Managed EJB with JBoss, preferably for
Sybase?


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



[JBoss-user] [Security]Method Permission

2001-05-20 Thread arionyu

Hi!

The scenario is like this:

Client -> BeanA -> BeanB

The client would call a method in beanA and beanA would call a method on
BeanB.

I have set the method permission for beanA to the client. However, I don't
want to give the direct access to the client for beanB.
Can I have beanA doing the job for the client?

A more concrete example would be like this:

Client -> Teller.transfer() -> Account.setBalance()

You won't want the client calling the Account.setBalance() directly, right?

Thanks

Arion


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



Re: [JBoss-user] Address in use

2001-05-20 Thread erik.peterson

Look under jboss/conf/tomcat/standardjboss.xml. You'll find several
 refs.

Erik


- Original Message -
From: "d cutter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 19, 2001 11:32 AM
Subject: [JBoss-user] Address in use


> i just started using jboss yesterday, so i may very well be doing
something
> silly, but when i attempt to deploy a trivial session bean, i get the
> following exception below.  i looked through deja and the faq, but saw
> nothing that looked like this.  it appears as if jboss wants to use port
>  and something else is already using it.  i have no idea what that
would
> be.  is there a way to find out?  is there a way to change the port that
> jboss wants to use?  am i completely off base?
>
>
> i included my deployment descriptor after the exception (which is snipped)
> in case i am doing something wrong there.
>
>
> thanks for any help anyone can provide :)
>
> [J2EE Deployer Default] install module simpletest.jar
> [Container factory]
>
Deploying:file:/C:/JBoss-2.2.1_Tomcat-3.2.1/jboss/tmp/deploy/Default/simplet
est.jar
> [Verifier] Verifying
>
file:/C:/JBoss-2.2.1_Tomcat-3.2.1/jboss/tmp/deploy/Default/simpletest.jar/ej
b1001.jar
> [Container factory] Deploying SimpleTest
> [Container factory] java.rmi.ServerException: Could not bind either home
or
> invoker; nested exception is:
> [Container factory] java.rmi.server.ExportException: Port already in
> use: ; nested exception is:
> [Container factory] java.net.BindException: Address in use: JVM_Bind
> [Container factory] java.rmi.server.ExportException: Port already in use:
> ; nested exception is:
> [Container factory] java.net.BindException: Address in use: JVM_Bind
> [Container factory] java.net.BindException: Address in use: JVM_Bind
> [Container factory] at java.net.PlainSocketImpl.socketBind(Native
> Method)
> [Container factory] at
> java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
> [Container factory] at
> java.net.ServerSocket.(ServerSocket.java:170)
> [Container factory] at
> java.net.ServerSocket.(ServerSocket.java:82) ...
>
> deployment descriptor
> -
>
> 
>
> 
> 
> 
> SimpleTest
> testejb.SimpleTestHome
> testejb.SimpleTest
> testejb.SimpleTestEJB
> Stateless
> Container
> 
> 
>
> 
> 
> 
> SimpleTest
> *
> 
> Supports
> 
> 
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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



Re: [JBoss-user] Hardware Sizing

2001-05-20 Thread Toby Allsopp

On Sun, May 20, 2001 at 08:53:23PM -0400, Thomas Cong wrote:
> [JBoss-user] calling EJB by using reflexion in a generic way

Huh?

> JBoss experts,
> I am looking for any available hardware configuration/sizing information to support 
>a Jboss/Tomcat deployment in production. 

Add hardware until it runs fast enough or you run out of money.

Seriously, your question is impossible to answer.  If you provide some
details about what you will be doing with JBoss/Tomcat then someone might
be able to make a guess, but the only way to know is to measure how fast
your application runs under the kinds of loads you expect.

Toby.

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



[JBoss-user] Hardware Sizing

2001-05-20 Thread Thomas Cong
Title: [JBoss-user] calling EJB by using reflexion in a generic way




JBoss experts,
I am looking for any available hardware 
configuration/sizing information to support a Jboss/Tomcat deployment in 
production. 
Thanks in advance!
 
Thomas Cong
Portal Software
[EMAIL PROTECTED]
 


Re: [JBoss-user] Problem running JBoss 2.2.1

2001-05-20 Thread Norman Rupp

Hey, guy.  You have a classpath issue.

What you need to do is right click on my computer, and go to properties.
Now, click Advanced / Environment variables.

Okay.  You need to make sure that the directory that your jdk is installed
is in a directory called JAVA_HOME

It looks like this:

JAVA_HOME d:\java\jdk1.3

That should fix that problem.  There are many more elegant ways to make this
stuff run smoothly.  If you have more trouble, let me know.




- Original Message -
From: "Jim Fritchman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 20, 2001 2:21 PM
Subject: [JBoss-user] Problem running JBoss 2.2.1


> I'm trying to get JBoss running on my Win2000 machine.  I have the jdk in
my
> path like the instructions say, but when I run the batch file I get the
> following error
>
> Failed reading value of registry key
> Software\Javasoft\Java Runtime Environment\CurrentVersion
> Error: could not find java.dll
> Error: could not find Java 2 Runtime Environment
>
> I would greatly appreciate any help in this matter.
>
> Regards,
> Jim Fritchman
>
>
> ___
> 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



Re: [JBoss-user] Problem running JBoss 2.2.1

2001-05-20 Thread Faisal Abdallah

This happened to me many times (win98) whenever I install or uninstall a
program run by j2sdk!
try to go back to j2sdk...exe install it again
the run Jboss
hope this help!
Faisal
- Original Message -
From: "Jim Fritchman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 20, 2001 8:21 PM
Subject: [JBoss-user] Problem running JBoss 2.2.1


> I'm trying to get JBoss running on my Win2000 machine.  I have the jdk in
my
> path like the instructions say, but when I run the batch file I get the
> following error
>
> Failed reading value of registry key
> Software\Javasoft\Java Runtime Environment\CurrentVersion
> Error: could not find java.dll
> Error: could not find Java 2 Runtime Environment
>
> I would greatly appreciate any help in this matter.
>
> Regards,
> Jim Fritchman
>
>
> ___
> 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



RE: [JBoss-user] Problem running JBoss 2.2.1

2001-05-20 Thread Pete Bennett

I'm no expert in the vagueries of Windows ;-) ... but that sounds very much
to me as if the state of your registry is inconsitent with the JDK that you
think you have installed and are running.

The error could also imply that you are trying to start jBoss with the JRE
instead of the full SDK.

I'd suggest you try starting jBoss with the full path to you java.exe rather
than relying on the path.

i.e.

hack the line %JAVA_HOME%\bin\java in run*.bat to c:\jdk1.3\bin\java.exe (or
whatever).

If that doesn't work I would double-check your PATH environment variable and
then uninstall and reinstall the JVM to make sure your registry entries are
correct.

Hope this helps,
Pete

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jim
Fritchman
Sent: 20 May 2001 20:22
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Problem running JBoss 2.2.1


I'm trying to get JBoss running on my Win2000 machine.  I have the jdk in my
path like the instructions say, but when I run the batch file I get the
following error

Failed reading value of registry key
Software\Javasoft\Java Runtime Environment\CurrentVersion
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment

I would greatly appreciate any help in this matter.

Regards,
Jim Fritchman


___
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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-20 Thread Lewis Henderson

...I tried the three new jars...I get the same problem...However, the
problem is 'client' side.

Using two machines, both with JBoss & Embedded Tomcat, I connect my browser
to machine 1 for Tomcat JSP's talking to machine 2's EJB's...

My proxy on the client-side looses the SecurityAssociation as it's threads
change...

...am I making sense and is there anything else I can try?


Lewis
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Lewis
Henderson
Sent: 20 May 2001 14:53
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


Thx!

When will 2.3 be available?

Can I use the new jboss-jaas.jar and jbosssx.jar with 2.2.1?

Lewis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M
Stark
Sent: 20 May 2001 04:59
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


Currently(JBoss-2.2.1) the security information that is obtained
from the server request is stored in a ThreadLocal and so
is only available to the request thread. You need to propagate
the security information to any child threads.

As of JBoss-2.3, security information is stored in an
InheritableThreadLocal and so is propgated automatically
to any child threads.

Lewis Henderson wrote:

> ...this is the important bit of the trace...
> ...the remote interface is stored and retrieved correctly on the session,
> however the SecurityAssociation was stored in a ThreadLocal on Thread-12
> earlier and now we are using Thread-10...
>
> marc suggests that we need some kind of InheritableThreadLocal
> implementation to get round this...
>
> I am using embedded tomcat if that helps anyone...?
>


___
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 mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] How does the tomcat classpath get set when started as a Jboss service?

2001-05-20 Thread Cuong Tran


  I believe it's set from jboss.conf.

--- Adam Lipscombe <[EMAIL PROTECTED]> wrote:
> Folks,
> 
> 
> How does the Tomcat classpath get set when starting it via JBoss?
> 
> I can get the Apache SOAP  examples to work when tomcat is run stand-alone
> without JBoss.
> i.e. Tomcat is started by tomcat/bin/startup.bat(sh) script.
> However, some tweaking of the CLASSPATH was required in startup.bat.
> 
> 
> But, when I start JBoss, which then starts tomcat as a service, the examples
> wont work.
> Methinks its a classpath issue with Tomcat...
> 
> 
> Thanks - Adam
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


=
Cuong Q. Tran <[EMAIL PROTECTED]>

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

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



[JBoss-user] How does the tomcat classpath get set when started as a Jboss service?

2001-05-20 Thread Adam Lipscombe

Folks,


How does the Tomcat classpath get set when starting it via JBoss?

I can get the Apache SOAP  examples to work when tomcat is run stand-alone
without JBoss.
i.e. Tomcat is started by tomcat/bin/startup.bat(sh) script.
However, some tweaking of the CLASSPATH was required in startup.bat.


But, when I start JBoss, which then starts tomcat as a service, the examples
wont work.
Methinks its a classpath issue with Tomcat...


Thanks - Adam


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



Re: [JBoss-user] Miss sample codes in JBoss online documentation

2001-05-20 Thread Tobias Frech

Just above the source code to the CD bean you can read the following
sentences:

"Remember that the full source code is available to download as an
archive named"cdEJB.zip". You can get it from the files
area in the documentation section on www.jboss.org."

Hope this helps ..

Ciao,
Tobias

Ling Wang wrote:
> 
> Hello every one,
> 
> I am new to JBoss. I am reading the online documentation. Chapter 4, Using
> container-managed persistence, has some missing sample codes. The
> CDCollection, CDCollectionHome, CDCollectionBean just does not exist. I
> tried to compile List.java which uses CDCollectionHome. Of course, it won't
> even compile. Can anyone fix the problem or points me to the right place
> which has the complete documentation?
> 
> Thanks.
> 
> Ling Wang
> 
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.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



[JBoss-user] Problem running JBoss 2.2.1

2001-05-20 Thread Jim Fritchman

I'm trying to get JBoss running on my Win2000 machine.  I have the jdk in my
path like the instructions say, but when I run the batch file I get the
following error

Failed reading value of registry key
Software\Javasoft\Java Runtime Environment\CurrentVersion
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment

I would greatly appreciate any help in this matter.

Regards,
Jim Fritchman


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



[JBoss-user] home.create throws an IllegalStateException

2001-05-20 Thread Ferguson, Doug

Hi,

When I call home.create() for my entity bean it behaves just fine under
normal situations. However if I call home.create() serveral times in
succession only the first call will work the others will throw and
IllegalStateException. The exception is getting when becuase the
InstanceCache object finds the id in it's cache..   Which is bizarre because
the I print out the id and it is unique.  Another thing that is bizare is
the message that comes back from the instant cache indicates that the id is
0!

Any ideas?

Stack Trace
***
Login] Found CoreUser interface 
[CoreUserBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is: 
javax.ejb.EJBException 
[CoreUserBean] java.lang.IllegalStateException: INSERTING AN ALREADY 
EXISTING BEAN, ID = 0 
[CoreUserBean]  at 
org.jboss.ejb.plugins.AbstractInstanceCache.insert(AbstractInstanceCache.jav
a:207) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPPersistenceManag
er.java:165) 
[CoreUserBean]  at 
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java:441) 
[CoreUserBean]  at java.lang.reflect.Method.invoke(Native Method) 
[CoreUserBean]  at 
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContaine
r.java:639) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySync
hronizationInterceptor.java:160) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInt
erceptor.java:87) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)

[CoreUserBean]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:164) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106) 
[CoreUserBean]  at 
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:369) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContai
nerInvoker.java:423) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212) 
[CoreUserBean]  at $Proxy43.create(Unknown Source) 
[CoreUserBean]  at 
com.coremetrics.security.LoginBean.createCoreUser(LoginBean.java:61) 
[CoreUserBean]  at java.lang.reflect.Method.invoke(Native Method) 
[CoreUserBean]  at 
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Stateles
sSessionContainer.java:472) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSe
ssionInstanceInterceptor.java:87) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)

[CoreUserBean]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:19
0) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195) 
[CoreUserBean]  at 
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271) 
[CoreUserBean]  at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:392) 
[CoreUserBean]  at java.lang.reflect.Method.invoke(Native Method) 
[CoreUserBean]  at 
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241) 
[CoreUserBean]  at sun.rmi.transport.Transport$1.run(Transport.java:142) 
[CoreUserBean]  at java.security.AccessController.doPrivileged(Native 
Method) 
[CoreUserBean]  at 
sun.rmi.transport.Transport.serviceCall(Transport.java:139) 
[CoreUserBean]  at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443) 
[CoreUserBean]  at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43) 
[CoreUserBean]  at java.lang.Thread.run(Thread.java:484) 

  

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



RE: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB => JAAS Authentiaction

2001-05-20 Thread Lewis Henderson

Thx!

When will 2.3 be available?

Can I use the new jboss-jaas.jar and jbosssx.jar with 2.2.1?

Lewis

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M
Stark
Sent: 20 May 2001 04:59
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Please help :-( tomcat Servlet => Jboss EJB =>
JAAS Authentiaction


Currently(JBoss-2.2.1) the security information that is obtained
from the server request is stored in a ThreadLocal and so
is only available to the request thread. You need to propagate
the security information to any child threads.

As of JBoss-2.3, security information is stored in an
InheritableThreadLocal and so is propgated automatically
to any child threads.

Lewis Henderson wrote:

> ...this is the important bit of the trace...
> ...the remote interface is stored and retrieved correctly on the session,
> however the SecurityAssociation was stored in a ThreadLocal on Thread-12
> earlier and now we are using Thread-10...
> 
> marc suggests that we need some kind of InheritableThreadLocal
> implementation to get round this...
> 
> I am using embedded tomcat if that helps anyone...?
> 


___
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



Re: [JBoss-user] DTD for ejb-jar.xml and jboss.xml

2001-05-20 Thread Sebastien Alborini

[EMAIL PROTECTED] wrote:
> 
> Is there a document or dtd that describes and lists the valid values for
> ejb-jar.xml and jboss.xml?

http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd
http://www.jboss.org/documentation/jboss.dtd

Sebastien

> 
> Thanks,
> Scott
> 
> ___
> 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



Re: [JBoss-user] Address in use

2001-05-20 Thread Sebastien Alborini

d cutter wrote:
> 
> i just started using jboss yesterday, so i may very well be doing something
> silly, but when i attempt to deploy a trivial session bean, i get the
> following exception below.  i looked through deja and the faq, but saw
> nothing that looked like this.  it appears as if jboss wants to use port
>  and something else is already using it.  i have no idea what that would
> be.  is there a way to find out? 

Under linux, something like 
lsof -i tcp:

> is there a way to change the port that
> jboss wants to use? 

Yes, you can change it in standardjboss.xml: change the 
values.

Sebastien

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



Re: [JBoss-user] CMP table for entity bean never being created

2001-05-20 Thread Lisa Stuart

Hi all,

thanks for your help, changed the bean to Ord and the table has been created.
Moved on to my next problem which if I can't solve soon, you will all be
hearing about...

Thanks again,
Lisa


Ivan Novick wrote:

> Do you have jaws.xml file and if so could you paste it into a message so we
> could see your code.
>
> Ivan
>
> - Original Message -
> From: "Lisa Stuart" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, May 18, 2001 8:29 PM
> Subject: [JBoss-user] CMP table for entity bean never being created
>
> > Hi all,
> > I'm hoping for some help...
> > I have got three entity beans and one session bean that use CMP and are
> > deployed successfully.
> > The entity beans are Product, LineItem and Order.
> > This is what I get at deploy,
> >
> > [Container factory] Deploying Product
> > [Container factory] Deploying Order
> > [Container factory] Deploying LineItem
> > [Container factory] Deploying AllProds
> > [JAWS] Table 'Product' already exists
> > [JAWS] Table 'LineItem' already exists
> > [Container factory] Deployed application:
> > file:/misc/brian_d/jboss/jboss/tmp/deploy/Default/test.jar/
> > [J2EE Deployer Default] J2EE application:
> > file:/misc/brian_d/jboss/jboss/deploy/test.jar is deployed.
> >
> > The table for Order is never being created and the program craps out
> > when I try to create an Order from a servlet,
> >
> > [EmbeddedTomcat] got orderHome
> > [EmbeddedTomcat] javax.ejb.CreateException: Could not create
> > entity:java.sql.SQLException: Table not found: ORDER in statement
> > [INSERT INTO Order (id) VALUES ('001')]
> >
> > If anyone can help I'd really appreciate it...thanks,
> >
> > Lisa
> >
> > In case it is a desriptor problem here is my ejb-jar.xml
> >
> > 
> >
> >  
> > Product Viewing Example
> > Test
> > 
> >
> >
> >   AllProds
> >   AllProductsHome
> >   AllProducts
> >   AllProductsBean
> >   Stateless
> >   Bean
> >   
> >  ejb/Product
> >  Entity
> >  ProductHome
> >  Product
> >  Product
> >  
> >
> >
> >  
> >Product
> >ProductHome
> >Product
> >ProductBean
> >Container
> >java.lang.String
> >False
> >id
> >name
> >desc
> >unit
> >price
> >id
> >  
> >
> >  
> >Order
> >OrderHome
> >Order
> >OrderBean
> >Container
> >java.lang.String
> >False
> >id
> >id
> >
> >   ejb/LineItem
> >   Entity
> >   LineItemHome
> >   LineItem
> >   LineItem
> >
> >  
> >
> > 
> >LineItem
> >LineItemHome
> >LineItem
> >LineItemBean
> >Container
> >java.lang.String
> >False
> >id
> >productPK
> >orderPK
> >qty
> >id
> >
> >   ejb/Product
> >   Entity
> >   ProductHome
> >   Product
> >   Product
> >
> >
> >  ejb/Order
> >  Entity
> >  OrderHome
> >  Order
> >  Order
> >
> >  
> > 
> > 
> >
> >
> >
> > ___
> > 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 mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] NPE in EntityProxy

2001-05-20 Thread Tim McCune
Title: NPE in EntityProxy





-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


I'm getting a NullPointerException in EntityProxy on line 182, using
JBoss 2.2.1 with InstantDB.  When I run JBoss the first time, I can
access all of my entity beans without getting this exception. 
However, once I shut down JBoss and restart it, the exceptions start
popping up when I try to call any getter on certain entity beans. 
For instance, calling getName on a bean works every time during the
first run of JBoss, but after restarting JBoss, I get:
 
java.lang.NullPointerException
at
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.j
ava:182)
at $Proxy6.getName(Unknown Source)
 
I tried building from CVS to see if that would help, but with that
code base, JBoss goes into an infinite loop with a screen full of
SELECT COUNT( * ) SQL statements scrolling by the first time I call
any findByPrimaryKey method.
 
Any suggestions would be appreciated.  Thanks.
 
 
Tim McCune
Software Architect, ChannelPoint
"If you can't spot the sucker in the first half hour at the table,
then you ARE the sucker." -- Mike McDermott, Rounders
 


-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.3 for non-commercial use 


iQA/AwUBOwdxmNUPOr8a7vy5EQIPjQCcCIQRMyNIHZVjz9NL4tELrURuis0AoJ9t
q2qBYdqvODwjvF+TNRoOvA1f
=IKBI
-END PGP SIGNATURE-