[JBoss-user] Any Great JSP Tag Library

2001-09-17 Thread John LYC

Hi All,

has anyone come across a great JSP Tag library that can be use with the
current Jboss/tomcat 3.2.x ?

Thanks
john

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



[JBoss-user] DB2 Connecting problem remotely

2001-09-17 Thread Krishna Prasad



Hi all,
 
        I'm trying to get 
connection DB2 7.1 which is in remote system.
        I copied db2java.zip 
lib/ext directory under JBoss directory.   

        I followed the document 
http://www.jboss.org/documentation/HTML/ch04s11.html 
        In jboss.jcml, added 
code is:
 
   
COM.ibm.db2.jdbc.app.DB2Driver  
      
 org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl 
     DB2DS    
 jdbc:db2://servername:8080/demomall    
 user    
 pwd  

    After I started 
run_with_tomcat, i'm not able to find out whether the connection established or 
not.  I tried to run my client program, then i got errors 
like:
        package  import 
com.ibm.db2.* ;  does not exist
 
    So, can anyone help 
me out from this problem. 
 
Thanx in advance,
Krishna
 



*
Disclaimer

This message (including any attachments) contains 
confidential information intended for a specific 
individual and purpose, and is protected by law. 
If you are not the intended recipient, you should 
delete this message and are hereby notified that 
any disclosure, copying, or distribution of this
message, or the taking of any action based on it, 
is strictly prohibited.

*
Visit us at http://www.mahindrabt.com




Re: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

Well,

I re-coded another bean  using a local client...
and it works i also did what you said.. set the properties of  the
jnp/jndi... in my client
thanks for helping...

man , this mailling list is great..

John

- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 11:20 PM
Subject: RE: [JBoss-user] Error during conetxt.lookup()


