[JBoss-user] Message status - undeliverable

2001-04-23 Thread Mailer-Daemon

The message that you sent was undeliverable to the following:
Roger Thomas


Information about your message:
Subject: [JBoss-user] jboss2.2.1-tomcat3.2.1 w/ struts j2ee app



RE: [JBoss-user] Clustering

2001-04-23 Thread Sacha Labourey

Hello Gajendra,

You will find Stacy's work directly in the CVS tree (or last source daily snapshot 
available from JBoss web site).

As for the HA features for SLSB, you will get everything needed here : 
http://194.38.95.241/jboss/

Feedback is welcome!

Cheers,



Sacha




> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Gajendra
> Deshmukh
> Envoye : mardi, 24 avril 2001 06:41
> A : [EMAIL PROTECTED]
> Objet : [JBoss-user] Clustering
> 
> 
> 
> 
> From the Jboss Site ---
> HA/Failover: Stacy Curl submits HA/Failover JMX
> which becomes JBossMX module. 
> 
> Clustering: Sacha Labourey posts a first
> implementation of HA features for stateless
> session beans for testing. 
> 
> Question --
> 
> Where do I find the JBossMX Module?
> 
> Where do I find Sacha Labourey post?
> 
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


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



[JBoss-user] Jboss-bug or misunderstanding ? (Loosing reference to JBoss object)

2001-04-23 Thread René Rolander Nygaard

We are getting pretty desperate regarding this question, so I have to ask
again!

Through our speed-testing we are seeing more strange behaviors.
It seems as JBoss looses the reference to an object if you speed-clicks.
This can only mean that the problems occurs because the same session is
trying to access the same object more than once.

If you from a jsp page force a reload before the last page-load was
finished, it seems that the reference from the jsp page through to the JBoss
stateless bean is lost!

Can we expect that in one work-cycle we get a reference to at different
JBoss stateless bean, and if this is the case - we cannot clean up after us
self. 

The scenario again:
A jsp page gets a reference to a stateless session bean
The jsp page starts traverse a resultset

The disconnect functions all fail because the objects == null!
Sorry about this, but i cannot see this any other way than a JBoss bug...

Please, please, please help us out here!!!

 - René Rolander Nygaard


 winmail.dat


RE: [JBoss-user] jsp server error

2001-04-23 Thread Rene Rolander Nygaard

Did you include the path to jdk1.3 in your path ?
"path=;c:\apps\java\jdk1.3\bin;..." <- remember the bin sub-catalog.

 - Rene Rolander Nygaard

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of john
> morrison
> Sent: 23. april 2001 23:06
> To: jbosslist
> Subject: [JBoss-user] jsp server error
> 
> 
> I must appologize up front for this question.  I know
> I've done something wrong, I just can't figure out
> what.
> 
> I'm running W2k Pro SP1, Sun jdk 1.3.02 and the
> preconfigured jboss-2.2/jakarta-tomcat-3.2.1.
> 
> All seems to work well except for jsps.  I get a
> server error and a java error of
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
> 
> What did I do wrong or fail to set up?
> 
> Also, is it possible to change the default web server
> address from 8080 to 80? and how.  I'm proficient with
> Microsoft IIS, but am lost in configuring tomcat.
> 
> Thanks
> John Morrison
> 
> __
> 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
> 

 winmail.dat


[JBoss-user] RE: javax.naming.CommunicationExeption when calling method of Bean B from Bean A

2001-04-23 Thread Marina Risher


> Hello,
> 
> I have a problem calling method of LoginDBBean from the FasadBean. Both
> beans are Sessions beans, and they are running together at the same VM (we
> are using jboss.2.2.1).
> 
> Please find attached following information:
> 1.jboss.server.output.doc - debug prints at the server command window
> 2.jboss.client.output.doc - debug prints at the client command window,
> including the command line.
> 3.MyProject directory related sub-directories: Clent, Fasad, LoginDB.
> 
> We suppose that the problem is in one of two points:
> * Ejb-jar.xml and jboss.xml files of Fasad Bean:
> * 
> * //
> **
> * 
> * 
> * 
> *  
> *
> *  Fasad
> *  fasad.FasadHome
> *  fasad.Fasad
> *  fasad.FasadBean
> *  Stateful
> *  Container
> *  
> *LoginDB
> *Session
> *logindb.LoginDBHome
> *logindb.LoginDB
> *   
> *
> *  
> *
> * //
> **
> * 
> * 
> * 
> * 
> *   
> *  
> *Fasad
> *
> * LoginDB
> *LoginDB
> *
> *  
> *   
> * 
> * //
> **
> * 
> * The call itself in the FasadBean:
> // **
> try {
> // Get a reference to the Interest Bean
>   dbHome = (LoginDBHome)jndiContext.lookup("java:comp/env/LoginDB");
> System.out.println("FasadBean: Got reference to LoginDB ");
> db = dbHome.create();
> System.out.println("FasadBean: LoginDB was created");
> array = db.readFromDBFile(fileName, userName, password);
> System.out.println("FasadBean: Create LoginDB bean");
> }
> catch (CommunicationException ex){
>   System.out.println("#Explanation :#
> "+ex.getExplanation());
>   System.out.println("#getLocalizedMessage :#
> "+ex.getLocalizedMessage());
>   System.out.println("#getMessage :# "+ex.getMessage());
>   System.out.println("#toString :# "+ex.toString());
>   System.out.println("#getRemainingName :#
> "+ex.getRemainingName());
>   System.out.println("#getResolvedName :#
> "+ex.getResolvedName());
>   System.out.println("#getRootException :#
> "+ex.getRootCause().toString());
>   //System.out.println("#getResolvedObj().toString:#
> "+ex.getResolvedObj().toString());
>   ex.printStackTrace();
> }
> // **
>  
> 
> Thank you in advance for your help,
> Regards, Marina.
> 
> 
> 
>  <>  <>  <>
> 


Server Debug Prints


[LoginDB] LoginDBBean: procedure readFromDBFile: file = UserInfo, name=igor, pas
sw = igor
[Fasad] FasadBean: Got context for LoginDB
[Fasad]
[Fasad] FasadBean: entry name= jmx:tyw:rmi
[Fasad] FasadBean: class name= org.jboss.jmx.server.RMIConnectorImpl
[Fasad]
[Fasad] FasadBean: entry name= LoginDB
[Fasad] FasadBean: class name= $Proxy5
[Fasad]
[Fasad] FasadBean: entry name= Fasad
[Fasad] FasadBean: class name= $Proxy22
[Fasad]
[Fasad] FasadBean: entry name= TopicConnectionFactory
[Fasad] FasadBean: class name= org.jbossmq.SpyTopicConnectionFactory
[Fasad]
[Fasad] FasadBean: entry name= XAQueueConnectionFactory
[Fasad] FasadBean: class name= org.jbossmq.SpyXAQueueConnectionFactory
[Fasad]
[Fasad] FasadBean: entry name= jmx
[Fasad] FasadBean: class name= org.jboss.jmx.server.JMXAdaptorImpl
[Fasad]
[Fasad] FasadBean: entry name= UILXAQueueConnectionFactory
[Fasad] FasadBean: class name= org.jbossmq.SpyXAQueueConnectionFactory
[Fasad]
[Fasad] FasadBean: entry name= RMIXAQueueConnectionFactory
[Fasad] FasadBean: class name= org.jbossmq.SpyXAQueueConnectionFactory
[Fasad]
[Fasad] FasadBean: entry name= RMIQueueConnectionFactory
[Fasad] FasadBean: class name= org.jbossmq.SpyQueueConnectionFactory
[Fasad]
[Fasad] FasadBean: entry name= XATopicConnectionFactory
[Fasad] FasadBean: class name= org.jbossmq.SpyXATopicConnectionFactory
[Fasad]
[Fasad] FasadBean: entry name= hello
[Fasad] FasadBean: class name= org.jnp.interfaces.NamingContext
[Fasad]
[Fasad] FasadBean: entry name= UILXATopicConnectionFactory
[Fasad] FasadBean: class name= org.jbossmq.SpyXATopicConnectionFactory
[Fasad]
[Fasad] FasadBean: entry name= RMIXATopicConnectionFactory
[Fasad] FasadBean: class name= org.jbossmq.SpyXATopicConnectionFactory
[Fasad]
[Fasad] FasadBean: entry name= RMITopicConnectionFactory
[Fasad] FasadBean: class name= org.jbossmq.SpyTopicConnectionFactory
[Fasad]
[Fasad] FasadBean: entry name= interest
[Fasad] FasadBean: class name= org.jnp.interfaces.NamingContex

[JBoss-user] Clustering

2001-04-23 Thread Gajendra Deshmukh



>From the Jboss Site ---
HA/Failover: Stacy Curl submits HA/Failover JMX
which becomes JBossMX module. 

Clustering: Sacha Labourey posts a first
implementation of HA features for stateless
session beans for testing. 

Question --

Where do I find the JBossMX Module?

Where do I find Sacha Labourey post?




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

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



[JBoss-user] error in MySQL + JBoss deployment

2001-04-23 Thread Hao Cheng



Hi, when I tried to hookup mySQL (of MM.MySQL JDBC 
driver) with Jboss/Jetty, I got the following error in my startup script, i 
follow exactly as what I was instructed, but looks like I'm still missing 
something in classpath, any experience or insights?
 
great appreciate it !
 
Hao
 
[Configuration] Could not create MBean 
DefaultDomain:service=XADataSource,name=mySQL()[Configuration] 
java.lang.ClassNotFoundException:[Configuration] 
at 
javax.management.loading.MLet.findClass(MLet.java:800)[Configuration] 
at java.lang.ClassLoader.loadClass(Unknown 
Source)[Configuration] at 
java.lang.ClassLoader.loadClass(Unknown 
Source)[Configuration] at 
com.sun.management.jmx.MBeanServerImpl.findClass(MBeanServerImpl.java:2466)[Configuration] 
at 
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:499)[Configuration] 
at 
org.jboss.configuration.ConfigurationService.create(ConfigurationService.java:340)[Configuration] 
at 
org.jboss.configuration.ConfigurationService.loadConfiguration(ConfigurationService.java:271)[Configuration] 
at java.lang.reflect.Method.invoke(Native 
Method)[Configuration] at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)[Configuration] 
at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)[Configuration] 
at 
org.jboss.Main.(Main.java:195)[Configuration] 
at 
org.jboss.Main$1.run(Main.java:107)[Configuration] 
at java.security.AccessController.doPrivileged(Native 
Method)[Configuration] at 
org.jboss.Main.main(Main.java:103)


Re: [JBoss-user] Can I move directories that need to be written to?

2001-04-23 Thread Scott M Stark

Its mostly the default configuration setup that expects the standard JBoss distribution
structure. I'm not aware of any reliance on this structure by JBoss code as most
resources are located via the classpath. What was failing when you tried to split
the distribution?

- Original Message - 
From: "Jim Archer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 12:07 AM
Subject: [JBoss-user] Can I move directories that need to be written to?


> 
> Hi All...
> 
> We have been working to install jBoss 2.2.1 on a Debian/Linux system. In a 
> Debian system, app servers with no package management are best installed 
> under usr/local/share.
> 
> For security reasons, applications running from there should not be able to 
> write and data in that tree. This is to prevent various exploits from 
> changing the program code and doing other things.
> 
> Typically, data from apps installed under usr/local/share is written under 
> /var but binary executables are not.
> 
> We attempted to configure the jBoss/Tomcat 2.2.1 bundle so that anywhere 
> jBoss or Tomcat had to write was in a directory below /var while jBoss was 
> installed below /usr, but no luck. We were not sure is this is possible. We 
> did review the mail list and the docs. As near as we can tell, inthe case 
> of jBoss, it writes to /log and /tmp. Anywhere else?
> 
> Any hints?
> 
> Thanks!
> 
> 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] Are there DTDs available for the various EJB/JBOSS config files?

2001-04-23 Thread Nguyen Thanh Phong

Are DTDs for EJB/JBOSS config files updated?

Nguyen Thanh Phong   Tel: 84-8-837 25 06/837 25 07
Saigon Software Development Company (SDC)Fax: 84-8-837 25 11
10 Co Giang Street, Dist I, HCMC Email:
[EMAIL PROTECTED]
Vietnam



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



[JBoss-user] (no subject)

2001-04-23 Thread prateeks saxena




Get free email and a permanent address at http://www.netaddress.com/?N=1

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



[JBoss-user] Where Java Bean should be located?

2001-04-23 Thread Doreen Cheng
Title: Where Java Bean should be located?





hi all,


I have installed JBoss 2.1 with embedded tomcat and developed several cmp ejb objects and already deployed to JBoss and Tomcat

*** But i don't know why I must deployed the jar file to both JBoss and Tomcat???


and since i have some java bean to use, I have included them in the jar file with other ejb objects for success complication, however, when i test it, it returned java bean object not found, in fact, where should i included those java bean object, I also try to put those java bean object on tomcat, but error still existed.

Any one can help? Thanks a lot!!!


Doreen





[JBoss-user] javax.ejb.FinderException : Find failed Exception

2001-04-23 Thread Russell



  Hi all , I am using RedHat6.1 , jboss2.1 and jdk1.3.
  I have created entity bean and deployed to jboss container.
  
  The problems that i have facing is that when i create my own finder
method :

  findByUser(String loginid) throws RemoteException,FinderException.

  When i tried to call the find method , i hit the error below :
   
  javax.ejb.FinderException: Find failed
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 $Proxy0.findByUsers(Unknown Source)
at com.cesma.ecommerce.pmg.user.Untitled1.main(Untitled1.java:23)

  What is happening here ??? Anybody have any idea ? Calling
findByPrimaryKey method is ok.

  Thanks wt.

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



[JBoss-user] jboss2.2.1-tomcat3.2.1 w/ struts j2ee app

2001-04-23 Thread G.L. Grobe



Thanks for the advice of rearranging tags in the 
web.xml file. Couldn't find config details for an 
app so I'm posting again.
 
This worked on another server but not working on 
JBoss. I have struts.jar on the same level as my J2EE app's META-INF dir and 
have the Classpath in the MANIFEST.MF file so JBoss should be able to find it. I 
have put struts.jar above the web-app because both my ejb's and web-app depend 
on struts, so that's why it's not in the ~/WEB-INF/lib dir.
 
Any ideas/help much appreciated as to why it's not 
finding these classes.
 
[Service Control] Started 25 services[Default] 
JBoss 2.2.1 Started in 1m:0s2001-04-23 07:40:21 - Ctx(  ): 
JasperException: R(  + /index.jsp + null) Unable to compile class for 
JSP/u/public/JBoss-2.2.1_Tomcat-3.2.1/tomcat/work/localhost_8080/_0002findex_0002ejspindex_jsp_0.java:66: 
Class org.apache.struts.taglib.html.HtmlTag not 
found.    
org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_0 = new 
org.apache.struts.taglib.html.HtmlTag(); 
^/u/public/JBoss-2.2.1_Tomcat-3.2.1/tomcat/work/localhost_8080/_0002findex_0002ejspindex_jsp_0.java:66: 
Class org.apache.struts.taglib.html.HtmlTag not 
found.    
org.apache.struts.taglib.html.HtmlTag _jspx_th_html_html_0 = new 
org.apache.struts.taglib.html.HtmlTag();    



[JBoss-user] JMSServer can not be found after crash: corrupted? something left somewhere?

2001-04-23 Thread QuKN



The jboss version:  v2.3beta, on win2K. It was downloaded on April 16.

I deployed a mdb, it somehow made jboss stuck. And then I ^C  jboss. Then,
deleted the trouble maker mdb,
but still left a simple mdb there, then, I restarted jboss. It has error
message(see below), saying that can not find
org/jbossmq/server/JMSServer. If I take out the simple mdb, it starts well,
but when I deploy the simple mdb, the
error message came out again!

I rebooted the win2k, still the same. I reinstalled jboss, still the same.

Note that it works fine before the crash!

Is there some thing left from the crash? where should I check?

//



[Auto deploy] Watching C:\jbossFromSrc\deploy
[Auto deploy] Watching C:\jbossFromSrc\deploy\lib
[Auto deploy] Auto deploy of file:/C:/jbossFromSrc/deploy/interest.jar
[J2EE Deployer Default] Deploy J2EE application:
file:/C:/jbossFromSrc/deploy/interest.jar
[J2EE Deployer Default] Create application interest.jar
[J2EE Deployer Default] install module interest.jar
[Container factory]
Deploying:file:/C:/jbossFromSrc/tmp/deploy/Default/interest.jar
[Verifier] Verifying
file:/C:/jbossFromSrc/tmp/deploy/Default/interest.jar/ejb1001.jar
[Container factory] Deploying Interest
[Container factory] Deployed application:
file:/C:/jbossFromSrc/tmp/deploy/Default/interest.jar
[J2EE Deployer Default] J2EE application:
file:/C:/jbossFromSrc/deploy/interest.jar is deployed.
[Auto deploy] Auto deploy of file:/C:/jbossFromSrc/deploy/mdb.jar
[J2EE Deployer Default] Deploy J2EE application:
file:/C:/jbossFromSrc/deploy/mdb.jar
[J2EE Deployer Default] Create application mdb.jar
[J2EE Deployer Default] install module mdb.jar
[Container factory]
Deploying:file:/C:/jbossFromSrc/tmp/deploy/Default/mdb.jar
[Verifier] Verifying
file:/C:/jbossFromSrc/tmp/deploy/Default/mdb.jar/ejb1002.jar
[Container factory] Deploying TopicBean
[JBossMQ] java.lang.NoClassDefFoundError: org/jbossmq/server/JMSServer
[JBossMQ]   at
org.jbossmq.distributed.server.DistributedJMSServerOIL.run(DistributedJMSServerOIL.java:134)
[JBossMQ]   at java.lang.Thread.run(Unknown Source)





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



[JBoss-user] jsp server error

2001-04-23 Thread john morrison

I must appologize up front for this question.  I know
I've done something wrong, I just can't figure out
what.

I'm running W2k Pro SP1, Sun jdk 1.3.02 and the
preconfigured jboss-2.2/jakarta-tomcat-3.2.1.

All seems to work well except for jsps.  I get a
server error and a java error of
java.lang.NoClassDefFoundError: sun/tools/javac/Main

What did I do wrong or fail to set up?

Also, is it possible to change the default web server
address from 8080 to 80? and how.  I'm proficient with
Microsoft IIS, but am lost in configuring tomcat.

Thanks
John Morrison

__
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] Tomcat-JBoss ClassNotFoundException (again)

