[JBoss-user] jboss-tomcat security configuration problem

2001-05-10 Thread François Charoy

This one cost me a day...

I use jboss-tomcat-2.2 from the distrib

It seems that there is a problem in the jboss-tomcat configuration
all the configurations files are located in the conf/tomcat dir but the
auth.conf
used by the security manager is the auth.conf from conf/default
This must be changed in the tomcat/jboss.properties.

run.bat has to be changed also to set the classpath of custom security
managers
(i don't know if this is documented somewhere)

françois



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



[JBoss-user] jboss-tomcat security configuration problem

2001-05-10 Thread François Charoy

This one cost me a day...

I use jboss-tomcat-2.2 from the distrib

It seems that there is a problem in the jboss-tomcat configuration
all the configurations files are located in the conf/tomcat dir but the
auth.conf
used by the security manager is the auth.conf from conf/default
This must be changed in the tomcat/jboss.properties.

run.bat has to be changed also to set the classpath of custom security
managers
(i don't know if this is documented somewhere)

françois



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



[JBoss-user] How to get IP address from ejb

2001-05-10 Thread Russell

 
  Hi all , 

I am using RedHat6.1 , jdk1.3 and jboss2.1 .

Can i get the computer IPAddress which accessed the ejb and stored
in the ipaddress in table ?

  Thanks

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



Re: [JBoss-user] Weird error in jboss2.1.1

2001-05-10 Thread David Jencks

Hi,
Apparently what I thought was a clear response, you did not find so.  I'll
try again.


Here's your code annotated.

private ProjectInfoHome projectinfohome;
 private ProjectInfo projectinfo;

 public ProjectInfoJB getProjectInfoJB(int projectid) throws
RemoteException, ICantFindItException {

//to avoid spurious results from reuse of session bean instances,
always initialize your variables.
projectinfo = null;

try{
 projectinfo = projectinfohome.findByPrimaryKey(new
ProjectInfoPK(projectid));
}
catch(FinderException fe){
//If you get here, you know for sure the bean you are looking for doesn't
exist. 
// Don't just ignore it, figure out what you want to do and do it;
throw new ICantFindItException();
}
//with the initialization above, if the find failed, and you ignore the
exception, you will at least get a null pointer exception, better than the
wrong answer.
return projectinfo.getProjectInfoJB(); -->get value object

  }


   public ProjectInfoJB getProjectInfoJB() throws RemoteException{

//where is projectinfojb coming from? normally you would create a new
object to hand out.  
//If you already handed this one out to someone, and modify it when the
session bean is reused, 
//the guy who got the reference first is going to get the new values...not
what you want.


  ProjectInfoJB projectinfojb = new ProjectInfoJB();  //get a new one
to return.

  projectinfojb.setAgreementdate(this.agreementdate);
  projectinfojb.setClient(this.client);
  projectinfojb.setCommencementdate(this.commencementdate);
  projectinfojb.setComments(this.comments);
  projectinfojb.setCompanyid(this.companyid);
  projectinfojb.setCompletedate(this.completedate);
  projectinfojb.setContractor(this.contractor);
  projectinfojb.setContractorperiod(this.contractorperiod);
  projectinfojb.setContractvalue(this.contractvalue);
  projectinfojb.setCountry(this.country);
  projectinfojb.setInchargedp(this.inchargedp);
  projectinfojb.setInchargeperson(this.inchargeperson);
  projectinfojb.setOthersconsultant(this.othersconsultant);
  projectinfojb.setProjectid(this.projectid);
  projectinfojb.setProjectname(this.projectname);
  projectinfojb.setProjectno(this.projectno);
  projectinfojb.setProjecttype(this.projecttype);
  projectinfojb.setServicescope(this.servicescope);
  projectinfojb.setStatus(this.status);

return projectinfojb;
  
}


On 2001.05.10 21:46:48 -0400 Russell wrote:
> Hi David ,
>   
>   If i ignoring the exception , didn't the method will throw null
> pointer exception to client.
>   I have do a testing and found that because my session is stateless
> bean , instance variable is not specific for all client.
>   If i change the session to stateful , the method will throw null
> pointer exception.
> 
>   Am I correct to said that ?
> 
>  Thanks 
>   
>


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



Re: [JBoss-user] SessionBean or ConnectionCache Problems (not sure...)

2001-05-10 Thread Guy Rouillier

For ShowPressBean, you need entries in your deployment descriptors to
PressBean like so:

ejb-jar.xml
 
ejb/Press
Session
com.ctp.corp.PressHome
com.ctp.corp.Press
 

jboss.xml
  
 ejb/Press
 Press
  

This is covered in the JBoss documentation.  If this doesn't work, then post
the runtime log so we can see what errors you are getting.


- Original Message -
From: Jason Trust <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 8:05 PM
Subject: [JBoss-user] SessionBean or ConnectionCache Problems (not sure...)



> code from ShowPressBean.java
> ---
> java.lang.Object obj = ctx.lookup("java:comp/env/ejb/Press");
> PressHome pressHome = (PressHome)PortableRemoteObject.narrow(obj,
> PressHome.class);
>
>
> code from PressBean.java
> ---
> ds = (DataSource) ctx.lookup("java:comp/env/jdbc/ctpDataSource");
>



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



Re: [JBoss-user] Unable to resolve JNDI name

2001-05-10 Thread Scott M Stark

Read the jboss.xml dtd which is available here: 
http://www.jboss.org/documentation/jboss.dtd

A descriptor like this:




com.asset.SMTPAdapter
com.asset.SMTPAdapterBean
com.asset.SMTPAdapterHome
com.asset.SMTPAdapter
Stateless
...




requires this:




com.asset.SMTPAdapter
com.asset.SMTPAdapterHome




for a client to be able to do this:
 Context ctx = new InitialContext();
 SMTPAdapterHome home = (SMTPAdapterHome)ctx.lookup("com.asset.SMTPAdapterHome");

- Original Message - 
From: "Manu Srivastava" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 9:36 PM
Subject: Re: [JBoss-user] Unable to resolve JNDI name


> Hi Danch,
> 
> Thanks for the answer. 
> 
> Problem in copy and paste :-(
> 
>  tag is there in the jBoss.xml but
> it still it does not get the correct JNDI name. It
> deploys correctly though.
> 
> Any other clues??
> 
> Thanks and regards
> Manu
> 
> 



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



Re: [JBoss-user] How to use getResourceAsStream() from a EJB

2001-05-10 Thread Guy Rouillier

Show us the definition of "resource."

- Original Message -
From: Pedro E. Gómez <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 9:56 PM
Subject: [JBoss-user] How to use getResourceAsStream() from a EJB


> I need to read a resource that i have in the classpath,
>
> The code is:
>
> Object o = new Object();
> System.out.println("O es:" + o);
> Class c = o.getClass();
> System.out.println("Class es:" + c);
> System.out.println("Resource is:" + c.getResourceAsStream(resource));
>
>
> But it does not work The resource is null.
>
> The output is:
>
> [CatalogoEJB] O es:java.lang.Object@7f94b1
> [CatalogoEJB] Class es:class java.lang.Object
> [CatalogoEJB] Resource is:null
>
>
>
> __
> Message sent with Misiva
> Visit us at http://www.pragma.com.co/misiva
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



Re: [JBoss-user] Unable to resolve JNDI name

2001-05-10 Thread Guy Rouillier

My apologies for my previous post, which I wrote in a hurry.  You should of
course do a lookup on the jndi name, which gets mapped to the ejb-name (via
jboss.xml).   My second point still holds, however - using the home class
name as your jndi name is confusing.

- Original Message -
From: Guy Rouillier <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 7:49 PM
Subject: Re: [JBoss-user] Unable to resolve JNDI name


> You are supposed to do a lookup on the remote interface.  You will be
> returned a reference to a home object, from which you can call the
create()
> method to get an object of the target class.  So I think the failure you
> indicate is appropriate.
>
> In your jboss.xml, why are you using your home classname as your jndi
name?
> This is confusing, to say the least.
>
> > jBoss.xml
> > =
> > 
> >   
> > com.asset.SMTPAdapter
> > com.asset.SMTPAdapterHome
> > 
> >   
> > 
> > 
> >
> >
> > Code snippet in my jsp
> > ==
> > Context ctx = getInitialContext();
> > Object home =
> > ctx.lookup("com.asset.SMTPAdapter");//WORKS!
> > Object home =
> > ctx.lookup("com.asset.SMTPAdapterHome");//DOES NOT
> > WORK!!!
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



Re: [JBoss-user] JBoss and Rules Engine

2001-05-10 Thread David Jencks

Hi,

You can find version 2 on my "website"

http://home.earthlink.net/~davidjencks/

So far it has 2 silly and one not so silly examples.

All suggestions, comments, and not-too-hard example projects gratefully
accepted.

There are several messages on jboss-dev about this, also.

This code is still highly experimental.

Thanks
David Jencks


On 2001.05.10 12:43:30 -0400 Matthew Baird wrote:
> I read the following on jboss news:
> 
> Rule Engine: David Jencks posts a Rule Engine integration prototype. 
> 
> Does anyone know where to look for this prototype? Is it even available?
> 
> regards,
> Matthew
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



Re: [JBoss-user] Unable to resolve JNDI name

2001-05-10 Thread Manu Srivastava

Hi Danch,

Thanks for the answer. 

Problem in copy and paste :-(

 tag is there in the jBoss.xml but
it still it does not get the correct JNDI name. It
deploys correctly though.

Any other clues??

Thanks and regards
Manu


Manu Srivastava wrote:

> Hi,
> 
> 
> jBoss.xml
> =
> 


 


>   
> com.asset.SMTPAdapter
> com.asset.SMTPAdapterHome
> 
>   
> 
> 

> Also if use keep the file name of jboss.xml in small
> letters the deployment fails. If you rename it to
all
> caps or jBoss.xml it starts deploying.

If you mosted your jboss.xml completely, this is
because of the syntax 
problem I point out above. When it's spelled in lower
case, JBoss tries 
to read it and deployment fails because it isn't
well-formed XML.


-danch



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

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



Re: [JBoss-user] Deploy a J2EE without .ear'n, .war'n and .jar'n?

2001-05-10 Thread Ivan

Do you have a code snippet for doing this?
Thank you,
Ivan
- Original Message - 
From: "Simon Tang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 3:11 PM
Subject: RE: [JBoss-user] Deploy a J2EE without .ear'n, .war'n and .jar'n?


> Yes, you don't need to have WAR EAR or JAR. Just map a contect to the
> directory that contains WEB-INF.
> 
> 
> ===
> Simon Tang
> Senior Software Engineer
> Professional Services
> Voxeo Corporation
> 
> 
> 
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of Jeremy C
> Sent: Thursday, May 10, 2001 7:01 PM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] Deploy a J2EE without .ear'n, .war'n and .jar'n?
> 
> 
> Is it possible to deploy a J2EE app with JSP's and EJB's without
> packaging it all up into a .ear file? I would like to do this for
> development purposes.
> 
> Thank you,
> 
> Jeremy - [EMAIL PROTECTED]
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



[JBoss-user] BUG?: when JAWS CMP field type is java.langObject

2001-05-10 Thread Matthew Cooper

Somebody please tell me I am doing something really dumb and that this 
explanation below is all wrong!

I have a CMP managed entity with some cmp fields, one of which is 
java.lang.Object. After persisting a value in this field (it happens to be a 
String) and bouncing jboss to make it re-load from the db, imagine my 
surprise when I got back an instance of  java.rmi.MarshalledObject.

I've looked at the code in org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand and 
this is what I think is happening...

The method:

setParameter(PreparedStatement stmt,
   int idx,
   int jdbcType,
   Object value)

determines this is a binary type and wraps it in a MashalledObject and 
serializes it to a byte arry before writign that to the db.

The method:

getResultObject(ResultSet rs, int idx, Class destination)

Finds no special methods for retriving the destination type (which is 
java.lang.Object in my case) and so calls rs.getObject(idx). The code...

if(destination.isAssignableFrom(result.getClass()))
return result;

then says is the result an instanec of my destination type (java.lang.Object) 
which is always true in this case. hecne it doesn't do any unwrapping, etc.

Can someone see if this reasoning is right please?

I can think of 2 possible work arounds at present:

1) Declare my field as byte[] and serialize the supplied object to it myself 
(I'm pretty sure the byte[] cmp management works?)

2) Declare the field as MyObject which just contains the real object. This 
should fool the code into unwrapping MyObject and then I can extract the real 
object from that.

I don't like either really.

Any help appreciated. Should I have posted this to the developers list?

Thanks, Matty.

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



Re: [JBoss-user] FW: Security Exception , but from where and how

2001-05-10 Thread Rama Rao

Hi,
I think attached word document we have documented the procedure to jsse.
bye
rama rao
- Original Message -
From: menonv <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 9:33 PM
Subject: RE: [JBoss-user] FW: Security Exception , but from where and how


> make sure you have all the required jar under JBOSSHOME/clients
>
> > -Original Message-
> > From: Mukul Kumar [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, May 10, 2001 3:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] FW:  Security Exception , but from where and
> > how
> >
> > hi friends,
> >
> > I am having this strange problem . My bean compiles fine and is deployed
> > fine on JBOSS2.2 . My client gives me the following exce[ption. I have
> > tried
> > this with all kind of beans from BMP's to stateles session beans. The
> > point
> > woth noting is that the same beansand clients used to work fine on jboss
> > 2.0
> > earlier. Please help me resolve my dilemna ASAP.
> >
> > Got reference
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/jboss/security/SecurityAssociation
> > at
> >
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericPro
> > xy
> > .java:184)
> > at
> >
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
> > at $Proxy0.create(Unknown Source)
> > at InterestClient.main(InterestClient.java:50)
> >
> > I have included the following jar files
> >
> > bean ejb.jar  jdbc2_0-stdext.jar
> > client jnp-client.jar, jboss-client.jar, ejb.jar, jbossx-client.jar
> >
> > are they enough?
> >
> >
> >
> > Thanks,
> >
> > Regards
> > Mukul kumar
> >
> >
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://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 IT Systems 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.
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

 SSL Enabling of a System using Tomcat WebServer.doc


[JBoss-user] How to use getResourceAsStream() from a EJB

2001-05-10 Thread Pedro E. Gómez

I need to read a resource that i have in the classpath, 

The code is:

Object o = new Object();
System.out.println("O es:" + o);
Class c = o.getClass();
System.out.println("Class es:" + c);
System.out.println("Resource is:" + c.getResourceAsStream(resource));


But it does not work The resource is null.

The output is:

[CatalogoEJB] O es:java.lang.Object@7f94b1
[CatalogoEJB] Class es:class java.lang.Object
[CatalogoEJB] Resource is:null



__
Message sent with Misiva
Visit us at http://www.pragma.com.co/misiva

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



Re: [JBoss-user] Weird error in jboss2.1.1

2001-05-10 Thread Russell

Hi David ,
  
  If i ignoring the exception , didn't the method will throw null
pointer exception to client.
  I have do a testing and found that because my session is stateless
bean , instance variable is not specific for all client.
  If i change the session to stateful , the method will throw null
pointer exception.

  Am I correct to said that ?

 Thanks 
  

David Jencks wrote:
> 
> Hi,
>   I doubt your code as reported is complete.  From what you show us, the
> object returned from getProjectInfoJB is never created.
> 
> The "no exception" is presumably from your trapping and ignoring the
> FinderException when you look for your bean.  I suspect what is happening
> is that jboss is reusing the same session bean for your two calls, and
> since ejb attributes don't get reset by the container, it still has the
> reference to the first bean.  The finder exception from looking for a
> nonexistent bean skips the assignment of projectinfo, so you call the "2"
> bean getProjectInfoJB().
> 
> david jencks
> 
> On 2001.05.10 04:39:11 -0400 Russell wrote:
> >
> >   Hi all , I am using RedHat6.1 , jdk1.3 and jboss2.1 .
> >
> >   I have an entity bean , method below is the implementation code is
> > most important which to increase ejb performance using value object:
> >
> >public ProjectInfoJB getProjectInfoJB() throws RemoteException{
> >
> >   projectinfojb.setAgreementdate(this.agreementdate);
> >   projectinfojb.setClient(this.client);
> >   projectinfojb.setCommencementdate(this.commencementdate);
> >   projectinfojb.setComments(this.comments);
> >   projectinfojb.setCompanyid(this.companyid);
> >   projectinfojb.setCompletedate(this.completedate);
> >   projectinfojb.setContractor(this.contractor);
> >   projectinfojb.setContractorperiod(this.contractorperiod);
> >   projectinfojb.setContractvalue(this.contractvalue);
> >   projectinfojb.setCountry(this.country);
> >   projectinfojb.setInchargedp(this.inchargedp);
> >   projectinfojb.setInchargeperson(this.inchargeperson);
> >   projectinfojb.setOthersconsultant(this.othersconsultant);
> >   projectinfojb.setProjectid(this.projectid);
> >   projectinfojb.setProjectname(this.projectname);
> >   projectinfojb.setProjectno(this.projectno);
> >   projectinfojb.setProjecttype(this.projecttype);
> >   projectinfojb.setServicescope(this.servicescope);
> >   projectinfojb.setStatus(this.status);
> >
> > return projectinfojb;
> >
> > }
> >
> >  And i have a method in stateless session bean :
> >
> >  private ProjectInfoHome projectinfohome;
> >  private ProjectInfo projectinfo;
> >
> >  public ProjectInfoJB getProjectInfoJB(int projectid) throws
> > RemoteException{
> >
> > try{
> >  projectinfo = projectinfohome.findByPrimaryKey(new
> > ProjectInfoPK(projectid));
> > }
> > catch(Exception e){}
> > return projectinfo.getProjectInfoJB(); -->get value object
> >
> >   }
> >
> >  This method is giving me some problems. It can find the record without
> > any problems.
> >  However when the first time i called the method for example below:
> >
> >
> >   1st time :
> > ProjectInfoJB jb = getProjectInfo(2) -->2 is exist in table so it
> > can find the records.
> > System.out.println(jb.getProjectid()) --> display projectid = 2 is
> > correct.
> >
> >But then when run the second time ,
> >
> > ProjectInfoJB jb = getProjectInfo(9) --> 9 is not exist in
> > the table, did not throw me nay exception
> > System.out.println(jb.getProjectid()) ---> is display projectid = 2
> > , which is wrong
> >
> >   Anybody why jboss behaviour like that ?? Any suggestions ? Thanks wt
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



RE: [JBoss-user] JBuilder Integration for edit/compile/test

2001-05-10 Thread Robert Schulz

We develop with JBuilder for JBoss - run your client out of JBuilder 
and deploy the EJB stuff into JBoss with ant - based scripts. With the
hot deploy stuff this works very well for us and you get a short 
development cycle.

R.

> -Original Message-
> From: Adam Lipscombe [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 11, 2001 10:30
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBuilder Integration for edit/compile/test
> 
> 
> Hi,
> 
> Is it possible to integrate JBoss with JBuilder4?
> 
> I need to create EJB's and minimise the edit/compile/test cycle.
> Ideally I want JB4 to compile and then deploy the bean to JBoss
> automatically.
> I believe (bit I haven't tried it) that JB4 can do this with 
> the Inprise App
> Server and Weblogic...
> 
> If anyone has achieved this I would love to know how...
> 
> 
> Thanks - Adam
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



Re: [JBoss-user] JBuilder and JBoss - Please Help!

2001-05-10 Thread Anil Tatineni

this seems to be a problem for me too. I tried to do installation as given
(which says no configuration needed on the download site for binaries). the
error is
"No web container found - only EJB deployment available"
then i stepped back and tried to install Jboss-2.2 + tomcat-3.2.1
this one seems fine. everything works.

Thanks
Anil

"John P. Coffey" wrote:

> Could someone please give me the CORRECT settings for Jboss 2.2.1 and
> Tomcat, The JBoss documentation just plain does'nt work for me, I have spent
> 2 days struggling with it and in the end I ended up with the following.  If
> anyone has a managed to make this combination work, I would be extremely
> grateful if they could let me know teh secret.  As an example crimson.jar is
> not included in the list of libraries and spydermq.jar which is included no
> longer exists in Jboss 2.2.1.  The documentation is dated for JBoss 2.0.
>
> Thanks in advance.
>
> John Coffey
>
> Pingtel
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



[JBoss-user] JBuilder Integration for edit/compile/test

2001-05-10 Thread Adam Lipscombe

Hi,

Is it possible to integrate JBoss with JBuilder4?

I need to create EJB's and minimise the edit/compile/test cycle.
Ideally I want JB4 to compile and then deploy the bean to JBoss
automatically.
I believe (bit I haven't tried it) that JB4 can do this with the Inprise App
Server and Weblogic...

If anyone has achieved this I would love to know how...


Thanks - Adam


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



[JBoss-user] JBuilder and JBoss - Please Help!

2001-05-10 Thread John P. Coffey

Could someone please give me the CORRECT settings for Jboss 2.2.1 and
Tomcat, The JBoss documentation just plain does'nt work for me, I have spent
2 days struggling with it and in the end I ended up with the following.  If
anyone has a managed to make this combination work, I would be extremely
grateful if they could let me know teh secret.  As an example crimson.jar is
not included in the list of libraries and spydermq.jar which is included no
longer exists in Jboss 2.2.1.  The documentation is dated for JBoss 2.0.

Thanks in advance.

John Coffey

Pingtel


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



[JBoss-user] SessionBean or ConnectionCache Problems (not sure...)

2001-05-10 Thread Jason Trust

This is my first posting here, and I am pretty new at jboss, so be kind.

I have an application (EAR) that I have built in Sun RI and have working
nicely, and now I am trying to deploy it to jboss.  I have made some minor
modifications to the WAR xml file since tomcat is under the 2.2 Web
Application spec and Sun RI is using 2.3.  (jboss 2.2.1, tomcat 3.2.1, jdk
1.3)

Here are my issues, and I am not totally sure on this, since everything
deploys nicely and there is relatively little debug information to go on:
I cannot access my session beans or connection cache (not sure which).

Here is my code:


jboss.jcml
---
  
  
 org.hsql.jdbcDriver,com.sybase.jdbc2.jdbc.SybDriver
  

  
ctpdb
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
l
jdbc:sybase:Tds:localhost:2638
user
sql
  


ejb-jar.xml (for Press Bean)
---

http://java.sun.com/dtd/ejb-jar_2_0.dtd'>


  no description
  Press
  

  no description
  Press
  Press
  com.ctp.corp.PressHome
  com.ctp.corp.Press
  com.ctp.corp.PressBean
  Stateless
  Bean
  


  
  
jdbc/ctpDataSource
javax.sql.DataSource
Container
Shareable
  

  



jboss.xml (for Press Bean)
---



  

  Press
  Press

  

  

  java:/ctpdb
  jdbc/ctpDataSource

  




Within my code, here is my lookups from both the JavaBean (to the Press
Bean) and from the Press Bean to the Connection Cache:

code from ShowPressBean.java
---
java.lang.Object obj = ctx.lookup("java:comp/env/ejb/Press");
PressHome pressHome = (PressHome)PortableRemoteObject.narrow(obj,
PressHome.class);


code from PressBean.java
---
ds = (DataSource) ctx.lookup("java:comp/env/jdbc/ctpDataSource");


Any help would be appreciated.

Jason E. Trust
Sun Certified - Java 2 Programmer
Sybase Certified - EAServer Developer

Corporate Technology Partners, Inc.
[EMAIL PROTECTED]
720.482.0706 x251


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



[JBoss-user] Non-ejbean client access jnp-federated file system? can it be done???

2001-05-10 Thread QuKN


Anybody succeed in making non-ejbean client (i.e. ordinary client) access
windows file system via jnp federated namespace?

The federated namespace itself seems working, after setup, the tree is like
this:

Global JNDI Namespace

  +- jmx:TWILIGHT:rmi
  +- TopicConnectionFactory
  +- XAQueueConnectionFactory
  +- jmx
  +- UILXAQueueConnectionFactory
  +- RMIXAQueueConnectionFactory
  +- RMIQueueConnectionFactory
  +- ejb20-statelessSession-TraderHome
  +- external
  |   +- fs
  |   |   +- Scott
  |   |   |   +- .bindings
  +- XATopicConnectionFactory
  ...


test code:
--
Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
  //env.setProperty(Context.PROVIDER_URL,
"localhost:/external/fs"); //==Q2
   env.setProperty(Context.PROVIDER_URL,
"localhost:/external");// Q2
   //env.setProperty(Context.PROVIDER_URL,
"localhost:/external/fs/Scott");

env.setProperty(Context.URL_PKG_PREFIXES ,
"org.jboss.naming:org.jnp.interfaces");

System.out.println("Connecting to JNDI, env="+env);
InitialContext ctx = new InitialContext(env);
System.out.println("Connected to JNDI");


 NamingEnumeration list = ctx.list(""); // Q2
 //NamingEnumeration list = ctx.list("external");// = Q1
 //NamingEnumeration list = ctx.list("external/fs"); //= Q1
 //NamingEnumeration list = ctx.list("external/fs/Scott"); // Q1

 // Go through each item in list
 while (list.hasMore()) {
  NameClassPair nc = (NameClassPair)list.next();
  System.out.println(nc);
 }

---

Q1) when ctx.list("external") or ctx.list("external/fs"), the results are
the expected:

Connecting to JNDI, env={java.naming.provider.url=localhost:/external/fs,
java.naming.factory.initial=org.jnp.interfaces.NamingCont
xtFactory,
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
Connected to JNDI
fs: org.jnp.interfaces.NamingContext


However, when ctx.list("external/fs/Scott"), it does not work anymore! It
seems related with the true in
jboss.jcml, because when it is set true, the output is:
---
Connecting to JNDI, env={java.naming.provider.url=localhost:/external/fs,
java.naming.factory.initial=org.jnp.interfaces.NamingConte
xtFactory,
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
Connected to JNDI
Operation failed: javax.naming.NotContextException

if it is set false, then, the output:
-
C:\jbossFromSrc\examples\jndi>java tstNS
Connecting to JNDI, env={java.naming.provider.url=localhost:/external/fs,
java.naming.factory.initial=org.jnp.interfaces.NamingConte
xtFactory,
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
Connected to JNDI
Operation failed: javax.naming.CannotProceedException; remaining name ''
-
-

Q2) During the process of trying solve the issue of Q1, I encountered
another issue, perhaps can provide some clues?: There is no difference that
Context.PROVIDER_URL is "localhost/external/fs" or  "localhost:/external",
or "localhost", the results of ctx.list("") are the same!


When use external:~
C:\jbossFromSrc\examples\jndi>java tstNS
Connecting to JNDI, env={java.naming.provider.url=localhost:/external,
java.naming.factory.initial=org.jnp.interfaces.NamingContextF
actory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
Connected to JNDI
jmx:TWILIGHT:rmi: org.jboss.jmx.server.RMIConnectorImpl
TopicConnectionFactory: org.jbossmq.SpyTopicConnectionFactory
XAQueueConnectionFactory: org.jbossmq.SpyXAQueueConnectionFactory
jmx: org.jboss.jmx.server.JMXAdaptorImpl
UILXAQueueConnectionFactory: org.jbossmq.SpyXAQueueConnectionFactory
RMIXAQueueConnectionFactory: org.jbossmq.SpyXAQueueConnectionFactory
RMIQueueConnectionFactory: org.jbossmq.SpyQueueConnectionFactory
ejb20-statelessSession-TraderHome: $Proxy3
external: org.jnp.interfaces.NamingContext
XATopicConnectionFactory: org.jbossmq.SpyXATopicConnectionFactory

When use external/fs:~
Connecting to JNDI, env={java.naming.provider.url=localhost:/external/fs,
java.naming.factory.initial=org.jnp.interfaces.NamingConte
xtFactory,
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
Connected to JNDI
jmx:TWILIGHT:rmi: org.jboss.jmx.serv

Re: [JBoss-user] Unable to resolve JNDI name

2001-05-10 Thread Guy Rouillier

You are supposed to do a lookup on the remote interface.  You will be
returned a reference to a home object, from which you can call the create()
method to get an object of the target class.  So I think the failure you
indicate is appropriate.

In your jboss.xml, why are you using your home classname as your jndi name?
This is confusing, to say the least.

> jBoss.xml
> =
> 
>   
> com.asset.SMTPAdapter
> com.asset.SMTPAdapterHome
> 
>   
> 
> 
>
>
> Code snippet in my jsp
> ==
> Context ctx = getInitialContext();
> Object home =
> ctx.lookup("com.asset.SMTPAdapter");//WORKS!
> Object home =
> ctx.lookup("com.asset.SMTPAdapterHome");//DOES NOT
> WORK!!!



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



Re: [JBoss-user] How to get connection

2001-05-10 Thread Guy Rouillier

In your bean code, lookup the connection:

 Connection connection =
((DataSource)(new
InitialContext()).lookup("java:comp/env/jdbc/metricsDB")).getConnection();

- Original Message -
From: "Hari Shanker Ravindran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 8:44 AM
Subject: [JBoss-user] How to get connection


> hi,
>  I am pretty new 2 JBoss.Query i have is i have deployed a
> connection pool in the JBoss Server,now how will i get the connection
object
> from from the Server context 2 the Session Bean.
>
>
>
>
> thanking you
>   regards hari
>
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-10 Thread John Menke

Maybe the -nonaming is not getting executed then? (if it fixed your
problem). I am using Catalina from within the Turbine TDK which contains a
schell script startup.sh which calls the catalina.sh script. I have added
the -nonaming to this line so it reads

$BASEDIR/catalina.sh start -nonaming "$@"

This should turn naming off, but I still get the errors when I start the
program this way.


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Bordet,
> Simone
> Sent: Thursday, May 10, 2001 6:42 PM
> To: '[EMAIL PROTECTED]'
> Subject: R: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
>
>
> Hey John
>
> > Yes, I have tried that, and I still get the error.  (It seems
> > like it has no
> > effect)  Do you have this configuration working?
>
> Not exactly. I'm using Catalina with another server application
> that has its
> own Naming service, and at the beginning I got the same error on startup,
> but it went away with the -nonaming option.
> We then have other problems with this jndi: protocol, also from previous
> discussions it seems to me a Catalina bug: with us, every class
> loaded from
> web-inf/classes or web-inf/lib has a codebase like
> "jndi:/WEB-INF/classes/"
> or "jar:jndi:/WEB-INF/lib/xxx.jar!/", so that if objects of these classes
> are passed as arguments to any rmi method invocation, on the
> other side the
> class annotation is taken from the stream, but of course the classloader
> cannot understand the Catalina-specific jndi: protocol.
> The context class loader should take care of that probably, but I did not
> figured it out yet why it doesn't. I miss Rickard !
>
> Will live, will see.
>
> Cheers
>
> Simon
>
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Bordet,
> > > Simone
> > > Sent: Thursday, May 10, 2001 6:15 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: R: [JBoss-user] Catalina and Jboss2.2.1
> > InitialContext error
> > >
> > >
> > > Do you start Catalina with the -nonaming option, so that from it
> > > you connect
> > > to JBoss' Naming service ?
> > >
> > > Simon
> > >
> > > > -Messaggio originale-
> > > > Da: John Menke [mailto:[EMAIL PROTECTED]]
> > > > Inviato: mercoledì 9 maggio 2001 23:30
> > > > A: jboss
> > > > Oggetto: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
> > > >
> > > >
> > > > This error is produced when I try to get an initial JNDI context.
> > > >
> > > > The error is:
> > > >
> > > > javax.naming.CommunicationException[Root exeption is
> > > > java.rmi.ServerException: RemoteException occured in server
> > > > thread; nested
> > > > exception is java.rmi.UnmarshalException: error unmarshalling
> > > > arguments;
> > > > nested exception is java.net.MalformedURL exception: unknown
> > > > protocol: jndi
> > > >
> > > >
> > > > I can get InitalContext in Tomcat 3.2, but Catalina produces
> > > > the error.
> > > >
> > > > Is there a workaround?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > ___
> > > > JBoss-user mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



RE: [JBoss-user] Deploy a J2EE without .ear'n, .war'n and .jar'n?

2001-05-10 Thread Simon Tang

Well, for Web applications, I used Resin and inside the resin.conf, you
can have something like this:



So, the context is /foo and maps to the directory. Inside the directory,
you'll need to have the WEB-INF directory and also all the JSP files.

For your EJBs, you will need to have them inside a JAR file in order to
deploy to jBoss. In this manner, any changes to your JSPs and Servlets
you don't need to re-WAR them. Resin takes care of them automatically.


===
Simon Tang
Senior Software Engineer
Professional Services
Voxeo Corporation
Tel: 415-678-4186




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jeremy C
Sent: Thursday, May 10, 2001 7:29 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Deploy a J2EE without .ear'n, .war'n and
.jar'n?


Can you expand on this a little? How do I map a connect?

Jeremy - [EMAIL PROTECTED]

At 03:11 PM 5/10/2001 -0700, you wrote:
>Yes, you don't need to have WAR EAR or JAR. Just map a contect to the 
>directory that contains WEB-INF.
>
>
>===
>Simon Tang
>Senior Software Engineer
>Professional Services
>Voxeo Corporation
>
>
>
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]] On Behalf Of Jeremy C
>Sent: Thursday, May 10, 2001 7:01 PM
>To: [EMAIL PROTECTED]
>Subject: [JBoss-user] Deploy a J2EE without .ear'n, .war'n and .jar'n?
>
>
>Is it possible to deploy a J2EE app with JSP's and EJB's without 
>packaging it all up into a .ear file? I would like to do this for 
>development purposes.
>
>Thank you,
>
>Jeremy - [EMAIL PROTECTED]
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED] 
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED] 
>http://lists.sourceforge.net/lists/listinfo/jboss-user


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

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



Re: [JBoss-user] Slightly Off-Topic: Java on Solaris

2001-05-10 Thread Alexander Kogan

Hi,

All following is based ONLY on my/our experience:


1. usually java on Sparc/Solaris much faster then on Linux/Intel
   (actually I know that unix-vm group at Sun has spend a lot of time
to tune the VM performance)

2. usually java is more stable on Sparc/Solaris then on Linux/Intel
   (check number of Linux-specific bugs versus Solaris-specific)

3. java for Solaris is released a bit early than for Linux

Don't know about Sun Blade 100, my experience is based on whole zoo
of SunSparc 60s.

But, personally I'd prefer Compaq XP1000 with Tru64 (ex DigitalUnix).

regards,


Hunter Hillegas wrote:
> 
> My question is off-topic so maybe anyone that responds should do so off
> list...
> 
> Anyway, I'm wondering how much better Java is on the Sparc/Solaris vs.
> Linux/Intel.
> 
> Those Sun Blade 100 workstations are pretty cheap and I'm curious about
> getting one... Worth it?
> 

-- 
__
Alexander Kogan  PTC   www.ptc.com
[EMAIL PROTECTED]140 Kendrick St. Needham MA 02494

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



R: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-10 Thread Bordet, Simone

Hey John

> Yes, I have tried that, and I still get the error.  (It seems 
> like it has no
> effect)  Do you have this configuration working?

Not exactly. I'm using Catalina with another server application that has its
own Naming service, and at the beginning I got the same error on startup,
but it went away with the -nonaming option.
We then have other problems with this jndi: protocol, also from previous
discussions it seems to me a Catalina bug: with us, every class loaded from
web-inf/classes or web-inf/lib has a codebase like "jndi:/WEB-INF/classes/"
or "jar:jndi:/WEB-INF/lib/xxx.jar!/", so that if objects of these classes
are passed as arguments to any rmi method invocation, on the other side the
class annotation is taken from the stream, but of course the classloader
cannot understand the Catalina-specific jndi: protocol.
The context class loader should take care of that probably, but I did not
figured it out yet why it doesn't. I miss Rickard !

Will live, will see.

Cheers

Simon

> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Bordet,
> > Simone
> > Sent: Thursday, May 10, 2001 6:15 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: R: [JBoss-user] Catalina and Jboss2.2.1 
> InitialContext error
> >
> >
> > Do you start Catalina with the -nonaming option, so that from it
> > you connect
> > to JBoss' Naming service ?
> >
> > Simon
> >
> > > -Messaggio originale-
> > > Da: John Menke [mailto:[EMAIL PROTECTED]]
> > > Inviato: mercoledì 9 maggio 2001 23:30
> > > A: jboss
> > > Oggetto: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
> > >
> > >
> > > This error is produced when I try to get an initial JNDI context.
> > >
> > > The error is:
> > >
> > > javax.naming.CommunicationException[Root exeption is
> > > java.rmi.ServerException: RemoteException occured in server
> > > thread; nested
> > > exception is java.rmi.UnmarshalException: error unmarshalling
> > > arguments;
> > > nested exception is java.net.MalformedURL exception: unknown
> > > protocol: jndi
> > >
> > >
> > > I can get InitalContext in Tomcat 3.2, but Catalina produces
> > > the error.
> > >
> > > Is there a workaround?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



[JBoss-user] CMP finder method problem

2001-05-10 Thread Jason Wells

Hello,

When I call the findAll() method on a CMP entity bean I've written, I'm
getting a stack trace containing this exception:

java.rmi.ServerException: Store failed; nested exception is:
com.sybase.jdbc2.jdbc.SybSQLException: Too many table names or referential
constraints in the query, maximum allowed table references is '16'.

I don't believe there is any configuration problem mainly because I have a
very similar CMP entity bean in the same JAR, using the same database, that
seems to work fine. On the other hand, this method is automatically provided
by the container, so I don't see how it could be a problem specific to the
bean. According to the deployer, the bean deploys correctly with no
warnings, which suggests that the deployment descriptors aren't broken. I've
gone over them all about six times and I find no problems.

I could get to the bottom of this if I could just see what the container is
doing when the findAll() is triggered. My question is: is there a way to
print or log the SQL SELECT statement that the container has executed on my
entity bean's behalf? If not, can anyone suggest a good way to debug
something like this?

Any help is appreciated. Thanks in advance.
--
Jason Wells
Web Architect
Xsilogy, Inc.
http://www.xsilogy.com/


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



RE: [JBoss-user] Deploy a J2EE without .ear'n, .war'n and .jar'n?

2001-05-10 Thread Jeremy C

Can you expand on this a little? How do I map a connect?

Jeremy - [EMAIL PROTECTED]

At 03:11 PM 5/10/2001 -0700, you wrote:
>Yes, you don't need to have WAR EAR or JAR. Just map a contect to the
>directory that contains WEB-INF.
>
>
>===
>Simon Tang
>Senior Software Engineer
>Professional Services
>Voxeo Corporation
>
>
>
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]] On Behalf Of Jeremy C
>Sent: Thursday, May 10, 2001 7:01 PM
>To: [EMAIL PROTECTED]
>Subject: [JBoss-user] Deploy a J2EE without .ear'n, .war'n and .jar'n?
>
>
>Is it possible to deploy a J2EE app with JSP's and EJB's without
>packaging it all up into a .ear file? I would like to do this for
>development purposes.
>
>Thank you,
>
>Jeremy - [EMAIL PROTECTED]
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user


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



RE: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-10 Thread John Menke

Yes, I have tried that, and I still get the error.  (It seems like it has no
effect)  Do you have this configuration working?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Bordet,
> Simone
> Sent: Thursday, May 10, 2001 6:15 PM
> To: '[EMAIL PROTECTED]'
> Subject: R: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
>
>
> Do you start Catalina with the -nonaming option, so that from it
> you connect
> to JBoss' Naming service ?
>
> Simon
>
> > -Messaggio originale-
> > Da: John Menke [mailto:[EMAIL PROTECTED]]
> > Inviato: mercoledì 9 maggio 2001 23:30
> > A: jboss
> > Oggetto: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
> >
> >
> > This error is produced when I try to get an initial JNDI context.
> >
> > The error is:
> >
> > javax.naming.CommunicationException[Root exeption is
> > java.rmi.ServerException: RemoteException occured in server
> > thread; nested
> > exception is java.rmi.UnmarshalException: error unmarshalling
> > arguments;
> > nested exception is java.net.MalformedURL exception: unknown
> > protocol: jndi
> >
> >
> > I can get InitalContext in Tomcat 3.2, but Catalina produces
> > the error.
> >
> > Is there a workaround?
> >
> >
> >
> >
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



RE: [JBoss-user] apache doesn't invoke mod_jk after jboss restart

2001-05-10 Thread McDonnell, David
Title: apache doesn't invoke mod_jk after jboss restart



Hi 
Ernest,
 
I 
remember reading somewhere that this is a limitation of Apj13 protocol, if you 
stop tomcat you have to restart Apache (it needs a socket connection open). You 
can try and switch back to using Apj12 and there should be no problems, although 
I don't think you can use SSL correctly with Apj12 and the performance isnt as 
good.
 
Cheers,Dave

  -Original Message-From: Ernest Chen 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, 11 May 2001 7:39 
  AMTo: '[EMAIL PROTECTED]'Subject: 
  [JBoss-user] apache doesn't invoke mod_jk after jboss 
  restart
  Not sure if I'm posting to the right place.  Basically I 
  have the following setup: 
  Apache > mod_jk > Tomcat 3.2.1 + jBoss 2.2.1 
  Each time I shut down jboss and bring it up again, Apache 
  doesn't recognize the connection anymore, my pages result in Not found, I have 
  to restart apache again.  
  Is this a shortcoming of mod_jk or simply something wrong with 
  my setup? 
  tks 
  Ernest 


R: [JBoss-user] Dynamic class downloading from distant host: working? Bug?

2001-05-10 Thread Bordet, Simone

Sacha, repost it to jboss-dev.

>From a very rapid glance, IMHO you're right...

Simon

> -Messaggio originale-
> Da: Sacha Labourey [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledì 9 maggio 2001 0:32
> A: jBoss-User Mailing List
> Oggetto: [JBoss-user] Dynamic class downloading from distant host:
> working? Bug?
> 
> 
> Hello,
> 
> Sorry to insist on this topic... but it is late and I think 
> it is really
> strange.
> 
> In org.jboss.ejb.ContainerFactory.deploy (line 342 and 
> around), we have
> this:
> 
>   // create the _real_ classloader for this app
>   ClassLoader cl = new URLClassLoader( jarUrls,
> Thread.currentThread().getContextClassLoader() );
>   app.setClassLoader( cl );
> 
>   for( int i = 0; i < jarUrls.length; i++ )
>deploy( app, jarUrls[ i ], cl );
> 
>   // Init application
>   app.init();
>   // Start application
>   app.start();
> 
>   // Add to webserver so client can access classes 
> through dynamic class
> downloading
>   WebServiceMBean webServer = (WebServiceMBean)
> BeanProxy.create( WebServiceMBean.class, 
> WebServiceMBean.OBJECT_NAME );
> 
>   webServer.addClassLoader( cl );
> 
> 
> =>
>   - a new classloader is created for the application
>   - each jar of the application is deployed thanks to 
> this newly created CL
>   - the webserver is extended with our new CL so that it 
> is able to also
> provide this application classes
> 
> BUT when we deploy an application through the deploy 
> directory, jarUrls will
> point to a *file* URL (e.g. /c:/jboss/tmp/deploy/default/myBean.jar).
> Consequently, when the RMI engine will create the home and 
> remote stub, it
> will set its codebase to the URLClassLoader URL and *not* to 
> the webService
> URL.
> 
>   => the client, potentially located on another host, 
> will try to download
> the missing class from a *file path* that does not exist on 
> its system and
> not from a http URL (the one of our webservicembean)
> 
> 
> Please, tell me that I am wrong... it kills me... ;)
> 
> Thank you. Cheers,
> 
> 
> 
>   Sacha
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



R: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error

2001-05-10 Thread Bordet, Simone

Do you start Catalina with the -nonaming option, so that from it you connect
to JBoss' Naming service ?

Simon

> -Messaggio originale-
> Da: John Menke [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledì 9 maggio 2001 23:30
> A: jboss
> Oggetto: [JBoss-user] Catalina and Jboss2.2.1 InitialContext error
> 
> 
> This error is produced when I try to get an initial JNDI context.
> 
> The error is:
> 
> javax.naming.CommunicationException[Root exeption is
> java.rmi.ServerException: RemoteException occured in server 
> thread; nested
> exception is java.rmi.UnmarshalException: error unmarshalling 
> arguments;
> nested exception is java.net.MalformedURL exception: unknown 
> protocol: jndi
> 
> 
> I can get InitalContext in Tomcat 3.2, but Catalina produces 
> the error.
> 
> Is there a workaround?
> 
> 
> 
> 
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



Re: [JBoss-user] Error Message When Running run.sh

2001-05-10 Thread Lan Nguyen

*This message was transferred with a trial version of CommuniGate(tm) Pro*
Hi everyone.

When I run the run.sh script, I get a java.lang.NoClassDefFoundError
java/lang/Object error message.  i'm using the latest vesion of jdk for
linux 1.3.0.02, and I'm using Redhat 7.1 with a 2.4 kernal. Can any one help
me

Thanks

--Lan
.net/lists/listinfo/jboss-user


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



RE: [JBoss-user] Deploy a J2EE without .ear'n, .war'n and .jar'n?

2001-05-10 Thread Simon Tang

Yes, you don't need to have WAR EAR or JAR. Just map a contect to the
directory that contains WEB-INF.


===
Simon Tang
Senior Software Engineer
Professional Services
Voxeo Corporation





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Jeremy C
Sent: Thursday, May 10, 2001 7:01 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Deploy a J2EE without .ear'n, .war'n and .jar'n?


Is it possible to deploy a J2EE app with JSP's and EJB's without
packaging it all up into a .ear file? I would like to do this for
development purposes.

Thank you,

Jeremy - [EMAIL PROTECTED]


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

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



[JBoss-user] java/lang/Object Error Message

2001-05-10 Thread Lan Nguyen



Hi everyone.
 
When I run the run.sh script, I get a 
java.lang.NoClassDefFoundError java/lang/Object error message.  i'm using 
the latest vesion of jdk for linux 1.3.0.02, and I'm using Redhat 7.1 with a 2.4 
kernal. Can any one help me
 
Thanks 
 
--Lan


RE: [JBoss-user] Is there a step by step guide to porting apps fr om iPlanet Applic ation Server to JBoss?

2001-05-10 Thread Samuel Bucholtz

I fixed the descriptors, though there are a few things I had to rip out
because JBoss does not support them that may or may not cause me problems in
the future. They seem to work fine right now, most of my problem was that I
wrote none of the code, so I was not sure what was doing what. ;-)

Samuel

-Original Message-
From: danch (Dan Christopherson) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 17:44
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Is there a step by step guide to porting apps
fr om iPlanet Applic ation Server to JBoss?


Samuel Bucholtz wrote:

> Thanks,
> 
> It is actually pretty simple. There are only a few beans and no entity
beans
> at all.
> 
> I just keep getting the same error, and have no clue what it is trying to
> ask for.
> 
> org.jboss.ejb.DeploymentException: expected only one assembly-descriptor
tag
> 


If you're still having problems with this, send me your descriptors.

-danch



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

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



Re: [JBoss-user] apache doesn't invoke mod_jk after jboss restart

2001-05-10 Thread danch (Dan Christopherson)

Ernest Chen wrote:

> Not sure if I'm posting to the right place.  Basically I have the 
> following setup:
> 
> Apache > mod_jk > Tomcat 3.2.1 + jBoss 2.2.1
> 
> Each time I shut down jboss and bring it up again, Apache doesn't 
> recognize the connection anymore, my pages result in Not found, I have 
> to restart apache again. 
> 
> Is this a shortcoming of mod_jk or simply something wrong with my setup?


Probably a shortcoming of mod_jk: when you shut down jboss/tomcat, the 
other end of the socket that mod_jk is talking through goes away, so it 
starts getting errors and gives up rather than attempting to re-connect.


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



[JBoss-user] Deploy a J2EE without .ear'n, .war'n and .jar'n?

2001-05-10 Thread Jeremy C

Is it possible to deploy a J2EE app with JSP's and EJB's without packaging 
it all up into a .ear file? I would like to do this for development purposes.

Thank you,

Jeremy - [EMAIL PROTECTED]


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



Re: [JBoss-user] Is there a step by step guide to porting apps fr om iPlanet Applic ation Server to JBoss?

2001-05-10 Thread danch (Dan Christopherson)

Samuel Bucholtz wrote:

> Thanks,
> 
> It is actually pretty simple. There are only a few beans and no entity beans
> at all.
> 
> I just keep getting the same error, and have no clue what it is trying to
> ask for.
> 
> org.jboss.ejb.DeploymentException: expected only one assembly-descriptor tag
> 


If you're still having problems with this, send me your descriptors.

-danch



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



[JBoss-user] apache doesn't invoke mod_jk after jboss restart

2001-05-10 Thread Ernest Chen
Title: apache doesn't invoke mod_jk after jboss restart





Not sure if I'm posting to the right place.  Basically I have the following setup:


Apache > mod_jk > Tomcat 3.2.1 + jBoss 2.2.1


Each time I shut down jboss and bring it up again, Apache doesn't recognize the connection anymore, my pages result in Not found, I have to restart apache again.  

Is this a shortcoming of mod_jk or simply something wrong with my setup?


tks


Ernest





[JBoss-user] Using Jakarta Struts with JBoss/Tomcat

2001-05-10 Thread Ross Greinke
Title: Using Jakarta Struts with JBoss/Tomcat






I've been using Struts with Tomcat and they've been working fine (probably because they're both Jakarta apps).


I tried to get the struts-example.war to run under the JBoss/Tomcat all-in-one release (now that I'm ready to add EJB's to my apps) and I got a stack backtrace, class not found  (the User class in the example).

Here's a snippet from the log;  full log is attached.


-- begin backtrace --
[EmbeddedTomcat] Starting
[EmbeddedTomcat] Starting EmbeddedTomcat
[EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error messages 
[EmbeddedTomcat] New org.apache.struts.example.User
[EmbeddedTomcat] Begin event threw exception
[EmbeddedTomcat] java.lang.ClassNotFoundException: org.apache.struts.example.User
[EmbeddedTomcat]    at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:524)
[EmbeddedTomcat]    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
[EmbeddedTomcat]    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
[EmbeddedTomcat]    at java.lang.Class.forName0(Native Method)
[EmbeddedTomcat]    at java.lang.Class.forName(Class.java:120)
[EmbeddedTomcat]    at org.apache.struts.digester.ObjectCreateRule.begin(ObjectCreateRule.java:152)
[EmbeddedTomcat]    at org.apache.struts.digester.Digester.startElement(Digester.java:498)
[EmbeddedTomcat]    at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
[EmbeddedTomcat]    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1451)
[EmbeddedTomcat]    at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
[EmbeddedTomcat]    at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
[EmbeddedTomcat]    at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
[EmbeddedTomcat]    at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
[EmbeddedTomcat]    at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
[EmbeddedTomcat]    at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
[EmbeddedTomcat]    at javax.xml.parsers.SAXParser.parse(SAXParser.java:317)
[EmbeddedTomcat]    at javax.xml.parsers.SAXParser.parse(SAXParser.java:108)
[EmbeddedTomcat]    at org.apache.struts.digester.Digester.parse(Digester.java:716)
[EmbeddedTomcat]    at org.apache.struts.example.DatabaseServlet.load(DatabaseServlet.java:283)
[EmbeddedTomcat]    at org.apache.struts.example.DatabaseServlet.init(DatabaseServlet.java:178)
[EmbeddedTomcat]    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
[EmbeddedTomcat]    at org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
[EmbeddedTomcat]    at org.apache.tomcat.core.Handler.init(Handler.java:215)
[EmbeddedTomcat]    at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
[EmbeddedTomcat]    at org.apache.tomcat.context.LoadOnStartupInterceptor.contextInit(LoadOnStartupInterceptor.java:130)

[EmbeddedTomcat]    at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491)
[EmbeddedTomcat]    at org.apache.tomcat.core.ContextManager.init(ContextManager.java:453)
[EmbeddedTomcat]    at org.jboss.tomcat.TomcatEntry.execute(TomcatEntry.java:325)
[EmbeddedTomcat]    at org.jboss.tomcat.TomcatEntry.(TomcatEntry.java:72)
[EmbeddedTomcat]    at org.jboss.tomcat.EmbeddedTomcatService.startService(EmbeddedTomcatService.java:69)
[EmbeddedTomcat]    at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
[EmbeddedTomcat]    at java.lang.reflect.Method.invoke(Native Method)
[EmbeddedTomcat]    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[EmbeddedTomcat]    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[EmbeddedTomcat]    at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
[EmbeddedTomcat]    at java.lang.reflect.Method.invoke(Native Method)
[EmbeddedTomcat]    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[EmbeddedTomcat]    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[EmbeddedTomcat]    at org.jboss.Main.(Main.java:203)
[EmbeddedTomcat]    at org.jboss.Main$1.run(Main.java:107)
[EmbeddedTomcat]    at java.security.AccessController.doPrivileged(Native Method)
[EmbeddedTomcat]    at org.jboss.Main.main(Main.java:103)
[EmbeddedTomcat] cannot load servlet name: database
-- end backtrace --


Other classes in the tree seem to be seen when it tries to start the application.


I'm using the JBoss 2.2.1 / Tomcat 3.2.1 setup.


I tried deploying to the Tomcal webapps dir and also to the JBoss deploy directory and got the same error.


Do I need to do something extra to have a struts app work under this environment?


Please followup via email only since my inter

[JBoss-user] Problem with JSP Includes

2001-05-10 Thread Samuel Bucholtz

I want to thank people for their help yesterday, I managed to get the dtd
and create the proper jboss.xml.
I am now able to load the jar file of EJBs and the run and are verified just
fine. I have run into a few other problems:

1. I have an ear file with the EJB jar file and a war file with all the
jsps, etc. for the app. If I put the ear file in the deploy directory the 
war file craps out with a:
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet

2. If I put the EJB jar file in the deploy dir and make a symlink from
within the tomcat webapps dir to a place on the filesystem where the war
file has been extracted the application seems to load. However, I get
another problem:
When I access a JSP I get the following error in JBoss: JSP:include tag is
invalid.

This seems to happen because the JSP is referencing an "absolute" path from
the root of the application, rather than a local relative path. I have been
unable to find anyway to get the JSP:include to work.

Samuel


> 
> Samuel Bucholtz
> [EMAIL PROTECTED]
> 1.917.534.8640
> Scient* - The eBusiness Systems Innovator(tm)
> http://www.scient.com
> 
> 

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



RE: [JBoss-user] JNDI Lookup of Datasources

2001-05-10 Thread Nikhil Patil
Title: RE: [JBoss-user] JNDI Lookup of Datasources



Hi
I 
apologize for the typo in my mail, but my code was using "workflowDS". One the 
reasons it was not working cause I was making the lookup in a different vm. It 
seems that lookups for datasources
only 
work in-vm. Even then one has to specify "java:/" to the name of the 
datasource.
 
thanks
Nikhil

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Miranda 
  CarlosSent: Thursday, May 10, 2001 3:59 PMTo: 
  [EMAIL PROTECTED]Subject: RE: [JBoss-user] JNDI 
  Lookup of Datasources
  javax.sql.DataSource source = 
  (javax.sql.DataSource)jndiContext.lookup("java:/defaultDS"); 
  
  -Original Message- From: 
  Nikhil Patil [mailto:[EMAIL PROTECTED]] Sent: Jueves, 10 de Mayo de 2001 04:26 p.m. To: 
  jboss Subject: [JBoss-user] JNDI Lookup of 
  Datasources 
  Hi I have set a datasource called 
  "workflowDS" in JBOSS. I am trying to do a client 
  lookup from a client and this how my code looks like. 
      Properties env = 
  new Properties();   
  env.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");   
  env.setProperty("java.naming.provider.url",  "localhost:1099"); 
  
    try   {     // 
  Get a naming context     
  InitialContext jndiContext = new InitialContext(env);     
  System.out.println("Got context"); 
          
      javax.sql.DataSource source = (javax.sql.DataSource)jndiContext.lookup("defaultDS"); 
    }   catch(Exception e)   {  
  System.out.println(e.toString());   } 
  I get a NameNotFoundException. Any reason. I know that 
  workflowDS is getting bound to the jndi tree for the 
  console says so. 
  Thanks Nikhil 
  ___ 
  JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user 
  


[JBoss-user] Slightly Off-Topic: Java on Solaris

2001-05-10 Thread Hunter Hillegas

My question is off-topic so maybe anyone that responds should do so off
list...

Anyway, I'm wondering how much better Java is on the Sparc/Solaris vs.
Linux/Intel.

Those Sun Blade 100 workstations are pretty cheap and I'm curious about
getting one... Worth it?

Hunter


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



Re: [JBoss-user] JNDI Lookup of Datasources

2001-05-10 Thread danch (Dan Christopherson)

If this is a client (running in a separate process from JBoss) you won't 
be able to do this: JDBC connections and datasources aren't serializable 
and can't be accessed accross process boundaries.

Nikhil Patil wrote:

> Hi
> I have set a datasource called "workflowDS" in JBOSS. I am trying to do a
> client lookup from a client and this how my code looks like.
> 
>   Properties env = new Properties();
>   env.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
>   env.setProperty("java.naming.provider.url",  "localhost:1099");
> 
>   try
>   {
> // Get a naming context
> InitialContext jndiContext = new InitialContext(env);
> System.out.println("Got context");
>   javax.sql.DataSource source =
> (javax.sql.DataSource)jndiContext.lookup("defaultDS");
> 
>   }
>   catch(Exception e)
>   {
>  System.out.println(e.toString());
>   }
> 
> I get a NameNotFoundException. Any reason. I know that workflowDS is getting
> bound to the jndi tree for the console says so.
> 
> Thanks
> Nikhil
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 




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



RE: [JBoss-user] JNDI Lookup of Datasources

2001-05-10 Thread Mayo, Eric

Try precluding the data source name with "java:/", that is, try 
javax.sql.DataSource source =
(javax.sql.DataSource)jndiContext.lookup("java:/defaultDS");

I believe I had that problem in the past and that fixed it.

Cheers,

Eric

-Original Message-
From: Nikhil Patil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 3:26 PM
To: jboss
Subject: [JBoss-user] JNDI Lookup of Datasources


Hi
I have set a datasource called "workflowDS" in JBOSS. I am trying to do a
client lookup from a client and this how my code looks like.

Properties env = new Properties();
  env.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
  env.setProperty("java.naming.provider.url",  "localhost:1099");

  try
  {
// Get a naming context
InitialContext jndiContext = new InitialContext(env);
System.out.println("Got context");
javax.sql.DataSource source =
(javax.sql.DataSource)jndiContext.lookup("defaultDS");

  }
  catch(Exception e)
  {
 System.out.println(e.toString());
  }

I get a NameNotFoundException. Any reason. I know that workflowDS is getting
bound to the jndi tree for the console says so.

Thanks
Nikhil


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


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



RE: [JBoss-user] JNDI Lookup of Datasources

2001-05-10 Thread Miranda Carlos
Title: RE: [JBoss-user] JNDI Lookup of Datasources





javax.sql.DataSource source = (javax.sql.DataSource)jndiContext.lookup("java:/defaultDS");




-Original Message-
From: Nikhil Patil [mailto:[EMAIL PROTECTED]]
Sent: Jueves, 10 de Mayo de 2001 04:26 p.m.
To: jboss
Subject: [JBoss-user] JNDI Lookup of Datasources



Hi
I have set a datasource called "workflowDS" in JBOSS. I am trying to do a
client lookup from a client and this how my code looks like.


    Properties env = new Properties();
  env.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
  env.setProperty("java.naming.provider.url",  "localhost:1099");


  try
  {
    // Get a naming context
    InitialContext jndiContext = new InitialContext(env);
    System.out.println("Got context");
            javax.sql.DataSource source =
(javax.sql.DataSource)jndiContext.lookup("defaultDS");


  }
  catch(Exception e)
  {
 System.out.println(e.toString());
  }


I get a NameNotFoundException. Any reason. I know that workflowDS is getting
bound to the jndi tree for the console says so.


Thanks
Nikhil



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





Re: [JBoss-user] Integration w/ IIS?

2001-05-10 Thread danch (Dan Christopherson)

If you look at the Tomcat site, I believe you'll find an ISAPI plug-in 
that speaks AJP in order to forward JSP/servlet requests to Tomcat. You 
should be able to configure that against the JBoss-Tomcat combo.

-danch

Sean LeBlanc wrote:

> Is there any way to have JBoss "integrate" with
> IIS (ala something like JRun)? All I really want
> to do is to be able to add JSP capability to an
> already-running application done in IIS-Coldfusion:
> IIS acts as gateway to Coldfusion, but I want to
> be able to hand off things to JBoss (JRun's licensing
> is a bit much) for it to handle the JSP.
> 
> Is there a chapter anywhere on this? Or some docs?
> I looked about in online docs a bit, as well as
> docs dir under jboss dir, but haven't found anything
> yet. Maybe there is a filter out there for IIS?
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 




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



Re: [JBoss-user] JNDI Lookup of Datasources

2001-05-10 Thread MailingLists

well, if your code is not a type-o check the following line:

jndiContext.lookup("defaultDS");

according to your e-mail, that should be workflowDS ;)



- Original Message -
From: "Nikhil Patil" <[EMAIL PROTECTED]>
To: "jboss" <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 12:26 PM
Subject: [JBoss-user] JNDI Lookup of Datasources


> Hi
> I have set a datasource called "workflowDS" in JBOSS. I am trying to do a
> client lookup from a client and this how my code looks like.
>
> Properties env = new Properties();
>   env.setProperty("java.naming.factory.initial",
> "org.jnp.interfaces.NamingContextFactory");
>   env.setProperty("java.naming.provider.url",  "localhost:1099");
>
>   try
>   {
> // Get a naming context
> InitialContext jndiContext = new InitialContext(env);
> System.out.println("Got context");
> javax.sql.DataSource source =
> (javax.sql.DataSource)jndiContext.lookup("defaultDS");
>
>   }
>   catch(Exception e)
>   {
>  System.out.println(e.toString());
>   }
>
> I get a NameNotFoundException. Any reason. I know that workflowDS is
getting
> bound to the jndi tree for the console says so.
>
> Thanks
> Nikhil
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



RE: [JBoss-user] JNDI Lookup of Datasources

2001-05-10 Thread Christian Thrum

check your code. in the lookup() u use "defaultDS" instead of "workflowDS"

christian

-Original Message-
From: Nikhil Patil [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 10, 2001 9:26 PM
To: jboss
Subject: [JBoss-user] JNDI Lookup of Datasources


Hi
I have set a datasource called "workflowDS" in JBOSS. I am trying to do a
client lookup from a client and this how my code looks like.

Properties env = new Properties();
  env.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
  env.setProperty("java.naming.provider.url",  "localhost:1099");

  try
  {
// Get a naming context
InitialContext jndiContext = new InitialContext(env);
System.out.println("Got context");
javax.sql.DataSource source =
(javax.sql.DataSource)jndiContext.lookup("defaultDS");

  }
  catch(Exception e)
  {
 System.out.println(e.toString());
  }

I get a NameNotFoundException. Any reason. I know that workflowDS is getting
bound to the jndi tree for the console says so.

Thanks
Nikhil


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

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



Re: [JBoss-user] EJBContextImpl not serializable

2001-05-10 Thread Toby Allsopp

On Thu, May 10, 2001 at 03:58:23PM +0200, Martin Renner wrote:
> Hi.
> 
> As far as I know, every instance variable of an EJB has to be serializable or marked 
> as transient (because the EJB by itself is implementing java.io.Serializable).

The relevent section of the spec (version 2.0pd2) is 6.4.1.

> I just realized, that org.jboss.ejb.EnterpriseContext contains an inner class 
> EJBContextImpl which is implementing javax.ejb.EJBContext. This inner class, 
>however, 
> is neither serializable nor externalizable.
> 
> In one of my entity beans I hold a reference (which is passed by setEntityContext) 
>to 
> the EJBContext. When I use this entity bean, I get the following exception (in my 
> client):
> 
> java.lang.reflect.UndeclaredThrowableException: java.io.NotSerializableException: 
> org.jboss.ejb.EntityEnterpriseContext$EntityContextImpl
>at 
> 
>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
>at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
>at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
>at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown 
> Source)
>at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
>at $Proxy6.getDocumentsByDocumentStructure(Unknown Source)
> .
> 
> 
> IMHO EJBContextImpl should be serializable so that I can hold a reference to it, or 
> am I wrong?

You should be able to hold a reference to it, even though it is not
serialisable.  Please provide some more information, such as the code for
your entity bean and how the client is calling it.

Toby.

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



Re: [JBoss-user] WebApp to WebApp Communication

2001-05-10 Thread Julian Gosnell

You might get an answer to this on jetty-discuss - I
have cross-posted.

Jules

--- Michael Oswall <[EMAIL PROTECTED]> wrote: >
Hello JBoss(+Tomcat/Jetty) Users
> 
> I have a large j2ee project that divides nicely into
> a bunch of small
> modules that do not need to know about each other. 
> There is one main HTTP
> entry point, that is, one primary Request Handling
> servlet in a small web
> app that uses the parameters of the request to
> determine which modules need
> to be included to service the request.
> 
> Given that, if I have an enterprise application with
> an application.xml file
> looking like this...
> 
> 
> Application With Two Web
> Apps
> 
> app_module_N.jar
> 
> 
> 
> app_module_N.war
> /module_N
> 
> 
> 
> 
> request_handler.war
> /handler
> 
> 
> 
> 
> Then is there any way I can make the
> RequestHandlerSerlvet in the
> request_handler.war be able to "include" a JSP page
> found in module_N.war.
> In other words, is it possible for a servlet/jsp in
> one web app context to
> include a JSP in another web app context?
> 
> Thanks, Oz
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user



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]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JNDI Lookup of Datasources

2001-05-10 Thread Nikhil Patil

Hi
I have set a datasource called "workflowDS" in JBOSS. I am trying to do a
client lookup from a client and this how my code looks like.

Properties env = new Properties();
  env.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
  env.setProperty("java.naming.provider.url",  "localhost:1099");

  try
  {
// Get a naming context
InitialContext jndiContext = new InitialContext(env);
System.out.println("Got context");
javax.sql.DataSource source =
(javax.sql.DataSource)jndiContext.lookup("defaultDS");

  }
  catch(Exception e)
  {
 System.out.println(e.toString());
  }

I get a NameNotFoundException. Any reason. I know that workflowDS is getting
bound to the jndi tree for the console says so.

Thanks
Nikhil


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



[JBoss-user] JBossMQ problem on JBoss_Tomcat

2001-05-10 Thread Ryan Sackenheim

Hi,

I just installed JBoss for the first time yesterday, and I had an error
occur on the Message Queue during startup.  But JBoss would continue to run
anyway.

Looking into it, I had to manually create the [JBOSS_HOME]\db\jbossmq
directory which fixed the problem.  I just wanted to let everyone know
since I didn't see any mention of it in the mail archive, and I wasn't sure
if it was a bug in the package.

I am using the JBoss-2.2.1_Tomcat-3.2,1.zip binary distribution on Windows
NT.

-Ryan Sackenheim


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



[JBoss-user] Re: OO Design in Java : a tough question

2001-05-10 Thread QuKN



Haven't read such fun post for a while. I read it in my lunch time. In the
spirit of the fable-style, my work is exactly the same, so, perhaps I can
show my 2 cents.

Just to clearify a little bit first, I'm only a programmer, so ... ;-)

Please see the interleaved.



   
   
<[EMAIL PROTECTED]>
   
Sent by:To: 
[EMAIL PROTECTED]  
[EMAIL PROTECTED]cc:
   
eforge.net  Subject: OO Design in Java 
: a tough question 
   
   
   
   
05/10/2001 08:48 AM
   
Please respond to jboss-user   
   
   
   
   
   




Hi userlist, hi David Jencks.

Well I think I have sufficiently done research now to come up with a
complete description of the problem and ask precise questions.

Try not thinking about jboss or any ejb server here. Here is what I try to
implement, how it will be realised best, is treated in a section further
below.

---
The questions are :

1) what about transactions in a message driven solution ? suppose we have a
request which needs the acknowledgement of 10 employees who could complete
the task together for the customer. We could implement transactions in
including the "OK"'s in the message or issuing "Acknowledge" requests to
every employee involved. But maybe there is already a transaction mechanism
more simple and efficient within the EJB2.0 specification for a
message-oriented application.
==> no, you have to implement a "workflow engine" to do
that -- "the request handler" below.