> John,
> - forget about your test *in* the container
> - in your client code, add the following:
>
> Properties props = new Properties();
>
> props.put( "java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> props.put( "java.naming.provider.url", "jnp://yourServerName:1099");
> props.put( "java.naming.factory.url.pkgs",
> "org.jboss.naming:org.jnp.interfaces");
>
> Context ctx = new InitialContext(props);
>
>   and replaces "yourServerName" in the second "props.put" line with the IP
> address of your server.
>
> As for the $Proxy2 you mentionned, that is normal. We use dynamic class
> loading with Java Proxy class. Consequently, the "real" class name that is
> bound is not the class you wait for.
>
> Cheers,
>
>
> Sacha
>
>
>
>
> > -Message d'origine-
> > De : [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]De la part de John LYC
> > Envoyé : lundi, 17 septembre 2001 14:59
> > À : [EMAIL PROTECTED]
> > Objet : Re: [JBoss-user] Error during conetxt.lookup()
> >
> >
> > ohh.. sorry abt the change in the lookup name
> > i changed the ejb-name and the jndi-name around to trouble shoot..
> >
> > and i didnt include any jndi.properities file...
> > will jboss read its default jndi.properities instead??
> >
> > i know calling the client with the class constructor is tricky..
> > i did try the conventional way of runing a client on my machine...
> > include all class path.. (jboss_home\client... etc) still gave me the
same
> > results..
> >
> > something  i got from reading the JNDIVIEW of the server...
> > (http://locathost:8082)
> >
> > =snip
> > java:comp namespace of the Contact bean:
> >   + env (class: org.jnp.interfaces.NamingContext)
> >   |   + jdbc (class: org.jnp.interfaces.NamingContext)
> >   |   |   + DefaultDS[link -> java:/DefaultDS] (class:
> > javax.naming.LinkRef)
> >
> > ..
> > 
> > ..
> > Global JNDI Namespace
> >   + cont (class: $Proxy2) /// john: WHY IS THE CLASS $Proxy2 instead of
my
> > bean class (testejb.Contact)..?
> >   + TopicConnectionFactory (class:
org.jbossmq.SpyTopicConnectionFactory)
> >   + XAQueueConnectionFactory (class:
> > org.jbossmq.SpyXAQueueConnectionFactory)
> >   + jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)
> > .
> > ...
> > end snip
> >
> > notice the my JNDI Namesapce "cont"  is not bound to any class.
> >
> >
> > i have also included my stack trace here.
> >
> > snip==
> >
> > [Default] -- Failed initializing bean access.
> > [Default] javax.naming.NameNotFoundException: cont not bound
> > [Default]   at
> > org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
> > [Default]
> > [Default]   at
> > org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
> > [Default]
> > [Default]   at
> > org.jnp.server.NamingServer.getObject(NamingServer.java:487)
> > [Default]
> > [Default]   at
> > org.jnp.server.NamingServer.lookup(NamingServer.java:282)
> > [Default]
> > [Default]   at
> > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
> > [Default]
> > [Default]   at
> > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
> > [Default]
> > [Default]   at javax.naming.InitialContext.lookup(Unknown Source)
> > [Default]
> > [Default]   at
> > testejb.ContactTestClient1.(ContactTestClient1.java:50)
> > [Default]
> > [Default]   at testejb.ContactBeanBMP.(ContactBeanBMP.java:25)
> > [Default]
> > [Default]   at java.lang.Class.newInstance0(Native Method)
> > [Default]
> > [Default]   at java.lang.Class.newInstance(Unknown Source)
> > [Default]
> > [Default]   at
> > org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor
> > (AbstractVerifier.java:356)
> > [Default]
> > [Default]   at
> > org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVeri
> > fier11.java:1209)
> > [Default]
> > [Default]   at
> > org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier1
> > 1.java:120)
> > [Default]
> > [Default]   at
> > org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
> > [Default]
> > [Default]   at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:467)
> > [Default]
> > [Default]   at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
> > [Default]
> > [Default]   at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
> > [Default]
> > [Default]   at java.lang.reflect.Method.invoke(Native Method)
> > [Defaul

Re: [JBoss-user] JW JAAS article;JB-2.4.1_TC_3.2.3: auth. process not quite right

2001-09-17 Thread Scott M Stark

You have to setup the JDBC database tables by running the buildDB task.
Without that there is nothing to validate against.

- Original Message -
From: "David M. Karr" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 9:03 PM
Subject: Re: [JBoss-user] JW JAAS article;JB-2.4.1_TC_3.2.3: auth. process
not quite right


> > "Scott" == Scott M Stark  writes:
>
> Scott> The example2 cases all work as expected. What steps have you
performed
> Scott> to test the second example?
>
> Exactly the same as for example 1.  I clicked on link 1, and got the login
> dialog.  I entered "java" and "echoman" and clicked the OK button.  The
login
> dialog went away and reappeared.
>
> --
> ===
> David M. Karr  ; Best Consulting
> [EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



Re: [JBoss-user] JW JAAS article;JB-2.4.1_TC_3.2.3: auth. process not quite right

2001-09-17 Thread David M. Karr

> "Scott" == Scott M Stark  writes:

Scott> The example2 cases all work as expected. What steps have you performed
Scott> to test the second example?

Exactly the same as for example 1.  I clicked on link 1, and got the login
dialog.  I entered "java" and "echoman" and clicked the OK button.  The login
dialog went away and reappeared.

-- 
===
David M. Karr  ; Best Consulting
[EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


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



[JBoss-user] Tomcat 4 is Final!!

2001-09-17 Thread Hunter Hillegas

Just saw an announcement on the Tomcat list that Tomcat 4 (and the Servlet
2.3 and JSP1.2 spec) have gone final...

Here's to hoping we see it bundled with JBoss soon!

Hunter


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



Re: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

Hey,,,..

Thanks for the tip...
i have not try it out yet...
hope it works =)

john

- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 11:20 PM
Subject: RE: [JBoss-user] Error during conetxt.lookup()


> John,
> - forget about your test *in* the container
> - in your client code, add the following:
>
> Properties props = new Properties();
>
> props.put( "java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
> props.put( "java.naming.provider.url", "jnp://yourServerName:1099");
> props.put( "java.naming.factory.url.pkgs",
> "org.jboss.naming:org.jnp.interfaces");
>
> Context ctx = new InitialContext(props);
>
>   and replaces "yourServerName" in the second "props.put" line with the IP
> address of your server.
>
> As for the $Proxy2 you mentionned, that is normal. We use dynamic class
> loading with Java Proxy class. Consequently, the "real" class name that is
> bound is not the class you wait for.
>
> Cheers,
>
>
> Sacha
>
>
>
>
> > -Message d'origine-
> > De : [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]De la part de John LYC
> > Envoyé : lundi, 17 septembre 2001 14:59
> > À : [EMAIL PROTECTED]
> > Objet : Re: [JBoss-user] Error during conetxt.lookup()
> >
> >
> > ohh.. sorry abt the change in the lookup name
> > i changed the ejb-name and the jndi-name around to trouble shoot..
> >
> > and i didnt include any jndi.properities file...
> > will jboss read its default jndi.properities instead??
> >
> > i know calling the client with the class constructor is tricky..
> > i did try the conventional way of runing a client on my machine...
> > include all class path.. (jboss_home\client... etc) still gave me the
same
> > results..
> >
> > something  i got from reading the JNDIVIEW of the server...
> > (http://locathost:8082)
> >
> > =snip
> > java:comp namespace of the Contact bean:
> >   + env (class: org.jnp.interfaces.NamingContext)
> >   |   + jdbc (class: org.jnp.interfaces.NamingContext)
> >   |   |   + DefaultDS[link -> java:/DefaultDS] (class:
> > javax.naming.LinkRef)
> >
> > ..
> > 
> > ..
> > Global JNDI Namespace
> >   + cont (class: $Proxy2) /// john: WHY IS THE CLASS $Proxy2 instead of
my
> > bean class (testejb.Contact)..?
> >   + TopicConnectionFactory (class:
org.jbossmq.SpyTopicConnectionFactory)
> >   + XAQueueConnectionFactory (class:
> > org.jbossmq.SpyXAQueueConnectionFactory)
> >   + jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)
> > .
> > ...
> > end snip
> >
> > notice the my JNDI Namesapce "cont"  is not bound to any class.
> >
> >
> > i have also included my stack trace here.
> >
> > snip==
> >
> > [Default] -- Failed initializing bean access.
> > [Default] javax.naming.NameNotFoundException: cont not bound
> > [Default]   at
> > org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
> > [Default]
> > [Default]   at
> > org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
> > [Default]
> > [Default]   at
> > org.jnp.server.NamingServer.getObject(NamingServer.java:487)
> > [Default]
> > [Default]   at
> > org.jnp.server.NamingServer.lookup(NamingServer.java:282)
> > [Default]
> > [Default]   at
> > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
> > [Default]
> > [Default]   at
> > org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
> > [Default]
> > [Default]   at javax.naming.InitialContext.lookup(Unknown Source)
> > [Default]
> > [Default]   at
> > testejb.ContactTestClient1.(ContactTestClient1.java:50)
> > [Default]
> > [Default]   at testejb.ContactBeanBMP.(ContactBeanBMP.java:25)
> > [Default]
> > [Default]   at java.lang.Class.newInstance0(Native Method)
> > [Default]
> > [Default]   at java.lang.Class.newInstance(Unknown Source)
> > [Default]
> > [Default]   at
> > org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor
> > (AbstractVerifier.java:356)
> > [Default]
> > [Default]   at
> > org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVeri
> > fier11.java:1209)
> > [Default]
> > [Default]   at
> > org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier1
> > 1.java:120)
> > [Default]
> > [Default]   at
> > org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
> > [Default]
> > [Default]   at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:467)
> > [Default]
> > [Default]   at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
> > [Default]
> > [Default]   at
> > org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
> > [Default]
> > [Default]   at java.lang.reflect.Method.invoke(Native Method)
> > [Default]
> > [Default]   at
> > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> > :1628)
> > [Default]
> > [De

Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread David Jencks

I haven't looked at the Castor stuff at all ever, but I suspect it uses
jndi binding because jndi is a required part of an app server whereas jmx
is not.  This makes something using Castor not so jboss-specific. 
However... I think the hot deploy is pretty jboss specific.


david jencks


On 2001.09.17 20:10:47 -0400 Frederick N. Brier wrote:
> So what you guys are saying is I should do this:
> 
> MBeanServer server = (MBeanServer) 
> MBeanServerFactory.findMBeanServer(null).iterator().next();
> J2eeDeployer deployer = (J2eeDeployer)server.getObjectInstance( 
> "service=J2eeDeployer" );
> 
> Sorry about my misconception.  I had based my understanding of JMX from 
> looking at the Castor MBean CastorJDOImpl.java which on line 95 says:
> 
>  bind(new InitialContext(), "java:/" + _jndiName, this);
> 
> So, I didn't even look for an alternate directory mechanism as I thought 
> JBoss was built on JMX which was built on JNDI which I thought JBoss used
> 
> exclusively.  I hadn't bothered to read the JMX specification and only 
> skimmed the tutorials.  Now I have done some additional research and have
> 
> discovered the factory and server classes .  Why does the Castor 
> MBean use JNDI.  Do servlets not have access to the MBeanServerFactory 
> static methods due to some class loader design decision?  Thank you.
> 
> Fred.
> 
> At 01:58 PM 9/17/2001, you wrote:
> >Find it as an mbean, I don't think it is or should be in jndi.  You can
> see
> >how to do this from a client (from a server is almost the same, but
> >simpler) in the (rabbithole) testsuite//test/JBossTestServices.java
> >file.  If you are doing this from a client, the Connector class may be
> in a
> >different package in pre-rh jboss, but it does about the same stuff.
> >
> >david jencks
> >
> >On 2001.09.17 12:21:16 -0400 Frederick N. Brier wrote:
> > > What is the JNDI name for the J2eeDeployer?  I want to do:
> > >
> > > String deployerName = ???
> > >
> > > J2eeDeployer deployer = (J2eeDeployer)new InitialContext().lookup(
> > > deployerName );
> > >
> > > What is deployerName supposed to be?  In the JMX HTTP interface it is
> > > listed under the J2EE heading with a hyper link of
> > > "service=J2eeDeployer".  I haven't figured out the correlation
> between
> > > the
> > > web interface and the actual JNDI lookup names.  What is the
> > > correlation?  Thank you.
> > >
> > >
> > >
> > > Frederick N. Brier
> > > Sr. Software Engineer
> > > Multideck Corporation
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> >
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

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



Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread Scott M Stark

We'll, as Juha pointed out, there is nothing in the JMX spec either way
regarding JNDI. The only reference to JNDI is in chapter 1 of
the spec:

"Benefits of the JMX Architecture
...
* Leverages existing standard Java technologies

Whenever needed, the JMX specification will reference existing Java
specifications

such as Java Naming and Directory InterfaceT (JNDI), Java Database
Connectivity

API (JDBCT), Java Transaction Services (JTS), or others."

However, how JMX leverages JNDI is never specified. There is nothing wrong
with Castor exposing its MBean via JNDI, and although JBoss does make
extensive
use of JNDI, we do not expose our standard MBean interfaces via JNDI.

So, yes, access the MBeanServer as you indicate if your in the VM, or using
a
remote connector if your outside of the VM.

- Original Message -
From: "Frederick N. Brier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 5:10 PM
Subject: Re: [JBoss-user] JNDI name for J2eeDeployer?


> So what you guys are saying is I should do this:
>
> MBeanServer server = (MBeanServer)
> MBeanServerFactory.findMBeanServer(null).iterator().next();
> J2eeDeployer deployer = (J2eeDeployer)server.getObjectInstance(
> "service=J2eeDeployer" );
>
> Sorry about my misconception.  I had based my understanding of JMX from
> looking at the Castor MBean CastorJDOImpl.java which on line 95 says:
>
>  bind(new InitialContext(), "java:/" + _jndiName, this);
>
> So, I didn't even look for an alternate directory mechanism as I thought
> JBoss was built on JMX which was built on JNDI which I thought JBoss used
> exclusively.  I hadn't bothered to read the JMX specification and only
> skimmed the tutorials.  Now I have done some additional research and have
> discovered the factory and server classes .  Why does the Castor
> MBean use JNDI.  Do servlets not have access to the MBeanServerFactory
> static methods due to some class loader design decision?  Thank you.
>
> Fred.
>
> At 01:58 PM 9/17/2001, you wrote:
> >Find it as an mbean, I don't think it is or should be in jndi.  You can
see
> >how to do this from a client (from a server is almost the same, but
> >simpler) in the (rabbithole) testsuite//test/JBossTestServices.java
> >file.  If you are doing this from a client, the Connector class may be in
a
> >different package in pre-rh jboss, but it does about the same stuff.
> >
> >david jencks
> >
> >On 2001.09.17 12:21:16 -0400 Frederick N. Brier wrote:
> > > What is the JNDI name for the J2eeDeployer?  I want to do:
> > >
> > > String deployerName = ???
> > >
> > > J2eeDeployer deployer = (J2eeDeployer)new InitialContext().lookup(
> > > deployerName );
> > >
> > > What is deployerName supposed to be?  In the JMX HTTP interface it is
> > > listed under the J2EE heading with a hyper link of
> > > "service=J2eeDeployer".  I haven't figured out the correlation between
> > > the
> > > web interface and the actual JNDI lookup names.  What is the
> > > correlation?  Thank you.
> > >
> > >
> > >
> > > Frederick N. Brier
> > > Sr. Software Engineer
> > > Multideck Corporation
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> >
> >___
> >JBoss-user mailing list
> >[EMAIL PROTECTED]
> >https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread Frederick N. Brier

So what you guys are saying is I should do this:

MBeanServer server = (MBeanServer) 
MBeanServerFactory.findMBeanServer(null).iterator().next();
J2eeDeployer deployer = (J2eeDeployer)server.getObjectInstance( 
"service=J2eeDeployer" );

Sorry about my misconception.  I had based my understanding of JMX from 
looking at the Castor MBean CastorJDOImpl.java which on line 95 says:

 bind(new InitialContext(), "java:/" + _jndiName, this);

So, I didn't even look for an alternate directory mechanism as I thought 
JBoss was built on JMX which was built on JNDI which I thought JBoss used 
exclusively.  I hadn't bothered to read the JMX specification and only 
skimmed the tutorials.  Now I have done some additional research and have 
discovered the factory and server classes .  Why does the Castor 
MBean use JNDI.  Do servlets not have access to the MBeanServerFactory 
static methods due to some class loader design decision?  Thank you.

Fred.

At 01:58 PM 9/17/2001, you wrote:
>Find it as an mbean, I don't think it is or should be in jndi.  You can see
>how to do this from a client (from a server is almost the same, but
>simpler) in the (rabbithole) testsuite//test/JBossTestServices.java
>file.  If you are doing this from a client, the Connector class may be in a
>different package in pre-rh jboss, but it does about the same stuff.
>
>david jencks
>
>On 2001.09.17 12:21:16 -0400 Frederick N. Brier wrote:
> > What is the JNDI name for the J2eeDeployer?  I want to do:
> >
> > String deployerName = ???
> >
> > J2eeDeployer deployer = (J2eeDeployer)new InitialContext().lookup(
> > deployerName );
> >
> > What is deployerName supposed to be?  In the JMX HTTP interface it is
> > listed under the J2EE heading with a hyper link of
> > "service=J2eeDeployer".  I haven't figured out the correlation between
> > the
> > web interface and the actual JNDI lookup names.  What is the
> > correlation?  Thank you.
> >
> >
> >
> > Frederick N. Brier
> > Sr. Software Engineer
> > Multideck Corporation
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] protected classes called by an EJB

2001-09-17 Thread Scott M Stark

Why not place the EJBs + the package access classes in the ejb-jar and the
rest in
a jar in lib/ext?

- Original Message -
From: Eric Lindauer
To: [EMAIL PROTECTED]
Sent: Monday, September 17, 2001 3:57 PM
Subject: [JBoss-user] protected classes called by an EJB


Hi,

I'd like to deploy an EJB that calls methods in a protected class in its own
package.  I am currently trying to do this by jarring up all the protected
classes, along with the rest of my application, into a .jar file which I
place in lib/ext.  In the ejbs deploy jar, I only place the minimum classes
( Home, Remote, Bean, etc. ).

I suspect that the problem arises because the EJB and the jar are loaded by
different ClassLoaders, leading to SecurityExceptions.  It won't work to
place the protected classes in the EJB jar, as they are dependent on other,
public classes in different packages, etc... I could conceivably end up
placing my whole application in there.  And to automate figuring out which
classes need to be present, fuhgedaboudit.