2001-04-23 Thread Jim Archer

I definately have this working.

I got that very same problem months ago and solved it at that time by 
putting the home and remote interface classes in my WAR (as well as in my 
jar). That solved it then, and I have just been doing it that way ever 
since.

I don't know ifthat is the "correct" or best sollution, but ti works for me.

Jim

--On Thursday, April 19, 2001 11:37 PM -0400 Bill Pfeiffer 
<[EMAIL PROTECTED]> wrote:

> Has anyone successfully deployed a non trivial .ear (ie something other
> than the example ear) under the integrated Tomcat-JBoss binary?
>
> I've read the docs.  I've reviewed the working sample.  I've tried what
> seems to be every concievable permutation of .jcml, .conf, manifest
> settings that I can come up with.  I cannot get the damn thing (my
> servlet) to see my home interface class file.  It throws a
> ClassNotFoundException every time.
>
> Offer me a setting.  I'll try it (if I haven't already).  Tell me where to
> put my ejb interface files (in or out of a client.jar, doesn't matter,
> I've tried it).
>
> Any last words of advice before I give up?  I'd love to hear from someone
> who has this working and see the configuration.
>
> Thanks,
>
> Bill Pfeiffer
>
>
> ___
> 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] Atlanta training -- only 3 places left

2001-04-23 Thread marc fleury

Hi,

I am writing from Miami, coming down from Washington and flying out next
week to London.

The training is a success and that is good news as it means we can survive
on JBoss.

I am also writing to say that there are only 3 places left for the May
14th-18th training in Atlanta GA, it will also be a great session, so if you
are interested I recommend registering right away, priority registration is
given to those people who send payment immediately.  Again if you are
interested, contact us at [EMAIL PROTECTED] and we will give you the
details.

with a certified 1500 downloads / day per sourceforge, JBoss is making it
big time so let's keep it this way,

regards

_
Marc Fleury, Ph.D
[EMAIL PROTECTED]
_


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



Re: [JBoss-user] Build-up of INACTIVE oracle connections

2001-04-23 Thread Guy Rouillier

Logging will show you which connection you are using via some sort of hex ID
(don't know if it is a pointer or just some instance data.)  You ** should
** see the same connection being used repeatedly (if your server is very
busy, perhaps you'll see 2 or 3 different connection being reused in random
order.)  If you are always seeing a different hex ID coming out of the pool,
then you'll know your connections are not being reused.

And you did catch my subsequent post correcting the statement as follows, I
hope:

true


- Original Message -
From: "Richard Conway" <[EMAIL PROTECTED]>
To: "JBoss User List" <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 9:12 AM
Subject: RE: [JBoss-user] Build-up of INACTIVE oracle connections


>
> Thanks for the advice.
> If I turn on logging, what can I expect to see. Will I be able to tell if
> have a connection-leak for example.
>
> Richard.
>
> -Original Message-
> From: Guy Rouillier [mailto:[EMAIL PROTECTED]]
> Sent: 21 April 2001 10:20
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Build-up of INACTIVE oracle connections
>
>
> Start by confirming your suspicions.  Put the following line into your
MBean
> configuration in jboss.jcml:
>
> false
>
> Now watch the Jboss log, and see if your connections are being reused or
> not.
>
> - Original Message -
> From: "Richard Conway" <[EMAIL PROTECTED]>
> To: "JBoss User List" <[EMAIL PROTECTED]>
> Sent: Friday, April 20, 2001 8:04 AM
> Subject: [JBoss-user] Build-up of INACTIVE oracle connections
>
>
> >
> > I am experiencing a problem whereby there is a build-up of INACTIVE
> > connections to our Oracle database. If I drive the system for approx.
> twenty
> > minutes with ten concurrent users then we get an ORA-00020 error (max
> > processes exceeded). The Oracle process limit is set to 200.
> >
> > We are running JBoss 2.0 FINAL on a Solaris 2.6 platform.
> >
> > Our system consists of about 15 EJBs packaged into a single jar file.
The
> > EJBs all use the same datasource configured as follows:
> >
> > jboss.conf
> > --
> >  > ARCHIVE="jboss.jar,oracle12.jar" CODEBASE="../../lib/ext/">
> > 
> >  > VALUE="org.jboss.minerva.xa.XADataSourceImpl">
> > 
> >
> >
> > jboss.jcml
> > --
> >   > name="DefaultDomain:service=XADataSource,name=jdbc/MyDataSource">
> >
> > name="URL">jdbc:oracle:thin:@myhost:1521:mydb
> >120
> >myuser
> >0
> >mypassword
> >false
> >false
> >false
> >true
> >12
> >180
> >false
> >false
> >1.0
> >0
> >  
> >
> > The sessions are all shown as INACTIVE in Oracle's v$session table.
> >
> > We have been very careful in our EJBs to include the closure of the
> > Connection in a finally block. I therefore feel it is unlikely to be a
> > 'connection-leak' from within the application code.
> >
> > What baffles me is why the JBoss connection pool does not reuse the
> INACTIVE
> > connections, instead prefering to create new ones. Does this suggest
that
> > there is a problem with my configuration.
> >
> > Any suggestions much appreciated.
> > Richard.
> >
> > ---
> > Richard Conway ([EMAIL PROTECTED])
> > ---
> > This message is confidential; its contents do not constitute a
commitment
> by
> > The VEGA Group PLC except where provided for in a written agreement
> between
> > you and The VEGA Group PLC. Any unauthorised disclosure, use or
> > dissemination, either whole or partial, is prohibited. If you are not
the
> > intended recipient of the message, please notify the sender immediately.
> >
> >
> >
> > ___
> > 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] InstanceNotFoundException

2001-04-23 Thread Toby Allsopp

On Mon, Apr 23, 2001 at 01:59:31PM -0400, Matt Brinkman wrote:
> This is probably an easy one- But I'm new to jboss bear with me.
> When I deploy a jar I get this following:
> [Auto deploy] javax.management.InstanceNotFoundException:
> J2EE:service=J2eeDeployer

Please post your jboss.jcml file.

Thanks,
Toby.

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



Re: [JBoss-user] Can I move directories that need to be written to?

2001-04-23 Thread Juha Lindfors


Hi,

it also writes to /conf//jboss-auto.jcml

-- Juha

At 03:07 23.4.2001 -0400, you wrote:
>
>Hi All...
>
>We have been working to install jBoss 2.2.1 on a Debian/Linux system. In a 
>Debian system, app servers with no package management are best installed 
>under usr/local/share.
>
>For security reasons, applications running from there should not be able to 
>write and data in that tree. This is to prevent various exploits from 
>changing the program code and doing other things.
>
>Typically, data from apps installed under usr/local/share is written under 
>/var but binary executables are not.
>
>We attempted to configure the jBoss/Tomcat 2.2.1 bundle so that anywhere 
>jBoss or Tomcat had to write was in a directory below /var while jBoss was 
>installed below /usr, but no luck. We were not sure is this is possible. We 
>did review the mail list and the docs. As near as we can tell, inthe case 
>of jBoss, it writes to /log and /tmp. Anywhere else?
>
>Any hints?
>
>Thanks!
>
>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] How can I use a properties file?

2001-04-23 Thread Jim Archer

Hi Toby...

--On Friday, April 20, 2001 2:53 PM +1200 Toby Allsopp 
<[EMAIL PROTECTED]> wrote:

> You can put your properties file in the same place as your classes and
> then access it using getClass().getClassLoader().getResourceAsStream().
> You could pass the resulting InputStrean to Properties.load.

Thats a great trick! Can I do this from a SLSB and if so, would that be 
portable?

Thanks!

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] Jetty vs. Tomcat

2001-04-23 Thread Jim Archer

Actually, I tried Jetty (as part of the jBoss 2.2.1 bundle) just the other 
day. It installed fine but when I deployed my EAR I got a bunch of errors 
complaining about JNDI.

When I ran my app, I got a bunch of maning exceptions. I have not had time 
to look into this further, but it did make me wonder if Jetty is fully 
intergrated, like Tomcat is. I would have expected the very same EAR to run 
just the same under either Jetty or Tomcat...

Jim

--On Friday, April 20, 2001 1:50 AM -0500 danch <[EMAIL PROTECTED]> wrote:

> Alternatively, Tomcat is the reference implementation. Jetty is
> lightweight and fast.
>
> The only other thing is that (judging from traffic analysis of these
> mailing lists) Integration of Tomcat with JBoss is better tested. (Jetty
> users, feel free to argue)
>
> -danch
>
> Alvin Yap wrote:
>
>> Tomcat is more robust and extensible.  Jetty is lightweight and fast.
>>
>> Alvin
>>
>> Jason Dillon wrote:
>>
>>
>>> Does anyone have any opinions as to which contain is more robust,
>>> easier to use and such?
>>>
>>> --jason
>>>
>>> ___
>>> 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




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] re:Jboss install problem

2001-04-23 Thread Qiao, Wei

my co-worker has tried to run the run_tomcat.bat from bin/tomcat and
succeded.  
My mistake was downloaded the wrong package. I should download the
Jboss2.2.1/Tomocat not the Jboss2.2.1 alone.

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



RE: [JBoss-user] Jboss2.2.1 install problem: (urgent)

2001-04-23 Thread Francois Archambault

Check if, in your run.bat file, the jboss_classpath include crimsom.jar.
Do not run jboss with "java -jar run.jar" but use the batch file.

Hope it will fix your problem

Francois Archambault

> -Message d'origine-
> De:   Qiao, Wei [SMTP:[EMAIL PROTECTED]]
> Date: 23 avril, 2001 14:20
> À:'[EMAIL PROTECTED]'
> Objet:[JBoss-user] Jboss2.2.1 install problem: (urgent)
> 
> Anyone know how to solve this problem? :
> When I try to run Jboss2.2.1(latest one) , the run.bat, on my winNT ,
> I got
> this error:
> ...
> [Shutdown] Shutdown hook added
> [Service Control] Registered with server
> Exception in thread "main" [Default]
> javax.xml.parsers.FactoryConfigurationError:
> java.lang.ClassNotFoundException:
> org.apache.crimson.jaxp.DocumentBuilderFactoryImpl 
> 
> Is it because of my Jboss.conf not right? BTW, I have a 2.1 version
> installed before.
> 
> 
> ___
> 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] Jboss2.2.1 install problem: (urgent)

2001-04-23 Thread Daniel Cardin

did you update your run.bat with 2.2.1 ? 

V2.2.1 adds crimson.jar to JBOSS_CLASSPATH. Check it out and see that
you are not using a custom version of run.bat.

HTH,

Daniel

-Message d'origine-
De : Qiao, Wei [mailto:[EMAIL PROTECTED]]
Envoyé : 23 avril, 2001 14:20 
À : '[EMAIL PROTECTED]'
Objet : [JBoss-user] Jboss2.2.1 install problem: (urgent)


Anyone know how to solve this problem? :
When I try to run Jboss2.2.1(latest one) , the run.bat, on my winNT , I
got
this error:
...
[Shutdown] Shutdown hook added
[Service Control] Registered with server
Exception in thread "main" [Default]
javax.xml.parsers.FactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl 

Is it because of my Jboss.conf not right? BTW, I have a 2.1 version
installed before.


___
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.1 install problem: (urgent)