2) suppose we realise this scenario in message-driven EJB : then I would
have to have a messagedriven bean acting as request handler for Paul e.g.
The messagedriven "PaulSecretary" bean consumes a request message for Paul,
and invokes the method
==> the "request handler" should be a generic one, it is a
(simply?) workflow engine.


"checkYourDesk" for Paul. Paul is a stateful session bean, which has
gathered state information over time. It's "checkYourDesk" method brings
Paul back to life, he checks the new state and makes decisions. The
decisions taken are returned to PaulSecretary, and the secretary will then
write a response to a topic or queue, or maybe do nothing, based upon
Paul's answer.
So far, so good. But now comes the big deal : Paul needs to check his desk
every hour at least. No matter if anything in the outside world has changed
or not, no matter if any new message of interest for him pending, he needs
to get back to life every hour, and check his situation : why ? Because his
state has changed ? Why has his state changed.  Because one hour has passed
and nothing's been published. He will have to take a decision now, and
maybe he will do nothing, or maybe he will contact somebody and tell him
"there's nothing going on, what should I do ?"
So - I guess what I would need know for Paul would be a SchedulingManager
which activates Paul every hour e.g. The
===> it is a Mbean, seems already there, quite sure but not
used it before.

SchedulingManager would contact Paul's Secretary by generating a message
directed to Paul every hour. This would wake up his secretary who would
wake up Paul etc.