So... any ideas?  It doesn't kill my application to just make the other
classes public, but things would be a lot cleaner if they weren't.  Thanks
for any help.

Yours,
Eric


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



[JBoss-user] questions on JBoss, JMX, and JMS

2001-09-17 Thread Sheng Zou
Title: questions on JBoss, JMX, and JMS





Hi,


1. Does all the services (such as JBossMQ, JNDI, etc) running on the single JVM by default? Does JBoss support running services on different JVMs? 

2. Does JBoss JMX offer failover? Does JBoss JMX offer JMX connector? Does anyone have JBoss JMX sample or tutorials?  


3. Does anyone has experience in integrating FioranoMQ into JBoss? 


thanks a bunch!


Sean





[JBoss-user] protected classes called by an EJB

2001-09-17 Thread Eric Lindauer



Hi,
 
I'd like to deploy an EJB that calls methods in a 
protected class in its own package.  I am currently trying to do this by 
jarring up all the protected classes, along with the rest of my application, 
into a .jar file which I place in lib/ext.  In the ejbs deploy jar, I only 
place the minimum classes ( Home, Remote, Bean, etc. ).  
 
I suspect that the problem arises because the EJB 
and the jar are loaded by different ClassLoaders, leading to 
SecurityExceptions.  It won't work to place the protected classes in the 
EJB jar, as they are dependent on other, public classes in different packages, 
etc... I could conceivably end up placing my whole application in there.  
And to automate figuring out which classes need to be present, 
fuhgedaboudit.
 
So... any ideas?  It doesn't kill my 
application to just make the other classes public, but things would be a lot 
cleaner if they weren't.  Thanks for any help.
 
    Yours,
    Eric


[JBoss-user] Re: [jetty-discuss] Re: Security and Jetty

2001-09-17 Thread Greg Wilkins


Nicalai,

RC9 contains a bug with FORM authentication.  If the
URL j_security_check is not covered by the security contraint
then it is not handled correctly.I know this is counter
intuitive and it has already beed fixed for the next release.

regards


Julian Gosnell wrote:

> Nicolai,
> 
> I'm afraid that I'm not the security expert.
> 
> Put a little more about exactly what the problem is,
> and how to reproduce it, and cross-post this to
> [EMAIL PROTECTED] and
> [EMAIL PROTECTED]
> 
> I will do everything I can to ensure the problem is
> sorted out quickly.
> 
> Thanks for letting me know about this,
> 
> 
> Jules
> 
> P.S.
> 
> Any other comments, aside from the security issue.
> Does other stuff work, fast or slow, etc...
> 
>  --- Nicolai P Guba <[EMAIL PROTECTED]> wrote: >
> Hello.  Was nice meeting you in London last week. 
> 
>>I've tried the
>>jetty that comes with JBoss 2.4.1 and the security
>>seems broken.
>>
>>HTTP ERROR: 404 Not Found
>>Could not find resource for /j_security_check
>>
>>RequestURI=/j_security_check
>>
>>Bug or Feature?
>>
>>-- 
>>  Nicolai P Gubahttp://www.gnu.org
>>http://www.frontwire.com
>>mailto:[EMAIL PROTECTED]
>>mailto:[EMAIL PROTECTED]
>>GSM: +44 (0)7909 960 751   DDI:
>>+44 (0)20 7368 9708 
>>
> 
> 
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
> 
>  Yahoo! Groups Sponsor -~-->
> Do you need to encrypt all your online transactions? Secure corporate intranets? 
>Authenticate your Web sites? Whatever
> security your site needs, you'll find the perfect solution here!
> http://us.click.yahoo.com/wOMkGD/Q56CAA/yigFAA/CefplB/TM
> -~->
> 
> For the latest information about Jetty, please see http://jetty.mortbay. 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 



-- 
Greg Wilkins<[EMAIL PROTECTED]>  GB  Phone: +44-(0)7092063462
Mort Bay Consulting Australia and UK.Mbl Phone: +61-(0)4 17786631
http://www.mortbay.com   AU  Phone: +61-(0)2 98107029


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



SV: [JBoss-user] element

2001-09-17 Thread Lennart Petersson

Hi!
Look in EJB1.1 11.3.5 for details. As a conclusion - you where not only lucky :-) The 
* gives a default value for the beans all methods and the 
needsATransaction takes precedence over the default, no 
matter on the ordering of it in the xml file.
/Lennart

- Original Message - 
From: Eric Lindauer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 10:00 PM
Subject: [JBoss-user]  element


Hi,

I'm creating  elements to control the transactional properties 
of methods in my application.  I've noticed that the  element accepts "*" 
as a valid entry.

I'm wondering, how does JBoss resolve conflicts that might be caused by this?  For 
example, I'd like to say, for a particular bean, that all the methods are of 
transactional type "Supports", except for one, which is "Required".  Is this legal?:



MyBean
*
Supports


MyBean
needsATransaction
Required



My testing on JBoss seems to indicate that JBoss resolves this correctly, and that 
order does not matter.  I'm wondering, is this just lucky for me, or is this the 
specified behavior for resolving methods in the spec?  I can't find a place in the 
specification that talks about how methods resolution should work in the event that 
there are conflicts in the .

Thanks in advance for any help.

-Eric



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



Re: [JBoss-user] JW JAAS article;JB-2.4.1_TC_3.2.3: auth. process not quite right

2001-09-17 Thread Scott M Stark

The example2 cases all work as expected. What steps have you performed
to test the second example?