2001-04-23 Thread Qiao, Wei

Anyone know how to solve this problem? :
When I try to run Jboss2.2.1(latest one) , the run.bat, on my winNT , I got
this error:
...
[Shutdown] Shutdown hook added
[Service Control] Registered with server
Exception in thread "main" [Default]
javax.xml.parsers.FactoryConfigurationError:
java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl 

Is it because of my Jboss.conf not right? BTW, I have a 2.1 version
installed before.


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



Re: [JBoss-user] Tomcat+jBoss EAR with Virtual Hosting?

2001-04-23 Thread Todd Chaffee

This took me a couple days of going through the message archives and lots 
of experimentation to figure it out.  I hope I can spare you a similar fate :)

As far as I could make out, jboss doesn't support virtual hosts and there 
is no way to do this in application.xml.  I could be wrong about both, but 
could find nothing in the docs or by experimentation to support virtual 
hosts in either.  However, if you use apache, there is a work 
around.  Let's say you have a plain context of '/mycontext' that would 
normally be accessed as http://localhost:8080/mycontext.  You would add the 
following inside your apache virtual host:

ProxyRequests on
ProxyPass /mycontext/ http://localhost:8080/mycontext/
ProxyPassReverse /mycontext/ http://localhost:8080/mycontext/

I think you also have to add the following if you want index.jsp or 
index.html served correctly from 'mycontext':

ProxyPass /mycontext http://localhost:8080/mycontext

The only difference being the absence of the trailing slash on 
'/mycontext'.  I haven't finished experimenting with this part yet :)

If you don't use apache then I'm not sure how to do this other than hard 
coding the actual path to the tmp ear deployment directory.  You would do 
this inside of your tomcat virtual host.  I.e:





I don't know how safe this is, but it looked ugly enough to me that I went 
the apache route.  Let me know what works for you or if you can improve 
upon any of these ideas.

- Todd Chaffee
[EMAIL PROTECTED]


At 11:41 AM 04/23/01 -0600, you wrote:
>Hi,
>
>I'm using Tomcat+jBoss and deploying an EAR file. Everything seems ok, 
>except I'm confused about how to turn this into a Tomcat "virtual host" 
>instead of just a plain "context". There doesn't appear to be a way to 
>specify virtual hosting parameters in application.xml. Is this possible?
>
>Thanks,
>
>Bryan
>
>
>
>___
>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] InstanceNotFoundException

2001-04-23 Thread Matt Brinkman

This is probably an easy one- But I'm new to jboss bear with me.
When I deploy a jar I get this following:
[Auto deploy] javax.management.InstanceNotFoundException:
J2EE:service=J2eeDeployer

Maybe a path problem?
Thanks for any help.

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



Re: [JBoss-user] Jboss + Mysql ?

2001-04-23 Thread Todd Chaffee

It wasn't 100% clear or easy to follow, but there is specific information
in the docs.  I followed them and have jboss + mysql working with no
problems so far except for some warning messages in the jboss startup log
that I haven't figure out yet.  But it's working :)

At 10:03 AM 04/23/01 -0700, you wrote:
Hi, I
want to use Jboss + Mysql in my project, is there any step-by-step 
(or specific) information regarding the JDBC driver and the way to
have
it hook up with jboss? also is this way stable and commonly used?

Thanks for any input, appreciate it !

Hao


[JBoss-user] Tomcat+jBoss EAR with Virtual Hosting?

2001-04-23 Thread Bryan Field-Elliot

Hi,

I'm using Tomcat+jBoss and deploying an EAR file. Everything seems ok, 
except I'm confused about how to turn this into a Tomcat "virtual host" 
instead of just a plain "context". There doesn't appear to be a way to 
specify virtual hosting parameters in application.xml. Is this possible?

Thanks,

Bryan



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



Re: [JBoss-user] JBuilder4 + JBoss

2001-04-23 Thread Ijonas Kisselbach

You need to recreate the META-INF/jboss.xml files under your project
sourcepath (Project Properties).

Should work.

Ijonas
- Original Message -
From: "Burkhard Vogel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 3:16 PM
Subject: Re: [JBoss-user] JBuilder4 + JBoss


> BTW,
> JBuilder4 would offer a possibility to include additional files into the
> META-INF dir (in ejbgrp->Properties) which would be splendid to use to
> include my jboss.xml and jaws.xml (for CMP) _BUT_ it is not working for
> me... Anyone seen it doing something??
> Burkhard
> - Original Message -
> From: "James Cook" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 23, 2001 3:19 PM
> Subject: Re: [JBoss-user] JBuilder4 + JBoss
>
>
> > - Original Message -
> > From: "ZHU Jia" <[EMAIL PROTECTED]>
> >
> > > Some of you are surely using JBuilder as IDE, right?! Can someone give
> some
> > > tips about deploying EJBs from JBuilder into JBoss? Can I let JBuilder
> > > generate the deployment descriptor?
> > > Many thanks in advance!
> >
> > JBuilder Enterprise has built-in wizards to deploy to WebLogic and their
> own
> > BAS. You don't need any of them to deploy to jBoss because jBoss's
> deployment
> > scheme in a development environment is vastly superior. Simply have
> JBuilder
> > build your archive in the /deploy directory or set up a tool (in
> JBuilder
> > Menu) to copy this archive to the deploy directory.
> >
> > They also have a nice deployment descriptor editor that will build the
> standard
> > ejb-jar.xml and a specific ejb-inprise.xml file. To lookup references
> according
> > to the EJB spec, you will have to include an jboss.xml descriptor and
this
> is
> > not created by any of Borland's tools. You have to do this one yourself.
> It is
> > trivial and you can use the JBuilder editor to build it.
> >
> > jim
> >
> >
> > ___
> > 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 relationships in JBoss

2001-04-23 Thread ramiro

While testing JBoss we noticed that when building relationships
among Entity Beans, these don't get actually related, instead we
get "blobs" for references to the other object.
I assume we must be doing something wrong,
what could it be ?
Thank you


Ramiro Diaz Trepat
Opetra



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



Re: [JBoss-user] Problems with sample JAAS ServerLoginModule

2001-04-23 Thread Raffael Herzog

"Scott M Stark" <[EMAIL PROTECTED]> wrote:

> They have to be somewhere in the classpath. This could be inside
> your ejb-jar in the root directory, in the dist/conf/default
> directory, or any other directory or archive in the server
> classpath.

I tried all of them and only (finally) got rid of the
NullPointerException when I put it in the ejb-jar file itself. But
now, it doesn't recignize the roles.

ejb-jar.xml contains:


  admin


  guest



  admin
  
MyBean
*
  



users.properties:

rherzog=password


roles.properties

rherzog=admin


But I can try whatever I want, I get "Illegal access" on any
method. If I enter the wrong password the "Illegal access" message is
preceeded by FailedLoginException, if I enter the right password I get
no exception, which sounds good. But these roles...


-- 
(o_ Raffael Herzog
//\[EMAIL PROTECTED]
V_/_
May the penguin be with you!

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



[JBoss-user] Jboss + Mysql ?

2001-04-23 Thread Hao Cheng



Hi, I want to use Jboss + Mysql in my project, is 
there any step-by-step (or specific) information regarding the JDBC driver 
and the way to haveit hook up with jboss? also is this way stable and 
commonly used?Thanks for any input, appreciate it 
!Hao


Re: [JBoss-user] About TOPIC_FACTORY on MDB's sample.

2001-04-23 Thread pra

On 23 Apr, [EMAIL PROTECTED] wrote:
> Hello again:
> 
> (JBoss Documentation, Chapter 7 "Writing Message Driven Bean")
> 
> After deploying de MDB.class + META-INF i've began to
> write the 'Main.java' application in order to send a stuff
> to my bean.
> The problem arrives when compiling this file, i get the following:
> 
> Main.java:9: cannot resolve symbol
> symbol: variable TOPIC_FACTORY
> location: class Main
>  TopicConnectionFactory topicFactory = (TopicConnectionFactory) 
> context.lookup(TOPIC_FACTORY)
> ^
> 
> 1 error
> 
> what is 'TOPIC_FACTORY'?
> 
> should this variable be declared anywhere?

Yes. Typicaly a static final String, ie

static final String TOPIC_FACTORY = "TopicConnectionFactory";

which I obviously missed to get when I ripped the example from some of
my programs. Sorry.

//Peter
> 
> Thanks in advance!
> 
> Regards:
> _
> Jaume Soriano Sivera <[EMAIL PROTECTED]>
> _
-- 

Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems ArchitectWWW: http://www.tim.se
Email: [EMAIL PROTECTED]WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 



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



Re: [JBoss-user] Bad Magic Number

2001-04-23 Thread Burkhard Vogel

If u had searched the archive you would have found out that you compile your
jar under a different version of the jdk than u run the server...
Burkhard
- Original Message -
From: "Jim Cheesman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 4:58 PM
Subject: [JBoss-user] Bad Magic Number


> Hi!
> I'm trying to deploy my first ejb (so I freely admit there could be coding
> errors, errors in the xml files etc.) and I get the following exception:
>
> 
> [J2EE Deployer Default] Deploy J2EE application:
> file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/deploy/Athlete.jar
> [J2EE Deployer Default] Create application Athlete.jar
> [J2EE Deployer Default] install module Athlete.jar
> [Container factory]
>
Deploying:file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/Athl
ete.jar/
> [Verifier] Verifying
>
file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/Athlete.jar/ej
b1003.jar
> [Verifier] java.lang.ClassFormatError: test/ejb/AthleteBean (Bad magic
number)
> [Verifier]  at java.lang.ClassLoader.defineClass0(Native Method)
> [Verifier]  at java.lang.ClassLoader.defineClass(Unknown Source)
> [Verifier]  at java.security.SecureClassLoader.defineClass(Unknown
Source)
> [Verifier]  at java.net.URLClassLoader.defineClass(Unknown Source)
> [Verifier]  at java.net.URLClassLoader.access$100(Unknown Source)
> [Verifier]  at java.net.URLClassLoader$1.run(Unknown Source)
> [Verifier]  at java.security.AccessController.doPrivileged(Native
Method)
> [Verifier]  at java.net.URLClassLoader.findClass(Unknown Source)
> [Verifier]  at java.lang.ClassLoader.loadClass(Unknown Source)
> [Verifier]  at java.lang.ClassLoader.loadClass(Unknown Source)
> [Verifier]  at
>
org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVerifier11.jav
a:1136)
> [Verifier]  at
>
org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier11.java:119
)
> [Verifier]  at
> org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
> [Verifier]  at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:417)
> [Verifier]  at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:334)
> [Verifier]  at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
> [Verifier]  at java.lang.reflect.Method.invoke(Native Method)
> [Verifier]  at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Verifier]  at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Verifier]  at
> org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
> [Verifier]  at
> org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
> [Verifier]  at java.lang.reflect.Method.invoke(Native Method)
> [Verifier]  at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Verifier]  at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Verifier]  at
org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
> [Verifier]  at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
> [Verifier]  at java.lang.Thread.run(Unknown Source)
> **
>
> So what is a "Bad Magic Number"? I tried checking the archives, but they
> don't seem to be working...
>
> *
> ejb-jar.xml (slightly snipped):
> 
>
>  
>An athlete in frodo
>AthleteBean
>test.ejb.AthleteHome
>test.ejb.AthleteRemote
>test.ejb.AthleteBean
>Container
>test.ejb.AthletePK
>False
>discipline
>number
>reg_type
>flgs_type
> ...
>  
>
>
>
>  
>An AthleteBean
>everyone
>  
>  
>everyone
>
>  AthleteBean
>  *
>
>  
>  
>
>  AthleteBean
>  *
>
>Required
>  
>
> 
> *
> jboss.xml:
> 
>false
>
>
>  
>Frodo
>java:/Frodo
>  
>
>
>  
>AthleteBean
>athlete/AthleteBean
>
>  
>
> 
> *
>
> I'm running jboss-tomcat-2.2 on Win2000, jdk1.3.1 rc1.
>
>
>
> Any ideas?
>
>
> Jim
>
> --
>
>*   Jim Cheesman   *
>  Trabajo:
> [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
>Personal:
> [EMAIL PROTECTED] (34) 606 770 244
>  Prejudiced people
> are all alike.
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


___
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.

Re: [JBoss-user] Bad Magic Number

2001-04-23 Thread Scott M Stark


A bad magic number means the class file is corrupted. You need to check your
build of the bean classes.

- Original Message - 
From: "Jim Cheesman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 7:58 AM
Subject: [JBoss-user] Bad Magic Number


> Hi!
> I'm trying to deploy my first ejb (so I freely admit there could be coding 
> errors, errors in the xml files etc.) and I get the following exception:
> 
> 
> [J2EE Deployer Default] Deploy J2EE application: 
> file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/deploy/Athlete.jar
> [J2EE Deployer Default] Create application Athlete.jar
> [J2EE Deployer Default] install module Athlete.jar
> [Container factory] 
> Deploying:file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/Athlete.jar/
> [Verifier] Verifying 
> file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/Athlete.jar/ejb1003.jar
> [Verifier] java.lang.ClassFormatError: test/ejb/AthleteBean (Bad magic number)
> [Verifier]  at java.lang.ClassLoader.defineClass0(Native Method)
> [Verifier]  at java.lang.ClassLoader.defineClass(Unknown Source)
> [Verifier]  at java.security.SecureClassLoader.defineClass(Unknown Source)
> [Verifier]  at java.net.URLClassLoader.defineClass(Unknown Source)



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



Re: [JBoss-user] Problems with sample JAAS ServerLoginModule

2001-04-23 Thread Scott M Stark

They have to be somewhere in the classpath. This could be inside your ejb-jar
in the root directory, in the dist/conf/default directory, or any other directory
or archive in the server classpath.

- Original Message - 
From: "Raffael Herzog" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 8:13 AM
Subject: [JBoss-user] Problems with sample JAAS ServerLoginModule


> I'm migrating my application for jBoss 2.0 to jBoss 2.2. Before, I
> used my own JAAS login modules which I now like to replace by the
> jBoss login modules. Now the problem: Login seems to work, but if I
> call the first method on a bean, I get a NullPointerException. There's
> nothing in the jBoss logs, so I don't get any stack trace or any other
> useful information.
> 
> After having a look at the source code, I found the location in the
> source, where it probably happens:
> 
> InputStream 
>is=Thread.currentThread().getContextClassLoader().getResource(propertiesName).openStream();
> 
> Because the documentation doesn't say anything about the location of
> users.properties and roles.properties, I probably put them to the
> wrong place --> getResource() returns null --> NullPointerException.
> 
> So where am I supposed to put these files?
> 
> 
> Thanks in advance!
> 
> 



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



Re: [JBoss-user] Bad Magic Number

2001-04-23 Thread Jim Cheesman

Hate replying to my own mail... ;)


Found the problem - I had to specify javac -target 1.2 ... to make it work.