Additionally : Paul is an employee, he acts like 100 other employees in the
enterprise who are active all day. Those employees of his department
inherit from a general employee class. But TOM is a company within the
company. He has a very specific behaviour, but inherits behaviour from
Paul's department too.

The workers in Paul's department are all doing the same job with the same
behaviour. So some of the incoming information for the department could be
treated by any employee in the department. But nevertheless, some of the
incoming information is addressed to 

[JBoss-user] Integration w/ IIS?

2001-05-10 Thread Sean LeBlanc

Is there any way to have JBoss "integrate" with
IIS (ala something like JRun)? All I really want
to do is to be able to add JSP capability to an
already-running application done in IIS-Coldfusion:
IIS acts as gateway to Coldfusion, but I want to
be able to hand off things to JBoss (JRun's licensing
is a bit much) for it to handle the JSP.

Is there a chapter anywhere on this? Or some docs?
I looked about in online docs a bit, as well as
docs dir under jboss dir, but haven't found anything
yet. Maybe there is a filter out there for IIS?

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



[JBoss-user] WebApp to WebApp Communication

2001-05-10 Thread Michael Oswall

Hello JBoss(+Tomcat/Jetty) Users

I have a large j2ee project that divides nicely into a bunch of small
modules that do not need to know about each other.  There is one main HTTP
entry point, that is, one primary Request Handling servlet in a small web
app that uses the parameters of the request to determine which modules need
to be included to service the request.