> Looks good.  Example 1 now works fine.
>
> Now, did you intend for example 2 to work?  You only alluded to it in the
> article, but I would guess you assumed it would work.  That behaves
similarly,
> even after the patch, but unlike how example 1 was breaking before, I
can't
> find any scenario that will get me to the "EJBServlet Accessed" page.
>
> This is a small excerpt from the console output, if it means anything.
>
> [Default] JBoss 2.4.1a Started in 0m:12s
> [Default] User 'nobody' authenticated.
> [Default] User 'nobody' authenticated.
> [Default] User 'nobody' authenticated.
> [Default] User 'nobody' authenticated.
> [Default] User 'nobody' authenticated.
> [PublicSession] Authentication exception, principal=null
> [Default] User 'nobody' authenticated.
> [Default] User 'nobody' authenticated.
>
> --
> ===
> David M. Karr  ; Best Consulting
> [EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



RE: [JBoss-user] Strange problem with BMP entity bean caching - incorrect values found by findByPrimaryKey()

2001-09-17 Thread Adam Lipscombe
Title: RE: [JBoss-user] Strange problem with BMP entity bean caching - incorrect values found by findByPrimaryKey()



Yes, 
that's it - you have hit the nail on the head.
The 
transaction attrib for modifyDetails was "supports".
 
You 
live and learn
 
Thanks 
very much!
 
Cheers 
- Adam
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Herve 
  TchepannouSent: 17 September 2001 15:20To: 
  [EMAIL PROTECTED]Subject: RE: [JBoss-user] Strange 
  problem with BMP entity bean caching - incorrect values found by 
  findByPrimaryKey()
  What is the transaction setting of ur bean and 
  modifyDetails()? are u sure that they are at 
  'Required'? 
  -Original Message- From: Adam 
  Lipscombe [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, September 17, 2001 9:58 AM To: [EMAIL PROTECTED] Subject: 
  [JBoss-user] Strange problem with BMP entity bean caching - incorrect values found by findByPrimaryKey() 
  Folks, 
  JBoss 2.4.0 with Tomcat 3.2.3 - 
  I have a strange problem that has completely foxed me: 
  
  The sequence of events on a BMP entity bean is as follows. All 
  steps are called from a client in separate 
  transactions: 
  1. Bean Created 
  2. Bean Read    State OK at 
  this point 
  3. Bean Updated    State 
  written to DB OK, beans internal value object is updated OK. 
  4. Bean Read.    State 
  retrieved is state *before* update in step 3. 
  5  Bean Updated 
  6. Bean Read 
  The problem is that the read at (4) retrieves the bean state 
  that was present *before* the update at (3) was 
  processed. 
  I have checked the database and the update in (3) does get 
  written to the DB. I have 
  debugged the code and the ejbStore() and ejbLoad() methods get called 
  as expected. 
  As far as I can see, the cached bean does not accurately 
  reflect the contents of the DB. Its almost as if findByPrimaryKey() is getting the wrong bean instance 
  from the cache. 
  I am using commit-option A as JBoss is only thing talking to 
  the DB. 
  The code that updates the bean is as follows: (Note "details" 
  is a ContactModel value object instance) 
  -- // Find Contact 
  instance first in case it does not exist ContactKey 
  primaryKey = details.getContactPrimaryKey(); Contact 
  contact = contactHome.findByPrimaryKey(primaryKey); 
  // Modify Bean and re-read in case DB has massaged the 
  data contact.modifyDetails(details); contact = contactHome.findByPrimaryKey(primaryKey); ContactModel updatedDetails = contact.getDetails(); --- 
  and the ejbStore method looks like: (contactDetails is the 
  beans internal value object holding the bean 
  state) 
  - try 
  {   setDAO();   this.contactDetails = (ContactModel) contactDao.update(this.contactDetails);   
  modified = false; 
    logger.info("contact bean stored, contactDetails = " 
  + this.contactDetails);  }  catch (DAOFinderException 
  ex)  {   
  context.setRollbackOnly();   throw new 
  NoSuchEntityException(ex.getMessage()); } 
  catch (DAOApplicationException ex) {   context.setRollbackOnly(); 
    throw new EJBException(ex.getMessage()); 
  } catch (DAOSystemException 
  ex) {   
  context.setRollbackOnly();   throw new 
  EJBException(ex.getMessage()); }  
  Does anyone have any ideas? I am completely stumped... 
  
  Thanks in advance - Adam 
  ___ 
  JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user 
  


[JBoss-user] problem with element

2001-09-17 Thread Eric Lindauer



Hi,
 
I'm having a problem with JBoss's resolution of the 
transaction attributes assigned in the  
element.  According to the spec, it should be possible to assign 
transaction attributes in the following way ( section 17.4 pg 54 ) 
:
 

    

        
Foo
        
*
        
Never
    

 
    

        
Foo
        
requiresTransaction
        
Required
    


 
This xml is attempting to say that all the methods 
of Foo are of transactional type "Never", *except* for the requiresTransaction 
() method.
 
Unfortunately, when I deploy a descriptor that 
looks like this, the requiresTransaction () method acts as though it has been 
set to transaction type "Never".  Is this a bug in JBoss or am I doing 
something wrong?
 
    Thanks for your 
help.
 
    -Eric
 


Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread Juha-P Lindfors



On Mon, 17 Sep 2001, Scott M Stark wrote:
>
> There is no JNDI name for an MBean. Each MBean has a JMX ObjectName
> by which it is accessed through a MBeanServer instance. JMX makes
> no use of JNDI.

Well, the RI doesn't make use of JNDI. That doesn't mean an implementation
of JMX can't make use of JNDI. The notion of export policy is defined in
the spec to allow clients to discover the location of MBeans through JNDI,
for example.

The current implementations are somewhat lacking in features.

-- Juha



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



RE: [JBoss-user] Collection implementation ERROR

2001-09-17 Thread Graham . Forte

I have tried this in my JSP but get these errors.
I have an import of java.util.* at top of the JSP.
I am using a HashSet so that items in dd box are unique.
Any help is appreciatedGraham

[Default] JBoss 2.2.2 Started in 0m:26s
2001-09-17 03:11:55 - Ctx( /adapts ): JasperException: R( /adapts +
/Register.js
p + null) Unable to compile class for
JSPD:\Apache\tomcat\work\localhost_8080%2F
adapts\_0002fRegister_0002ejspRegister_jsp_23.java:101: Class Collection not
fou
nd in type declaration.
Collection col=usersecurity.home.findAll();
^
D:\Apache\tomcat\work\localhost_8080%2Fadapts\_0002fRegister_0002ejspRegiste
r_js
p_23.java:102: Class java.util.HashSet not found in type declaration.
   HashSet coll=new HashSet(col);
   ^
D:\Apache\tomcat\work\localhost_8080%2Fadapts\_0002fRegister_0002ejspRegiste
r_js
p_23.java:102: Class java.util.HashSet not found in type declaration.
   HashSet coll=new HashSet(col);
^
3 errors

//HERE IS JSP CODE.
<%@page contentType="text/html"%>
<%@page import="java.util.*"%>
 





 
  Register
 





   

<%
   Collection col=usersecurity.home.findAll();//THIS IS MY JAVABEAN WHICH
ACCESSES AN ENTITY BEAN
   HashSet coll=new HashSet(col);
   Iterator iterator = coll.iterator();
   while(iterator.hasNext())
{%>

"><%usersecurity.getWING()%>
<%}%>



-Original Message-
From: Nicolai P Guba [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 12:58 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Collection implementation


[EMAIL PROTECTED] writes:

> I know this is not really jboss related, but rather java in general
> but I thought I would try.  I have an ejb(cmp) , it has a: public
> Collection findAll() method. I havent used the Collection class so I
> cantfigure out how to implement this .  I am trying to populate a
> dropdown box on a jsp page with this collection.  If anyone knows
> where some Collection examples are online I would appreciate
> it. Ihave looked through several Enterprise java books with no luck.
> Thanks,Graham

Collection collection  = homeInterface.findAll();
ArrayList someListData = new ArrayList (collection);

-- 
  Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708

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

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



[JBoss-user] found it

2001-09-17 Thread Eric Lindauer



Hi,
 
Of course, immediately after asking for help I find 
the spot in the spec myself.  The answer is that the spec does mandate how 
methods should be resolved in the , and JBoss follows 
the spec correctly.
 
    Thanks anyways,
    Eric


[JBoss-user] element

2001-09-17 Thread Eric Lindauer



Hi,
 
I'm creating  elements 
to control the transactional properties of methods in my application.  I've 
noticed that the  element accepts "*" as a valid 
entry.
 
I'm wondering, how does JBoss resolve conflicts 
that might be caused by this?  For example, I'd like to say, for a 
particular bean, that all the methods are of transactional type "Supports", 
except for one, which is "Required".  Is this legal?:
 

    

        
MyBean
        
*
        
Supports
    

    

        
MyBean
        
needsATransaction
        
Required
    


 
My testing on JBoss seems to indicate that JBoss 
resolves this correctly, and that order does not matter.  I'm wondering, is 
this just lucky for me, or is this the specified behavior for resolving methods 
in the spec?  I can't find a place in the specification that talks about 
how methods resolution should work in the event that there are conflicts in the 
.
 
Thanks in advance for any help.
 
    -Eric


RE: [JBoss-user] Putting Application specific data in the InitialContext

2001-09-17 Thread OudjaneF

Thank you very much for your answer. I will probably pass them with each
call then.

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2001 20:06
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Putting Application specific data in the
InitialContext


Properties passed to the InitialContext are only seen by the InitialContext
factory and
would not be seen by any server side components. Any type of client intiated
state
needs to be passed in using servlets or a stateful session bean

- Original Message -
From: "OudjaneF" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 11:40 AM
Subject: [JBoss-user] Putting Application specific data in the
InitialContext


> Hello,
>
> I have a quick question about a design issue. For our application,
> we need to pass some client specific data to the server (Locale,
> TimezoneID...). As we use swing clients that connect straight to JBoss via
> RMI/IIOP I was thinking I could put this data in the InitialContext as
> properties. I can't see why I couldn't do that but I would like to know if
> anybody out there can see the draw backs of doing so and maybe propose a
> more elegant/efficient solution.
>
> Thank you very much,
> Regards,
> Farid.
>
>



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


Disclaimer

This communication together with any attachments transmitted with it ('this E-mail') 
is intended only for the use of the addressee and may contain information which is 
privileged and confidential. If the reader of this E-mail is not the intended 
recipient or the employee or agent responsible for delivering it to the intended 
recipient you are notified that any use of this E-mail is prohibited. Addressees 
should check this E-mail for viruses. The Carphone Warehouse Group PLC makes no 
representations as regards the absence of viruses in this E-mail. If you have received 
this E-mail in error please notify our ISe Response Team immediately by telephone on + 
44 (0)20 8896 5828 or via E-mail at [EMAIL PROTECTED] Please then immediately 
destroy this E-mail and any copies of it.

Please feel free to visit our website: http://www.phonehouse.com

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



Re: [JBoss-user] Putting Application specific data in the InitialContext

2001-09-17 Thread Scott M Stark

Properties passed to the InitialContext are only seen by the InitialContext
factory and
would not be seen by any server side components. Any type of client intiated
state
needs to be passed in using servlets or a stateful session bean

- Original Message -
From: "OudjaneF" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 11:40 AM
Subject: [JBoss-user] Putting Application specific data in the
InitialContext


> Hello,
>
> I have a quick question about a design issue. For our application,
> we need to pass some client specific data to the server (Locale,
> TimezoneID...). As we use swing clients that connect straight to JBoss via
> RMI/IIOP I was thinking I could put this data in the InitialContext as
> properties. I can't see why I couldn't do that but I would like to know if
> anybody out there can see the draw backs of doing so and maybe propose a
> more elegant/efficient solution.
>
> Thank you very much,
> Regards,
> Farid.
>
>



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



Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread Scott M Stark

There is no JNDI name for an MBean. Each MBean has a JMX ObjectName
by which it is accessed through a MBeanServer instance. JMX makes
no use of JNDI.

- Original Message -
From: "Frederick N. Brier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 9:21 AM
Subject: [JBoss-user] JNDI name for J2eeDeployer?


> What is the JNDI name for the J2eeDeployer?  I want to do:
>
> String deployerName = ???
>
> J2eeDeployer deployer = (J2eeDeployer)new InitialContext().lookup(
> deployerName );
>
> What is deployerName supposed to be?  In the JMX HTTP interface it is
> listed under the J2EE heading with a hyper link of
> "service=J2eeDeployer".  I haven't figured out the correlation between the
> web interface and the actual JNDI lookup names.  What is the
> correlation?  Thank you.
>
>
>
> Frederick N. Brier
> Sr. Software Engineer
> Multideck Corporation
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



[JBoss-user] Putting Application specific data in the InitialContext

2001-09-17 Thread OudjaneF

Hello,

I have a quick question about a design issue. For our application,
we need to pass some client specific data to the server (Locale,
TimezoneID...). As we use swing clients that connect straight to JBoss via
RMI/IIOP I was thinking I could put this data in the InitialContext as
properties. I can't see why I couldn't do that but I would like to know if
anybody out there can see the draw backs of doing so and maybe propose a
more elegant/efficient solution.

Thank you very much,
Regards,
Farid.


Disclaimer

This communication together with any attachments transmitted with it ('this E-mail') 
is intended only for the use of the addressee and may contain information which is 
privileged and confidential. If the reader of this E-mail is not the intended 
recipient or the employee or agent responsible for delivering it to the intended 
recipient you are notified that any use of this E-mail is prohibited. Addressees 
should check this E-mail for viruses. The Carphone Warehouse Group PLC makes no 
representations as regards the absence of viruses in this E-mail. If you have received 
this E-mail in error please notify our ISe Response Team immediately by telephone on + 
44 (0)20 8896 5828 or via E-mail at [EMAIL PROTECTED] Please then immediately 
destroy this E-mail and any copies of it.

Please feel free to visit our website: http://www.phonehouse.com

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



Re: [JBoss-user] Collection implementation

2001-09-17 Thread Nicolai P Guba

[EMAIL PROTECTED] writes:

> I know this is not really jboss related, but rather java in general
> but I thought I would try.  I have an ejb(cmp) , it has a: public
> Collection findAll() method. I havent used the Collection class so I
> cantfigure out how to implement this .  I am trying to populate a
> dropdown box on a jsp page with this collection.  If anyone knows
> where some Collection examples are online I would appreciate
> it. Ihave looked through several Enterprise java books with no luck.
> Thanks,Graham

Collection collection  = homeInterface.findAll();
ArrayList someListData = new ArrayList (collection);

-- 
  Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708

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



[JBoss-user] problems with messgae driven bean....

2001-09-17 Thread birju prajapati

Hi all,

I'm pretty new to EJBs and I have a problem when trying to send a message to 
an MDB that I hope you can help with. BTW onMessage() of the mdb is simply a 
system.out.println.

on running the client, the server log says this:

[Default] New Client Connection accepted.  Current Thread=Thread[OIL 
Worker,5,JBossMQ Server Threads
]
[Default] Client Connection set spyDistributedConnection, ClientID=ID1.  
Current Thread=Thread[OIL W
orker,5,JBossMQ Server Threads]
[Default] java.net.SocketException: Connection reset by peer: JVM_recv in 
socket input stream read
[Default]   at java.net.SocketInputStream.socketRead(Native Method)
[Default]
[Default]   at 
java.net.SocketInputStream.read(SocketInputStream.java:86)
[Default]
[Default]   at 
java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
[Default]
[Default]   at 
java.io.BufferedInputStream.read(BufferedInputStream.java:204)
[Default]
[Default]   at 
java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1549)
[Default]
[Default]   at 
java.io.ObjectInputStream.refill(ObjectInputStream.java:1683)
[Default]
[Default]   at 
java.io.ObjectInputStream.read(ObjectInputStream.java:1659)
[Default]
[Default]   at 
java.io.ObjectInputStream.readByte(ObjectInputStream.java:1905)
[Default]
[Default]   at 
org.jbossmq.distributed.server.DistributedJMSServerOIL.run(DistributedJMSServerOI
L.java:79)
[Default]
[Default]   at java.lang.Thread.run(Thread.java:484)
[Default]

my jbossmq.xml has this in it:


testQueue


My jboss.xml has this in it:

  
  uk.co.isesolutions.util.scheduler.biz.TaskProxy
  Standard Message Driven Bean
  queue/testQueue
  

and my ejb-jar.xml has this in it:


uk.co.isesolutions.util.scheduler.biz.TaskProxy

uk.co.isesolutions.util.scheduler.biz.TaskProxy

Container
Auto-acknowledge

javax.jms.Queue



   


uk.co.isesolutions.util.scheduler.biz.TaskProxy
*

Required



any ideas?

thanks in advance,

Birju

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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



Re: [JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread David Jencks

Find it as an mbean, I don't think it is or should be in jndi.  You can see
how to do this from a client (from a server is almost the same, but
simpler) in the (rabbithole) testsuite//test/JBossTestServices.java
file.  If you are doing this from a client, the Connector class may be in a
different package in pre-rh jboss, but it does about the same stuff.

david jencks

On 2001.09.17 12:21:16 -0400 Frederick N. Brier wrote:
> What is the JNDI name for the J2eeDeployer?  I want to do:
> 
> String deployerName = ???
> 
> J2eeDeployer deployer = (J2eeDeployer)new InitialContext().lookup( 
> deployerName );
> 
> What is deployerName supposed to be?  In the JMX HTTP interface it is 
> listed under the J2EE heading with a hyper link of 
> "service=J2eeDeployer".  I haven't figured out the correlation between
> the 
> web interface and the actual JNDI lookup names.  What is the 
> correlation?  Thank you.
> 
> 
> 
> Frederick N. Brier
> Sr. Software Engineer
> Multideck Corporation
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

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



[JBoss-user] Collection implementation

2001-09-17 Thread Graham . Forte

I know this is not really jboss related, but rather java in general but I
thought I would try. 
I have an ejb(cmp) , it has a: public Collection findAll() method. I havent
used the Collection class so I cantfigure out how to implement this . 
I am trying to populate a dropdown box on a jsp page with this collection.
If anyone knows where some Collection examples are online I would appreciate
it. Ihave looked through several Enterprise java books with no luck.
Thanks,Graham

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



[JBoss-user] howto readonly particular cmp fields

2001-09-17 Thread David Ward

I have a CMP 1.1 Entity with some fields who have both set and get 
methods, and some with just gets (both in the remote interface and bean 
class). However, on create, jboss still includes those fields when it 
does an insert. How do I make JBoss not include those fields in the 
PreparedStatement it makes to do the insert? For complex reasons, the 
bean points to an updateable VIEW in Oracle, not a TABLE. The main table 
of the view is where the insert happens, the other joins of the view are 
lookups for read-only purposes.


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



[JBoss-user] JNDI name for J2eeDeployer?

2001-09-17 Thread Frederick N. Brier

What is the JNDI name for the J2eeDeployer?  I want to do:

String deployerName = ???

J2eeDeployer deployer = (J2eeDeployer)new InitialContext().lookup( 
deployerName );

What is deployerName supposed to be?  In the JMX HTTP interface it is 
listed under the J2EE heading with a hyper link of 
"service=J2eeDeployer".  I haven't figured out the correlation between the 
web interface and the actual JNDI lookup names.  What is the 
correlation?  Thank you.



Frederick N. Brier
Sr. Software Engineer
Multideck Corporation


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



[JBoss-user] jboss and mvcsoft persistence manager

2001-09-17 Thread Scheil, Sven

hi,

i have to decide whether we are using the persistence manager from mvcsoft
or not. i have a demo version of it, but have trouble getting it to run with
our existing db schema on an informix db server.

does anyone has some experience (positive/negative) in using jboss with the
persistence manager from mvcsoft?

thanx
sven

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



RE: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread Sacha Labourey

John,
- forget about your test *in* the container
- in your client code, add the following:

Properties props = new Properties();

props.put( "java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
props.put( "java.naming.provider.url", "jnp://yourServerName:1099");
props.put( "java.naming.factory.url.pkgs",
"org.jboss.naming:org.jnp.interfaces");

Context ctx = new InitialContext(props);

  and replaces "yourServerName" in the second "props.put" line with the IP
address of your server.

As for the $Proxy2 you mentionned, that is normal. We use dynamic class
loading with Java Proxy class. Consequently, the "real" class name that is
bound is not the class you wait for.

Cheers,


Sacha




> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de John LYC
> Envoyé : lundi, 17 septembre 2001 14:59
> À : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] Error during conetxt.lookup()
>
>
> ohh.. sorry abt the change in the lookup name
> i changed the ejb-name and the jndi-name around to trouble shoot..
>
> and i didnt include any jndi.properities file...
> will jboss read its default jndi.properities instead??
>
> i know calling the client with the class constructor is tricky..
> i did try the conventional way of runing a client on my machine...
> include all class path.. (jboss_home\client... etc) still gave me the same
> results..
>
> something  i got from reading the JNDIVIEW of the server...
> (http://locathost:8082)
>
> =snip
> java:comp namespace of the Contact bean:
>   + env (class: org.jnp.interfaces.NamingContext)
>   |   + jdbc (class: org.jnp.interfaces.NamingContext)
>   |   |   + DefaultDS[link -> java:/DefaultDS] (class:
> javax.naming.LinkRef)
>
> ..
> 
> ..
> Global JNDI Namespace
>   + cont (class: $Proxy2) /// john: WHY IS THE CLASS $Proxy2 instead of my
> bean class (testejb.Contact)..?
>   + TopicConnectionFactory (class: org.jbossmq.SpyTopicConnectionFactory)
>   + XAQueueConnectionFactory (class:
> org.jbossmq.SpyXAQueueConnectionFactory)
>   + jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)
> .
> ...
> end snip
>
> notice the my JNDI Namesapce "cont"  is not bound to any class.
>
>
> i have also included my stack trace here.
>
> snip==
>
> [Default] -- Failed initializing bean access.
> [Default] javax.naming.NameNotFoundException: cont not bound
> [Default]   at
> org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
> [Default]
> [Default]   at
> org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
> [Default]
> [Default]   at
> org.jnp.server.NamingServer.getObject(NamingServer.java:487)
> [Default]
> [Default]   at
> org.jnp.server.NamingServer.lookup(NamingServer.java:282)
> [Default]
> [Default]   at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
> [Default]
> [Default]   at
> org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
> [Default]
> [Default]   at javax.naming.InitialContext.lookup(Unknown Source)
> [Default]
> [Default]   at
> testejb.ContactTestClient1.(ContactTestClient1.java:50)
> [Default]
> [Default]   at testejb.ContactBeanBMP.(ContactBeanBMP.java:25)
> [Default]
> [Default]   at java.lang.Class.newInstance0(Native Method)
> [Default]
> [Default]   at java.lang.Class.newInstance(Unknown Source)
> [Default]
> [Default]   at
> org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor
> (AbstractVerifier.java:356)
> [Default]
> [Default]   at
> org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVeri
> fier11.java:1209)
> [Default]
> [Default]   at
> org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier1
> 1.java:120)
> [Default]
> [Default]   at
> org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
> [Default]
> [Default]   at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:467)
> [Default]
> [Default]   at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
> [Default]
> [Default]   at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
> [Default]
> [Default]   at java.lang.reflect.Method.invoke(Native Method)
> [Default]
> [Default]   at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> :1628)
> [Default]
> [Default]   at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
> :1523)
> [Default]
> [Default]   at
> org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:4
> 86)
> [Default]
> [Default]   at
> org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.ja
> va:464)
> [Default]
> [Default]   at
> org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
> [Def

Re: [JBoss-user] what are the valid transaction types?

2001-09-17 Thread Eric Lindauer

This solved the problem.

  Thanks,
Eric

- Original Message -
From: "Shunsuke Masuda" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 15, 2001 8:14 AM
Subject: Re: [JBoss-user] what are the valid transaction types?


> Hello,
>
> How about removing spaces and CR(&LF?)  like this?
> Supports
>
> In JBoss 2.4.0, org.jboss.metadata.MetaData#getElementContent
> does not "trim()"  NodeValue's, which I think caused the exception.
>
> Shunsuke Masuda
>
> - Original Message -
> From: "Eric Lindauer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, September 15, 2001 7:56 AM
> Subject: [JBoss-user] what are the valid transaction types?
>
>
> Hi,
>
> I'm trying to create an  element in my JBoss
deployment
> descriptor.  It looks something like this:
>
> 
> 
> 
> 
>  com.foo.bar
> 
> 
> *
> 
> 
> 
> Supports
> 
>   
> 
>
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



RE: [JBoss-user] Strange problem with BMP entity bean caching - incorrect values found by findByPrimaryKey()

2001-09-17 Thread Herve Tchepannou
Title: RE: [JBoss-user] Strange problem with BMP entity bean caching - incorrect values found by findByPrimaryKey()





What is the transaction setting of ur bean and modifyDetails()?
are u sure that they are at 'Required'?


-Original Message-
From: Adam Lipscombe [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 17, 2001 9:58 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Strange problem with BMP entity bean caching -
incorrect values found by findByPrimaryKey()



Folks,



JBoss 2.4.0 with Tomcat 3.2.3
-


I have a strange problem that has completely foxed me:


The sequence of events on a BMP entity bean is as follows. All steps are
called from a client in separate transactions:


1. Bean Created


2. Bean Read
   State OK at this point


3. Bean Updated
   State written to DB OK, beans internal value object is updated OK.


4. Bean Read.
   State retrieved is state *before* update in step 3.


5  Bean Updated


6. Bean Read



The problem is that the read at (4) retrieves the bean state that was
present *before* the update at (3) was processed.


I have checked the database and the update in (3) does get written to the
DB.
I have debugged the code and the ejbStore() and ejbLoad() methods get called
as expected.


As far as I can see, the cached bean does not accurately reflect the
contents of the DB.
Its almost as if findByPrimaryKey() is getting the wrong bean instance from
the cache.



I am using commit-option A as JBoss is only thing talking to the DB.


The code that updates the bean is as follows: (Note "details" is a
ContactModel value object instance)


--
// Find Contact instance first in case it does not exist
ContactKey primaryKey = details.getContactPrimaryKey();
Contact contact = contactHome.findByPrimaryKey(primaryKey);


// Modify Bean and re-read in case DB has massaged the data
contact.modifyDetails(details);
contact = contactHome.findByPrimaryKey(primaryKey);
ContactModel updatedDetails = contact.getDetails();
---



and the ejbStore method looks like: (contactDetails is the beans internal
value object holding the bean state)


-
try
{
  setDAO();
  this.contactDetails = (ContactModel)
contactDao.update(this.contactDetails);
  modified = false;


  logger.info("contact bean stored, contactDetails = " +
this.contactDetails);
 }
 catch (DAOFinderException ex)
 {
  context.setRollbackOnly();
  throw new NoSuchEntityException(ex.getMessage());
}
catch (DAOApplicationException ex)
{
  context.setRollbackOnly();
  throw new EJBException(ex.getMessage());
}
catch (DAOSystemException ex)
{
  context.setRollbackOnly();
  throw new EJBException(ex.getMessage());
}







Does anyone have any ideas? I am completely stumped...



Thanks in advance - Adam





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





[JBoss-user] Re: Security and Jetty

2001-09-17 Thread Julian Gosnell

Nicolai,

I'm afraid that I'm not the security expert.

Put a little more about exactly what the problem is,
and how to reproduce it, and cross-post this to
[EMAIL PROTECTED] and
[EMAIL PROTECTED]

I will do everything I can to ensure the problem is
sorted out quickly.

Thanks for letting me know about this,


Jules

P.S.

Any other comments, aside from the security issue.
Does other stuff work, fast or slow, etc...

 --- Nicolai P Guba <[EMAIL PROTECTED]> wrote: >
Hello.  Was nice meeting you in London last week. 
> I've tried the
> jetty that comes with JBoss 2.4.1 and the security
> seems broken.
> 
> HTTP ERROR: 404 Not Found
> Could not find resource for /j_security_check
> 
> RequestURI=/j_security_check
> 
> Bug or Feature?
> 
> -- 
>   Nicolai P Gubahttp://www.gnu.org
> http://www.frontwire.com
> mailto:[EMAIL PROTECTED]
> mailto:[EMAIL PROTECTED]
> GSM: +44 (0)7909 960 751   DDI:
> +44 (0)20 7368 9708 


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

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



[JBoss-user] Strange problem with BMP entity bean caching - incorrect values found by findByPrimaryKey()

2001-09-17 Thread Adam Lipscombe

Folks,


JBoss 2.4.0 with Tomcat 3.2.3
-

I have a strange problem that has completely foxed me:

The sequence of events on a BMP entity bean is as follows. All steps are
called from a client in separate transactions:

1. Bean Created

2. Bean Read
   State OK at this point

3. Bean Updated
   State written to DB OK, beans internal value object is updated OK.

4. Bean Read.
   State retrieved is state *before* update in step 3.

5  Bean Updated

6. Bean Read


The problem is that the read at (4) retrieves the bean state that was
present *before* the update at (3) was processed.

I have checked the database and the update in (3) does get written to the
DB.
I have debugged the code and the ejbStore() and ejbLoad() methods get called
as expected.

As far as I can see, the cached bean does not accurately reflect the
contents of the DB.
Its almost as if findByPrimaryKey() is getting the wrong bean instance from
the cache.


I am using commit-option A as JBoss is only thing talking to the DB.

The code that updates the bean is as follows: (Note "details" is a
ContactModel value object instance)

--
// Find Contact instance first in case it does not exist
ContactKey primaryKey = details.getContactPrimaryKey();
Contact contact = contactHome.findByPrimaryKey(primaryKey);

// Modify Bean and re-read in case DB has massaged the data
contact.modifyDetails(details);
contact = contactHome.findByPrimaryKey(primaryKey);
ContactModel updatedDetails = contact.getDetails();
---


and the ejbStore method looks like: (contactDetails is the beans internal
value object holding the bean state)

-
try
{
  setDAO();
  this.contactDetails = (ContactModel)
contactDao.update(this.contactDetails);
  modified = false;

  logger.info("contact bean stored, contactDetails = " +
this.contactDetails);
 }
 catch (DAOFinderException ex)
 {
  context.setRollbackOnly();
  throw new NoSuchEntityException(ex.getMessage());
}
catch (DAOApplicationException ex)
{
  context.setRollbackOnly();
  throw new EJBException(ex.getMessage());
}
catch (DAOSystemException ex)
{
  context.setRollbackOnly();
  throw new EJBException(ex.getMessage());
}






Does anyone have any ideas? I am completely stumped...


Thanks in advance - Adam




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



Re: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

ohh.. sorry abt the change in the lookup name
i changed the ejb-name and the jndi-name around to trouble shoot..

and i didnt include any jndi.properities file...
will jboss read its default jndi.properities instead??

i know calling the client with the class constructor is tricky..
i did try the conventional way of runing a client on my machine...
include all class path.. (jboss_home\client... etc) still gave me the same
results..

something  i got from reading the JNDIVIEW of the server...
(http://locathost:8082)

=snip
java:comp namespace of the Contact bean:
  + env (class: org.jnp.interfaces.NamingContext)
  |   + jdbc (class: org.jnp.interfaces.NamingContext)
  |   |   + DefaultDS[link -> java:/DefaultDS] (class: javax.naming.LinkRef)

..

..
Global JNDI Namespace
  + cont (class: $Proxy2) /// john: WHY IS THE CLASS $Proxy2 instead of my
bean class (testejb.Contact)..?
  + TopicConnectionFactory (class: org.jbossmq.SpyTopicConnectionFactory)
  + XAQueueConnectionFactory (class:
org.jbossmq.SpyXAQueueConnectionFactory)
  + jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)
.
...
end snip

notice the my JNDI Namesapce "cont"  is not bound to any class.


i have also included my stack trace here.

snip==

[Default] -- Failed initializing bean access.
[Default] javax.naming.NameNotFoundException: cont not bound
[Default]   at
org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
[Default]
[Default]   at
org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
[Default]
[Default]   at
org.jnp.server.NamingServer.getObject(NamingServer.java:487)
[Default]
[Default]   at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
[Default]
[Default]   at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
[Default]
[Default]   at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
[Default]
[Default]   at javax.naming.InitialContext.lookup(Unknown Source)
[Default]
[Default]   at
testejb.ContactTestClient1.(ContactTestClient1.java:50)
[Default]
[Default]   at testejb.ContactBeanBMP.(ContactBeanBMP.java:25)
[Default]
[Default]   at java.lang.Class.newInstance0(Native Method)
[Default]
[Default]   at java.lang.Class.newInstance(Unknown Source)
[Default]
[Default]   at
org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor
(AbstractVerifier.java:356)
[Default]
[Default]   at
org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVeri
fier11.java:1209)
[Default]
[Default]   at
org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier1
1.java:120)
[Default]
[Default]   at
org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
[Default]
[Default]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:467)
[Default]
[Default]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
[Default]
[Default]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
[Default]
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1628)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1523)
[Default]
[Default]   at
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:4
86)
[Default]
[Default]   at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.ja
va:464)
[Default]
[Default]   at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
[Default]
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1628)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1523)
[Default]
[Default]   at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
[Default]
[Default]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
[Default]
[Default]   at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
[Default]
[Default]   at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:
107)
[Default]
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1628)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1523)
[Default]
[Default]   at
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(C
onfigurationService.java:836)
[Default]
[Default]   at $Proxy0.start(Unknown Source)
[Default]
[Default]   at
org.jboss.util.ServiceControl.start(ServiceControl.java:81)
[Default]
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]
[Default]   at
com.sun.man