That said, it still doesn't work...  But at least it's a seperate problem.


Jim


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: 
[EMAIL PROTECTED] (34) 606 770 244
My identity lies in not 
knowing who I am.



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



Re: [JBoss-user] Bad Magic Number

2001-04-23 Thread James Cook

It's an error reported by the Java system classloader when it detects an invalid
(or corrupt) class file. It looks for CA FE BA BE byte string in the first few
bytes of a class. Your class does not contain these bytes.

Prob. corruption in the jar or the class. If you are using a standard compiler,
try it again.

jim

- Original Message -
From: "Jim Cheesman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 10:58 AM
Subject: [JBoss-user] Bad Magic Number


> Hi!
> I'm trying to deploy my first ejb (so I freely admit there could be coding
> errors, errors in the xml files etc.) and I get the following exception:
>
> 
> [J2EE Deployer Default] Deploy J2EE application:
> file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/deploy/Athlete.jar
> [J2EE Deployer Default] Create application Athlete.jar
> [J2EE Deployer Default] install module Athlete.jar
> [Container factory]
>
Deploying:file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/Athlete.
jar/
> [Verifier] Verifying
>
file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/Athlete.jar/ejb100
3.jar
> [Verifier] java.lang.ClassFormatError: test/ejb/AthleteBean (Bad magic number)
> [Verifier]  at java.lang.ClassLoader.defineClass0(Native Method)
> [Verifier]  at java.lang.ClassLoader.defineClass(Unknown Source)
> [Verifier]  at java.security.SecureClassLoader.defineClass(Unknown Source)
> [Verifier]  at java.net.URLClassLoader.defineClass(Unknown Source)
> [Verifier]  at java.net.URLClassLoader.access$100(Unknown Source)
> [Verifier]  at java.net.URLClassLoader$1.run(Unknown Source)
> [Verifier]  at java.security.AccessController.doPrivileged(Native Method)
> [Verifier]  at java.net.URLClassLoader.findClass(Unknown Source)
> [Verifier]  at java.lang.ClassLoader.loadClass(Unknown Source)
> [Verifier]  at java.lang.ClassLoader.loadClass(Unknown Source)
> [Verifier]  at
>
org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVerifier11.java:11
36)
> [Verifier]  at
> org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier11.java:119)
> [Verifier]  at
> org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
> [Verifier]  at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:417)
> [Verifier]  at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:334)
> [Verifier]  at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
> [Verifier]  at java.lang.reflect.Method.invoke(Native Method)
> [Verifier]  at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Verifier]  at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Verifier]  at
> org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
> [Verifier]  at
> org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
> [Verifier]  at java.lang.reflect.Method.invoke(Native Method)
> [Verifier]  at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Verifier]  at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Verifier]  at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
> [Verifier]  at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
> [Verifier]  at java.lang.Thread.run(Unknown Source)
> **
>
> So what is a "Bad Magic Number"? I tried checking the archives, but they
> don't seem to be working...
>
> *
> ejb-jar.xml (slightly snipped):
> 
>
>  
>An athlete in frodo
>AthleteBean
>test.ejb.AthleteHome
>test.ejb.AthleteRemote
>test.ejb.AthleteBean
>Container
>test.ejb.AthletePK
>False
>discipline
>number
>reg_type
>flgs_type
> ...
>  
>
>
>
>  
>An AthleteBean
>everyone
>  
>  
>everyone
>
>  AthleteBean
>  *
>
>  
>  
>
>  AthleteBean
>  *
>
>Required
>  
>
> 
> *
> jboss.xml:
> 
>false
>
>
>  
>Frodo
>java:/Frodo
>  
>
>
>  
>AthleteBean
>athlete/AthleteBean
>
>  
>
> 
> *
>
> I'm running jboss-tomcat-2.2 on Win2000, jdk1.3.1 rc1.
>
>
>
> Any ideas?
>
>
> Jim
>
> --
>
>*   Jim Cheesman   *
>  Trabajo:
> [EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
>Personal:
> [EMAIL PROTECTED] (34) 606 770 244
>  Prejudiced people
> are all alike.
>
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTE

Re: [JBoss-user] Why are n't there any docs in the jboss distrubutions

2001-04-23 Thread Scott M Stark

Because they are online and are updated frequently. See
http://www.jboss.org/business/doco.html

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 7:49 AM
Subject: [JBoss-user] Why are n't there any docs in the jboss distrubutions


> Hi,
> Why are n't there any docs in the jboss distrubutions.
> I wanna experiment with the configuration
> 
> Greetz-Tbone
> 



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



[JBoss-user] petstore & jboss build error

2001-04-23 Thread Dario Sanchez C.

While building petstore with jboss patch, executing the sh build.sh
command in the petstore/src/petstore/src directory, I receive
the following error:

Expanding: /usr/local/jps1.1.1/src/petstore/build/petstoreEjb.jar into
/usr/local/jps1.1.1/src/petstore/src/docroot/WEB-INF/classes
java.io.FileNotFoundException:
/usr/local/jps1.1.1/src/petstore/build/petstoreEjb.jar (No such file or
directory)
    at
java.io.FileInputStream.open(Native Method)
    at
java.io.FileInputStream.(FileInputStream.java:64)
    at
java.io.FileInputStream.(FileInputStream.java:95)
    at
org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:82)
    at
org.apache.tools.ant.Target.execute(Target.java:120)
    at
org.apache.tools.ant.Project.runTarget(Project.java:658)
    at
org.apache.tools.ant.Project.executeTarget(Project.java:407)
    at
org.apache.tools.ant.Main.runBuild(Main.java:240)
    at
org.apache.tools.ant.Main.main(Main.java:191)
Expanding: /usr/local/jps1.1.1/src/components/mail/build/mailerEjb.jar
into /usr/local/jps1.1.1/src/petstore/src/docroot/WEB-INF/classes
Expanding:
/usr/local/jps1.1.1/src/components/inventory/build/inventoryEjb.jar into
/usr/local/jps1.1.1/src/petstore/src/docroot/WEB-INF/classes
Expanding:
/usr/local/jps1.1.1/src/components/customer/build/customerEjb.jar into
/usr/local/jps1.1.1/src/petstore/src/docroot/WEB-INF/classes
Expanding:
/usr/local/jps1.1.1/src/components/shoppingcart/build/shoppingcartEjb.jar
into /usr/local/jps1.1.1/src/petstore/src/docroot/WEB-INF/classes
Deleting:
/usr/local/jps1.1.1/src/petstore/src/docroot/WEB-INF/classes/META-INF
Building jar: /usr/local/jps1.1.1/src/petstore/build/petstore.war
Deleting:
/usr/local/jps1.1.1/src/petstore/src/docroot/WEB-INF/classes
Executing Target: ejbjar
Created dir: /usr/local/jps1.1.1/src/petstore/build/ejbjar/META-INF
Copying 215 files to /usr/local/jps1.1.1/src/petstore/build/ejbjar
Building jar: 
/usr/local/jps1.1.1/src/petstore/build/petstoreEjb.jar
Deleting: /usr/local/jps1.1.1/src/petstore/build/ejbjar
Executing Target: ear
[error] 
[exec] Assemble application
{../../components/shoppingcart/build/shoppingcartEjb.jar=,
../../components/inventory/build/inventoryEjb.jar=,
../build/petstore.war=, ../../components/mail/build/mailerEjb.jar=,
../../components/customer/build/customerEjb.jar=,
../build/petstoreEjb.jar=}[] into ../build/petstore.ear
[error] No local string for
enterprise.deployment.application.description
[exec] Creation of application in ../build/petstore.ear is complete
Executing Target: runtime
[error] 
[error] No local string for
enterprise.deployment.application.description
[exec] Set runtime done
[error] 
[error] No local string for
enterprise.deployment.application.description
[exec] Set runtime done
Executing Target: core
Completed in 15 seconds

I've been trying to build petstore with jboss for a week and still
don't understand what's wrong. Any suggest? 


Re: [JBoss-user] JBuilder4 + JBoss

2001-04-23 Thread David Barber

Another approach might be to use the AntRunner OpenTools plugin to JBuilder
and just run your Ant scripts directly from JBuilder.

DB


- Original Message -
From: "Daniel Cardin" <[EMAIL PROTECTED]>


Alternatively, you could use the OpenTools API to extend it with a
specific JBoss deployment facility (even if just to handle
jboss.xml,jaws.xml and copy the file to a deployment directory via the
OS or FTP).



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



RE: [JBoss-user] MySQL and Minerva Exception

2001-04-23 Thread Ursini Sebastien

Hello Cory,
I had the same problem (NullPointerException) when the password is null.
Try to provide a password

Sebastien

> -Original Message-
> From: Cory Watson [SMTP:[EMAIL PROTECTED]]
> Sent: vendredi, 13. avril 2001 05:01
> To:   [EMAIL PROTECTED]
> Subject:  [JBoss-user] MySQL and Minerva Exception
> 
> Being terribly new to JBoss and all things related, I'll pre-apologize for
> 
> any stupid questions.  That said, here goes:
> 
> Carefully following the directions in the documentation, I get an
> exception 
> starting JBoss (2.2) after I setup MySQL's JDBC driver, and Minerva 
> entry.  Here's the output:
> 
> [mysqlDS] Starting
> [mysqlDS] XA Connection pool mysqlDS bound to java:/mysqlDS
> [mysqlDS] Stopped
> [mysqlDS] java.lang.NullPointerException
> [mysqlDS]   at 
> org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSou
> rce.java:165)
> [mysqlDS]   at 
> org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330
> )
> [mysqlDS]   at 
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
> [mysqlDS]   at java.lang.reflect.Method.invoke(Native Method)
> [mysqlDS]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [mysqlDS]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [mysqlDS]   at
> org.jboss.util.ServiceControl.start(ServiceControl.java:97)
> [mysqlDS]   at java.lang.reflect.Method.invoke(Native Method)
> [mysqlDS]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [mysqlDS]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [mysqlDS]   at org.jboss.Main.(Main.java:203)
> [mysqlDS]   at org.jboss.Main$1.run(Main.java:107)
> [mysqlDS]   at java.security.AccessController.doPrivileged(Native
> Method)
> [mysqlDS]   at org.jboss.Main.main(Main.java:103)
> [Service Control] Could not start 
> DefaultDomain:service=XADataSource,name=mySQLDB
> [Service Control] java.lang.NullPointerException
> [Service Control]   at 
> org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSou
> rce.java:165)
> [Service Control]   at 
> org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330
> )
> [Service Control]   at 
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
> [Service Control]   at java.lang.reflect.Method.invoke(Native Method)
> [Service Control]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Service Control]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Service Control]   at 
> org.jboss.util.ServiceControl.start(ServiceControl.java:97)
> [Service Control]   at java.lang.reflect.Method.invoke(Native Method)
> [Service Control]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Service Control]   at 
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Service Control]   at org.jboss.Main.(Main.java:203)
> [Service Control]   at org.jboss.Main$1.run(Main.java:107)
> [Service Control]   at 
> java.security.AccessController.doPrivileged(Native Method)
> [Service Control]   at org.jboss.Main.main(Main.java:103)
> 
> All the JDBC stuff seems to be working just fine, up to that point.  I'm 
> perusing Minerva's source to go to that exactly line, but I dead end at 
> that point ;)  Any ideas??  I've verified through other means that the 
> connection _can_ be made, the URL looks fine, the  user has connection 
> rights...
> 
> Cory 'G' Watson
> 
> 
> 
> ___
> 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] Problems with sample JAAS ServerLoginModule

2001-04-23 Thread Raffael Herzog

I'm migrating my application for jBoss 2.0 to jBoss 2.2. Before, I
used my own JAAS login modules which I now like to replace by the
jBoss login modules. Now the problem: Login seems to work, but if I
call the first method on a bean, I get a NullPointerException. There's
nothing in the jBoss logs, so I don't get any stack trace or any other
useful information.

After having a look at the source code, I found the location in the
source, where it probably happens:

InputStream 
is=Thread.currentThread().getContextClassLoader().getResource(propertiesName).openStream();

Because the documentation doesn't say anything about the location of
users.properties and roles.properties, I probably put them to the
wrong place --> getResource() returns null --> NullPointerException.

So where am I supposed to put these files?


Thanks in advance!


-- 
(o_ Raffael Herzog
//\[EMAIL PROTECTED]
V_/_
May the penguin be with you!

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



Re: [JBoss-user] jaws.xml DTD

2001-04-23 Thread danch

It really isn't very informative at this point. I'll start working on
the update tonight.

Reynir Hübner wrote:
> 
> Where do I find Jaws.xml DTD?
> 
> It´s mentioned in the http://www.jboss.org/documentation/HTML/ch05.html
> 
> I would like to take a look at it.
> 
> thanx,
> Reynir
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
Confidential e-mail for addressee only.  Access to this e-mail by anyone else is 
unauthorized.
If you have received this message in error, please notify the sender immediately by 
reply e-mail 
and destroy the original communication.


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



[JBoss-user] Client-demarcated transaction from jBoss+Tomcat?

2001-04-23 Thread Bryan Field-Elliot

I am moving a Servlet application from JOnAS to jBoss. I am in final 
testing now and am discovering that jBoss does not really support 
client-demarcated transactions (because there is no distributed 
transaction manager). However, in my case, my "client" (which must 
manage transactions) is in my Servlet, and with Tomcat+jBoss, they are 
part of the same VM. So in my environment, is it possible for me to do 
client-demarcated transactions after all? If so, how can I obtain a 
UserTransaction from my servlet code?

Thanks

(And please, don't anyone tell me to implement a session facade instead, 
I've got too much code to migrate in too short a time!)

Regards,
Bryan



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



[JBoss-user] (no subject)

2001-04-23 Thread prateeks saxena




Get free email and a permanent address at http://www.netaddress.com/?N=1

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



[JBoss-user] Bad Magic Number

2001-04-23 Thread Jim Cheesman

Hi!
I'm trying to deploy my first ejb (so I freely admit there could be coding 
errors, errors in the xml files etc.) and I get the following exception:


[J2EE Deployer Default] Deploy J2EE application: 
file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/deploy/Athlete.jar
[J2EE Deployer Default] Create application Athlete.jar
[J2EE Deployer Default] install module Athlete.jar
[Container factory] 
Deploying:file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/Athlete.jar/
[Verifier] Verifying 
file:/E:/jdk1.3/jboss-tomcat-2.2/jboss-2.2/tmp/deploy/Default/Athlete.jar/ejb1003.jar
[Verifier] java.lang.ClassFormatError: test/ejb/AthleteBean (Bad magic number)
[Verifier]  at java.lang.ClassLoader.defineClass0(Native Method)
[Verifier]  at java.lang.ClassLoader.defineClass(Unknown Source)
[Verifier]  at java.security.SecureClassLoader.defineClass(Unknown Source)
[Verifier]  at java.net.URLClassLoader.defineClass(Unknown Source)
[Verifier]  at java.net.URLClassLoader.access$100(Unknown Source)
[Verifier]  at java.net.URLClassLoader$1.run(Unknown Source)
[Verifier]  at java.security.AccessController.doPrivileged(Native Method)
[Verifier]  at java.net.URLClassLoader.findClass(Unknown Source)
[Verifier]  at java.lang.ClassLoader.loadClass(Unknown Source)
[Verifier]  at java.lang.ClassLoader.loadClass(Unknown Source)
[Verifier]  at 
org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVerifier11.java:1136)
[Verifier]  at 
org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier11.java:119)
[Verifier]  at 
org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
[Verifier]  at 
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:417)
[Verifier]  at 
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:334)
[Verifier]  at 
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275)
[Verifier]  at java.lang.reflect.Method.invoke(Native Method)
[Verifier]  at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier]  at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier]  at 
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435)
[Verifier]  at 
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178)
[Verifier]  at java.lang.reflect.Method.invoke(Native Method)
[Verifier]  at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Verifier]  at 
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Verifier]  at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
[Verifier]  at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Verifier]  at java.lang.Thread.run(Unknown Source)
**