Given that, if I have an enterprise application with an application.xml file
looking like this...


Application With Two Web Apps

app_module_N.jar



app_module_N.war
/module_N




request_handler.war
/handler




Then is there any way I can make the RequestHandlerSerlvet in the
request_handler.war be able to "include" a JSP page found in module_N.war.
In other words, is it possible for a servlet/jsp in one web app context to
include a JSP in another web app context?

Thanks, Oz


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



Re: [JBoss-user] tomcat-service.jar

2001-05-10 Thread Scott M Stark

I just verified this using the new jbosstest web integration testsuite. I'll
update the bundle with the correct tomcat-service.jar.

- Original Message - 
From: "Mayo, Eric" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 10:11 AM
Subject: [JBoss-user] tomcat-service.jar


> Hi all,
> 
> If anyone is authenticating with tomcat and passing the credentials through
> to jboss, there is a problem with the latest tomcat/jboss bundle:
> JBoss-2.2.1 + Tomcat-3.2.1
> 
> (9671204) [APR-19-2001] 
> 
> It seems that the tomcat-service.jar in the lib/ext directory is older than
> the one on the previous release, which is causing an error when jboss goes
> to authenticate (the function that retrieves the user password is getting a
> null pointer exception). 
> At any rate, copying the newer tomcat-service.jar from the previous release
> and restarting jboss seems to fix this problem.
> 
> Eric



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