[JBoss-user] J2EE version ?

2001-09-17 Thread sheena sid

Which version of J2EE does Jboss2.2.2 support?

How about Jboss2.4 and the upcoming Jboss3.0?


http://mail.indiainfo.com
India's first ISO certified portal

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



RE: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread Sacha Labourey

Hello John,

- there is much debugging code but you do not show us your output log or,
at least, exception stack trace.
- what is the content of your jndi.properties file on the *client side*? Do
you have a jndi.properties file on your client side?
- Are you sure your bean is bound on the "cont" name in the JNDI tree? Your
previous ejb xml file showed that it was under the "Contact" name
- forget about your way of launching your test bean as part of your class
bean constructor istself... don't go in this kind of tricky things...
- What were your JBoss installation problems?

Cheers,



Sacha

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de John LYC
> Envoyé : lundi, 17 septembre 2001 14:09
> À : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] Error during conetxt.lookup()
>
>
> okay.. sorry abt the inacuracy..
>
> okay...
> this is waht i did...
>
> my client...
> -
>
> public class ContactTestClient1 {
> private static final String ERROR_NULL_REMOTE = "Remote interface
> reference is null.  It must be created by calling one of the Home
> interface
> methods first.";
> private static final int MAX_OUTPUT_LINE_LENGTH = 50;
> private boolean logging = true;
> private ContactHome contactHome = null;
> private Contact contact = null;
>
> /**Construct the EJB test client*/
> public ContactTestClient1() {
> long startTime = 0;
>
>
> if (logging) {
> log("Initializing bean access.");
> startTime = System.currentTimeMillis();
> }
>
> try {
> //get naming context
> Context ctx = new InitialContext();
>
> java.util.Hashtable myHash = ctx.getEnvironment();
> System.out.println(myHash.toString());
>
> java.lang.String myString = ctx.getNameInNamespace();
> System.out.println("hahah"+myString);
>
> //look up jndi name
> Object ref = ctx.lookup("cont");
>
> //cast to Home interface
> contactHome = (ContactHome) PortableRemoteObject.narrow(ref,
> ContactHome.class);
> if (logging) {
> long endTime = System.currentTimeMillis();
> log("Succeeded initializing bean access.");
> log("Execution time: " + (endTime - startTime) + " ms.");
> }
> }
> catch(Exception e) {
> if (logging) {
> log("Failed initializing bean access.");
> }
> e.printStackTrace();
> }
> }
>
> ...
> ...
> ..
> -
>
> here's how its being called.. in the bean...
>
> --
> public class ContactBean implements EntityBean {
>  EntityContext entityContext;
>  public String contactOid;
>  public String name;
>  public String company;
>  public String address1;
>  public String address2;
>  public String city;
>  public String state;
>  public String country;
>  public String postal;
>  public String email;
>  public String phone;
>  public String fax;
>  public String id;
>  public String accountNo;
> //Calling TestClient..
>  ContactTestClient1 contactTestClient1 = new ContactTestClient1();
>  public String ejbCreate(String contactOid, String name, String company,
> String address1, String address2, String city, String state,
> String country,
> String postal, String email, String phone, String fax, String id, String
> accountNo) throws CreateException {
>   this.contactOid = contactOid;
>   this.name = name;
>   this.company = company;
>   this.address1 = address1;
>   this.address2 = address2;
>   this.city = city;
>   this.state = state;
>   this.country = country;
>   this.postal = postal;
>   this.email = email;
>   this.phone = phone;
>   this.fax = fax;
>   this.id = id;
>   this.accountNo = accountNo;
>
> ...
> .
> ...
>
> 
> thanks..
> john
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



Re: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread Dmitri Colebatch

Would I be right in thinking that you are getting the exception in the
line

Context ctx = new InitialContext();

?  If so, your problem probably lies in the lack of jndi.properties file
from your classpath.  Perhaps if you post the stack trace I could offer
more help.

cheers
dim


On Mon, 17 Sep 2001, John LYC wrote:

> of course, in my code , "myEJBName" is "Contact"...
> i wrote "myEJBName" as a form of expression..
> 
> Thanks anyway for your wonderful help.
> John
> 
> - Original Message -
> From: "Sacha Labourey" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 17, 2001 6:18 PM
> Subject: RE: [JBoss-user] Error during conetxt.lookup()
> 
> 
> > And what if you replace "myEJBName" by *your EJB name* that is
> "Contact"...
> >
> > > -Message d'origine-
> > > De : [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]De la part de John LYC
> > > Envoyé : lundi, 17 septembre 2001 12:13
> > > À : Jboss Mailing List
> > > Objet : [JBoss-user] Error during conetxt.lookup()
> > >
> > >
> > > Hi all,
> > > im a newbie to J2ee and jboss...
> > > and i had a hard time configuring and trying to get jboss to work..
> > > hope i can get some help here...
> > >
> > > well, i finally got my EJB deployed...
> > > and i have a test client (like the one in the nitro-interest example) to
> > > test my EJB.
> > > when i run the test-client locally on my machines.. i get a
> > > noIntialConetxt
> > > exceptions..
> > > now i have move my test-client into the myEJB.jar and run it from the
> > > container itself..
> > > now when i do a lookup("myEJBName"), i get a "myEJBName not bound"
> > > i checked my ejb-jar.xml
> > > and have the following...
> > > ===
> > > 
> > >   
> > > 
> > >   Contact
> > >   testejb.ContactHome
> > >   testejb.Contact
> > >   testejb.ContactBeanBMP
> > >   Bean
> > >   java.lang.String
> > >   False
> > >   
> > >  jdbc/DefaultDS
> > >  javax.sql.DataSource
> > >  Container
> > >   
> > > 
> > >   
> > >   
> > > 
> > >   
> > >  Contact
> > >  *
> > >   
> > >   Required
> > > 
> > >   
> > > 
> > > end=
> > >
> > > in my jboss.xml , i have :...
> > > ==
> > >
> > > 
> > >   
> > > 
> > >   Contact
> > >   Contact
> > > 
> > >   
> > > 
> > >
> > > end=
> > >
> > > please help... thanks
> > >
> > > john
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

okay.. sorry abt the inacuracy..

okay...
this is waht i did...

my client...
-

public class ContactTestClient1 {
private static final String ERROR_NULL_REMOTE = "Remote interface
reference is null.  It must be created by calling one of the Home interface
methods first.";
private static final int MAX_OUTPUT_LINE_LENGTH = 50;
private boolean logging = true;
private ContactHome contactHome = null;
private Contact contact = null;

/**Construct the EJB test client*/
public ContactTestClient1() {
long startTime = 0;


if (logging) {
log("Initializing bean access.");
startTime = System.currentTimeMillis();
}

try {
//get naming context
Context ctx = new InitialContext();

java.util.Hashtable myHash = ctx.getEnvironment();
System.out.println(myHash.toString());

java.lang.String myString = ctx.getNameInNamespace();
System.out.println("hahah"+myString);

//look up jndi name
Object ref = ctx.lookup("cont");

//cast to Home interface
contactHome = (ContactHome) PortableRemoteObject.narrow(ref,
ContactHome.class);
if (logging) {
long endTime = System.currentTimeMillis();
log("Succeeded initializing bean access.");
log("Execution time: " + (endTime - startTime) + " ms.");
}
}
catch(Exception e) {
if (logging) {
log("Failed initializing bean access.");
}
e.printStackTrace();
}
}

...
...
..
-

here's how its being called.. in the bean...

--
public class ContactBean implements EntityBean {
 EntityContext entityContext;
 public String contactOid;
 public String name;
 public String company;
 public String address1;
 public String address2;
 public String city;
 public String state;
 public String country;
 public String postal;
 public String email;
 public String phone;
 public String fax;
 public String id;
 public String accountNo;
//Calling TestClient..
 ContactTestClient1 contactTestClient1 = new ContactTestClient1();
 public String ejbCreate(String contactOid, String name, String company,
String address1, String address2, String city, String state, String country,
String postal, String email, String phone, String fax, String id, String
accountNo) throws CreateException {
  this.contactOid = contactOid;
  this.name = name;
  this.company = company;
  this.address1 = address1;
  this.address2 = address2;
  this.city = city;
  this.state = state;
  this.country = country;
  this.postal = postal;
  this.email = email;
  this.phone = phone;
  this.fax = fax;
  this.id = id;
  this.accountNo = accountNo;

...
.
...


thanks..
john

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



RE: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread Sacha Labourey

Hello,

> of course, in my code , "myEJBName" is "Contact"...
> i wrote "myEJBName" as a form of expression..

Of course? Well, I suggest you give us enough accurate information so that
we can help you ... accuratly. You said in your e-mail you are a newbie in
J2EE and JBoss, so this kind of error could be newbie error. Which is why I
asked.

> Thanks anyway for your wonderful help.

OK:
- You said : "i had a hard time configuring and trying to get jboss to
work..". Why? What happend?
- For your "noIntialConetxt" exception, check you client code. You most
probably haven't correctly set the Environment properties when creating your
JNDI Initial Context.
- Then you say "i have move my test-client into the myEJB.jar and run it
from the container itself.."... What does it mean? What does "run from the
container itself" means? How do you launch your test?

Post your client code at least.

Cheers,



Sacha






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



Re: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

of course, in my code , "myEJBName" is "Contact"...
i wrote "myEJBName" as a form of expression..

Thanks anyway for your wonderful help.
John

- Original Message -
From: "Sacha Labourey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 6:18 PM
Subject: RE: [JBoss-user] Error during conetxt.lookup()


> And what if you replace "myEJBName" by *your EJB name* that is
"Contact"...
>
> > -Message d'origine-
> > De : [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]De la part de John LYC
> > Envoyé : lundi, 17 septembre 2001 12:13
> > À : Jboss Mailing List
> > Objet : [JBoss-user] Error during conetxt.lookup()
> >
> >
> > Hi all,
> > im a newbie to J2ee and jboss...
> > and i had a hard time configuring and trying to get jboss to work..
> > hope i can get some help here...
> >
> > well, i finally got my EJB deployed...
> > and i have a test client (like the one in the nitro-interest example) to
> > test my EJB.
> > when i run the test-client locally on my machines.. i get a
> > noIntialConetxt
> > exceptions..
> > now i have move my test-client into the myEJB.jar and run it from the
> > container itself..
> > now when i do a lookup("myEJBName"), i get a "myEJBName not bound"
> > i checked my ejb-jar.xml
> > and have the following...
> > ===
> > 
> >   
> > 
> >   Contact
> >   testejb.ContactHome
> >   testejb.Contact
> >   testejb.ContactBeanBMP
> >   Bean
> >   java.lang.String
> >   False
> >   
> >  jdbc/DefaultDS
> >  javax.sql.DataSource
> >  Container
> >   
> > 
> >   
> >   
> > 
> >   
> >  Contact
> >  *
> >   
> >   Required
> > 
> >   
> > 
> > end=
> >
> > in my jboss.xml , i have :...
> > ==
> >
> > 
> >   
> > 
> >   Contact
> >   Contact
> > 
> >   
> > 
> >
> > end=
> >
> > please help... thanks
> >
> > john
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>

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



Re: [JBoss-user] JNDI performance problem.

2001-09-17 Thread Philipp Meier

On Mon, Sep 17, 2001 at 06:26:40AM +, jquest jquest wrote:
> 
> Hi Philipp,
> Thanks for answer.
> I checked the net and all is ok. The DNS too. It is working well.
> On this computer I have apache web too ( it is working on Linux Mandrake 8) 
> and the apache had a good performance.
> For me is importand to choise the app. server or to get the MS technology.
> I will to use java.

Ok, so install "strace" and try

user@host:~> strace - jboss-strace -ff -f run.sh 

This will trace the system calls the java jvm makes and log it to files
jboss-strace.pid. Try to find any sign of blocking in them. Feel free
to send them to me and I will do my best.

> Where is the problem.

We will see ;-)

-billy.

-- 
Philipp Meier  o-matic GmbH
Geschäftsführer  Pfarrer-Weiß-Weg 16-18
Tel.: +49-(0)700-66284236 89077 Ulm

 PGP signature


RE: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread Sacha Labourey

And what if you replace "myEJBName" by *your EJB name* that is "Contact"...

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de John LYC
> Envoyé : lundi, 17 septembre 2001 12:13
> À : Jboss Mailing List
> Objet : [JBoss-user] Error during conetxt.lookup()
>
>
> Hi all,
> im a newbie to J2ee and jboss...
> and i had a hard time configuring and trying to get jboss to work..
> hope i can get some help here...
>
> well, i finally got my EJB deployed...
> and i have a test client (like the one in the nitro-interest example) to
> test my EJB.
> when i run the test-client locally on my machines.. i get a
> noIntialConetxt
> exceptions..
> now i have move my test-client into the myEJB.jar and run it from the
> container itself..
> now when i do a lookup("myEJBName"), i get a "myEJBName not bound"
> i checked my ejb-jar.xml
> and have the following...
> ===
> 
>   
> 
>   Contact
>   testejb.ContactHome
>   testejb.Contact
>   testejb.ContactBeanBMP
>   Bean
>   java.lang.String
>   False
>   
>  jdbc/DefaultDS
>  javax.sql.DataSource
>  Container
>   
> 
>   
>   
> 
>   
>  Contact
>  *
>   
>   Required
> 
>   
> 
> end=
>
> in my jboss.xml , i have :...
> ==
>
> 
>   
> 
>   Contact
>   Contact
> 
>   
> 
>
> end=
>
> please help... thanks
>
> john
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



[JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

Hi all,
im a newbie to J2ee and jboss...
and i had a hard time configuring and trying to get jboss to work..
hope i can get some help here...

well, i finally got my EJB deployed...
and i have a test client (like the one in the nitro-interest example) to
test my EJB.
when i run the test-client locally on my machines.. i get a noIntialConetxt
exceptions..
now i have move my test-client into the myEJB.jar and run it from the
container itself..
now when i do a lookup("myEJBName"), i get a "myEJBName not bound"
i checked my ejb-jar.xml
and have the following...
===

  

  Contact
  testejb.ContactHome
  testejb.Contact
  testejb.ContactBeanBMP
  Bean
  java.lang.String
  False
  
 jdbc/DefaultDS
 javax.sql.DataSource
 Container
  

  
  

  
 Contact
 *
  
  Required

  

end=

in my jboss.xml , i have :...
==


  

  Contact
  Contact

  


end=

please help... thanks

john

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



RE: [JBoss-user] Two copies of Jboss2.4.1/tomcat3.2.3 on thesame machine

2001-09-17 Thread TonyCadogan

Hi,

Thanks Bill, worked a treat.

Cheers

TC

-Original Message-
From: Bruyn, Bill [mailto:[EMAIL PROTECTED]]
Sent: 13 September 2001 16:34
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] Two copies of Jboss2.4.1/tomcat3.2.3 on the
same machine


Hi Tony,

This is about how I did it for 2.3.3/3.2.3, I think.  Enjoy...

1.  Create subdirectories for each instance at jboss/conf jboss/deploy,
jboss/log, and tomcat
2.  Change the following configuration entries at conf/INSTANCE
 

--
  jboss.conf
line 6 from 
   to   

 

--
  jboss.jcml (where jboss_dist=/usr/java/JBoss-2.2.2_Tomcat-3.2.2/jboss)
line 72  from jdbc:idb:../conf/default/instantdb.properties
   to   jdbc:idb:../conf/INSTANCE/instantdb.properties 

line 120 from 
 to   
 TOMCAT_DIST/INSTANCE/conf/server.xml
   

line 144 from Default
 to   INSTANCE
 
line 151 from ../deploy
 to   ../deploy/INSTANCE
   
 

--
  log4j.properties
line 8 from log4j.appender.Default.File=../log/server.log
 to   log4j.appender.Default.File=../log/INSTANCE/server.log

   
3.  Change the following at TOMCAT_DIST/INSTANCE
 

--
  server.xml
line 69-70 from verbosityLevel = "INFORMATION" 
/>
   to   path="../../tomcat/INSTANCE/logs/tomcat.log"   
verbosityLevel = "INFORMATION"/>

line 73 from path="logs/servlet.log"
to   path="../../tomcat/INSTANCE/logs/servlet.log"

line 77 from path="logs/jasper.log"
to   path="../../tomcat/INSTANCE/logs/jasper.log"

line 102 from 
 to   

4.  Resolve interface conflicts (where new ports are available, obviously)
 


jnp.properties
  line 2 from jnp.port=1099
   to   jnp.port=2099

jndi.properties
  line 2 from #java.naming.provider.url=localhost
   to java.naming.provider.url=jnp://localhost:2099

jboss.jcml
  line 17 from 1099
 to   2099
  
  line 12 from 8083
 to   9083
  
  line 62 from 1476
   to 2476

  line 93 from jdbc:HypersonicSQL:hsql://localhost:1476
   to jdbc:HypersonicSQL:hsql://localhost:2476

  line 211 from ConnectionURL=jdbc:HypersonicSQL:hsql://localhost:1476
to
ConnectionURL=jdbc:HypersonicSQL:hsql://localhost:2476
  
  line 305 from 8082
 to 9082
   
jboss.properties
  line 5 from #java.rmi.server.codebase=http://localhost:8080/
 to #java.rmi.server.codebase=http://localhost:9080/

server.xml
  line 235 from 
 to 
 
  line 200 from value="8080"/> 
 to value="9080"/>
 
standardjboss.xml
  line 25  from 
to 5444
  
  line 65  from 
   to 5444
 
  line 108 from 
 to 5444
 
  line 138 from 
 to 5444
  
  line 167  from 
  to 5444
 
  line 205  from 
  to 5444
  
  line 240  from 
  to 5444
  
  line 280  from 
  to 5444

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 5:02 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Two copies of Jboss2.4.1/tomcat3.2.3 on the same
machine


Hi,

I'm trying two run two instances of Jboss2.4.1/tomcat3.2.2 on the same
machine, can anyone define the configuration files that need to be updated.

Cheers

TC

> Tony Cadogan
> Technology
> Tel: 020 7574 8120
> Fax: 020 7574 8141
> Mobile: 
> E Mail: [EMAIL PROTECTED]
> 
> Halifax Group Treasury & Wholesale Banking
> 33 Old Broad Street
> London
> EC2N 1HZ
> 
> Halifax Group Treasury & Wholesale Banking is a division of Halifax plc.
> Registered in England No. 2367076.  Registered Office: Trinity Road,
> Halifax, West Yorkshire HX1 2RG
> 
> 
> 
> 


--
Halifax Group Treasury & Wholesale Banking is a division of Halifax plc.
Registered

AW: [JBoss-user] Class Not Found Exception: org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl

2001-09-17 Thread Dragos Haiduc
Title: 



I am 
using JBoss2.4.0_Jetty-3.1RC8-1, but as DB i'm using Postgre, not 
Oracle8.
 
This 
is my jboss.jcml entry for my DB connection pool:
 



PostgreSQLDSattribute>
org.jboss.pool.jdbc.xa.wrapper.XADataSourceImplattribute>
jdbc:postgresql://localhost:5432/play_with_ejbsattribute>
togattribute>
secretattribute>
mbean>

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Im Auftrag von Paul 
  McLachlanGesendet: Montag, 17. September 2001 09:10An: 
  [EMAIL PROTECTED]Betreff: RE: [JBoss-user] Class Not 
  Found Exception: 
  org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
  Yes, 
  it is.
   
  What 
  version of JBoss are you using. I am using 2.4.0
   
  Paul.
  
-Original Message-From: Dragos Haiduc 
[mailto:[EMAIL PROTECTED]]Sent: Monday, 17 September 2001 
4:41 PMTo: [EMAIL PROTECTED]Subject: 
[JBoss-user] Class Not Found Exception: 
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
Paul, i was getting this NPE when trying to connect from JBoss to a 
stopped DB system(Postgre).
Is 
ur Oracle up and running? 
 

  -Ursprüngliche Nachricht-Von: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Im Auftrag von Paul 
  McLachlanGesendet: Montag, 17. September 2001 
  01:17An: [EMAIL PROTECTED]Betreff: 
  RE: [JBoss-user] Class Not Found Exception: 
  org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
  Thanks Dragos, this answer looked promising 
  but I get a NPE!
  
   
  [XADataSourceLoader] 
  Stoppedjava.lang.NullPointerException    
  at 
  org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:178)
   
  Surely someone out there must know how to use 
  JBoss 2.4 and Oracle8!
   
  
This is the class you should use in the jboss.jcml file 
in JBoss 2.4 for DataSource creation , not the one mentioned by 
you:org.jboss.pool.jdbc.xa.wrapper.XADataSourceImplBest,
Dragos


RE: [JBoss-user] Class Not Found Exception: org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl

2001-09-17 Thread Paul McLachlan
Title: 



Yes, 
it is.
 
What 
version of JBoss are you using. I am using 2.4.0
 
Paul.

  -Original Message-From: Dragos Haiduc 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, 17 September 2001 
  4:41 PMTo: [EMAIL PROTECTED]Subject: 
  [JBoss-user] Class Not Found Exception: 
  org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
  Paul, i was getting this NPE when trying to connect from JBoss to a 
  stopped DB system(Postgre).
  Is 
  ur Oracle up and running? 
   
  
-Ursprüngliche Nachricht-Von: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]Im Auftrag von Paul 
McLachlanGesendet: Montag, 17. September 2001 01:17An: 
[EMAIL PROTECTED]Betreff: RE: [JBoss-user] Class 
Not Found Exception: 
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
Thanks Dragos, this answer looked promising 
but I get a NPE!

 
[XADataSourceLoader] 
Stoppedjava.lang.NullPointerException    
at 
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:178)
 
Surely someone out there must know how to use JBoss 
2.4 and Oracle8!
 

  This is the class you should use in the jboss.jcml file in 
  JBoss 2.4 for DataSource creation , not the one mentioned by you:org.jboss.pool.jdbc.xa.wrapper.XADataSourceImplBest,
  Dragos