So what is a "Bad Magic Number"? I tried checking the archives, but they 
don't seem to be working...

*
ejb-jar.xml (slightly snipped):

   
 
   An athlete in frodo
   AthleteBean
   test.ejb.AthleteHome
   test.ejb.AthleteRemote
   test.ejb.AthleteBean
   Container
   test.ejb.AthletePK
   False
   discipline
   number
   reg_type
   flgs_type
...
 
   

   
 
   An AthleteBean
   everyone
 
 
   everyone
   
 AthleteBean
 *
   
 
 
   
 AthleteBean
 *
   
   Required
 
   

*
jboss.xml:

   false
   
   
 
   Frodo
   java:/Frodo
 
   
   
 
   AthleteBean
   athlete/AthleteBean
   
 
   

*

I'm running jboss-tomcat-2.2 on Win2000, jdk1.3.1 rc1.



Any ideas?


Jim

--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Personal: 
[EMAIL PROTECTED] (34) 606 770 244
 Prejudiced people 
are all alike.



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



[JBoss-user] About TOPIC_FACTORY on MDB's sample.

2001-04-23 Thread jsoriano

Hello again:

(JBoss Documentation, Chapter 7 "Writing Message Driven Bean")

After deploying de MDB.class + META-INF i've began to
write the 'Main.java' application in order to send a stuff
to my bean.
The problem arrives when compiling this file, i get the following:

Main.java:9: cannot resolve symbol
symbol: variable TOPIC_FACTORY
location: class Main
         TopicConnectionFactory topicFactory = (TopicConnectionFactory) context.lookup(TOPIC_FACTORY)
                                                                                          ^

1 error

what is 'TOPIC_FACTORY'?

should this variable be declared anywhere?

Thanks in advance!

Regards:
_
Jaume Soriano Sivera <[EMAIL PROTECTED]>
_

[JBoss-user] Why are n't there any docs in the jboss distrubutions

2001-04-23 Thread tbone

Hi,
Why are n't there any docs in the jboss distrubutions.
I wanna experiment with the configuration

Greetz-Tbone

-
This mail sent through Tiscalinet Webmail (http://webmail.tiscalinet.be)

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



Re: [JBoss-user] Jboss problems with session-objects

2001-04-23 Thread Victor Langelo

Each call to a stateless session bean could be handled by a different bean instance.
"Stateless" means there should be no client state maintained by the bean. You
shouldn't be keeping a database connection or statement open accross bean method
calls. If you cannot think of another way of implementing your algorithm, try using a
stateful session bean.

--Victor


René Rolander Nygaard wrote:

> Since no one tries to crack the puzzle, i will give some more information.
>
> Through our speed-testing we are seeing more strange behaviors.
> It seems as JBoss looses the reference to an object if you speed-clicks.
> This can only mean that the problems occurs because the same session is
> trying to access the same object more than once.
>
> The scenario again:
> Session A loads page 1
> page 1 initializes and starts
> page 1 traverse the lists etc.
> page 1 closes all db connections etc.
>
> Now if you click to reload the page before it finishes this happens:
> Session A loads page 1
> page 1 initializes and starts
> page 1 traverse the lists etc.   Session A loads page 1 again!
>  page 1 initializes
>  page 1 traverse the lists etc.
> *page 1 tries to close all db connections etc.
>  page 1 closes all db-connections.
>
> * This fails ! Could it be that the reference from the JSP->bean->stateless
> session bean fails because the same session makes 2 reference to the same
> object ? (This must be a bug!)
> My collegue argues that in theory we can not be 100% sure that the reference
> we get to a stateless session bean is the same when we start a "transaction"
> (starts the page) - as the one we have at the end of the transaction.
> If this is the case, how can we make sure this is the case ?
> This is most likely to occur in heavy-load systems, and i guess most
> stress-test systems to not test for the correct result !?
>
> Please help us out here!!!
>
>  - René Nygaard
>


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



Re: [JBoss-user] JBuilder4 + JBoss

2001-04-23 Thread Burkhard Vogel

BTW,
JBuilder4 would offer a possibility to include additional files into the
META-INF dir (in ejbgrp->Properties) which would be splendid to use to
include my jboss.xml and jaws.xml (for CMP) _BUT_ it is not working for
me... Anyone seen it doing something??
Burkhard
- Original Message -
From: "James Cook" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 3:19 PM
Subject: Re: [JBoss-user] JBuilder4 + JBoss


> - Original Message -
> From: "ZHU Jia" <[EMAIL PROTECTED]>
>
> > Some of you are surely using JBuilder as IDE, right?! Can someone give
some
> > tips about deploying EJBs from JBuilder into JBoss? Can I let JBuilder
> > generate the deployment descriptor?
> > Many thanks in advance!
>
> JBuilder Enterprise has built-in wizards to deploy to WebLogic and their
own
> BAS. You don't need any of them to deploy to jBoss because jBoss's
deployment
> scheme in a development environment is vastly superior. Simply have
JBuilder
> build your archive in the /deploy directory or set up a tool (in
JBuilder
> Menu) to copy this archive to the deploy directory.
>
> They also have a nice deployment descriptor editor that will build the
standard
> ejb-jar.xml and a specific ejb-inprise.xml file. To lookup references
according
> to the EJB spec, you will have to include an jboss.xml descriptor and this
is
> not created by any of Borland's tools. You have to do this one yourself.
It is
> trivial and you can use the JBuilder editor to build it.
>
> jim
>
>
> ___
> 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-RMI-Singleton

2001-04-23 Thread Lisa Bertroff


Mmmm I'm using jBoss 2.0 FINAL. I put a custom conf. in
jboss.xml with min-capacity and max-capacity = 1.
This first time I get the single object the ejbCreate logged

23/Apr - 12:00 [RMI TCP Connection(5)-192.168.10.2] DEBUG 
EJB.tt.SingleInstanceBean - ejbCreate singleInstance: 
drakotech.tt.ejb.tt.SingleInstanceBean@141db6
23/Apr - 12:01 [RMI TCP Connection(7)-192.168.10.2] DEBUG 
EJB.tt.SingleInstanceBean - setSessionContext
23/Apr - 12:01 [RMI TCP Connection(7)-192.168.10.2] DEBUG 
EJB.tt.SingleInstanceBean - ejbCreate singleInstance: 
drakotech.tt.ejb.tt.SingleInstanceBean@358f03
23/Apr - 12:01 [Passivator Thread for SingleInstanceBean] DEBUG 
EJB.tt.SingleInstanceBean - ejbPassivate
23/Apr - 12:01 [Passivator Thread for SingleInstanceBean] DEBUG 
EJB.tt.SingleInstanceBean - ejbPassivate
23/Apr - 12:01 [Passivator Thread for SingleInstanceBean] DEBUG 
EJB.tt.SingleInstanceBean - ejbPassivate
23/Apr - 12:01 [Passivator Thread for SingleInstanceBean] DEBUG 
EJB.tt.SingleInstanceBean - ejbPassivate

As you see, the second time i got another object and jboss entered in 
passivation loop. Jboss showed:[Container factory] java.rmi.ServerException: 
Could not passivate; nested exception is:
[Container factory] java.io.NotSerializableException: 
org.jboss.minerva.datasource.XAPoolDataSource
[Container factory] java.io.NotSerializableException: 
org.jboss.minerva.datasource.XAPoolDataSource
[Container factory] at 
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
[Container factory] at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
[Container factory] at 
java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
[Container factory] at 
java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
[Container factory] at 
java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
[Container factory] at 
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
[Container factory] at 
org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:271)

I think i can't modify the capacity directly, am i rigth?




>From: Rickard Öberg <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] JNDI-RMI-Singleton
>Date: Mon, 23 Apr 2001 15:29:29 +0200
>
>James Cook wrote:
> > It would be nice if jBoss could deploy an enterprise singleton (as an 
>RMI
> > object) to the enterprise JNDI source in the future. I guess from this 
>answer to
> > Lisa's original question, she would have to perform the bind herself.
>
>The RMI singleton should be implemented as a Session Bean. If you want
>to take the home and create an EJBObject and put it into a JNDI-name,
>yes that must be done manually. And yes, that could be put into the
>singleton cache implementation, or it could be put into an MBean.
>
>/Rickard
>
>--
>Rickard Öberg
>Software Development Specialist
>xlurc - Xpedio Linköping Ubiquitous Research Center
>Author of "Mastering RMI"
>Email: [EMAIL PROTECTED]
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user

_
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



RE: [JBoss-user] JBuilder4 + JBoss

2001-04-23 Thread Daniel Cardin

Alternatively, you could use the OpenTools API to extend it with a
specific JBoss deployment facility (even if just to handle
jboss.xml,jaws.xml and copy the file to a deployment directory via the
OS or FTP).

I don't think it's worth it though as people are used to building files
to the /deploy directory. But, if you prefer a fully "integrated"
solution, the OpenTools API is easy to use.

Cheers,

Daniel

ps. if you _do_ write an OpenTool for JBoss, please share it on one of
the OT repositories :)


-Message d'origine-
De : ZHU Jia [mailto:[EMAIL PROTECTED]]
Envoyé : 23 avril, 2001 09:44 
À : [EMAIL PROTECTED]
Objet : Re: [JBoss-user] JBuilder4 + JBoss


Thanks! I'll try it out!

James Cook wrote:
> 
> - Original Message -
> From: "ZHU Jia" <[EMAIL PROTECTED]>
> 
> > Some of you are surely using JBuilder as IDE, right?! Can someone
give some
> > tips about deploying EJBs from JBuilder into JBoss? Can I let
JBuilder
> > generate the deployment descriptor?
> > Many thanks in advance!
> 
> JBuilder Enterprise has built-in wizards to deploy to WebLogic and
their own
> BAS. You don't need any of them to deploy to jBoss because jBoss's
deployment
> scheme in a development environment is vastly superior. Simply have
JBuilder
> build your archive in the /deploy directory or set up a tool
(in JBuilder
> Menu) to copy this archive to the deploy directory.
> 
> They also have a nice deployment descriptor editor that will build the
standard
> ejb-jar.xml and a specific ejb-inprise.xml file. To lookup references
according
> to the EJB spec, you will have to include an jboss.xml descriptor and
this is
> not created by any of Borland's tools. You have to do this one
yourself. It is
> trivial and you can use the JBuilder editor to build it.
> 
> jim
> 
> ___
> 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] JNDI-RMI-Singleton

2001-04-23 Thread James Cook

That is not the same thing as an "enterprise" singleton. One per
enterprise...not VM.

An enterprise singleton object should not be required to have any dependencies
on EJB.

jim

- Original Message -
From: "Rickard Öberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 9:29 AM
Subject: Re: [JBoss-user] JNDI-RMI-Singleton


James Cook wrote:
> It would be nice if jBoss could deploy an enterprise singleton (as an RMI
> object) to the enterprise JNDI source in the future. I guess from this answer
to
> Lisa's original question, she would have to perform the bind herself.

The RMI singleton should be implemented as a Session Bean. If you want
to take the home and create an EJBObject and put it into a JNDI-name,
yes that must be done manually. And yes, that could be put into the
singleton cache implementation, or it could be put into an MBean.

/Rickard

--
Rickard Öberg
Software Development Specialist
xlurc - Xpedio Linköping Ubiquitous Research Center
Author of "Mastering RMI"
Email: [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



Re: [JBoss-user] JBuilder4 + JBoss

2001-04-23 Thread ZHU Jia

Thanks! I'll try it out!

James Cook wrote:
> 
> - Original Message -
> From: "ZHU Jia" <[EMAIL PROTECTED]>
> 
> > Some of you are surely using JBuilder as IDE, right?! Can someone give some
> > tips about deploying EJBs from JBuilder into JBoss? Can I let JBuilder
> > generate the deployment descriptor?
> > Many thanks in advance!
> 
> JBuilder Enterprise has built-in wizards to deploy to WebLogic and their own
> BAS. You don't need any of them to deploy to jBoss because jBoss's deployment
> scheme in a development environment is vastly superior. Simply have JBuilder
> build your archive in the /deploy directory or set up a tool (in JBuilder
> Menu) to copy this archive to the deploy directory.
> 
> They also have a nice deployment descriptor editor that will build the standard
> ejb-jar.xml and a specific ejb-inprise.xml file. To lookup references according
> to the EJB spec, you will have to include an jboss.xml descriptor and this is
> not created by any of Borland's tools. You have to do this one yourself. It is
> trivial and you can use the JBuilder editor to build it.
> 
> jim
> 
> ___
> 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] JAWS fun with JTurbo and Oracle

2001-04-23 Thread Theo Harper

Hi,

I've been using JBoss for a couple of weeks now, (to replace J2EE RI 1.2.1)
and I've been very impressed with its performance and reliability (not to
mention the fact it is Open Source).  I am having a couple of interesting
problems that I'd like some feedback on:

Has anyone tried using JTurbo 2 with JBoss 2.3 (latest source)?  I have
found that JTurbo does not support:

setObject(1, new Long(123), java.sql.Types.Decimal);

which means that the standard Jaws behaviour to create Decimal types for
Longs does not work out of the box.

java.lang.Long
DECIMAL
DECIMAL(20)
  

I have changed the jdbc-type to BIGINT and this works okay.  This is not
really a problem with JBoss but interesting to note.  SQL Server 2000
supports BIGINT so the problem does not manifest itself.

The second problem is to do with Oracle and column names.  We have an Entity
Bean with a property "Date".  Unfortunately, the default behaviour for JAWS
is to use the name of the property without quoting it, resulting in a create
statement as follows:

CREATE TABLE TestBeanCMPTable (Date NUMBER(19)).