Re: [JBoss-user] JMS Topic question

2001-05-10 Thread danch (Dan Christopherson)

Try looking up "topics/testTopic"

If you point a browser at port 8082 on the server you'll get the JMX web 
interface. One of the mbeans is a JNDIViewer. Drill into that and invoke 
its operation and you'll be able to see the server's JNDI namespace.

Balazs Lichtl wrote:

> Hi everybody,
> 
> i have the problem, that my external java client does not find any JMS
> Topics of the running jboss:
> by the second fo following calls:
> 
> topicConnectionFactory =
> (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
> topic = (Topic) jndiContext.lookup("testTopic");
> 
> the exception was thrown:
> 
> "JNDI lookup failed: javax.naming.NameNotFoundException: testTopic not
> bound"
> 
> do anyone have an idea how to solve this problem?
> 
> both of jboss and client runs with java1.3.
> 
> thanx,
> balazs lichtl
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 




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



Re: [JBoss-user] jBoss architecture question

2001-05-10 Thread danch (Dan Christopherson)

If your running 'embedded' tomcat, there's actually only one process 
running. What you're seeing in top is an artifact of the Linux thread 
model - each individual thread shows as a separate process. Really in 
Linux the only difference between a process and a thread is all threads 
in a process share all of their memory.

To see a clearer picture of what's going on, run `ps -axf | more`. 
You'll probably see more like 25-30 java 'processes' listed (maybe even 
more, depending on what Hypersonic does). Most of these processes will 
show up as children of a common ancester, whose PID actually represents 
the process. The other PIDs are thread id, actually.

-danch

Jim Archer wrote:

> Hi All...
> 
> I have read the architecture notes on the jBoss site, but I'm still 
> wondering a few things about what jBoss does when it is run. I'm using 
> jBoss 2.2.1 bundled with Tomcat on a Debian/Linux SMP machine. 
> Currently, I'm still running Hypersonic as bundled, so I guess there are 
> three java processes: Tomcat, jBoss and Hypersonic.
> 
> When jBoss is running, I always see at least one instance of it, but 
> usually more. Right now, for example, top shows 7 instances of java 
> running, each by user jboss and  each with a different PID. I have seen 
> it get much higher.
> 
> The size and resident components (RSS) of each are the same at 121M.
> 
> My question is, are each of these a seperate VM or different processes 
> running within the same VM?
> 
> Also, what causes the number of java processes to change? Does jBoss 
> make more instances of itself as the load increases, or is it a matter 
> of Tomcat needing a bean and making a jBoss instance to service a 
> transaction?
> 
> I would appreciate any insite into this!
> 
> Thanks very much!
> 
> Jim
> 
> 
> 
> I shall be telling this with a sigh
> Somewhere ages and ages hence:
> Two roads diverged in a wood, and I -
> I took the one less traveled by,
> And that has made all the difference.
> 
> - Robert Frost, 1916
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user




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



RE: [JBoss-user] jBoss architecture question

2001-05-10 Thread Jim Archer

OK, thanks very much Chris and Hunter. I'm running SUNs JDK 1.3.

So if each java process I see is a thread within the same VM, does anyone 
know what causes a new thread to be started?

Also, is there any way to know which of these are Hypersonic, which are 
Tomcat and which are jBoss?

Jim

--On Thursday, May 10, 2001 6:07 PM +0100 "Kimpton,C (Chris)" 
<[EMAIL PROTECTED]> wrote:

> Hi,
>
>> -Original Message-
>> From: Jim Archer [mailto:[EMAIL PROTECTED]]
>>
>> My question is, are each of these a seperate VM or different
>> processes
>> running within the same VM?
>
> See http://www.jguru.com/faq/view.jsp?EID=125066
>
>
>>
>> Also, what causes the number of java processes to change?
>> Does jBoss make
>> more instances of itself as the load increases, or is it a
>> matter of Tomcat
>> needing a bean and making a jBoss instance to service a transaction?
>>
>
> So - the processes are really just threads.  It would then depend on who
> creates a thread - I am sure tomcat creates threads as part of its load
> balancing and similarly jboss does too.
>
> HTH,
> Chris
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user




I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


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



Re: [JBoss-user] JMS Topic question

2001-05-10 Thread Balazs Lichtl

> Is your initial context set up to point to the right naming server?
>

yes, i think so, because the "TopicConnectionFactory" is found, only the
topic itself not.
only the second call of the both
> > topicConnectionFactory =
> > (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
> > topic = (Topic) jndiContext.lookup("testTopic");
fails.

thanx,
balazs



> > -Original Message-
> > From: Balazs Lichtl [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, May 10, 2001 4:39 PM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] JMS Topic question
> >
> > Hi everybody,
> >
> > i have the problem, that my external java client does not find any JMS
> > Topics of the running jboss:
> > by the second fo following calls:
> >
> > topicConnectionFactory =
> > (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
> > topic = (Topic) jndiContext.lookup("testTopic");
> >
> > the exception was thrown:
> >
> > "JNDI lookup failed: javax.naming.NameNotFoundException: testTopic not
> > bound"
> >
> > do anyone have an idea how to solve this problem?
> >
> > both of jboss and client runs with java1.3.
> >
> > thanx,
> > balazs lichtl
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://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 IT Systems 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.
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



[JBoss-user] tomcat-service.jar

2001-05-10 Thread Mayo, Eric

Hi all,

If anyone is authenticating with tomcat and passing the credentials through
to jboss, there is a problem with the latest tomcat/jboss bundle:
JBoss-2.2.1 + Tomcat-3.2.1

(9671204) [APR-19-2001] 

It seems that the tomcat-service.jar in the lib/ext directory is older than
the one on the previous release, which is causing an error when jboss goes
to authenticate (the function that retrieves the user password is getting a
null pointer exception). 
At any rate, copying the newer tomcat-service.jar from the previous release
and restarting jboss seems to fix this problem.

Eric



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



Re: [JBoss-user] jBoss architecture question

2001-05-10 Thread Hunter Hillegas

It's my understanding that on Linux, threads show as processes. So if you
are using a VM with native threads, each thread will show as a process in
top, ps, etc...

> From: Jim Archer <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 10 May 2001 12:49:23 -0400
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] jBoss architecture question
> 
> Hi All...
> 
> I have read the architecture notes on the jBoss site, but I'm still
> wondering a few things about what jBoss does when it is run. I'm using
> jBoss 2.2.1 bundled with Tomcat on a Debian/Linux SMP machine. Currently,
> I'm still running Hypersonic as bundled, so I guess there are three java
> processes: Tomcat, jBoss and Hypersonic.
> 
> When jBoss is running, I always see at least one instance of it, but
> usually more. Right now, for example, top shows 7 instances of java
> running, each by user jboss and  each with a different PID. I have seen it
> get much higher.
> 
> The size and resident components (RSS) of each are the same at 121M.
> 
> My question is, are each of these a seperate VM or different processes
> running within the same VM?
> 
> Also, what causes the number of java processes to change? Does jBoss make
> more instances of itself as the load increases, or is it a matter of Tomcat
> needing a bean and making a jBoss instance to service a transaction?
> 
> I would appreciate any insite into this!
> 
> Thanks very much!
> 
> Jim
> 
> 
> 
> I shall be telling this with a sigh
> Somewhere ages and ages hence:
> Two roads diverged in a wood, and I -
> I took the one less traveled by,
> And that has made all the difference.
> 
> - Robert Frost, 1916
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



RE: [JBoss-user] jBoss architecture question

2001-05-10 Thread Kimpton,C (Chris)

Hi,

> -Original Message-
> From: Jim Archer [mailto:[EMAIL PROTECTED]]
> 
> My question is, are each of these a seperate VM or different 
> processes 
> running within the same VM?

See http://www.jguru.com/faq/view.jsp?EID=125066


> 
> Also, what causes the number of java processes to change? 
> Does jBoss make 
> more instances of itself as the load increases, or is it a 
> matter of Tomcat 
> needing a bean and making a jBoss instance to service a transaction?
> 

So - the processes are really just threads.  It would then depend on who
creates a thread - I am sure tomcat creates threads as part of its load
balancing and similarly jboss does too.

HTH,
Chris


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



Re: [JBoss-user] entity bean properties set to null values

2001-05-10 Thread Mike Hoolehan

There's been a bit of chat about that recently on the list.  If you have non
JBoss modification of your persistence, you'll probably want to use commit
option B or C for entity beans.  Commit option A assumes exclusive access to
persistence.

Using commit options B/C isn't quite as speedy as A.  If your legacy apps
modify the db at relatively infrequent times, you may be able to use commit
option A with some custom cache tools.  Mark a bean as "dirty" or something,
and next access it will reload.  Check the list for notes with subject
"External Data Modification" for some details.

Mike

On (09/05/01 16:52), Rafael Alves Chaves wrote:
> 
> > The ejbCreate method or postCreate of Documento must insure that all the beans
> > properties are set.
> 
> Thanks, Victor, this was my fault. 
> 
> > There is no need for the container to call ejbFindByPrimaryKey if the bean is
> > already in the container's cache. 
> 
> If I have a legacy application changing the database concurrently with
> BMP beans, I will need to turn off the cache? How?
> 
> Thank you all.
> 
> Rafael  
> 
> 
> > --Victor
> > 
> > 
> > Rafael Alves Chaves wrote:
> > 
> > > Hi,
> > >
> >sd >   I'm having a strange problem with entity beans in JBoss. For debugging
> > > purposes, I have instrumented ALL callback and business  methods to
> > > generate an output identifying the called method and, when useful, its
> > > arguments.
> > >
> > >   Below is the trace generated after two different clients are executed.
> > > The first creates a session bean, and through this session bean, creates
> > > an entity bean. The second client just searches for the created entity,
> > > and outputs its properties to the screen.
> > >
> > > The first client creates a stateful session bean (ObjetoSistema):
> > >
> > > [ObjetoSistema] ObjetoSistemaBean.setSessionContext()
> > > [ObjetoSistema] ObjetoSistemaBean.ejbCreate(1000,2)
> > >
> > > The same client calls some methods:
> > >
> > > [ObjetoSistema] ObjetoSistema.addDocumento("Teste-1000-0.txt",)
> > >
> > > To finish, the client will "commit" the session bean, calling
> > > "persiste()", which creates a new entity bean (Documento), which is BMP:
> > >
> > > [ObjetoSistema] ObjetoSistema.persiste()
> > > [Documento] DocumentoBean.ejbCreate(1000,2,"Teste-1000-0.txt","2/A/1000")
> > > [Documento] DocumentoBean.ejbPostCreate(1000,2,"Teste-1000-0.txt","2/A/1000")
> > >
> > > The client then finishes the session object:
> > >
> > > [ObjetoSistema] ObjetoSistemaBean.ejbRemove()
> > >
> > > Now the strange things: The second client calls
> > > DocumentoHome.findByPrimaryKey, but the bean class
> > > DocumentoBean.ejbFindByPrimaryKey doesn't get called, although the client
> > > receives a reference to the found bean. The problem is that all properties
> > > of this bean are null, and this null values are automatically synchronized
> > > on the database when the client calls the acessor methods:
> > >
> > > [Documento] DocumentoBean.setEntityContext()
> > > [Documento] DocumentoBean.getNome ()
> > > [Documento] DocumentoBean.ejbStore ()
> > > [Documento] DocumentoBean.getCaminho ()
> > > [Documento] DocumentoBean.ejbStore ()
> > >
> > > Does anyone has any idea about this behaviour? I'm using JBoss 2.2.1.
> > >
> > > Thanks for any clue...
> > >
> > > Rafael
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



[JBoss-user] JBoss and Rules Engine

2001-05-10 Thread Matthew Baird

I read the following on jboss news:

Rule Engine: David Jencks posts a Rule Engine integration prototype. 

Does anyone know where to look for this prototype? Is it even available?

regards,
Matthew

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



[JBoss-user] jBoss architecture question

2001-05-10 Thread Jim Archer

Hi All...

I have read the architecture notes on the jBoss site, but I'm still 
wondering a few things about what jBoss does when it is run. I'm using 
jBoss 2.2.1 bundled with Tomcat on a Debian/Linux SMP machine. Currently, 
I'm still running Hypersonic as bundled, so I guess there are three java 
processes: Tomcat, jBoss and Hypersonic.

When jBoss is running, I always see at least one instance of it, but 
usually more. Right now, for example, top shows 7 instances of java 
running, each by user jboss and  each with a different PID. I have seen it 
get much higher.

The size and resident components (RSS) of each are the same at 121M.

My question is, are each of these a seperate VM or different processes 
running within the same VM?

Also, what causes the number of java processes to change? Does jBoss make 
more instances of itself as the load increases, or is it a matter of Tomcat 
needing a bean and making a jBoss instance to service a transaction?

I would appreciate any insite into this!

Thanks very much!

Jim



I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


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



Re: [JBoss-user] entity bean properties set to null values

2001-05-10 Thread Mike Hoolehan

Oh, and for info about commit options, see the jboss.xml dtd
http://www.jboss.org/documentation/jboss.dtd

Mike

On (09/05/01 16:52), Rafael Alves Chaves wrote:
> 
> > The ejbCreate method or postCreate of Documento must insure that all the beans
> > properties are set.
> 
> Thanks, Victor, this was my fault. 
> 
> > There is no need for the container to call ejbFindByPrimaryKey if the bean is
> > already in the container's cache. 
> 
> If I have a legacy application changing the database concurrently with
> BMP beans, I will need to turn off the cache? How?
> 
> Thank you all.
> 
> Rafael  
> 
> 
> > --Victor
> > 
> > 
> > Rafael Alves Chaves wrote:
> > 
> > > Hi,
> > >
> > >   I'm having a strange problem with entity beans in JBoss. For debugging
> > > purposes, I have instrumented ALL callback and business  methods to
> > > generate an output identifying the called method and, when useful, its
> > > arguments.
> > >
> > >   Below is the trace generated after two different clients are executed.
> > > The first creates a session bean, and through this session bean, creates
> > > an entity bean. The second client just searches for the created entity,
> > > and outputs its properties to the screen.
> > >
> > > The first client creates a stateful session bean (ObjetoSistema):
> > >
> > > [ObjetoSistema] ObjetoSistemaBean.setSessionContext()
> > > [ObjetoSistema] ObjetoSistemaBean.ejbCreate(1000,2)
> > >
> > > The same client calls some methods:
> > >
> > > [ObjetoSistema] ObjetoSistema.addDocumento("Teste-1000-0.txt",)
> > >
> > > To finish, the client will "commit" the session bean, calling
> > > "persiste()", which creates a new entity bean (Documento), which is BMP:
> > >
> > > [ObjetoSistema] ObjetoSistema.persiste()
> > > [Documento] DocumentoBean.ejbCreate(1000,2,"Teste-1000-0.txt","2/A/1000")
> > > [Documento] DocumentoBean.ejbPostCreate(1000,2,"Teste-1000-0.txt","2/A/1000")
> > >
> > > The client then finishes the session object:
> > >
> > > [ObjetoSistema] ObjetoSistemaBean.ejbRemove()
> > >
> > > Now the strange things: The second client calls
> > > DocumentoHome.findByPrimaryKey, but the bean class
> > > DocumentoBean.ejbFindByPrimaryKey doesn't get called, although the client
> > > receives a reference to the found bean. The problem is that all properties
> > > of this bean are null, and this null values are automatically synchronized
> > > on the database when the client calls the acessor methods:
> > >
> > > [Documento] DocumentoBean.setEntityContext()
> > > [Documento] DocumentoBean.getNome ()
> > > [Documento] DocumentoBean.ejbStore ()
> > > [Documento] DocumentoBean.getCaminho ()
> > > [Documento] DocumentoBean.ejbStore ()
> > >
> > > Does anyone has any idea about this behaviour? I'm using JBoss 2.2.1.
> > >
> > > Thanks for any clue...
> > >
> > > Rafael
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
Mike Hoolehan
Sycamore Associates, Inc.
[EMAIL PROTECTED]
301.668.4681x103

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



RE: [JBoss-user] JBuilder 4.0 ServiceNotFoundException (cannot startup debug session)

2001-05-10 Thread John P. Coffey

I have managed to get JBuilder to go a little further now, however things
are still not incorrect, any ideas from the console listing below from
JBuilder 4.

Thanks in advance

John Coffey

D:\JBuilder4\jdk1.3\bin\javaw -classic -classpath
"D:\main\product\sw\pds\classes;D:\jboss-2.2\jboss\lib\crimson.jar;D:\jboss-
2.2\jboss\bin\run.jar;D:\jboss-2.2\jboss\bin;D:\jboss-2.2\jboss\conf;D:\jbos
s-2.2\jboss\lib\jaas.jar;D:\jboss-2.2\jboss\lib\jboss-jaas.jar;D:\jboss-2.2\
jboss\lib\jdbc2_0-stdext.jar;D:\jboss-2.2\jboss\lib\jmxri.jar;D:\jboss-2.2\j
boss\lib\xml.jar;D:\jboss-2.2\tomcat\lib\webserver.jar;D:\jboss-2.2\tomcat\l
ib\parser.jar;D:\jboss-2.2\tomcat\lib\servlet.jar;D:\jboss-2.2\tomcat\lib\ja
xp.jar;D:\jboss-2.2\tomcat\lib\jasper.jar;D:\jboss-2.2\jboss\lib\ext\activat
ion.jar;D:\jboss-2.2\jboss\lib\ext\awt.jar;D:\jboss-2.2\jboss\lib\ext\dynase
rver.jar;D:\jboss-2.2\jboss\lib\ext\ejb.jar;D:\jboss-2.2\jboss\lib\ext\ejxed
itor.jar;D:\jboss-2.2\jboss\lib\ext\ejxejb.jar;D:\jboss-2.2\jboss\lib\ext\ej
xjaws.jar;D:\jboss-2.2\jboss\lib\ext\ejxjboss.jar;D:\jboss-2.2\jboss\lib\ext
\hsql.jar;D:\jboss-2.2\jboss\lib\ext\idb.jar;D:\jboss-2.2\jboss\lib\ext\jbos
s.jar;D:\jboss-2.2\jboss\lib\ext\jetty-service.jar;D:\jboss-2.2\jboss\lib\ex
t\jms.jar;D:\jboss-2.2\jboss\lib\ext\jmxtools.jar;D:\jboss-2.2\jboss\lib\ext
\jndi.jar;D:\jboss-2.2\jboss\lib\ext\jnpserver.jar;D:\jboss-2.2\jboss\lib\ex
t\jpl-util-0_5b.jar;D:\jboss-2.2\jboss\lib\ext\jta-spec1_0_1.jar;D:\jboss-2.
2\jboss\lib\ext\mail.jar;D:\jboss-2.2\jboss\lib\ext\tomcat-service.jar;D:\jb
oss-2.2\jboss\lib\ext\jbossmq.jar;D:\jboss-2.2\jboss\db;D:\jboss-2.2\jboss\l
og;D:\jboss-2.2\jboss\conf\default;D:\jboss-2.2\jboss\lib\ext\jbosssx.jar;D:
\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;D:\JBuilder4\jdk1.3\jre\lib\
i18n.jar;D:\JBuilder4\jdk1.3\jre\lib\jaws.jar;D:\JBuilder4\jdk1.3\jre\lib\rt
.jar;D:\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;D:\JBuilder4\jdk1.3\lib\dt.j
ar;D:\JBuilder4\jdk1.3\lib\tools.jar"  -Dtomcat.home=D:\jboss-2.2\tomcat -Du
ser.dir=d:/jboss2.2/jboss -Djava.naming.factory.initial=org.jnp.interfaces.N
amingContextFactory -Djava.naming.factory.url.pkgs=org.jboss.naming -Djava.n
aming.provider.url=localhost:1099 -Djavax.xml.parsers.DocumentBuilderFactory
=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.parsers.SAXP
arserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl org.jboss.Main
jboss.home = D:\jboss-2.2\jboss
Using configuration "default"
Please make sure the following is intended (check your CLASSPATH):
 jndi.properties is read from
file:/D:/jboss-2.2/jboss/conf/default/jndi.properties
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Classic VM 1.3.0-C,Sun Microsystems Inc.
[Info] System: Windows 2000 5.0,x86
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionManagerFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionManagerFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionManagerFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionManagerFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionManagerFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionManagerFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionManagerFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.RARDeployer'
[Configuration] Unable to check MBean of type
'org.jboss.resource.RARDeployer'
[Configuration] Unable to check MBean of type
'org.jboss.resource.RARDeployer'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.ConnectionManagerFactoryLoader'
[Configuration] Unable to check MBean of type
'org.jboss.resource.

[JBoss-user] JSSE

2001-05-10 Thread Maksims_Zizkuns

Hi,
does JBoss supports JSSE?

If so, how this can be configured?

Thank you 
Max

Re: [JBoss-user] Security Exception , but from where and how

2001-05-10 Thread Eric Lindauer

Have you updated the client code to use the same version of jboss as your
server code?  I had some problems updating that went away when I made this
switch.


- Original Message -
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 11:17 AM
Subject: Re: [JBoss-user] Security Exception , but from where and how


> See: http://www.jboss.org/documentation/migration.html
>
> - Original Message -
> From: "Mukul Kumar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 10, 2001 7:00 AM
> Subject: [JBoss-user] Security Exception , but from where and how
>
>
> > hi friends,
> >
> > I am having this strange problem . My bean compiles fine and is deployed
> > fine on JBOSS2.2 . My client gives me the following exce[ption. I have
tried
> > this with all kind of beans from BMP's to stateles session beans. The
point
> > woth noting is that the same beansand clients used to work fine on jboss
2.0
> > earlier. Please help me resolve my dilemna ASAP.
> >
> > Got reference
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/jboss/security/SecurityAssociation
> > at
> >
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy
> > .java:184)
> > at
> >
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
> > at $Proxy0.create(Unknown Source)
> > at InterestClient.main(InterestClient.java:50)
> >
> > Thanks,
> >
> > Regards
> > Mukul kumar
> >
> >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



RE: [JBoss-user] JMS Topic question

2001-05-10 Thread menonv

Is your initial context set up to point to the right naming server?

> -Original Message-
> From: Balazs Lichtl [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 4:39 PM
> To:   [EMAIL PROTECTED]
> Subject:  [JBoss-user] JMS Topic question
> 
> Hi everybody,
> 
> i have the problem, that my external java client does not find any JMS
> Topics of the running jboss:
> by the second fo following calls:
> 
> topicConnectionFactory =
> (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
> topic = (Topic) jndiContext.lookup("testTopic");
> 
> the exception was thrown:
> 
> "JNDI lookup failed: javax.naming.NameNotFoundException: testTopic not
> bound"
> 
> do anyone have an idea how to solve this problem?
> 
> both of jboss and client runs with java1.3.
> 
> thanx,
> balazs lichtl
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://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 IT Systems 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.

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



RE: [JBoss-user] FW: Security Exception , but from where and how

2001-05-10 Thread menonv

make sure you have all the required jar under JBOSSHOME/clients

> -Original Message-
> From: Mukul Kumar [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 3:12 PM
> To:   [EMAIL PROTECTED]
> Subject:  [JBoss-user] FW:  Security Exception , but from where and
> how
> 
> hi friends, 
> 
> I am having this strange problem . My bean compiles fine and is deployed
> fine on JBOSS2.2 . My client gives me the following exce[ption. I have
> tried
> this with all kind of beans from BMP's to stateles session beans. The
> point
> woth noting is that the same beansand clients used to work fine on jboss
> 2.0
> earlier. Please help me resolve my dilemna ASAP.
> 
> Got reference
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/jboss/security/SecurityAssociation
> at
> org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericPro
> xy
> .java:184)
> at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
> at $Proxy0.create(Unknown Source)
> at InterestClient.main(InterestClient.java:50)
> 
> I have included the following jar files 
> 
> bean  ejb.jar  jdbc2_0-stdext.jar
> clientjnp-client.jar, jboss-client.jar, ejb.jar, jbossx-client.jar
> 
> are they enough?
> 
> 
> 
> Thanks,
> 
> Regards
> Mukul kumar
> 
> 
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://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 IT Systems 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.

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



Re: [JBoss-user] JBoss Future

2001-05-10 Thread Jim Archer

Sill in draft...

--On Thursday, May 10, 2001 8:42 AM -0400 Kemp Randy-W18971 
<[EMAIL PROTECTED]> wrote:

> Is the Sun EJB 2.0 spec finalized yet, or is it still officially in draft
> stage?
>
> From: "Ivan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: Wed, 9 May 2001 17:34:34 -0700
> Subject: [JBoss-user] JBoss Future
> Reply-To: [EMAIL PROTECTED]
>
> Hello,
>
> Does anyone know if JBoss will in the future support EJB 2.0 CMP (in
> addition to MVCSoft)?  If so is there an estimated time of release.  It
> seems this is a much need feature to this already excellent product.
>
> Any comments or information much appreciated.
>
> Ivan
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user




I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


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



[JBoss-user] JMS Topic question

2001-05-10 Thread Balazs Lichtl

Hi everybody,

i have the problem, that my external java client does not find any JMS
Topics of the running jboss:
by the second fo following calls:

topicConnectionFactory =
(TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
topic = (Topic) jndiContext.lookup("testTopic");

the exception was thrown:

"JNDI lookup failed: javax.naming.NameNotFoundException: testTopic not
bound"

do anyone have an idea how to solve this problem?

both of jboss and client runs with java1.3.

thanx,
balazs lichtl



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



Re: [JBoss-user] HELP! JBoss client problem

2001-05-10 Thread Eric Lindauer

Looks like a simple Classpath problem.  The NamingContextFactory is a class
provided by jboss and is in one of the jars you specifically included on
your classpath
when you executed the file from the command line.  Presumably when you run
the
executable jar you are not making these jars available in your path, and
hence
your stuff is unable to find the needed files.

  -eric


- Original Message -
From: "Doyle, Steven" <[EMAIL PROTECTED]>
To: "'jboss-user'" <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 10:49 AM
Subject: [JBoss-user] HELP! JBoss client problem


> Hi All,
>
> I have developed JBoss client application which works perfectly when I
> execute it from the command line i.e.
>
> java -classpath
>
"c:\jboss-2.2.1\client\jboss-client.jar;c:\jboss-2.2.1\client\jbosssx-client
> .jar;c:\JBuilder3 5\lib\jbcl3.1.jar;c:\projects\classes"
> com.wa.apps.flightmanager.FlightManagerClient
>
> However when I create an executable jar (I use JBuilder deployment tool)
> including all the relevant classes and jars I get the following exception
> generated.
>
> C:\projects\classes>java -jar fm.jar > debug.txt
> javax.naming.NoInitialContextException: Cannot instantiate class:
> org.jnp.interfaces.NamingContextFactory.  Root exception is
> java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
>
>
>
> in the client code I use:
>
>
System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingC
> ontextFactory");
> System.setProperty("java.naming.provider.url","localhost");
> System.setProperty("java.naming.factory.url.pkgs","org.jboss.naming");
>
> so I don't think it has anything to do with then jndi.properties file.
>
>
> Info:
>
> JDK1.3
> JBoss2.2.1
> JBuilder3.5
>
>
> I have looked in this archive,but cannot find anything to help
>
> Does anyone have any ideas ?
>
> thanks
>
>
>
> Steve Doyle
> GADA Team
> [EMAIL PROTECTED]
> > * (01732) 777 363
> > ) XH21B
> >
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



Re: [JBoss-user] HELP! JBoss client problem

2001-05-10 Thread Mike Simpson


On Thursday, May 10, 2001, at 07:49  AM, Doyle, Steven wrote:

> Hi All,
>
> I have developed JBoss client application which works perfectly when I
> execute it from the command line i.e.
>
> java -classpath
> "c:\jboss-2.2.1\client\jboss-
> client.jar;c:\jboss-2.2.1\client\jbosssx-client
> .jar;c:\JBuilder3 5\lib\jbcl3.1.jar;c:\projects\classes"
> com.wa.apps.flightmanager.FlightManagerClient
>
> However when I create an executable jar (I use JBuilder deployment tool)
> including all the relevant classes and jars I get the following 
> exception
> generated.
>
> C:\projects\classes>java -jar fm.jar > debug.txt
> javax.naming.NoInitialContextException: Cannot instantiate class:
> org.jnp.interfaces.NamingContextFactory.  Root exception is
> java.lang.ClassNotFoundException: 
> org.jnp.interfaces.NamingContextFactory
>
>
>
> in the client code I use:
>
> 
>System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"
> );
> System.setProperty("java.naming.provider.url","localhost");

The line immediately above should be:

System.setProperty("java.naming.provider.url","localhost:1099");


--
Mike Simpson ([EMAIL PROTECTED])
15621 Fifth Avenue NE, Shoreline WA 98155-6234
206-367-8267 (h) / 206-374-2923 (f)

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



Re: [JBoss-user] Security Exception , but from where and how

2001-05-10 Thread Scott M Stark

See: http://www.jboss.org/documentation/migration.html

- Original Message - 
From: "Mukul Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 7:00 AM
Subject: [JBoss-user] Security Exception , but from where and how


> hi friends, 
> 
> I am having this strange problem . My bean compiles fine and is deployed
> fine on JBOSS2.2 . My client gives me the following exce[ption. I have tried
> this with all kind of beans from BMP's to stateles session beans. The point
> woth noting is that the same beansand clients used to work fine on jboss 2.0
> earlier. Please help me resolve my dilemna ASAP.
> 
> Got reference
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/jboss/security/SecurityAssociation
> at
> org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy
> .java:184)
> at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
> at $Proxy0.create(Unknown Source)
> at InterestClient.main(InterestClient.java:50)
> 
> Thanks,
> 
> Regards
> Mukul kumar
> 
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



[JBoss-user] OO Design in Java : a tough question

2001-05-10 Thread connecstasy

Hi userlist, hi David Jencks.

Well I think I have sufficiently done research now to come up with a complete 
description of the problem and ask precise questions.

Try not thinking about jboss or any ejb server here. Here is what I try to implement, 
how it will be realised best, is treated in a section further below.

1) the problem :

several organizational units have to be running a giant enterprise. These units can be 
seen as humans. Each of them has a profession, and an office. 
Together they all form a big enterprise. The structure of the enterprise is the best 
an enterprise can have : every "employee" sees himself as an enterprise within the 
enterprise. An "intrapreneur".
So every employee has its office, it's communication channels, it's decisive power, 
and it's own "personality" – try not to focus on the “personality” 
here, peronality will not be implemented, don’t worry.
Example : Paul is an employee who gets a regular salary and enjoys a sure job: he 
takes decisions in favor of the enterprise as a whole. Whereas Tom is a guy who may 
profit from the enterprise's growth, but is more independent than Paul. He needs big 
deals, and he's paid by the number of deals he is making, and the size of his deals.
If Paul is getting the following requests within the time of 1 hour: 
1) +10:00AM "I need a big machine with great CPU Power"
2) +10:30AM "I need a small machine affordable for less than 1000$",