Executing this gives CREATE "ORA-00904: invalid column name" as Date is a
reserved keyword.  However quoting this (as J2EE 1.2.1 does) overcomes this.
What do people think about JBoss/JAWS having this behavior by default, will
it cause problems with out databases?  Seems to work find for Cloudscape,
Oracle and SQL Server 6.5/7/2k.  My current fix is to specify the name of
the table and columns in the jaws.xml.

Thanks,

Theo

--
Theo Harper  Direct: +44 (0)1252 556755
Principal Technical Architect Reception: +44 (0)1252 556000
Systems Union Holdings  Fax: +44 (0)1252 556001
http://www.systemsunion.com mailto:[EMAIL PROTECTED]

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



Re: [JBoss-user] JNDI-RMI-Singleton

2001-04-23 Thread Rickard Öberg

James Cook wrote:
> It would be nice if jBoss could deploy an enterprise singleton (as an RMI
> object) to the enterprise JNDI source in the future. I guess from this answer to
> Lisa's original question, she would have to perform the bind herself.

The RMI singleton should be implemented as a Session Bean. If you want
to take the home and create an EJBObject and put it into a JNDI-name,
yes that must be done manually. And yes, that could be put into the
singleton cache implementation, or it could be put into an MBean.

/Rickard

-- 
Rickard Öberg
Software Development Specialist
xlurc - Xpedio Linköping Ubiquitous Research Center
Author of "Mastering RMI"
Email: [EMAIL PROTECTED]

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



Re: [JBoss-user] Jetty vs. Tomcat

2001-04-23 Thread toby cabot

> Does anyone have any opinions as to which contain is more robust,
> easier to use and such?

There was a slashdot story about Tomcat over the weekend which sparked a
whole bunch of posts about just this topic.  As always, take /. with a
grain of salt...




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



Re: [JBoss-user] JNDI-RMI-Singleton

2001-04-23 Thread James Cook

It would be nice if jBoss could deploy an enterprise singleton (as an RMI
object) to the enterprise JNDI source in the future. I guess from this answer to
Lisa's original question, she would have to perform the bind herself.

jim

- Original Message -
From: "Rickard Öberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 5:58 AM
Subject: Re: [JBoss-user] JNDI-RMI-Singleton


Lisa Bertroff wrote:
> I´m trying to create a single object for the the application (singleton).
> I think using a JNDI remote object is the solution but
> I can´t find any example. Where can I find one?

Make a session bean and use the singleton configuration (see
standard-jboss.xml) . This will make sure that only one instance of your
bean is created.

/Rickard

--
Rickard Öberg
Software Development Specialist
xlurc - Xpedio Linköping Ubiquitous Research Center
Author of "Mastering RMI"
Email: [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



Re: [JBoss-user] JBuilder4 + JBoss

2001-04-23 Thread James Cook

- Original Message -
From: "ZHU Jia" <[EMAIL PROTECTED]>

> Some of you are surely using JBuilder as IDE, right?! Can someone give some
> tips about deploying EJBs from JBuilder into JBoss? Can I let JBuilder
> generate the deployment descriptor?
> Many thanks in advance!

JBuilder Enterprise has built-in wizards to deploy to WebLogic and their own
BAS. You don't need any of them to deploy to jBoss because jBoss's deployment
scheme in a development environment is vastly superior. Simply have JBuilder
build your archive in the /deploy directory or set up a tool (in JBuilder
Menu) to copy this archive to the deploy directory.

They also have a nice deployment descriptor editor that will build the standard
ejb-jar.xml and a specific ejb-inprise.xml file. To lookup references according
to the EJB spec, you will have to include an jboss.xml descriptor and this is
not created by any of Borland's tools. You have to do this one yourself. It is
trivial and you can use the JBuilder editor to build it.

jim


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



RE: [JBoss-user] Build-up of INACTIVE oracle connections

2001-04-23 Thread Richard Conway


Thanks for the advice.
If I turn on logging, what can I expect to see. Will I be able to tell if
have a connection-leak for example.

Richard.

-Original Message-
From: Guy Rouillier [mailto:[EMAIL PROTECTED]]
Sent: 21 April 2001 10:20
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Build-up of INACTIVE oracle connections


Start by confirming your suspicions.  Put the following line into your MBean
configuration in jboss.jcml:

false

Now watch the Jboss log, and see if your connections are being reused or
not.

- Original Message -
From: "Richard Conway" <[EMAIL PROTECTED]>
To: "JBoss User List" <[EMAIL PROTECTED]>
Sent: Friday, April 20, 2001 8:04 AM
Subject: [JBoss-user] Build-up of INACTIVE oracle connections


>
> I am experiencing a problem whereby there is a build-up of INACTIVE
> connections to our Oracle database. If I drive the system for approx.
twenty
> minutes with ten concurrent users then we get an ORA-00020 error (max
> processes exceeded). The Oracle process limit is set to 200.
>
> We are running JBoss 2.0 FINAL on a Solaris 2.6 platform.
>
> Our system consists of about 15 EJBs packaged into a single jar file. The
> EJBs all use the same datasource configured as follows:
>
> jboss.conf
> --
>  ARCHIVE="jboss.jar,oracle12.jar" CODEBASE="../../lib/ext/">
> 
>  VALUE="org.jboss.minerva.xa.XADataSourceImpl">
> 
>
>
> jboss.jcml
> --
>   name="DefaultDomain:service=XADataSource,name=jdbc/MyDataSource">
>
>jdbc:oracle:thin:@myhost:1521:mydb
>120
>myuser
>0
>mypassword
>false
>false
>false
>true
>12
>180
>false
>false
>1.0
>0
>  
>
> The sessions are all shown as INACTIVE in Oracle's v$session table.
>
> We have been very careful in our EJBs to include the closure of the
> Connection in a finally block. I therefore feel it is unlikely to be a
> 'connection-leak' from within the application code.
>
> What baffles me is why the JBoss connection pool does not reuse the
INACTIVE
> connections, instead prefering to create new ones. Does this suggest that
> there is a problem with my configuration.
>
> Any suggestions much appreciated.
> Richard.
>
> ---
> Richard Conway ([EMAIL PROTECTED])
> ---
> This message is confidential; its contents do not constitute a commitment
by
> The VEGA Group PLC except where provided for in a written agreement
between
> you and The VEGA Group PLC. Any unauthorised disclosure, use or
> dissemination, either whole or partial, is prohibited. If you are not the
> intended recipient of the message, please notify the sender immediately.
>
>
>
> ___
> 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] JNDI-RMI-Singleton

2001-04-23 Thread Lisa Bertroff


I suppose the pool size is in jboss.xml but there is no documentation of it 
in "configuration : use of jboss.xml"??

>From: "David Barber" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED] container To: 
><[EMAIL PROTECTED]>
>Subject: Re: [JBoss-user] JNDI-RMI-Singleton
>Date: Sun, 22 Apr 2001 11:07:11 -0700
>
>Could you just set your pool size to 1?
>
>DB
>
>
>- Original Message -
> > I´m trying to create a single object for the the application 
>(singleton).
> > I think using a JNDI remote object is the solution but
> > I can´t find any example. Where can I find one?
> >
>
>
>
>___
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user

_
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] jaws.xml DTD

2001-04-23 Thread Reynir Hübner

Where do I find Jaws.xml DTD?

It´s mentioned in the http://www.jboss.org/documentation/HTML/ch05.html

I would like to take a look at it.

thanx,
Reynir 


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



Re: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)

2001-04-23 Thread Bill Pfeiffer

Scott,

Downloaded integrated package for JBoss 2.2.1 + Tomcat 3.2.1 and deployed my
.ear and all worked fine.  Reviewed differences between integrated and
non-integrated server config files and found that my tomcat server.xml had
the jboss stuff commented out from previous trials.  I then made sure that
the integrated download and my existing server config files matched, and all
works well.

My original problem must have been in my WAR configuration.  By the time I
got that fixed, I had commented out the jboss lines in the Tomcat
server.xml.  So it never worked.  Funny thing is, both problems yeilded the
same ClassNotFoundException.

Thanks for the pointer on downloading the Jboss 2.2.1+Tomcat 3.2.1.  Again,
all is working now!!

Thanks,

Bill Pfeiffer

- Original Message -
From: "Scott M Stark" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 22, 2001 11:43 PM
Subject: Re: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)


> Yes 2.2.1 was tested with tomcat and there is a JBoss2.2.1+Tomcat3.2.1
bundle
> so try it.
>
> - Original Message -
> From: "Bill Pfeiffer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, April 22, 2001 7:19 PM
> Subject: Re: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)
>
>
> > Dewayne,
> >
> > I do not get the ClassNotFoundException when I deploy on the integrated
> > JBoss 2.2 + Tomcat 3.21 download.  I am now only getting it on the JBoss
> > 2.2.1 that I manually integrated with Tomcat 3.21.  Do you know if the
2.2.1
> > JBoss has been tested with the integrated Tomcat?
> >
> > Thanks,
> >
> > Bill Pfeiffer
> >
> >
>
>
>
> ___
> 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] Tomcat-JBoss ClassNotFoundException (again)

2001-04-23 Thread Bill Pfeiffer

I have it working now on JBoss 2.2.1 + Tomcat 3.2.1.  My problem was never
having the right server configuration settings and WAR setup correct at the
same time.  I resolved this and all is working well.

Thanks,

Bill Pfeiffer
- Original Message -
From: "Dain Sundstrom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 1:46 AM
Subject: RE: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)