he will chose the small request and handle it. Why ? Because Paul knows that Marc is 
an expert for big machines, and he will be able to handle the request better. So he 
will chose request 2 and communicate request 1 to Marc.

Whereas if Tom would have gotten this requests, his behaviour would have been :
1) +10:00AM "I need a big machine with great CPU Power"

Tom accepts it - it's his BIG Deal man !! 

2) +10:30AM "I need a small machine affordable for less than 1000$",

Tom is busy and refuses the order, communicates it to Paul.

These guys react upon messages that may be interesting to them. Additionally, they may 
have "deadlines" - like - Tom needs to make at least one decision every hour.

If at 11:00AM there's no deals, he may set some actions.

So Tom will "activate" himself hourly and see for a decision, if none has been made - 
am I right here ? Well - I even think there would have to be some activation 
scheduling mechanism here or what would you say ?

I could have realised an enterprise scenario in a synchronous way with classic EJB.

I chose async for reasons of load balancing and because of more independence between 
the objects, which are not just "slaves", but maybe later will get their own "life" in 
there, and act as masters AND slaves.

The questions are :

1) what about transactions in a message driven solution ? suppose we have a request 
which needs the acknowledgement of 10 employees who could complete the task together 
for the customer. We could implement transactions in including the "OK"'s in the 
message or issuing "Acknowledge" requests to every employee involved. But maybe there 
is already a transaction mechanism more simple and efficient within the EJB2.0 
specification for a message-oriented application.

2) suppose we realise this scenario in message-driven EJB : then I would have to have 
a messagedriven bean acting as request handler for Paul e.g. The messagedriven 
"PaulSecretary" bean consumes a request message for Paul, and invokes the method 
"checkYourDesk" for Paul. Paul is a stateful session bean, which has gathered state 
information over time. It's "checkYourDesk" method brings Paul back to life, he checks 
the new state and makes decisions. The decisions taken are returned to PaulSecretary, 
and the secretary will then write a response to a topic or queue, or maybe do nothing, 
based upon Paul's answer. 
So far, so good. But now comes the big deal : Paul needs to check his desk every hour 
at least. No matter if anything in the outside world has changed or not, no matter if 
any new message of interest for him pending, he needs to get back to life every hour, 
and check his situation : why ? Because his state has changed ? Why has his state 
changed.  Because one hour has passed and nothing's been published. He will have to 
take a decision now, and maybe he will do nothing, or maybe he will contact somebody 
and tell him "there's nothing going on, what should I do ?"
So - I guess what I would need know for Paul would be a SchedulingManager which 
activates Paul every hour e.g. The SchedulingManager would contact Paul's Secretary by 
generating a message directed to Paul every hour. This would wake up his secretary who 
would wake up Paul etc.

Additionally : Paul is an employee, he acts like 100 other employees in the enterprise 
who are active all day. Those employees of his department inherit from a general 
employee class. But TOM is a company within the company. He has a very specific 
behaviour, but inherits behaviour from Paul's department too

[JBoss-user] HELP! JBoss client problem

2001-05-10 Thread Doyle, Steven

Hi All,

I have developed JBoss client application which works perfectly when I
execute it from the command line i.e.

java -classpath
"c:\jboss-2.2.1\client\jboss-client.jar;c:\jboss-2.2.1\client\jbosssx-client
.jar;c:\JBuilder3 5\lib\jbcl3.1.jar;c:\projects\classes"
com.wa.apps.flightmanager.FlightManagerClient

However when I create an executable jar (I use JBuilder deployment tool)
including all the relevant classes and jars I get the following exception
generated.

C:\projects\classes>java -jar fm.jar > debug.txt
javax.naming.NoInitialContextException: Cannot instantiate class:
org.jnp.interfaces.NamingContextFactory.  Root exception is
java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory



in the client code I use:

System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingC
ontextFactory");
System.setProperty("java.naming.provider.url","localhost");
System.setProperty("java.naming.factory.url.pkgs","org.jboss.naming");

so I don't think it has anything to do with then jndi.properties file.


Info:

JDK1.3
JBoss2.2.1
JBuilder3.5


I have looked in this archive,but cannot find anything to help

Does anyone have any ideas ?

thanks



Steve Doyle
GADA Team
[EMAIL PROTECTED]
> * (01732) 777 363
> ) XH21B
> 

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



RE: [JBoss-user] Security Exception , but from where and how

2001-05-10 Thread Scherr Gerolf

NoClassDefFoundError: org/jboss/security/SecurityAssociation
means that your client cannot find the class
org/jboss/security/SecurityAssociation

all you have to do is to tell your application where it can find
that class

-> add (the matching version of) jbosssx-client.jar to the clients
classpath and you will be happy :-)

gerolf.


> -Ursprüngliche Nachricht-
> Von:  Mukul Kumar [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Donnerstag, 10. Mai 2001 16:00
> An:   '[EMAIL PROTECTED]'
> Betreff:  [JBoss-user] Security Exception , but from where and how
> 
> hi friends, 
> 
> I am having this strange problem . My bean compiles fine and is deployed
> fine on JBOSS2.2 . My client gives me the following exce[ption. I have
> tried
> this with all kind of beans from BMP's to stateles session beans. The
> point
> woth noting is that the same beansand clients used to work fine on jboss
> 2.0
> earlier. Please help me resolve my dilemna ASAP.
> 
> Got reference
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/jboss/security/SecurityAssociation
> at
> org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericPro
> xy
> .java:184)
> at
> org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
> at $Proxy0.create(Unknown Source)
> at InterestClient.main(InterestClient.java:50)
> 
> Thanks,
> 
> Regards
> Mukul kumar
> 
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



[JBoss-user] FW: Security Exception , but from where and how

2001-05-10 Thread Mukul Kumar

hi friends, 

I am having this strange problem . My bean compiles fine and is deployed
fine on JBOSS2.2 . My client gives me the following exce[ption. I have tried
this with all kind of beans from BMP's to stateles session beans. The point
woth noting is that the same beansand clients used to work fine on jboss 2.0
earlier. Please help me resolve my dilemna ASAP.

Got reference
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jboss/security/SecurityAssociation
at
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy
.java:184)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
at $Proxy0.create(Unknown Source)
at InterestClient.main(InterestClient.java:50)

I have included the following jar files 

beanejb.jar  jdbc2_0-stdext.jar
client  jnp-client.jar, jboss-client.jar, ejb.jar, jbossx-client.jar

are they enough?



Thanks,

Regards
Mukul kumar





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



RE: [JBoss-user] JBoss Future

2001-05-10 Thread Steve Magoun

It's still a draft. The second PFD came out just a week or two ago; it
included some fairly major changes:
http://java.sun.com/products/ejb/docs.html

JBoss will support EJB 2.0 once the spec is final...

Steve


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
Randy-W18971
Sent: Thursday, May 10, 2001 8:42 AM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] JBoss Future


Is the Sun EJB 2.0 spec finalized yet, or is it still officially in
draft
stage?  

From: "Ivan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Wed, 9 May 2001 17:34:34 -0700
Subject: [JBoss-user] JBoss Future
Reply-To: [EMAIL PROTECTED]

Hello,

Does anyone know if JBoss will in the future support EJB 2.0 CMP (in
addition to MVCSoft)?  If so is there an estimated time of release.  It
seems this is a much need feature to this already excellent product.

Any comments or information much appreciated.

Ivan


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

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



[JBoss-user] jboss2.2.-Tomcat 4b3 ???

2001-05-10 Thread elouan le coq

dear gurus,

I was wondering if anyone was trying to integrate jboss 2.2.1 into 
tomcat 4b3 ?

The reason is that i need to use two others xml parsers than crimson and 
i have reached to the conclusion that it is impossible till  2.2.1 and 
B3 got integrated.

Moreover the integration jb2.1-t4b1 is not anymore available on the 
webserver (though the link is still there).

if there are any gurus around that reached to use jb + t4 and cocoon i 
would really like to know how you did that.

thanks in advance,

elouan


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



RE: [JBoss-user] JBuilder 4.0 ServiceNotFoundException (cannot startup debug session)

2001-05-10 Thread John P. Coffey

Belou,

thanks for your quick response, Much better however I now get the following
output:  Any idea what a sealing violation is?  One piece of information I
noticed that the help guide refers to using dynaserver.jar (I could not find
this jar in my latest 2.2.1 installation) also I normally run the server
using default rather than tomcat, do you think that that is a potential
problem?  I noticed that the conf/tomcat directory is in teh HOWTO document
but conf/default is not.

D:\JBuilder4\jdk1.3\bin\javaw -classic -classpath
"D:\devel\jbossjbldr\psdbeans\classes;D:\jboss-2.2\jboss\bin\run.jar;D:\jbos
s-2.2\jboss\bin;D:\jboss-2.2\jboss\conf;D:\jboss-2.2\jboss\lib\jaas.jar;D:\j
boss-2.2\jboss\lib\jboss-jaas.jar;D:\jboss-2.2\jboss\lib\jdbc2_0-stdext.jar;
D:\jboss-2.2\jboss\lib\jmxri.jar;D:\jboss-2.2\jboss\lib\xml.jar;D:\jboss-2.2
\jboss\lib\jaxp.jar;D:\jboss-2.2\jboss\lib\ext\ejb.jar;D:\jboss-2.2\jboss\li
b\ext\ejxeditor.jar;D:\jboss-2.2\jboss\lib\ext\ejxjboss.jar;D:\jboss-2.2\jbo
ss\lib\ext\ejxjaws.jar;D:\jboss-2.2\jboss\lib\ext\idb.jar;D:\jboss-2.2\jboss
\lib\ext\awt.jar;D:\jboss-2.2\jboss\lib\ext\activation.jar;D:\jboss-2.2\jbos
s\lib\ext\ejxejb.jar;D:\jboss-2.2\jboss\lib\ext\jboss.jar;D:\jboss-2.2\jboss
\lib\ext\hsql.jar;D:\jboss-2.2\jboss\lib\ext\jetty-service.jar;D:\jboss-2.2\
jboss\lib\ext\jdbc7.0-1.2.jar;D:\jboss-2.2\jboss\lib\ext\jms.jar;D:\jboss-2.
2\jboss\lib\ext\jmxtools.jar;D:\jboss-2.2\jboss\lib\ext\jndi.jar;D:\jboss-2.
2\jboss\lib\ext\jnpserver.jar;D:\jboss-2.2\jboss\lib\ext\jpl-util-0_5b.jar;D
:\jboss-2.2\jboss\lib\ext\jta-spec1_0_1.jar;D:\jboss-2.2\jboss\lib\ext\mail.
jar;D:\jboss-2.2\jboss\lib\ext\tomcat-service.jar;D:\jboss-2.2\jboss\db;D:\j
boss-2.2\jboss\log;D:\jboss-2.2\jboss\conf\default;D:\jboss-2.2\jboss\lib\cr
imson.jar;D:\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;D:\JBuilder4\jdk
1.3\jre\lib\i18n.jar;D:\JBuilder4\jdk1.3\jre\lib\jaws.jar;D:\JBuilder4\jdk1.
3\jre\lib\rt.jar;D:\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;D:\JBuilder4\jdk
1.3\lib\dt.jar;D:\JBuilder4\jdk1.3\lib\tools.jar"  -Dtomcat.home=D:\jboss-2.
2\tomcat -Duser.dir=d:/jboss2.2/jboss/bin -Djava.naming.factory.initial=org.
jnp.interfaces.NamingContextFactory -Djava.naming.factory.url.pkgs=org.jboss
.naming -Djava.naming.provider.url=localhost:1099 -Xdebug -Xnoagent -Djava.c
ompiler=NONE -Xrunjdwp:transport=dt_shmem,address=javadebug,suspend=y
org.jboss.Main
jboss.home = D:\jboss-2.2\jboss
Using configuration "default"
Please make sure the following is intended (check your CLASSPATH):
 jndi.properties is read from