> Bill,
>
> I have a fairly complicated application successfully working on JBoss
2.2.1.
> My application uses struts and cmp beans. I can give you information about
> how I package my ear file, but if you tell me which classes the system is
> having trouble finding, I can give a more specific answer.
>
> -dain
>
> -Original Message-
> From: Bill Pfeiffer [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 22, 2001 9:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)
>
>
> Jim,
>
> Thanks for the grain of hope.  I kept plugging and deployed the JBoss
> test-tomcat.ear on my JBoss 2.2.1 installation and watched it get the same
> class not found error.  I then tried the test_tomcat.ear on the
JBoss-Tomcat
> (2.2 + 3.21) integrated version that you can download.  This worked.  I
then
> deployed my test ear to this installation.  This also worked.  I then
> deployed my real app.  IT WORKED!!
>
> My conclusion based on my shaky evidence is that the deployment on JBoss
> 2.2.1 and Tomcat does not work.
>
> I will back my development off to JBoss 2.2 instead of 2.2.1.
>
> Thanks again for the feedback,
>
> Bill Pfeiffer
>
> - Original Message -
> From: "Jim Archer" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, April 21, 2001 2:48 AM
> Subject: Re: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)
>
>
> > Just to give Bill some hope, I have a complex J2EE EAR app that I deploy
> > using jBoss-Tomcat daily, and have been for what seems like ages now
(you
> > know how development can take forever...)...
> >
> > My EAR has one jar and one war and the servlets in the war call the EJBs
> > inthe jar. Some time ago, I had to include some of the EJBs in the WAR.
I
> > don't know if that is still required, but my scripts still do it and it
> > still works.
> >
> > Good luck!
> >
> > Jim
> >
> >
> > --On Friday, April 20, 2001 9:09 PM -0500 Dewayne McNair
> > <[EMAIL PROTECTED]> wrote:
> >
> > > [I didn't copy this to the list on purpose...]
> > >
> > > I think there is a bug in the deployer... I'm looking through the
source
> > > code now, I'll let you know if I find anything.
> > >
> > > Just for reference, can you send me a description of your EAR?
> > >
> > > Thanks,
> > >
> > > Dewayne
> > >
> > > - Original Message -
> > > From: "Bill Pfeiffer" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Friday, April 20, 2001 8:14 PM
> > > Subject: Re: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)
> > >
> > >
> > >> I should have been more explicit when discussing what I've tried.
I've
> > >> reviewed the j2ee deployment steps as well as the Tomcat how-to.
After
> > >> walking through the explicit steps of both documents and experiencing
> > >> failure, I looked for subtleties that I may have missed, tried
> > >> variations. More failure.
> > >>
> > >> Then there is the tomcat-test.ear, which I watch work every time.  I
> > > modeled
> > >> my deployment exactly after this in at least one of my varied
attempts
> > >> and failed.  Note that this tomcat-test.ear actually includes the ejb
> > > interface
> > >> classes in the WAR file (I've tried this), as well as providing a
> client
> > > jar
> > >> containing those files in the ear file(also tried that).  This
> inclusion
> > > of
> > >> classes directly into the WAR's "classes" dir is not indicated in the
> > >> j2ee deployment guide nor in the j2ee spec that I've seen.
> > >>
> > >> Do you actually have a non-trivial (something other than the
> > >> tomcat-test.ear) j2ee application deployed and working?  It would
> > > certainly
> > >> give me hope to keep plugging along.
> > >>
> > >>
> > >> Bill Pfeiffer
> > >>
> > >>
> > >> - Original Message -
> > >> From: "Victor Lan" <[EMAIL PROTECTED]>
> > >> To: <[EMAIL PROTECTED]>
> > >> Sent: Friday, April 20, 2001 12:17 AM
> > >> Subject: Re: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)
> > >>
> > >>
> > >> > In addition to the tomcat+jboss howto, you should read the
> "Deployment
> > >> > on JBoss" section.
> > >> >
> > >> > Also, get the tomcat-test.ear app from the contrib suite to see how
> > >> > it's done.
> > >> >
> > >> > It does work.
> > >> >
> > >> > Victor
> > >> >
> > >> > - Original Message -
> > >> > From: "Bill Pfeiffer" <[EMAIL PROTECTED]>
> > >> > Date: Thursday, April 19, 2001 11:37 pm
> > >> > Subject: [JBoss-user] Tomcat-JBoss ClassNotFoundException (again)
> > >> >
> > >> > > Has anyone successfully deployed a non trivial .ear (ie someth

[JBoss-user] unsubscribe

2001-04-23 Thread Tuang, Myron



 

  -Original Message-From: Dain Sundstrom 
  [mailto:[EMAIL PROTECTED]]Sent: 23 April 2001 06:35To: 
  '[EMAIL PROTECTED]'Subject: RE: [JBoss-user] 
  jboss2.2.1-tomcat3.2.1 w/ struts 1.0_b1 ... does it work
  I 
  had this same problem.  Try changing the order of your declarations in 
  the web.xml file.  For me, the problem went away when I move the security 
  section to the very end of my web.xml file.  
   
  One 
  thing I noticed in the log file is that it appears that you have six tag 
  libraries listed in your web.xml.  The struts team has depreciated two 
  tag libraries: struts.tld and struts-form.tld.  
   
  Any 
  way, a listing of the web.xml file that I have been using 
  follows:
   
  
   
    PUBLIC "-//Sun Microsystems, 
  Inc.//DTD Web Application 2.2//EN"  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
   
  
   
     
   
     action  org.apache.struts.action.ActionServlet application   ApplicationResources   config   /WEB-INF/struts-config.xml   debug   2   detail   2   validate   true2 
   
     action  *.do 
   
     
   
     index.jsp 
   
    /WEB-INF/struts-bean.tld  /WEB-INF/struts-bean.tld/WEB-INF/struts-html.tld  /WEB-INF/struts-html.tld/WEB-INF/struts-logic.tld  /WEB-INF/struts-logic.tld 
   
     /WEB-INF/struts-logic.tld  /WEB-INF/struts-logic.tld 
   
   util   /util/*   *.do   user   FORM /index.jsp   /index.jsp   
  -dain
  
-Original Message-From: G.L. Grobe 
[mailto:[EMAIL PROTECTED]]Sent: Sunday, April 22, 2001 8:23 
PMTo: [EMAIL PROTECTED]Subject: 
[JBoss-user] jboss2.2.1-tomcat3.2.1 w/ struts 1.0_b1 ... does it 
work
Just started using JBoss and am wondering 
if anyone has 
had any success w/ getting struts to work w/ JBoss2.2.1-Tomcat3.2.1. In my 
J2EE app, I'm having problems with the web-app portion below. Seems 
it's not liking my web.xml tags and I've already pulled out tags like 
, now it's not liking the  tags of 
struts and I'm not sure what's supposed to be where now. 

 
Any help appreciated.
 
-- partial jboss output 
when loading my *.ear ---
 
[Service Control] Started 25 
services[Default] JBoss 2.2.1 Started in 0m:55s[EmbeddedTomcat] 
Warning: validation was turned on but an org.xml.sax.ErrorHandler was 
not[EmbeddedTomcat] set, which is probably not what is desired.  
Parser will use a default[EmbeddedTomcat] ErrorHandler to print the 
first 10 errors.  Please call[EmbeddedTomcat] the 'setErrorHandler' 
method to fix this.[EmbeddedTomcat] Error: URI=null Line=53: Element 
"web-app" does not allow "taglib" here.[EmbeddedTomcat] Error: URI=null 
Line=58: Element "web-app" does not allow "taglib" here.[EmbeddedTomcat] 
Error: URI=null Line=63: Element "web-app" does not allow "taglib" 
here.[EmbeddedTomcat] Error: URI=null Line=68: Element "web-app" does 
not allow "taglib" here.[EmbeddedTomcat] Error: URI=null Line=73: 
Element "web-app" does not allow "taglib" here.[EmbeddedTomcat] Warning: 
validation was turned on but an org.xml.sax.ErrorHandler was 
not[EmbeddedTomcat] set, which is probably not what is desired.  
Parser will use a default[EmbeddedTomcat] ErrorHandler to print the 
first 10 errors.  Please call[EmbeddedTomcat] the 'setErrorHandler' 
method to fix this.[EmbeddedTomcat] Error: URI=null Line=53: Element 
"web-app" does not allow "taglib" here.[EmbeddedTomcat] Error: URI=null 
Line=58: Element "web-app" does not allow "taglib" here.[EmbeddedTomcat] 
Error: URI=null Line=63: Element "web-app" does not allow "taglib" 
here.[EmbeddedTomcat] Error: URI=null Line=68: Element "web-app" does 
not allow "taglib" here.[EmbeddedTomcat] Error: URI=null Line=73: 
Element "web-app" does not allow "taglib" here.2001-04-22 06:35:34 - 
Ctx(  ): JasperException: R(  + /index.jsp + null) Unable to 
compile class for 
JSP/u/public/JBoss-2.2.1_Tomcat-3.2.1/tomcat/work/localhost_8080/_0002findex_0002ejspindex_jsp_0.java:66: 
Class org.apache.struts.taglib.html.HtmlTag not 
found.


Re: [JBoss-user] Error compiling MDB.java

2001-04-23 Thread Peter Antman

On 23 Apr, [EMAIL PROTECTED] wrote:
> Hello everybody:
> 
> Nowadays i'm beggining with MDB in JBoss and to undersand
> how to implement it in my applications i've copied the MDB.java
> example from the JBoss documentation (Writing Message Driven Beans 
> section).
> When i try to compile this sample i get the following (these are part of 
> the full message):
> 
> /JBoss-2.2.1_Tomcat-3.2.1/jboss/test/bean/MDB.java:4:cannot resolve symbol 
> :
> class MessageDrivenBean;
> ^
> location: package ejb
> import javax.ejb.MessageDrivenContext;
>  ^
> 
> ...
> and the same to package jbs and others.
> 
> Have to indicate another 'jar' file in addition to 'ejb.jar' to compile 
> this file?
> 

Yes ejb2.0.jar, and jms.jar.

//Peter


> Using: JBoss 2.2.1
> Java:   JDK 1.3
> O.S.: Linux RedHat 6.1
> 
> 
> Thanks in advance.
> _
> Jaume Soriano Sivera <[EMAIL PROTECTED]>
> _
-- 
Jobba hos oss: http://www.tim.se/weblab

Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems ArchitectWWW: http://www.tim.se
Email: [EMAIL PROTECTED]WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942 



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



[JBoss-user] Jboss problems with session-objects

2001-04-23 Thread René Rolander Nygaard

Since no one tries to crack the puzzle, i will give some more information.

Through our speed-testing we are seeing more strange behaviors.
It seems as JBoss looses the reference to an object if you speed-clicks.
This can only mean that the problems occurs because the same session is
trying to access the same object more than once.

The scenario again:
Session A loads page 1
page 1 initializes and starts
page 1 traverse the lists etc.
page 1 closes all db connections etc.

Now if you click to reload the page before it finishes this happens:
Session A loads page 1
page 1 initializes and starts
page 1 traverse the lists etc.   Session A loads page 1 again!
 page 1 initializes
 page 1 traverse the lists etc.
*page 1 tries to close all db connections etc. 
 page 1 closes all db-connections.

* This fails ! Could it be that the reference from the JSP->bean->stateless
session bean fails because the same session makes 2 reference to the same
object ? (This must be a bug!)
My collegue argues that in theory we can not be 100% sure that the reference
we get to a stateless session bean is the same when we start a "transaction"
(starts the page) - as the one we have at the end of the transaction.
If this is the case, how can we make sure this is the case ?
This is most likely to occur in heavy-load systems, and i guess most
stress-test systems to not test for the correct result !?

Please help us out here!!!

 - René Nygaard


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: 20. april 2001 10:45
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] problems with speed-clicking. The "handle" to the
> JBoss session bean is lost or refreshed!
> 
> 
> Hello again JBoss people.
> 
> Our "e-mall" is almost ready for consumers. 
> The first test-stores are on-line and making test's to the system.
> Our own tests are also running fine, we make small progress every day,
> getting more experience with JBoss and the EJB concept.
> We do however have one question - 
> We are using a resultset to select items from the mall to the customer.
> At first we had a SQLManager object inside JBoss which made the
> select-statement, remembered the resultset, and we called 
> nextRecord etc. on
> this object. This is really slow, but is very generel, and easy to use.
> So - the first optimization step was to return the resultset to the bean,
> and let the bean traverse the resultset.
> This made the select much faster, and currently we are using this feature.
> BUT - we noticed that when we force the browser to load pages before the
> last one finished, the DBpool is drained. The code that should return the
> connection to the pool is never called.
> After studying our log-files, we notice that the connection from 
> the bean to
> the JBoss stateless session bean.
> Here are the log files with comments:
> 
> The number in () is a bean-id so we can follow this bean through 
> the system.
> this section is a "good" example
> 10:21:05,307 DEBUG JSP:ShowItems - (987754865307) Will get webData
> 10:21:05,307 DEBUG ItemPriceBean - (beanId=987754865307)
> getWebDataByCategoryAndStore(13,null)
> 10:21:05,397 DEBUG ItemPriceBean - (beanId=987754865307) Successfully
> got ref to itemPriceDAOEJB
> 10:21:05,407 DEBUG ItemPriceDAOEJBBean - (beanId=987754865307)
> selectResultSet - Start
> 10:21:05,407 INFO  root InterBaseDB - No transaction right now.
> 10:21:05,407 INFO  root InterBaseDB - Pool InterBaseDB [1/1/10] gave out
> pooled object: 
> org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@45f743
> 10:21:05,407 DEBUG ItemPriceDAOEJBBean - (beanId=987754865307) Got
> 'java:comp/env/jdbc/DBPool' handle
> 10:21:05,407 DEBUG ItemPriceDAOEJBBean - (beanId=987754865307) Did
> _conn.createStatement()
> 10:21:05,407 DEBUG ItemPriceDAOEJBBean - (beanId=987754865307)
> selectResultSet - Did initDB
> 10:21:05,417 INFO  ItemPriceDAOEJBBean - 
> (beanId=987754865307) Executing
> query...: SELECT NAME, ITEMID, PRICE, PICTURE, STOREID, DESCRIPTION FROM
> ITEMPRICEEJB WHERE CATEGORYID = 13 AND STOREID = 'null' AND NAME !=''
> 10:21:06,078 DEBUG ItemPriceDAOEJBBean - (beanId=987754865307)
> selectResultSet - Did queryreturning
> 10:21:06,078 DEBUG ItemPriceDAOEJBBean - (beanId=987754865307) --All
> closed!-- (context that is!)
> 10:21:06,078 DEBUG ItemPriceBean - (beanId=987754865307) Time to fetch
> data (JavaBean layer): 671
> 10:21:06,088 DEBUG ItemPriceBean - (beanId=987754865307) retrieved 6
> items
> 10:21:06,088 DEBUG JSP:ShowItems - (987754865307) Time to fetch data
> (JSP layer): 781
> 10:21:06,088 DEBUG JSP:ShowItems - (987754865307)
> itemprice.gotoNextItem()
> 10:21:06,088 DEBUG JSP:ShowItems - (987754865307)
> itemprice.gotoNextItem() proceed=false
> 10:21:06,088 DEBUG JSP:ShowItems - (987754865307)
> itemprice.gotoNex

Re: [JBoss-user] JNDI-RMI-Singleton

2001-04-23 Thread Rickard Öberg

Lisa Bertroff wrote:
> I´m trying to create a single object for the the application (singleton).
> I think using a JNDI remote object is the solution but
> I can´t find any example. Where can I find one?

Make a session bean and use the singleton configuration (see
standard-jboss.xml) . This will make sure that only one instance of your
bean is created.

/Rickard

-- 
Rickard Öberg
Software Development Specialist
xlurc - Xpedio Linköping Ubiquitous Research Center
Author of "Mastering RMI"
Email: [EMAIL PROTECTED]

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



RE: [JBoss-user] jboss2.2.1-tomcat3.2.1 w/ struts 1.0_b1 ... does it work

2001-04-23 Thread Bordet, Simone



Hey,
 
I had 
the same problem.
Using 
validating parsers requires the ordering of the XML element exactly as defined 
by the DTD. Previously I also got Element "xxx" does not allow "yyy" here, 
but the exact ordering made it working.
 
HTH,
 
Simon

  -Original Message-From: G.L. Grobe 
  [mailto:[EMAIL PROTECTED]]Sent: lunedì 23 aprile 2001 
  3:23To: [EMAIL PROTECTED]Subject: 
  [JBoss-user] jboss2.2.1-tomcat3.2.1 w/ struts 1.0_b1 ... does it 
  work
  Just started using JBoss and am wondering 
  if anyone has had 
  any success w/ getting struts to work w/ JBoss2.2.1-Tomcat3.2.1. In my J2EE 
  app, I'm having problems with the web-app portion below. Seems it's not 
  liking my web.xml tags and I've already pulled out tags like 
  , now it's not liking the  tags of 
  struts and I'm not sure what's supposed to be where now. 
  
   
  Any help appreciated.
   
  -- partial jboss output when 
  loading my *.ear ---
   
  [Service Control] Started 25 
  services[Default] JBoss 2.2.1 Started in 0m:55s[EmbeddedTomcat] 
  Warning: validation was turned on but an org.xml.sax.ErrorHandler was 
  not[EmbeddedTomcat] set, which is probably not what is desired.  
  Parser will use a default[EmbeddedTomcat] ErrorHandler to print the first 
  10 errors.  Please call[EmbeddedTomcat] the 'setErrorHandler' method 
  to fix this.[EmbeddedTomcat] Error: URI=null Line=53: Element "web-app" 
  does not allow "taglib" here.[EmbeddedTomcat] Error: URI=null Line=58: 
  Element "web-app" does not allow "taglib" here.[EmbeddedTomcat] Error: 
  URI=null Line=63: Element "web-app" does not allow "taglib" 
  here.[EmbeddedTomcat] Error: URI=null Line=68: Element "web-app" does not 
  allow "taglib" here.[EmbeddedTomcat] Error: URI=null Line=73: Element 
  "web-app" does not allow "taglib" here.[EmbeddedTomcat] Warning: 
  validation was turned on but an org.xml.sax.ErrorHandler was 
  not[EmbeddedTomcat] set, which is probably not what is desired.  
  Parser will use a default[EmbeddedTomcat] ErrorHandler to print the first 
  10 errors.  Please call[EmbeddedTomcat] the 'setErrorHandler' method 
  to fix this.[EmbeddedTomcat] Error: URI=null Line=53: Element "web-app" 
  does not allow "taglib" here.[EmbeddedTomcat] Error: URI=null Line=58: 
  Element "web-app" does not allow "taglib" here.[EmbeddedTomcat] Error: 
  URI=null Line=63: Element "web-app" does not allow "taglib" 
  here.[EmbeddedTomcat] Error: URI=null Line=68: Element "web-app" does not 
  allow "taglib" here.[EmbeddedTomcat] Error: URI=null Line=73: Element 
  "web-app" does not allow "taglib" here.2001-04-22 06:35:34 - Ctx(  ): 
  JasperException: R(  + /index.jsp + null) Unable to compile class for 
  JSP/u/public/JBoss-2.2.1_Tomcat-3.2.1/tomcat/work/localhost_8080/_0002findex_0002ejspindex_jsp_0.java:66: 
  Class org.apache.struts.taglib.html.HtmlTag not 
  found.


[JBoss-user] Startup class problem!

2001-04-23 Thread mahesh bohra

Hi!

I trying to start a startup class using jboss from
another JVM outside JBOss server.
The following is the summary that i had performed.
1. Jboss server(2.2.1) is started with my session bean
successfullt deployed inside it. 
2. Started a Starter class (from other JVM) which
basically binds with jboss naming successfully.
3. The session bean deployed earlier would forward all
reuqests to the Starter class using RMI. This
basically does not work. 
4. When a client calls my home beans create() method,
I get the following error:
Got context
Got reference
The home object SnmpTargetEJBHome
Exception:javax.ejb.CreateException: Could notss
connect to SNMP server. Check server configuration:
java.l
ang.NullPointerException
javax.ejb.CreateException: Could notss connect to SNMP
server. Check server configuration: java.lang.NullPo
interException
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 $Proxy0.create(Unknown Source)
at ejbget.main(ejbget.java:55)

Can anyone put some light on this.
Thanx in advance.

Regards,
Mahesh.


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

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



[JBoss-user] JBoss or JOnAS

2001-04-23 Thread jquest jquest

Hi all,
I am looking for good EJB-Server.
I hope JBoss is goog.
My problem:
I need very good ( GUI) deployment tools as by SUM ( deploytool).
Exist in JBoss such deploy tool?

Thanks in advance for the help.

_
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



Re: [JBoss-user] problem deploying ear file

2001-04-23 Thread Jim Archer

Hi David...

It looks like you have a deployment descriptor error. You seem to have a 
stateless session bean called ValidateUser (as you said) but for the home 
and remote interface names in the descriptor you probably didn't specify 
the full name of the class, like org.my.package.name.ValidateUser instead 
of ValidateUser.

Check that and see if its your problem.

Jim

--On Sunday, April 22, 2001 10:55 PM -0400 David L Solomon 
<[EMAIL PROTECTED]> wrote:

> I am running jboss 2.2.1, with embedded tomcat 3.2.1 on windows nt 4.0,
> sp6.
>
> when I try to deploy an ear file containing my ejb ( ValidateUser in
> 'database' package ), I get the following error:
> What is the verifier trying to tell me.  Thanks.
>
>
>
>
> [Auto deploy] Auto deploy of
> file:/D:/JBoss-2.2.1_Tomcat-3.2.1/jboss/deploy/four
> plebs.ear
> [J2EE Deployer Default] Deploy J2EE application:
> file:/D:/JBoss-2.2.1_Tomcat-3.2
> .1/jboss/deploy/fourplebs.ear
> [J2EE Deployer Default] Create application fourplebs.ear
> [J2EE Deployer Default] install module fourplebs.ear
> [Container factory]
> Deploying:file:/D:/JBoss-2.2.1_Tomcat-3.2.1/jboss/tmp/deploy
> /Default/fourplebs.ear
> [Verifier] Verifying
> file:/D:/JBoss-2.2.1_Tomcat-3.2.1/jboss/tmp/deploy/Default/
> fourplebs.ear/ejb1001.jar
> [Verifier]
> Bean   : ValidateUser
> Section: 16.2
> Warning: The Bean Provider must specify the fully-qualified name of the
> Java cla
> ss that implements the enterprise bean's business methods.
>
> [Verifier]
> Bean   : ValidateUser
> Section: 16.2
> Warning: The Bean Provider must specify the fully-qualified name of the
> enterpri
> se bean's home interface in the home element.
>
> [Verifier]
> Bean   : ValidateUser
> Section: 16.2
> Warning: The Bean Provider must specify the fully-qualified name of the
> enterpri
> se bean's remote interface in the remote element.
>
> [Container factory] Deploying ValidateUser
> [Container factory] java.lang.ClassNotFoundException:
> database.ValidateUserHome
> [Container factory] at
> java.net.URLClassLoader$1.run(URLClassLoader.java:200
> )
> [Container factory] at
> java.security.AccessController.doPrivileged(Native Me
> thod)
> [Container factory] at
> java.net.URLClassLoader.findClass(URLClassLoader.java
> :188)
> [Container factory] at
> java.lang.ClassLoader.loadClass(ClassLoader.java:297)
>
> [Container factory] at
> java.lang.ClassLoader.loadClass(ClassLoader.java:253)
>
> [Container factory] at
> org.jboss.ejb.StatelessSessionContainer.init(Stateles
> sSessionContainer.java:137)
> [Container factory] at
> org.jboss.ejb.Application.init(Application.java:183)
> [Container factory] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
> y.java:337)
> [Container factory] at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactor
> y.java:275)
> [Container factory] at java.lang.reflect.Method.invoke(Native Method)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1628)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1523)
> [Container factory] at
> org.jboss.deployment.J2eeDeployer.startApplication(J2
> eeDeployer.java:435)
> [Container factory] at
> org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer
> .java:178)
> [Container factory] at java.lang.reflect.Method.invoke(Native Method)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1628)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1523)
> [Container factory] at
> org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:3
> 58)
> [Container factory] at
> org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
>
> [Container factory] at
> org.jboss.ejb.AutoDeployer.startService(AutoDeployer.
> java:332)
> [Container factory] at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBean
> Support.java:93)
> [Container factory] at java.lang.reflect.Method.invoke(Native Method)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1628)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1523)
> [Container factory] at
> org.jboss.util.ServiceControl.start(ServiceControl.ja
> va:97)
> [Container factory] at java.lang.reflect.Method.invoke(Native Method)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1628)
> [Container factory] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe
> rverImpl.java:1523)
> [Container factory] at org.jboss.Main.(Main.java:203)
> [Container factory] at org.jboss.Main$1.run(Main.java:107)
> [Container factory] at
> java.security.AccessController.doPrivileged(Native Me
> thod)
> [Container factory] at org.jboss.Main.main(Main.java:103)
> [J2EE Deployer Default] Starting fourpleb

[JBoss-user] Can I move directories that need to be written to?

2001-04-23 Thread Jim Archer


Hi All...

We have been working to install jBoss 2.2.1 on a Debian/Linux system. In a 
Debian system, app servers with no package management are best installed 
under usr/local/share.

For security reasons, applications running from there should not be able to 
write and data in that tree. This is to prevent various exploits from 
changing the program code and doing other things.

Typically, data from apps installed under usr/local/share is written under 
/var but binary executables are not.

We attempted to configure the jBoss/Tomcat 2.2.1 bundle so that anywhere 
jBoss or Tomcat had to write was in a directory below /var while jBoss was 
installed below /usr, but no luck. We were not sure is this is possible. We 
did review the mail list and the docs. As near as we can tell, inthe case 
of jBoss, it writes to /log and /tmp. Anywhere else?

Any hints?

Thanks!

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] JBuilder4 + JBoss

2001-04-23 Thread ZHU Jia

Hi,

Some of you are surely using JBuilder as IDE, right?! Can someone give some
tips about deploying EJBs from JBuilder into JBoss? Can I let JBuilder
generate the deployment descriptor?
Many thanks in advance!

regards
ZHU Jia

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



[JBoss-user] JBoss + Oracle + CMP

2001-04-23 Thread ZHU Jia

After several days of jbossing, I got something from Oracle DB at last, but
there's still something I'd like to ask:
I'm using JBoss 2.2+Tomcat 3.2.1 (will try 2.2.1 today), Oracle 8i (8.1.7) on
Win2K Pro as a test platform, I tried the CMP example that comes with JBoss
(the CDBean example).
I've tried EVERY combination of the suggestions in the doc and the
mailling-list, change for Oracle in jboss.conf, jboss.jcml, deleting the
jboss-auto.jcml etc. etc., but I could only get the default datasource
(DefaultDS) to work with Oracle (I'm using minerva, the test works perfectly),
as soon as I tried to define a new datasource for Oracle, I got the following
error at jboss start:

D:\jboss\jboss-2.2\bin>run
run
CLASSPATH=D:\jdk1.3\lib;.;run.jar;../lib/crimson.jar
jboss.home = D:\jboss\jboss-2.2
Using configuration "tomcat"
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client 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] Could not create MBean
DefaultDomain:service=XADataSource,name=OracleDS()
[Configuration] java.lang.ClassNotFoundException: 
[Configuration] at javax.management.loading.MLet.findClass(MLet.java:800)
[Configuration] at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
[Configuration] at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.findClass(MBeanServerImpl.java:2466)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.java:499)
[Configuration] at
org.jboss.configuration.ConfigurationService.create(ConfigurationService.java:340)
[Configuration] at
org.jboss.configuration.ConfigurationService.loadConfiguration(ConfigurationService.java:271)
[Configuration] at java.lang.reflect.Method.invoke(Native Method)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Configuration] at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Configuration] at org.jboss.Main.(Main.java:195)
[Configuration] at org.jboss.Main$1.run(Main.java:107)
[Configuration] at java.security.AccessController.doPrivileged(Native Method)
[Configuration] at org.jboss.Main.main(Main.java:103)
[Service Control] Initializing 24 MBeans
[Webserver] Initializing
[Webserver] Initialized
[Naming] Initializing
[Naming] Initialized
[JNDIView] Initializing
[JNDIView] Initialized
[Transaction manager] Initializing
...


I don't think there's any syntax error in the conf files because I really
checked it dozens of times, can someone shed a light here?

Also, the test clients of the CDBean example only seem to work with the client
lib of JBoss 2.1, although I deployed the beans on JBoss 2.2?? Why the heck is
that? I tried the clients many times in the JBoss 2.2 dir, every time get the
same error message:

java -classpath .;..\..\lib\ext\ejb.jar;..\..\client\jboss-client.jar
com.web_tomorrow.cd.Upload CDs.txt 
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 com.web_tomorrow.cd.Upload.uploadFile(Upload.java:90)
at com.web_tomorrow.cd.Upload.main(Upload.java:57)


Then I just happened to put them into the JBoss 2.1 dir (only JBoss 2.2 is
running and only JBoss2.2 dir is set as JBOSS_HOME), it worked there? I almost
thought I should get my head examined! Anyone else is getting this?

OK, any hints and tips will be greatly appreciated, and many thanks in
advance!

regards
ZHU Jia

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



Re: [JBoss-user] jboss 2.2.1 startup error with ibm 1.3.0 jvm

2001-04-23 Thread Gasper

Thanks very much, that did it.

Gasper

- Original Message -
From: "David Wade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 23, 2001 8:58 AM
Subject: RE: [JBoss-user] jboss 2.2.1 startup error with ibm 1.3.0 jvm


> The IBM JDK does indeed come with an xml parser that is loaded
automatically
> from the following directory
>
>   jre\lib\ext
>
> under the JDK.
>
> If you don't need anything from here just rename the ext directory to
> something else for the time being.
>
> I have run JBoss 2.1 successfully under service release 7 of the IBM JDK
> 1.3.
>
> David
>
>
> > -Original Message-
> > From: Gasper [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, 23 April 2001 6:31 p.m.
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] jboss 2.2.1 startup error with ibm 1.3.0 jvm
> >
> >
> > Tried it, but it does't help. The problem I think is that the
> > jvm loads a
> > different xml parser than the one in crimson.jar
> > There should be many useing the ibm jvm. Don't you people
> > have problems?
> >
> > Thanks very much.
> >
> > Gasper
> >
> > - Original Message -
> > From: "Toby Allsopp" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, April 22, 2001 10:34 PM
> > Subject: Re: [JBoss-user] jboss 2.2.1 startup error with ibm 1.3.0 jvm
> >
> >
> > > On Sun, Apr 22, 2001 at 10:29:30PM +0200, Gasper wrote:
> > > > Hello
> > > >
> > > > I have win 2000, ibm 1.3.0 jvm, with no system classpath
> > defined. I was
> > trying to start the jboss 2.2.1 version. It throws the ugly
> > error bellow:
> > > >
> > > > JBOSS_CLASSPATH=;D:\Program
> > Files\IBM\Java13\lib\tools.jar;D:\Program
> > Files\IBM\Java13\lib\tools.jar;run.jar;..\lib\crimson.jar
> > >
> > > Try getting those spaces out of the classpath.  And you
> > might like to
> > clean up
> > > the duplication while you're at it, although that shouldn't cause a
> > problem.
> > >
> > > Toby.
> > >
> > > > jboss.home = C:\biz\dev\JBoss-2.2.1_Jetty3.1.RC4\jboss
> > > > Using configuration "jetty"
> > > > [Info] Java version: 1.3.0,IBM Corporation
> > > > [Info] Java VM: Classic VM 1.3.0,IBM Corporation
> > > > [Info] System: Windows 2000 5.0,x86
> > > > [Shutdown] Shutdown hook added
> > > > [Service Control] Registered with server
> > > > [Default] Runtime error
> > > > [Default] java.lang.NoSuchMethodError:
> > org.xml.sax.Attributes: method
> > getQName(I)Ljava/lang/String; not found
> > >
> > > ___
> > > 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] Error compiling MDB.java

2001-04-23 Thread jsoriano

Hello everybody:

Nowadays i'm beggining with MDB in JBoss and to undersand
how to implement it in my applications i've copied the MDB.java
example from the JBoss documentation (Writing Message Driven Beans section).
When i try to compile this sample i get the following (these are part of the full message):

/JBoss-2.2.1_Tomcat-3.2.1/jboss/test/bean/MDB.java:4:cannot resolve symbol :
class MessageDrivenBean;
            ^
location: package ejb
import javax.ejb.MessageDrivenContext;
                                 ^

...
and the same to package jbs and others.

Have to indicate another 'jar' file in addition to 'ejb.jar' to compile this file?

Using: JBoss 2.2.1
Java:   JDK 1.3
O.S.: Linux RedHat 6.1


Thanks in advance.
_
Jaume Soriano Sivera <[EMAIL PROTECTED]>
_

Re: [JBoss-user] problem deploying ear file

2001-04-23 Thread Tobias Frech

Hi!
Looks like you have a mistake in your META-INF/ejb-jar.xml file. Is it
there ? Is there a class called ValidateUserHome in the subdir database
in your fourplebs.jar archive ?

Ciao,
Tobias

David L Solomon wrote:
> 
> I am running jboss 2.2.1, with embedded tomcat 3.2.1 on windows nt 4.0, sp6.
> 
> when I try to deploy an ear file containing my ejb ( ValidateUser in
> 'database' package ), I get the following error:
> What is the verifier trying to tell me.  Thanks.
> 
> [Auto deploy] Auto deploy of
> file:/D:/JBoss-2.2.1_Tomcat-3.2.1/jboss/deploy/four
> plebs.ear
> [J2EE Deployer Default] Deploy J2EE application:
> file:/D:/JBoss-2.2.1_Tomcat-3.2
> .1/jboss/deploy/fourplebs.ear
> [J2EE Deployer Default] Create application fourplebs.ear
> [J2EE Deployer Default] install module fourplebs.ear
> [Container factory]
> Deploying:file:/D:/JBoss-2.2.1_Tomcat-3.2.1/jboss/tmp/deploy
> /Default/fourplebs.ear
> [Verifier] Verifying
> file:/D:/JBoss-2.2.1_Tomcat-3.2.1/jboss/tmp/deploy/Default/
> fourplebs.ear/ejb1001.jar
> [Verifier]
> Bean   : ValidateUser
> Section: 16.2
> Warning: The Bean Provider must specify the fully-qualified name of the Java
> cla
> ss that implements the enterprise bean's business methods.
> 
> [Verifier]
> Bean   : ValidateUser
> Section: 16.2
> Warning: The Bean Provider must specify the fully-qualified name of the
> enterpri
> se bean's home interface in the home element.
> 
> [Verifier]
> Bean   : ValidateUser
> Section: 16.2
> Warning: The Bean Provider must specify the fully-qualified name of the
> enterpri
> se bean's remote interface in the remote element.
> 
> [Container factory] Deploying ValidateUser
> [Container factory] java.lang.ClassNotFoundException:
> database.ValidateUserHome
> [Container factory] at



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