file:/D:/jboss-2.2/jboss/conf/default/jndi.properties
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Classic VM 1.3.0-C,Sun Microsystems Inc.
[Info] System: Windows 2000 5.0,x86
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Default] java.lang.SecurityException: sealing violation
[Default]   at
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Docume
ntBuilderFactoryImpl.java:82)
[Default]   at
org.jboss.configuration.ConfigurationService.loadConfiguration(Configuration
Service.java:258)
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Default]   at org.jboss.Main.(Main.java:195)
[Default]   at org.jboss.Main$1.run(Main.java:107)
[Default]   at java.security.AccessController.doPrivileged(Native Method)
[Default]   at org.jboss.Main.main(Main.java:103)

John Coffey

Pingtel Corp.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Belou
Sent: Thursday, May 10, 2001 5:53 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] JBuilder 4.0 ServiceNotFoundException (cannot
startup debug session)


Here is my conf ( jboss_tomcat 2.0 under NT, jvm 1.3, jbuilder4 Ent.)
I followed the instructions :
http://www.jboss.org/documentation/HTML/ch11s99.html
except the run things (VM param and main class)
I have 2 run/debug configs:
 the first one to start the server with VM param and main=org.jboss.main
(eventually debug ejbs)
 the second one is for the client with same vm params added with
-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
-Djava.naming.provider.url=localhost:1099
-Djava.naming.factory.url.pkgs=org.jboss.naming

Hope this will help

Belou

- Original Message -
From: "John P. Coffey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 10, 2001 4:42 AM
Subject: [JBoss-user] JBuilder 4.0 ServiceNotFoundException (cannot startup
debug session)


> Hello I'm trying to debug using JBuilder with JBoss, however if you see
> below I get a javax.management.ServiceNotFoundException: The specified URL
> is null error message.  Does anyone have an idea why this is happening,  I
> have looked at all the posts on JBuilder 4 and followed them withoug
> success.  

Re: [JBoss-user] Weird error in jboss2.1.1

2001-05-10 Thread awc

Russell,

If your second time is a 5 minutes apart from first time.
I guess your value Object retains some thing after it passivated.

try this on  ejbPassivate()
{
 ProjectInfoJB = null;
}

anil

Russell wrote:

>   Hi all , I am using RedHat6.1 , jdk1.3 and jboss2.1 .
>
>   I have an entity bean , method below is the implementation code is
> most important which to increase ejb performance using value object:
>


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



RE: [JBoss-user] jboss works, tomcat does not. why ?

2001-05-10 Thread Bordet, Simone

You don't have $JDK/jre/lib/tools.jar in the classpath.
See, *please* the archives for further details, this problems has been
issued zillion of times.

Simon

> -Original Message-
> From: Graf Laszlo [mailto:[EMAIL PROTECTED]]
> Sent: giovedi 10 maggio 2001 15:50
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] jboss works, tomcat does not. why ?
> 
> 
> Hi everyone
> I downloaded JBoss 2.1 and Jakarta Tomcat 3.2.1.
> JBoss starts fine without any error messages.
> When visit http://localhost:8080/examples/jsp/num/numguess.jsp
> it returns the following error messages:
> 
> Error: 500
> Location: /examples/jsp/num/numguess.jsp
> Internal Servlet Error:
> 
> javax.servlet.ServletException: sun/tools/javac/Main
>  at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
.java:404)
> 
>  at org.apache.tomcat.core.Handler.service(Handler.java:286)
>  at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>  at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
anager.java:797)
> 
>  at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>  at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpConnectionHandler.java:210)
> 
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
t.java:416)
> 
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
ol.java:498)
> 
>  at java.lang.Thread.run(Thread.java:484)
> 
> Root cause:
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>  at
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
> iler.java:128)
> 
>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
>  at
> org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
>  at
> org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader1
2.java:146)
> 
>  at
> org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
>  at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
ecessary(JspServlet.java:152)
> 
>  at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.java:164)
> 
>  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
.java:318)
> 
>  at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
.java:404)
> 
>  at org.apache.tomcat.core.Handler.service(Handler.java:286)
>  at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>  at
> org.apache.tomcat.core.ContextManager.internalService(ContextM
anager.java:797)
> 
>  at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>  at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpConnectionHandler.java:210)
> 
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
t.java:416)
> 
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
ol.java:498)
> 
>  at java.lang.Thread.run(Thread.java:484)
> 
> What is missing or what is wrong ?
> 
> 
> jdk13 -> d:\jdk13.
> jboss -> d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1
> tomcat -> d:\jboss\jboss-tomcat-2.1-beta\jakarta-tomcat-3.2.1
> 
> CLASSPATH
> d:\jdk13\src.jar;
> d:\jdk13\lib;
> d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1\bin;
> d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1\lib;
> d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1\lib\ext\ejb.jar;
> d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1\lib\ext\jconn2.jar;
> d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1\client\jboss-client.jar;
> D:\jboss\jboss-tomcat-2.1-beta\jakarta-tomcat-3.2.1;
> 
> D:\jboss\jboss-tomcat-2.1-beta\jakarta-tomcat-3.2.1\lib\servlet.jar;.
> 
> Please write to this address: [EMAIL PROTECTED]
> Thank you.
> 
> --
> Graf Laszlo
>   Galaxis Kft.
>   [EMAIL PROTECTED]
>   06-20-427-8367
>   ICQ: 23235637
> 
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 

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



[JBoss-user] Security Exception , but from where and how

2001-05-10 Thread Mukul Kumar

hi friends, 

I am having this strange problem . My bean compiles fine and is deployed
fine on JBOSS2.2 . My client gives me the following exce[ption. I have tried
this with all kind of beans from BMP's to stateles session beans. The point
woth noting is that the same beansand clients used to work fine on jboss 2.0
earlier. Please help me resolve my dilemna ASAP.

Got reference
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jboss/security/SecurityAssociation
at
org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy
.java:184)
at
org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231)
at $Proxy0.create(Unknown Source)
at InterestClient.main(InterestClient.java:50)

Thanks,

Regards
Mukul kumar




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



[JBoss-user] JBoss - Even Closer to a BEA Killer

2001-05-10 Thread Norton Lam

I thought all of you would be interested in this article:

http://www.theserverside.com/reviews/thread.jsp?thread_id=6215

Kudos to all the JBoss developers.  I, too, have been happy with my
use of JBoss.  Keep up the good work.

Norton

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



[JBoss-user] EJBContextImpl not serializable

2001-05-10 Thread Martin Renner

Hi.

As far as I know, every instance variable of an EJB has to be serializable or marked 
as transient (because the EJB by itself is implementing java.io.Serializable).

I just realized, that org.jboss.ejb.EnterpriseContext contains an inner class 
EJBContextImpl which is implementing javax.ejb.EJBContext. This inner class, however, 
is neither serializable nor externalizable.

In one of my entity beans I hold a reference (which is passed by setEntityContext) to 
the EJBContext. When I use this entity bean, I get the following exception (in my 
client):

java.lang.reflect.UndeclaredThrowableException: java.io.NotSerializableException: 
org.jboss.ejb.EntityEnterpriseContext$EntityContextImpl
   at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
   at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
   at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown 
Source)
   at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248)
   at $Proxy6.getDocumentsByDocumentStructure(Unknown Source)
.


IMHO EJBContextImpl should be serializable so that I can hold a reference to it, or 
am I wrong?


Martin


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



[JBoss-user] jboss works, tomcat does not. why ?

2001-05-10 Thread Graf Laszlo

Hi everyone
I downloaded JBoss 2.1 and Jakarta Tomcat 3.2.1.
JBoss starts fine without any error messages.
When visit http://localhost:8080/examples/jsp/num/numguess.jsp
it returns the following error messages:

Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:

javax.servlet.ServletException: sun/tools/javac/Main
 at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)

 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

 at java.lang.Thread.run(Thread.java:484)

Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
 at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)

 at
org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)

 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)

 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)

 at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)

 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)

 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)

 at java.lang.Thread.run(Thread.java:484)

What is missing or what is wrong ?


jdk13 -> d:\jdk13.
jboss -> d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1
tomcat -> d:\jboss\jboss-tomcat-2.1-beta\jakarta-tomcat-3.2.1

CLASSPATH
d:\jdk13\src.jar;
d:\jdk13\lib;
d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1\bin;
d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1\lib;
d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1\lib\ext\ejb.jar;
d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1\lib\ext\jconn2.jar;
d:\jboss\jboss-tomcat-2.1-beta\jboss-2.1\client\jboss-client.jar;
D:\jboss\jboss-tomcat-2.1-beta\jakarta-tomcat-3.2.1;

D:\jboss\jboss-tomcat-2.1-beta\jakarta-tomcat-3.2.1\lib\servlet.jar;.

Please write to this address: [EMAIL PROTECTED]
Thank you.

--
Graf Laszlo
  Galaxis Kft.
  [EMAIL PROTECTED]
  06-20-427-8367
  ICQ: 23235637



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



Re: [JBoss-user] Unable to resolve JNDI name

2001-05-10 Thread danch

Manu Srivastava wrote:

> Hi,
> 
> 
> jBoss.xml
> =
> 


 


>   
> com.asset.SMTPAdapter
> com.asset.SMTPAdapterHome
> 
>   
> 
> 

> Also if use keep the file name of jboss.xml in small
> letters the deployment fails. If you rename it to all
> caps or jBoss.xml it starts deploying.

If you mosted your jboss.xml completely, this is because of the syntax 
problem I point out above. When it's spelled in lower case, JBoss tries 
to read it and deployment fails because it isn't well-formed XML.


-danch


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



[JBoss-user] JBoss Vs Jonas and Enhydra

2001-05-10 Thread Kemp Randy-W18971

If you want a truely enlightened answer, you should also post this question
to Enhydra and Jonas.  For the record, I have played with Enhydra, Jonas,
and Jboss.  Enhydra Enterprise is now in beta, and is intergrated with Jonas
and Tomcat.  Jboss comes intergrated with Tomcat or Jetty.  You need to
compare apples with apples
 jboss -- jonas
 jboss/jetty or jboss/tomcat -- Enhydra enterprise
My experience with Enhydra enterprise so far is it takes a much longer time
to initialize, and I personally like jboss because it's easy to use and
fast, and I like Jboss/jetty over jboss/tomcat.  However, to be fair, I do
montior the progress of Enhydra enterprise, openejb, Resin, and Orion, all
being either open source, developer's source, or closed source.  The bottom
line is personal preference, and I think there is a big enough playing field
for all.

Message: 13
Date: Thu, 10 May 2001 08:05:48 -0500 (GMT-05:00)
From: "=?ISO-8859-1?Q?Pedro_E._G=F3mez?=" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Organization: PRAGMA LIMITADA
Subject: [JBoss-user] JBoss Vs Jonas and Enhydra
Reply-To: [EMAIL PROTECTED]

Hello Some one can tell me what are the diferences between those products
and why JBoss is better?

Thanks.



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



[JBoss-user] JBoss Vs Jonas and Enhydra

2001-05-10 Thread Pedro E. Gómez

Hello Some one can tell me what are the diferences between those products and why 
JBoss is better?

Thanks.

__
Message sent with Misiva
Visit us at http://www.pragma.com.co/misiva

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



Re: [JBoss-user] Weird error in jboss2.1.1

2001-05-10 Thread David Jencks

Hi,
  I doubt your code as reported is complete.  From what you show us, the
object returned from getProjectInfoJB is never created.

The "no exception" is presumably from your trapping and ignoring the
FinderException when you look for your bean.  I suspect what is happening
is that jboss is reusing the same session bean for your two calls, and
since ejb attributes don't get reset by the container, it still has the
reference to the first bean.  The finder exception from looking for a
nonexistent bean skips the assignment of projectinfo, so you call the "2"
bean getProjectInfoJB().

david jencks


On 2001.05.10 04:39:11 -0400 Russell wrote:
> 
>   Hi all , I am using RedHat6.1 , jdk1.3 and jboss2.1 .
> 
>   I have an entity bean , method below is the implementation code is
> most important which to increase ejb performance using value object: 
> 
>public ProjectInfoJB getProjectInfoJB() throws RemoteException{
> 
>   projectinfojb.setAgreementdate(this.agreementdate);
>   projectinfojb.setClient(this.client);
>   projectinfojb.setCommencementdate(this.commencementdate);
>   projectinfojb.setComments(this.comments);
>   projectinfojb.setCompanyid(this.companyid);
>   projectinfojb.setCompletedate(this.completedate);
>   projectinfojb.setContractor(this.contractor);
>   projectinfojb.setContractorperiod(this.contractorperiod);
>   projectinfojb.setContractvalue(this.contractvalue);
>   projectinfojb.setCountry(this.country);
>   projectinfojb.setInchargedp(this.inchargedp);
>   projectinfojb.setInchargeperson(this.inchargeperson);
>   projectinfojb.setOthersconsultant(this.othersconsultant);
>   projectinfojb.setProjectid(this.projectid);
>   projectinfojb.setProjectname(this.projectname);
>   projectinfojb.setProjectno(this.projectno);
>   projectinfojb.setProjecttype(this.projecttype);
>   projectinfojb.setServicescope(this.servicescope);
>   projectinfojb.setStatus(this.status);
> 
> return projectinfojb;
>   
> }
> 
>  And i have a method in stateless session bean :
>  
>  private ProjectInfoHome projectinfohome;
>  private ProjectInfo projectinfo;
> 
>  public ProjectInfoJB getProjectInfoJB(int projectid) throws
> RemoteException{
> 
> try{
>  projectinfo = projectinfohome.findByPrimaryKey(new
> ProjectInfoPK(projectid));
> }
> catch(Exception e){}
> return projectinfo.getProjectInfoJB(); -->get value object
> 
>   }
>  
>  This method is giving me some problems. It can find the record without
> any problems.
>  However when the first time i called the method for example below:
> 
> 
>   1st time : 
> ProjectInfoJB jb = getProjectInfo(2) -->2 is exist in table so it
> can find the records.
> System.out.println(jb.getProjectid()) --> display projectid = 2 is
> correct.
> 
>But then when run the second time , 
> 
> ProjectInfoJB jb = getProjectInfo(9) --> 9 is not exist in
> the table, did not throw me nay exception
> System.out.println(jb.getProjectid()) ---> is display projectid = 2
> , which is wrong
> 
>   Anybody why jboss behaviour like that ?? Any suggestions ? Thanks wt
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



[JBoss-user] How to get connection

2001-05-10 Thread Hari Shanker Ravindran

hi,
 I am pretty new 2 JBoss.Query i have is i have deployed a
connection pool in the JBoss Server,now how will i get the connection object 
from from the Server context 2 the Session Bean.




thanking you
  regards hari

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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



[JBoss-user] JBoss Future

2001-05-10 Thread Kemp Randy-W18971

Is the Sun EJB 2.0 spec finalized yet, or is it still officially in draft
stage?  

From: "Ivan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Wed, 9 May 2001 17:34:34 -0700
Subject: [JBoss-user] JBoss Future
Reply-To: [EMAIL PROTECTED]

Hello,

Does anyone know if JBoss will in the future support EJB 2.0 CMP (in
addition to MVCSoft)?  If so is there an estimated time of release.  It
seems this is a much need feature to this already excellent product.

Any comments or information much appreciated.

Ivan


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



[JBoss-user] getPrimaryKey() on session bean

2001-05-10 Thread Piotr Kania

I tried to call getPrimaryKey() on Session Bean (Stateless or Stateful) 
and expected to get java.rmi.RemoteException but nothing happens.
(JBoss 2.2, jdk1.3 )
EJB 1.1 Specifications says that such a call should raise exception. Is 
JBoss fully compatible with this specification ?

with regards,

Piotr Kania


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



  1   2   >