[JBoss-user] Multiple apps and datasources

2001-04-02 Thread Lac Sanh La

Hi All,

I am trying to deploy two sites point to two separate database. The
three set of data are created correcty Default, DefaultDB and
DefaultDB_1. When start the applications they all point to Default.

How can I config JBOSS to point to the appropriate one ?

Thanks!

Lac


[JDBC provider] Starting
[JDBC provider] Started
[Hypersonic] Starting
[Hypersonic] Server 1.4 is running
[Hypersonic] Database started
[Hypersonic] Started
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
Enhydra InstantDB - Version 3.21
[InstantDB] The Initial Developer of the Original Code is Lutris
Technologies In
c.
Portions created by Lutris are Copyright (C) 1997-2000 Lutris
Technologies, Inc.

All Rights Reserved.
[Hypersonic] Press [Ctrl]+[C] to abort
[InstantDB] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[EOrdersDB] Starting
[EOrdersDB] XA Connection pool EOrdersDB bound to java:/EOrdersDB
[EOrdersDB] Started
[EOrdersDB_1] Starting
[EOrdersDB_1] XA Connection pool EOrdersDB_1 bound to java:/EOrdersDB_1
[EOrdersDB_1] Started
[Container factory] Starting
[Container factory] Started
[EmbeddedTomcat] Starting
[EmbeddedTomcat] Starting EmbeddedTomcat
2001-04-02 04:13:19 - ContextManager: Adding context Ctx( /examples )
2001-04-02 04:13:19 - ContextManager: Adding context Ctx( /admin )
[EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error
messages
2001-04-02 04:13:19 - ContextManager: Adding context Ctx(  )
2001-04-02 04:13:19 - ContextManager: Adding context Ctx( /test )
2001-04-02 04:13:20 - PoolTcpConnector: Starting HttpConnectionHandler
on 8080
2001-04-02 04:13:20 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on 8007
[EmbeddedTomcat] OK
[EmbeddedTomcat] Started
[JBossMQ] Starting
[JBossMQ] Server Version 0.8 Started
[JBossMQ] Started
[DefaultJMSProvider] Starting
[DefaultJMSProvider] JMS provider Adapter DefaultJMSProvider bound to
java:/Defa
ultJMSProvider
[DefaultJMSProvider] Started
[StdJMSPool] Starting
[StdJMSPool] JMS provider Adapter StdJMSPool bound to java:/StdJMSPool
[StdJMSPool] Started
[J2EE Deployer Default] Starting
[J2EE Deployer Default] Cleaning up deployment directory
[J2EE Deployer Default] Started
[MinervaNoTransCMFactory] Starting
[MinervaNoTransCMFactory] Connection manager factory
'MinervaNoTransCMFactory bo
und to 'java:/MinervaNoTransCMFactory'
[MinervaNoTransCMFactory] Started
[MinervaSharedLocalCMFactory] Starting
[MinervaSharedLocalCMFactory] Connection manager factory
'MinervaSharedLocalCMFa
ctory bound to 'java:/MinervaSharedLocalCMFactory'
[MinervaSharedLocalCMFactory] Started
[MinervaXACMFactory] Starting
[MinervaXACMFactory] Connection manager factory 'MinervaXACMFactory
bound to 'ja
va:/MinervaXACMFactory'
[MinervaXACMFactory] Started
[BlackBoxDS] Starting
[BlackBoxDS] Started
[JMX RMI Adaptor] Starting
[JMX RMI Adaptor] Started
[JMX RMI Connector] Starting
[JMX RMI Connector] Started
[Mail Service] Starting
[Mail Service] Mail Service 'Mail' bound to java:/Mail
[Mail Service] Started
[RARDeployer] Starting
[RARDeployer] Started
[Auto deploy] Starting
[Auto deploy] Watching C:\jboss-tomcat-2.1-beta\jboss-2.1\deploy
[Auto deploy] Auto deploy of
file:/C:/jboss-tomcat-2.1-beta/jboss-2.1/deploy/bms
oft_eadmin.ear
[J2EE Deployer Default] Deploy J2EE application:
file:/C:/jboss-tomcat-2.1-beta/
jboss-2.1/deploy/bmsoft_eadmin.ear
[J2EE Deployer Default] Create application bmsoft_eadmin.ear
[J2EE Deployer Default] inflate and install module eadmin-web.war
[J2EE Deployer Default] install module bmsoft_eadminEJB.jar
[J2EE Deployer Default] add all ejb jar files to the common classpath
[J2EE Deployer Default] Starting module eadmin-web.war
2001-04-02 04:13:25 - ContextManager: Adding context Ctx( /eadmin )
[Auto deploy] Add env-entry securityAdapterClassName  java.lang.String
au.com.bm
soft.weborders.util.J2eeSecurityAdapter no description
[Auto deploy] Binding ejb/stock to TheStock
[Auto deploy] Binding ejb/mailer to TheMailer
[Auto deploy] Binding ejb/cclog to com_bmsoft_cclog
[Auto deploy] Binding ejb/setting to com_bmsoft_settings
[Auto deploy] Binding ejb/customercollection to TheCustomerCollection
[Auto deploy] Binding ejb/spprice to TheSpPrice
[Auto deploy] Binding ejb/adminclient to
TheAdministratorClientController
[Auto deploy] Binding ejb/administrator to com_bmsoft_admin_users
[Auto deploy] Binding ejb/sanction to TheSanction
[Auto deploy] Binding ejb/settingCollection to TheSettingCollection
[Auto deploy] Binding ejb/order to TheOrder
[Auto deploy] Binding ejb/company to TheCompany
[Auto deploy] Binding ejb/selector to TheSelector
[Auto deploy] Binding ejb/reporter to TheReporter
[Auto deploy] Binding ejb/customer to TheCustomer
[Auto deploy] Binding ejb/ccclearance to TheCreditCardClearance
[Auto deploy] Binding ejb/serverinfo to TheServerInfo
[Auto deploy] Binding EOrdersDataSource to java:/EOrdersDB
2001-04-02 04:13:26 - Ctx( /eadmin ): FORM: WARNING, 

[JBoss-user] Problem while executing procedure

2001-04-02 Thread Chidambara, Vinoth (CTS)
Title: Problem while executing procedure





Hai,


I am reposting this since I didn't get reply
This is very urgent. Any reply will be appreciated. 


I am using JBoss2.1 ,Windows NT Server , Sybase
I am getting JDBC connection like this
javax.naming.Context ctx = new javax.naming.InitialContext();
javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup(java:/TryDB);
con=ds.getConnection();


When I try to execute procedure using this connection, am getting
exception like this


[[com.sybase.jdbc2.jdbc.SybSQLException: Stored procedure 'kd3534.national_user_p
asswd_sp' may be run only in unchained transaction mode. The 'SET CHAINED OFF' c
ommand will cause the current session to use unchained transaction mode.]]


But when I excute prepared statement with SET CHAINED OFF before executing prepared 
statement and then executing the procedure is working fine.


java.sql.PreparedStatement ps = null;
ps=con.prepareStatement(SET CHAINED OFF);
ps.executeUpdate();


But In Weblogic there is no need to execute prepared statement with SET CHAINED OFF
Without executing prepared statement,it's working fine..
Why it so...


Anyone help in this regard.


Thanks in Advance,
Regards,
Vinoth.C




This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



RE: [JBoss-user] JBoss Doc download?

2001-04-02 Thread Iny, Yair

if you are using MS IE 5 (god forbid :) then you can mark the main page for
offline viewing, and inside the settings make sure it downloads 1 level of
links deep and synchronize the page.  Then when you want to view the docs,
go to the File menu and select "Work Offline"

works for me...

All the best,
Yair Iny

-Original Message-
From: Ling Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 6:05 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] JBoss Doc download?


Hi all,

Can anybody tell me how to download the latest JBoss documentation so I can 
read it locally instead of getting the inforamtion through my phone wire 
every time?

Your help will be appreciated.

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


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

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



[JBoss-user] java.lang.SecurityException: sealing violation

2001-04-02 Thread Faisal Ahmad

Hello Everyone,

I am getting this exception when I try to start JBOss. Any clues.
I went through the mail archives and found this problem listed. It was
suggested that the java reference implementation should not be in the
CLASSPATH, which I dont have. So it must be some other problem. I also tried
removing the JAXP jars but it didnot work.

Any Clues. Thanks in advance.


CLASSPATH=.;D:\Program Files\JavaSoft\Jaxp1.0.1\jaxp.jar;D:\Program
Files\JavaSoft\Jaxp1.0.1\parser.jar;;run.jar;../lib/crimson.jar
jboss.home = D:\AppServer\jboss-2.1
Using configuration "default"
[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 NT 4.0,x86
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Default] java.lang.SecurityException: sealing violation
[Default]   at java.net.URLClassLoader.defineClass(Unknown Source)
[Default]   at java.net.URLClassLoader.access$100(Unknown Source)
[Default]   at java.net.URLClassLoader$1.run(Unknown Source)
[Default]   at java.security.AccessController.doPrivileged(Native
Method)
[Default]   at java.net.URLClassLoader.findClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
[Default]   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
Source)
[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[Default]   at java.lang.ClassLoader.defineClass0(Native Method)
[Default]   at java.lang.ClassLoader.defineClass(Unknown Source)
[Default]   at java.security.SecureClassLoader.defineClass(Unknown
Source)
[Default]   at java.net.URLClassLoader.defineClass(Unknown Source)
[Default]   at java.net.URLClassLoader.access$100(Unknown Source)
[Default]   at java.net.URLClassLoader$1.run(Unknown Source)
[Default]   at java.security.AccessController.doPrivileged(Native
Method)
[Default]   at java.net.URLClassLoader.findClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
[Default]   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
Source)
[Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
[Default]   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
[Default]   at
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Docume
ntBuilderFactoryImpl.java:82)
[Default]   at
org.jboss.configuration.ConfigurationService.loadConfiguration(Configuration
Service.java:258)
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
[Default]   at org.jboss.Main.init(Main.java:195)
[Default]   at org.jboss.Main$1.run(Main.java:107)
[Default]   at java.security.AccessController.doPrivileged(Native
Method)
[Default]   at org.jboss.Main.main(Main.java:103)
[Default] JBoss 2.1-BETA-Mar-26-2001 Started in 0m:0s
[Default] Shutting down
[Service Control] Stopping 0 MBeans
[Service Control] Stopped 0 services
[Service Control] Destroying 0 MBeans
[Service Control] Destroyed 0 services
[Default] Shutdown complete
Press any key to continue . . .

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



Re: [JBoss-user] JBoss Doc download?

2001-04-02 Thread Christopher Albert

"Iny, Yair" wrote:
 
 if you are using MS IE 5 (god forbid :) then you can mark the main page for
 offline viewing, and inside the settings make sure it downloads 1 level of
 links deep and synchronize the page.  Then when you want to view the docs,
 go to the File menu and select "Work Offline"
 
 works for me...
 
 All the best,
 Yair Iny
 
 -Original Message-
 From: Ling Wang [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 02, 2001 6:05 AM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] JBoss Doc download?
 
 Hi all,
 
 Can anybody tell me how to download the latest JBoss documentation so I can
 read it locally instead of getting the inforamtion through my phone wire
 every time?
 
 Your help will be appreciated.
 
 Ling Wang

Ling,

At the Jboss site, look at he part about browsing the source code and
CVS. You'll need a cvs client, and then you can checkout the module
"manual" which you can build on your local machine.*

Chris


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



Re: [JBoss-user] Problem while executing procedure

2001-04-02 Thread Peter Routtier-Wone

We realise that sometimes the needs of commercial developers can be very
time-sensitive, and to help with problems like this we created the JBoss
Group.

Contact Marc Fleury at [EMAIL PROTECTED] and he will be delighted to
organise a core developer to expedite a solution to your problem.

We recognise the commercial value of your time and we look forward to
helping you on this basis.

- Original Message -
From: "Chidambara, Vinoth (CTS)" [EMAIL PROTECTED]
Subject: [JBoss-user] Problem while executing procedure


 I am reposting this since I didn't get reply
 This is very urgent. Any reply will be appreciated.




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



[JBoss-user] Cannot run client in JBuilder

2001-04-02 Thread Nguyen Thanh Phong

Hi all,

I build a stateless session and deploy it successfully. I now want to test
it using JUnit but I got the following exceptions.

Server:
Linux, JBoss 2.1-BETA-Mar-24-2001
Sun JDK java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

Client:
Jbuilder 4

java.security.AccessControlException: access denied
(java.util.PropertyPermission user.home read)
 at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
 at
java.security.AccessController.checkPermission(AccessController.java:399)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
 at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
 at java.lang.System.getProperty(System.java:560)
 at junit.runner.BaseTestRunner.getPreferencesFile(BaseTestRunner.java:111)
 at junit.runner.BaseTestRunner.readPreferences(BaseTestRunner.java:118)
 at junit.runner.BaseTestRunner.init(BaseTestRunner.java:159)
 at junit.textui.TestRunner.init(TestRunner.java:35)
 at junit.textui.TestRunner.run(TestRunner.java:182)
 at sdc.smart.util.GeneratorIDBeanTest.main(GeneratorIDBeanTest.java:43)
Exception in thread "main"

What permission do I have to put in? Please provide me with some
pointers/documentations.




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



RE: [JBoss-dev] Performance (was Re: [JBoss-user] JBoss verses Or ion)

2001-04-02 Thread Matthew . GREEN

The Apache Foundation has money.

They also have no EJB container as yet.

Has anyone spoken to "them"?

Matt

 -Original Message-
 From: marc fleury [mailto:[EMAIL PROTECTED]]
 Sent: 01 April 2001 05:23
 To: marc fleury; danch; jboss-user; jboss-development
 Subject: RE: [JBoss-dev] Performance (was Re: [JBoss-user] 
 JBoss verses
 Orion)
 
 
 And who after this will have the guts to argue that we don't 
 need a full
 time dedicated core that professionally integrates and QAs 
 the code.  It was
 running beautifully not so long ago...
 
 I rest my case.
 
 Stuff like this is killing us, makes us look like 
 amateurs...the answer to
 our problem is $$$
 
 And I am working on it, as hard as i can...
 
 marc
 
 PS: The Apache web server went through the same.
 
 
 |-Original Message-
 |From: [EMAIL PROTECTED]
 |[mailto:[EMAIL PROTECTED]]On 
 Behalf Of marc
 |fleury
 |Sent: Saturday, March 31, 2001 11:09 PM
 |To: danch; [EMAIL PROTECTED];
 |[EMAIL PROTECTED]
 |Subject: RE: [JBoss-dev] Performance (was Re: [JBoss-user] 
 JBoss verses
 |Orion)
 |
 |
 ||I've spent the day running some test similiar to Paul's.
 ||
 ||My environment is Linux on a PIII 500, running Sun's 1.3 and
 ||1.3.1beta JDKs.
 ||
 ||In the case of a standalone client looping and repeatedly 
 calling the
 ||same method on a stateless session bean, I found that Orion averaged
 ||about 3ms. per invocation where JBoss was averaging 6-10 
 ms/invocation.
 |
 |It is very broken we have been running the stuff at well below those
 |numbers.
 |
 |In fact we ran around 1-2 ms (depending on stateless).  we will see.
 |
 |Pf, tired...
 |
 |marc
 |
 |
 |___
 |Jboss-development mailing list
 |[EMAIL PROTECTED]
 |http://lists.sourceforge.net/lists/listinfo/jboss-development
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 


**

Check us out at http://www.syntegra.com

***

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



[JBoss-user] Re: Cannot run client in JBuilder

2001-04-02 Thread Nguyen Thanh Phong

Hi all,

I build a stateless session and deploy it successfully. I now want to test
it using JUnit but I got the following exceptions.

Server:
Linux, JBoss 2.1-BETA-Mar-24-2001
Sun JDK java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

Client:
Jbuilder 4

java.security.AccessControlException: access denied
(java.util.PropertyPermission user.home read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
at java.lang.System.getProperty(System.java:560)
at junit.runner.BaseTestRunner.getPreferencesFile(BaseTestRunner.java:111)
at junit.runner.BaseTestRunner.readPreferences(BaseTestRunner.java:118)
at junit.runner.BaseTestRunner.init(BaseTestRunner.java:159)
at junit.textui.TestRunner.init(TestRunner.java:35)
at junit.textui.TestRunner.run(TestRunner.java:182)
at sdc.smart.util.GeneratorIDBeanTest.main(GeneratorIDBeanTest.java:43)
Exception in thread "main"

What permission do I have to put in and where? Please provide me with some
pointers/documentations.

Many thanks.

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



Re: [JBoss-dev] Performance (was Re: [JBoss-user] JBoss verses Or ion)

2001-04-02 Thread Peter Routtier-Wone

I will do this, but Marc, I need a pow-wow with you first.

- Original Message -
From: [EMAIL PROTECTED]
Subject: RE: [JBoss-dev] Performance (was Re: [JBoss-user] JBoss verses Or
ion)


 The Apache Foundation has money.

 They also have no EJB container as yet.

 Has anyone spoken to "them"?




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



Re: [JBoss-user] Re: passing objects a parameters.................

2001-04-02 Thread Ken Jenks

Oddly enough, my problem disappeared when I ran from the command line 
instead of through JBuilder. JBuilder gives the ability to specify run-time 
parameters, and I did specify a security policy, but the error made me fall 
back to old-fashioned debugging techniques.

-- Ken Jenks, http://abiblion.com/

Tools for reading.


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



Re: [JBoss-user] Sealing violation still creating problems

2001-04-02 Thread Juha-P Lindfors


Kill your classpath. Completely. You're picking up parser.jar and
jaxp.jar

-- Juha


On Mon, 2 Apr 2001, Faisal Ahmad wrote:

 Hello Everyone,

 I am getting this exception
 (java.lang.SecurityException: sealing violation)
 when I try to start JBOss.
 I went through the mail archives and found this problem listed. It was
 suggested that the j2ee reference implementation should not be in the
 CLASSPATH, which I dont have. So something else must be causing this. I also
 tried
 removing the JAXP jars but it didnot work.

 Any Clues. Thanks in advance.


 CLASSPATH=.;D:\Program Files\JavaSoft\Jaxp1.0.1\jaxp.jar;D:\Program
 Files\JavaSoft\Jaxp1.0.1\parser.jar;;run.jar;../lib/crimson.jar
 jboss.home = D:\AppServer\jboss-2.1
 Using configuration "default"
 [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 NT 4.0,x86
 [Shutdown] Shutdown hook added
 [Service Control] Registered with server
 [Default] java.lang.SecurityException: sealing violation
 [Default]   at java.net.URLClassLoader.defineClass(Unknown Source)
 [Default]   at java.net.URLClassLoader.access$100(Unknown Source)
 [Default]   at java.net.URLClassLoader$1.run(Unknown Source)
 [Default]   at java.security.AccessController.doPrivileged(Native
 Method)
 [Default]   at java.net.URLClassLoader.findClass(Unknown Source)
 [Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
 [Default]   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
 Source)
 [Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
 [Default]   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 [Default]   at java.lang.ClassLoader.defineClass0(Native Method)
 [Default]   at java.lang.ClassLoader.defineClass(Unknown Source)
 [Default]   at java.security.SecureClassLoader.defineClass(Unknown
 Source)
 [Default]   at java.net.URLClassLoader.defineClass(Unknown Source)
 [Default]   at java.net.URLClassLoader.access$100(Unknown Source)
 [Default]   at java.net.URLClassLoader$1.run(Unknown Source)
 [Default]   at java.security.AccessController.doPrivileged(Native
 Method)
 [Default]   at java.net.URLClassLoader.findClass(Unknown Source)
 [Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
 [Default]   at sun.misc.Launcher$AppClassLoader.loadClass(Unknown
 Source)
 [Default]   at java.lang.ClassLoader.loadClass(Unknown Source)
 [Default]   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 [Default]   at
 org.apache.crimson.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Docume
 ntBuilderFactoryImpl.java:82)
 [Default]   at
 org.jboss.configuration.ConfigurationService.loadConfiguration(Configuration
 Service.java:258)
 [Default]   at java.lang.reflect.Method.invoke(Native Method)
 [Default]   at
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
 [Default]   at
 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
 [Default]   at org.jboss.Main.init(Main.java:195)
 [Default]   at org.jboss.Main$1.run(Main.java:107)
 [Default]   at java.security.AccessController.doPrivileged(Native
 Method)
 [Default]   at org.jboss.Main.main(Main.java:103)
 [Default] JBoss 2.1-BETA-Mar-26-2001 Started in 0m:0s
 [Default] Shutting down
 [Service Control] Stopping 0 MBeans
 [Service Control] Stopped 0 services
 [Service Control] Destroying 0 MBeans
 [Service Control] Destroyed 0 services
 [Default] Shutdown complete
 Press any key to continue . . .

 ___
 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



SV: [JBoss-user] Keeping WL and JBoss Deployment Descriptors in synch, reference I need ammo.

2001-04-02 Thread Lennart Petersson

Ok, we are going to take another aproach to this one. Since we are using ejbdoclet 
(thanks Rickard!) to generate much of our code and xml files we are planning to write 
a wldoclet to plugin beside the jbossdoclet. And since we are running ejbdoclet using 
Ant we hope we are to be able to choose the deployment target when building, like 
following example:
build jboss
build wl

/Lennart


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



[JBoss-user] (no subject)

2001-04-02 Thread Pellegrini, John

I'm using JBoss 2.0 FINAL with TomCat and WebLogic's jDriver for SQL Server,
and would like to use JNDI to look up my database connection pool, and also
a few environment entries set in the web.xml file (via env-entry
elements).

 /lib/ext has:
mssql.jar (the WebLogic SQLServer driver)

 jboss.properties has:
jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,weblog
ic.jdbc20.mssqlserver4.Driver

 jboss.conf file has:
...
MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/"
ARG TYPE="java.lang.String" VALUE="InstantDB"
ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl"
/MLET
MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar"
CODEBASE="../../lib/ext/"
ARG TYPE="java.lang.String" VALUE="DefaultDS"
ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl"
/MLET
MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar,mssql.jar"
CODEBASE="../../lib/ext/"
ARG TYPE="java.lang.String" VALUE="nylimPool"
ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl"
/MLET
...

 jboss.jcml has:
 mbean name="DefaultDomain:service=XADataSource,name=InstantDB"
   attribute name="Properties"/attribute
   attribute
name="URL"jdbc:idb:../conf/default/instantdb.properties/attribute
   attribute name="GCMinIdleTime"120/attribute
   attribute name="JDBCUser" /
   attribute name="MaxSize"10/attribute
   attribute name="Password" /
   attribute name="GCEnabled"false/attribute
   attribute name="InvalidateOnError"false/attribute
   attribute name="TimestampUsed"false/attribute
   attribute name="Blocking"true/attribute
   attribute name="GCInterval"12/attribute
   attribute name="IdleTimeout"180/attribute
   attribute name="IdleTimeoutEnabled"false/attribute
   attribute name="LoggingEnabled"false/attribute
   attribute name="MaxIdleTimeoutPercent"1.0/attribute
   attribute name="MinSize"0/attribute
 /mbean
 mbean name="DefaultDomain:service=XADataSource,name=DefaultDS"
   attribute name="Properties"/attribute
   attribute
name="URL"jdbc:HypersonicSQL:hsql://localhost:1476/attribute
   attribute name="GCMinIdleTime"120/attribute
   attribute name="JDBCUser"sa/attribute
   attribute name="MaxSize"10/attribute
   attribute name="Password" /
   attribute name="GCEnabled"false/attribute
   attribute name="InvalidateOnError"false/attribute
   attribute name="TimestampUsed"false/attribute
   attribute name="Blocking"true/attribute
   attribute name="GCInterval"12/attribute
   attribute name="IdleTimeout"180/attribute
   attribute name="IdleTimeoutEnabled"false/attribute
   attribute name="LoggingEnabled"false/attribute
   attribute name="MaxIdleTimeoutPercent"1.0/attribute
   attribute name="MinSize"0/attribute
 /mbean
 mbean name="DefaultDomain:service=XADataSource,name=nylimPool"
   attribute name="Properties"/attribute
   attribute
name="URL"jdbc20:weblogic:mssqlserver4:nylim@localhost:1433/attribute
   attribute name="GCMinIdleTime"120/attribute
   attribute name="JDBCUser"sa/attribute
   attribute name="MaxSize"0/attribute
   attribute name="Password" /
   attribute name="GCEnabled"false/attribute
   attribute name="InvalidateOnError"false/attribute
   attribute name="TimestampUsed"false/attribute
   attribute name="Blocking"true/attribute
   attribute name="GCInterval"12/attribute
   attribute name="IdleTimeout"180/attribute
   attribute name="IdleTimeoutEnabled"false/attribute
   attribute name="LoggingEnabled"false/attribute
   attribute name="MaxIdleTimeoutPercent"1.0/attribute
   attribute name="MinSize"0/attribute
 /mbean

 web.xml has:
web-app
  ...
  env-entry
env-entry-namejava.naming.factory.initial/env-entry-name
 
env-entry-valueorg.jnp.interfaces.NamingContextFactory/env-entry-value
env-entry-typejava.lang.String/env-entry-type
  /env-entry

  env-entry
env-entry-namejava.naming.provider.url/env-entry-name
env-entry-valuelocalhost:1099/env-entry-value
env-entry-typejava.lang.String/env-entry-type
  /env-entry

  env-entry
env-entry-namejndi.db.poolname/env-entry-name
env-entry-valuejava:/nylimPool/env-entry-value
env-entry-typejava.lang.String/env-entry-type
  /env-entry
  ...
/web-app

 The JBoss console output the following during startup, which looks good:
...
[JDBC] Loaded JDBC-driver:org.hsql.jdbcDriver
[JDBC] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
[JDBC] Loaded JDBC-driver:weblogic.jdbc20.mssqlserver4.Driver
...
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
...
[nylimPool] XA Connection pool nylimPool bound to java:/nylimPool
[nylimPool] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to 

SV: [JBoss-user] Re: Cannot run client in JBuilder

2001-04-02 Thread Lennart Petersson

A guess (seen this before): Make sure you have either a policy file that jbuilder can 
pick up with following containment:

grant {
 permission java.security.AllPermission;
};

Or add the above to jre/lib/security/java.policy file if jbuilder can't pick it up.

/Lennart

- Original Message - 
From: Nguyen Thanh Phong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 02, 2001 12:41 PM
Subject: [JBoss-user] Re: Cannot run client in JBuilder


 Hi all,
 
 I build a stateless session and deploy it successfully. I now want to test
 it using JUnit but I got the following exceptions.
 
 Server:
 Linux, JBoss 2.1-BETA-Mar-24-2001
 Sun JDK java version "1.3.0"
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
 Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)
 
 Client:
 Jbuilder 4
 
 java.security.AccessControlException: access denied
 (java.util.PropertyPermission user.home read)
 at
 java.security.AccessControlContext.checkPermission(AccessControlContext.java
 :272)
 at java.security.AccessController.checkPermission(AccessController.java:399)
 at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
 at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
 at java.lang.System.getProperty(System.java:560)
 at junit.runner.BaseTestRunner.getPreferencesFile(BaseTestRunner.java:111)
 at junit.runner.BaseTestRunner.readPreferences(BaseTestRunner.java:118)
 at junit.runner.BaseTestRunner.init(BaseTestRunner.java:159)
 at junit.textui.TestRunner.init(TestRunner.java:35)
 at junit.textui.TestRunner.run(TestRunner.java:182)
 at sdc.smart.util.GeneratorIDBeanTest.main(GeneratorIDBeanTest.java:43)
 Exception in thread "main"
 
 What permission do I have to put in and where? Please provide me with some
 pointers/documentations.
 
 Many thanks.
 
 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 mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] howto

2001-04-02 Thread Ian McCallion

I'm trying to use jboss 2.1 for a small project. How do I create a database
using InstantDB or Hypersonic? Are there instructions I've missed? Apologies if
so.

Ian McCallion
Alexis Systems Limited
Romsey, UK

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



RE: [JBoss-user] I need ammo. -WL SUX

2001-04-02 Thread Swarr, Bob

Another suggestion. Try Weblogic 6.0. It contains many bug fixes, including
clustering. It also uses JDK 1.3 and the garbage collection under load with
hotspot is much improved. Also, EJB 1.1 or 2.0 works better.
 
-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 12:39 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] I need ammo. -WL SUX


 We've been trying to get an install of Weblogic51 up and running for 4
 months! BEA has as of yet been unable to get it run either. They finally
 admitted that they have a SERIOUS problem with windows and clustering.

two thinks to consider, JBoss doesn't offer clustering yet. So the statement
is no good.
Also, why not cluster on Unix boxes, since you want scalability, Windows is
not going to offer it anyway :)

:)

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net



___
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] Setting up shared/multiple JVMs for hosting?

2001-04-02 Thread Mark Richman


I am interested in setting up JBoss+Tomcat to run in a
hosting/ISP/ASP scenario. That is, to have multiple
customers running in a shared JVM, or alternately, a single
JVM per customer. I'd also like the ability for each
customer to configure his own classpath.

Any thoughts?

Thanks,
Mark

-- 
Mark A. Richman 
Empire Software, Inc.
Expert Software Development  Consulting 
  
+ Internet/Intranet/Extranet 
+ E-Commerce  B2B 
+ Java, C/C++, Visual Basic 
+ XML, SOAP, and Web Services 
+ Linux  Open-Source Solutions 
+ Database Applications 
+ ...and MUCH more! 

http://www.empsoft.com
[EMAIL PROTECTED]
954-234-9049 




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



RE: [JBoss-user] MySql and JBoss

2001-04-02 Thread Swarr, Bob

Currently, I'm running JBoss 2.0 with the Oracle thin driver and the
mm.mysql-2.0.4 driver.
The main problem I had setting up mySQL as a datasource was setting up users
and priveleges in mySQL.  Read the mySQL documentation carefully.

Here are my configuration entries.

jboss.properities
 jdbc.drivers=org.gjt.mm.mysql.Driver,oracle.jdbc.driver.OracleDriver

jboss.conf
MLET CODE = "org.jboss.jdbc.JdbcProvider"
ARCHIVE="jboss.jar,classes12.jar,mysql.jar" CODEBASE="../../lib/ext/"
/MLET

MLET CODE="org.jboss.jdbc.XADataSourceLoader" ARCHIVE="jboss.jar,mysql.jar"
CODEBASE="../../lib/ext/"
ARG TYPE="java.lang.String" VALUE="mySQLPool"
ARG TYPE="java.lang.String"
VALUE="org.jboss.minerva.xa.XADataSourceImpl"
/MLET

jboss.jcml
 mbean name="DefaultDomain:service=XADataSource,name=mySQLPool"
   attribute name="Properties"/attribute
   attribute name="URL"jdbc:mysql://localhost/store/attribute
   attribute name="GCMinIdleTime"120/attribute
   attribute name="JDBCUser"store/attribute
   attribute name="MaxSize"32/attribute
   attribute name="Password"manager/attribute
   attribute name="GCEnabled"false/attribute
   attribute name="InvalidateOnError"false/attribute
   attribute name="TimestampUsed"false/attribute
   attribute name="Blocking"true/attribute
   attribute name="GCInterval"12/attribute
   attribute name="IdleTimeout"180/attribute
   attribute name="IdleTimeoutEnabled"false/attribute
   attribute name="LoggingEnabled"false/attribute
   attribute name="MaxIdleTimeoutPercent"1.0/attribute
   attribute name="MinSize"32/attribute
 /mbean

-Original Message-
From: Steven Webster [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 31, 2001 1:34 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] MySql and JBoss


Hi all,

I'm having a real hard time trying to get JBoss working with MySQL; 
reading through the list archives, all I can really ascertain is that
the docs are not necessarily correct with regards to setting up JBoss.

Has anyone successfully setup JBoss with MySql, that could perhaps
send me the various entries they've made in the properties, conf and
jcml files, to get things working ?  I've got the driver installed ok,
and checked it works with some simple JDBC client code (non EJB code).

As an aside; in looking for the answer, I've noticed a few people
allude to the jboss.conf file being deprecated, in preference for
the jboss.jcml file - is this the case ?

Also; when I make changes for logging to the .jcml file, including 
adding the GUI Logger (I guess I'm answering my own question from
earlier today), the changes don't seem to take immediate effect...how
often are these files read, and are they parsed into a cached format
in any way, shape or form ??

Help :)

Steven

___
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-dev] Performance (was Re: [JBoss-user] JBoss verses Or ion)

2001-04-02 Thread marc fleury

standard APIs in java-apache is 100% SUN/IBM employees.  This is because the
servlet/JSP reference implementation is in Open Source.  The fact that only
the employees work on it, disturbs me but that is besides the point.

An apache EJB effort has been the source of many controversies within
apache.  If we were to become RI (2nd RI) and certified from SUN then yes it
would be worth joining Apache, as a reference implementation of sorts for
EJB in Open Source.

I am not saying this is impossible, it just hasn't been the case so far.
SUN moves in mysterious ways and they look like they really want to embrace
open source and are looking for the right thing to do, we can help them
there, imho.

So wait and see... it is an interesting play somewhat independent of Apache.
If you ask me tomcat is not an open source success.  Contrary to what SUN
claims.  The reason is simple, it is becoming SUN/IBM developed only...

Managing Open Source is a tricky thing, you grow from within and you earn
the trust of the people you work with.

marc


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of
|[EMAIL PROTECTED]
|Sent: Monday, April 02, 2001 9:11 AM
|To: [EMAIL PROTECTED]
|Subject: RE: [JBoss-dev] Performance (was Re: [JBoss-user] JBoss verses
|Or ion)
|
|
|yes.
|
|Matt
|
| -Original Message-
| From: marc fleury [mailto:[EMAIL PROTECTED]]
| Sent: 02 April 2001 13:00
| To: jboss-user
| Subject: RE: [JBoss-dev] Performance (was Re: [JBoss-user]
| JBoss verses
| Or ion)
|
|
| You are new around here aren't you?
|
| marc
|
|
|
|
| |-Original Message-
| |From: [EMAIL PROTECTED]
| |[mailto:[EMAIL PROTECTED]]On Behalf Of
| |[EMAIL PROTECTED]
| |Sent: Monday, April 02, 2001 6:20 AM
| |To: [EMAIL PROTECTED]
| |Subject: RE: [JBoss-dev] Performance (was Re: [JBoss-user]
| JBoss verses
| |Or ion)
| |
| |
| |The Apache Foundation has money.
| |
| |They also have no EJB container as yet.
| |
| |Has anyone spoken to "them"?
| |
| |Matt
| |
| | -Original Message-
| | From: marc fleury [mailto:[EMAIL PROTECTED]]
| | Sent: 01 April 2001 05:23
| | To: marc fleury; danch; jboss-user; jboss-development
| | Subject: RE: [JBoss-dev] Performance (was Re: [JBoss-user]
| | JBoss verses
| | Orion)
| |
| |
| | And who after this will have the guts to argue that we don't
| | need a full
| | time dedicated core that professionally integrates and QAs
| | the code.  It was
| | running beautifully not so long ago...
| |
| | I rest my case.
| |
| | Stuff like this is killing us, makes us look like
| | amateurs...the answer to
| | our problem is $$$
| |
| | And I am working on it, as hard as i can...
| |
| | marc
| |
| | PS: The Apache web server went through the same.
| |
| |
| | |-Original Message-
| | |From: [EMAIL PROTECTED]
| | |[mailto:[EMAIL PROTECTED]]On
| | Behalf Of marc
| | |fleury
| | |Sent: Saturday, March 31, 2001 11:09 PM
| | |To: danch; [EMAIL PROTECTED];
| | |[EMAIL PROTECTED]
| | |Subject: RE: [JBoss-dev] Performance (was Re: [JBoss-user]
| | JBoss verses
| | |Orion)
| | |
| | |
| | ||I've spent the day running some test similiar to Paul's.
| | ||
| | ||My environment is Linux on a PIII 500, running Sun's 1.3 and
| | ||1.3.1beta JDKs.
| | ||
| | ||In the case of a standalone client looping and repeatedly
| | calling the
| | ||same method on a stateless session bean, I found that
| Orion averaged
| | ||about 3ms. per invocation where JBoss was averaging 6-10
| | ms/invocation.
| | |
| | |It is very broken we have been running the stuff at well
| below those
| | |numbers.
| | |
| | |In fact we ran around 1-2 ms (depending on stateless).
| we will see.
| | |
| | |Pf, tired...
| | |
| | |marc
| | |
| | |
| | |___
| | |Jboss-development mailing list
| | |[EMAIL PROTECTED]
| | |http://lists.sourceforge.net/lists/listinfo/jboss-development
| |
| |
| | ___
| | JBoss-user mailing list
| | [EMAIL PROTECTED]
| | http://lists.sourceforge.net/lists/listinfo/jboss-user
| |
| |
| |
| |***
| |***
| |
| |Check us out at http://www.syntegra.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
|
|
|
|***
|***
|
|Check us out at http://www.syntegra.com
|
|***
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] JBoss and Jetty

2001-04-02 Thread Fallowfield Paul

Hi

I have been using Jetty for serving JSP's and Servlets  however I now want
to use EJB's as well, hence the move to JBoss and Jetty

My question is - 

My servlets and other classes are located under the webapps structure within
Jetty. JBoss fails to find these classes. I don't want to be creating war's
or ear's as I am still developing the code and don't want to be creating
archives each time I change something. How can I configure JBoss to
recognise the servlets and other classes located under the
jboss_jetty\Jetty-3.0.2\webapps structure ?

I am using JBoss version PRE 2.1 final and Jetty version 3.0.2 on a Windows
2000 box

rgds

Paul Fallowfield



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



[JBoss-user] Problem getting JSP working

2001-04-02 Thread Kroon, Wilbert

Just downloaded jboss-tomcat-2.1. After installation everything I tried
worked as advertised (including deploying a simple bean, adding a JDBC
driver and running the servlet test pages) so I assume my basic setup is
correct . However the example JSP pages included in the kit all generate an
error like attached. Do I need to do some additional configuration work to
get this going?

Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Unknown Source)
Root cause: 
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Unknown Source)


Wilbert Kroon



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



Re: [JBoss-user] howto

2001-04-02 Thread Christopher Albert

"Kimpton,C (Chris)" wrote:
 
 Hi,
 
 If you are using the default setup, it will use/create a hypersonic db by
 default.
 
 It will be in the dist/db/hypersonic directory.
 
 HTH,
 Chris
 
  -Original Message-
  From: Ian McCallion [mailto:[EMAIL PROTECTED]]
  Sent: Monday, 02 April 2001 14:20
  To: [EMAIL PROTECTED]
  Subject: [JBoss-user] howto
 
 
  I'm trying to use jboss 2.1 for a small project. How do I
  create a database
  using InstantDB or Hypersonic? Are there instructions I've
  missed? Apologies if
  so.
 

Ian,
You might want also to try the Petstore application, which will give you
various examples to look at (using the CLoudscape DB), and an idea of a
larger application. You'll have to rebuild it for Jboss. You can find it
via the Documentation part of the jboss.org site.

Chris


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



Re: [JBoss-user] Problem getting JSP working

2001-04-02 Thread Christopher Albert

"Kroon, Wilbert" wrote:
 
 Just downloaded jboss-tomcat-2.1. After installation everything I tried
 worked as advertised (including deploying a simple bean, adding a JDBC
 driver and running the servlet test pages) so I assume my basic setup is
 correct . However the example JSP pages included in the kit 

 Root cause:
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at



Wilbert,

See sec6 of
http://www.jboss.org/business/jboss-tomcat.html.

You need to add the jdk tools.jar . The doc above gives several
solutions.

Chris


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



Re: [JBoss-user] Problem getting JSP working

2001-04-02 Thread Peter_Cetinski


Did you include tools.jar in your classpath?

See http://www.jboss.org/business/jboss-tomcat.html





"Kroon, Wilbert" [EMAIL PROTECTED]@lists.sourceforge.net on
04/02/2001 10:02:06 AM

Please respond to [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To:   "'[EMAIL PROTECTED]'"
  [EMAIL PROTECTED]
cc:

Subject:  [JBoss-user] Problem getting JSP working


Just downloaded jboss-tomcat-2.1. After installation everything I tried
worked as advertised (including deploying a simple bean, adding a JDBC
driver and running the servlet test pages) so I assume my basic setup is
correct . However the example JSP pages included in the kit all generate an
error like attached. Do I need to do some additional configuration work to
get this going?

Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79

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

onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Unknown Source)
Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)

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

rvlet.java:152)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja

va:164)
 at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
 at org.apache.tomcat.core.Handler.service(Handler.java:286)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79

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

onnectionHandler.java:210)
 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
 at java.lang.Thread.run(Unknown Source)


Wilbert Kroon



___
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] Multiple Servers - Bean Locating

2001-04-02 Thread James Cook

- Original Message -
From: "Guy Rouillier" [EMAIL PROTECTED]


 Please realize that I am still climbing the EJB and JBoss learning curve
 myself.  As long as the clients (which would include some EJBs in this
 discussion) are using a specific nameserver, what difference does it make
 what JBoss does with its own?  In other words, if all clients are looking at
 (e.g.) 192.168.1.100, then the fact that JBoss is running one at
 localhost:1099 is immaterial.  Right?

Well, the goal is to support beans running on multiple containers without
hardcoding lookup hosts. On the server side, your beans will need to talk to
other beans. In some deployment situations, these beans will live in containers
located on other machines. Your EJBs should never pass a host location to
InitialContext(), the server should configure this for you.

In the case of jBoss, your EJBs will automatically look up bean references in
the server's name service (localhost:1099). The docs refer to a situation where
you can look up a bean on another machine but the lookup is hardcoded into the
jboss.xml deployment descriptor for the bean. This is OK in some very limited
cases, but would never be taken seriously in a *real* deployment situation.

As I said before, server architectures get around multi-vm bean lookup using
various mechanisms. Borland uses a "smart-broadcast" technology called OSAgent.
Other servers use a federated namespace, or a single name service. I was trying
to setup the single namespace approach with jBoss, but it looks like it can't be
run that way. At least, it appears that the container will not deploy beans
unless it has its own (local) name service running.

jim


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



Re: [JBoss-user] JBoss and Jetty

2001-04-02 Thread Bill Burke

We also do not use ear's and war's.  To implement this you need to 
change jboss.conf and add ClassPathExtensions for all of your jars and 
class directories, then everything will work.

Bill

Fallowfield Paul wrote:

 Hi
 
 I have been using Jetty for serving JSP's and Servlets  however I now want
 to use EJB's as well, hence the move to JBoss and Jetty
 
 My question is - 
 
 My servlets and other classes are located under the webapps structure within
 Jetty. JBoss fails to find these classes. I don't want to be creating war's
 or ear's as I am still developing the code and don't want to be creating
 archives each time I change something. How can I configure JBoss to
 recognise the servlets and other classes located under the
 jboss_jetty\Jetty-3.0.2\webapps structure ?
 
 I am using JBoss version PRE 2.1 final and Jetty version 3.0.2 on a Windows
 2000 box
 
 rgds
 
 Paul Fallowfield
 
 
 
 ___
 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: Performance (was Re: [JBoss-user] JBoss verses Orion)

2001-04-02 Thread marc fleury

Tom coleman was working with a guy from SUN directly.  We can ping them ...

how is ECPerf catching on in the market place I am not hearing anything
about it...

in fact is it still alive?

marc


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of James Cook
|Sent: Monday, April 02, 2001 1:33 PM
|To: [EMAIL PROTECTED]
|Subject: Re: Performance (was Re: [JBoss-user] JBoss verses Orion)
|
|
|Marc,
|
|Have you guys published the appropriate deployment descriptors to use with
|ECPerf yet? So we can try it out.
|
|jim
|
|- Original Message -
|From: "marc fleury" [EMAIL PROTECTED]
|To: [EMAIL PROTECTED]
|Sent: Monday, April 02, 2001 12:38 PM
|Subject: RE: Performance (was Re: [JBoss-user] JBoss verses Orion)
|
|
|One word...
|
|ECPerf,
|
|the rest is BS and we can't go down and look at every little "home brew"
|test going on.
|
|marc
|
|
|
||-Original Message-
||From: [EMAIL PROTECTED]
||[mailto:[EMAIL PROTECTED]]On Behalf Of danch
||Sent: Monday, April 02, 2001 10:56 AM
||To: [EMAIL PROTECTED]
||Subject: Re: Performance (was Re: [JBoss-user] JBoss verses Orion)
||
||
||Rickard berg wrote:
||
|| danch wrote:
||
|| I've spent the day running some test similiar to Paul's.
||
|| My environment is Linux on a PIII 500, running Sun's 1.3 and
||1.3.1beta JDKs.
||
||
|| My environment is Athlon 650MHz, Sun 1.3, HotSpot Client (i.e. standard
|| install).
||
||
|| In the case of a standalone client looping and repeatedly calling the
|| same method on a stateless session bean, I found that Orion averaged
|| about 3ms. per invocation where JBoss was averaging 6-10 ms/invocation.
||
||
|| With the HelloWorld test in the "jbosstest" module I get 3ms/call,
|| consistently.
||What concerns me isn't the absolute number, but the differential.
||Comparing how fast your machine runs to how fast mine runs doesn't tell
||us much, really. How fast does Orion run HelloWorld on your machine?
||
||
||
|| I also made a servlet which performs an equivalent test in-VM. This was
|| even more disturbing, with Orion taking 10-50 ms to perform 5000
|| invocations and JBoss/Tomcat taking 2250 or thereabouts. This is such a
|| huge difference that I have to believe that optimized invocations are
|| broken in my configuration.
||Well, I was wrong there - it does correctly optimize calls.
||
||
||
|| Running the Tomcat test EAR, which does in-VM calls to a HelloWorld type
|| bean I get 0.08ms per invocation, i.e. 400ms for 5000 calls.
||Which would still be over 8 times longer than orion.
||
||
|| I don't know what's responsible for our differences, but the ones you
|| quote point to either bad environment or bad configuration (since JBoss
|| *can* do much better).
||Bad environment would handicap Orion as well (although it may be that it
||would be handicapped differently.
||
||-danch
||
||
||___
||JBoss-user mailing list
||[EMAIL PROTECTED]
||http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|
|___
|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] Multiple Servers - Bean Locating

2001-04-02 Thread Alexander Kogan

James Cook wrote:
 
 Well, the goal is to support beans running on multiple containers without
 hardcoding lookup hosts. On the server side, your beans will need to talk to
 other beans. In some deployment situations, these beans will live in containers
 located on other machines. Your EJBs should never pass a host location to
 InitialContext(), the server should configure this for you.

Right. Don't forget to add the possibility to look up for a bean without
knowing home/remote interfaces (hardcoded ejb-refs) and it'll be THE
DREAM!

 
 In the case of jBoss, your EJBs will automatically look up bean references in
 the server's name service (localhost:1099). The docs refer to a situation where

Nor really, depends on how you have created initial context.

 you can look up a bean on another machine but the lookup is hardcoded into the
 jboss.xml deployment descriptor for the bean. This is OK in some very limited
 cases, but would never be taken seriously in a *real* deployment situation.

Actually it's a shortcut for lookup for beans from 
a different namespace (NameServer).
 
 As I said before, server architectures get around multi-vm bean lookup using
 various mechanisms. Borland uses a "smart-broadcast" technology called OSAgent.
 Other servers use a federated namespace, or a single name service. I was trying
 to setup the single namespace approach with jBoss, but it looks like it can't be
 run that way. At least, it appears that the container will not deploy beans
 unless it has its own (local) name service running.

Sorry, but it's not true. I'm successfully running two jBoss servers
bounded to
one jnp NameServer (the primary server has the standard configuration
with embedded
naming and the second server uses nameservice from the primary server).
Works
quite well. If you need details, I'll can describe the setup.

Maybe having standalone NameServer will be even better idea, especially
if you
want some sort of load-balancing.

regards,

Alex.


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

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



[JBoss-user] Follow up: Collections and finders

2001-04-02 Thread Carles Pi-Sunyer
Title: Follow up: Collections and finders





I've tracked my problem down to a field in the database that is sometimes NULL. The entity bean variable is declared as an int. My failure occurs when the ejbLoad attempts to load the NULL value into the int field. I'm then getting a NullPointerException. Is this the expected behavior? Is there a way I can code or configure about this problem?

Thanks,
Carles





[JBoss-user] Can Handle be passivated/activated?

2001-04-02 Thread alex zhanov

Hello,
I have two statefull beans. One gets a Handle object from EJBObject of another bean. 
Handle soterd
in bean's class public variable. Both beans are passivated OK, but on activate I get 
an rmi exception:

//In beanA I have a var:
public Handle hand;
//... instansiate another bean and get it's handle...
hand = EJBObject.getHandle();

On activate I get the following:

[beanA] beanA.setSessionContext()
[ExRpg] ExRpgBean
[ExRpg] ExRpgBean.setSessionContext()
[beanA] TRANSACTION ROLLBACK EXCEPTION:Assigning instance of class ExRpg$Proxy to 
field beanA#hand;
nested exception is: 
java.rmi.NoSuchObjectException: Assigning instance of class ExRpg$Proxy to 
field beanA#hand
[beanA] java.rmi.NoSuchObjectException: Assigning instance of class ExRpg$Proxy to 
field beanA#hand
[beanA] at 
org.jboss.ejb.plugins.EnterpriseInstanceCache.get(EnterpriseInstanceCache.java:95)
[beanA] at 
org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:151)
[beanA] at 
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[beanA] at 
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:263)
[beanA] at 
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[beanA] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
[beanA] at 
org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:326)
[beanA] at 
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:237)
[beanA] at 
org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSessionProxy.java:150)
[beanA] at org.jboss.proxy.ProxyCompiler$Runtime.invoke(ProxyCompiler.java:74)
[beanA] at beanA$Proxy.processServiceRequest(Unknown Source)
...

-- 
alex zhanov
[EMAIL PROTECTED] - email
(713) 595-2109 x1708 - voicemail/fax



__
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com


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



Re: [JBoss-user] Tomcat unable to find deployed EJBs in JBoss

2001-04-02 Thread danch

Have you followed the directions at
http://www.jboss.org/business/jboss-tomcat.html or an older set? Things
I'd look at are: the interceptors in tomcat's server.xml, if you're
deploying an ear, does your application.txt have the module stanza for
the ejbs. What name are you trying to look up? It should be simply
'Security', because (as far as I know) JBoss doesn't parse web.xml to
put the right environment together for components running in Tomcat.

Dave Horner wrote:
 
 I'm currently using Tomcat 3.2.1 with Jboss 2.1 under JDK1.3.
 JBoss seems to run fine and deploy my EJBs: -
 
 [Container factory] Deploying TeamWorkspace
 [Container factory] Deploying Security
 [Container factory] Deploying Profile
 [Container factory] Deploying Preferences
 [Container factory] Deploying Nav
 [Container factory] Deploying Expertise
 [Container factory] Deploying EventService
 [Container factory] Deploying Email
 [Container factory] Deploying DocMgt
 [Container factory] Deploying Contacts
 
 However, when I run Tomcat, I'm getting the message: -
 
 Exception: Unable to create instance of EJB
 
 This is produced from code which does a lookup as follows: -
 
 env = new Hashtable();
 env.put("java.naming.factory.initial" ,
 "org.jnp.interfaces.NamingContextFactory");
 env.put("java.naming.provider.url", "localhost:1099");
 env.put("java.naming.factory.url.pkgs", "org.jboss.naming");
 
 try
 {
 Context ctx=new InitialContext(env);
 SecurityHome home =
 (SecurityHome)ctx.lookup(Constants.get("ejb.name.security"));
 Security ejb  = home.create();
 user=ejb.getUserDetails(userName);
 
 etc.
 
 I've tried doing System.SetProperties and using a jndi.properties
 instead of using a Hashtable and it seems to make no difference.
 
 Does anyone have any ideas where I could be going wrong ?
 Thanks for any help.
 Dave
 
 Dave Horner
 

-- 
Dan Christopherson (danch) 
nVisia Technical Architect (www.nvisia.com)

Opinions expressed are mine and do not neccessarily reflect any 
position or opinion of nVISIA.

---
If you're a capitalist and you have the best goods and they're 
free, you don't have to proselytize, you just have to wait.
-Eben Moglen

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



[JBoss-user] JNDI

2001-04-02 Thread Simphoukham, Southin

Here is a newbie questoin.  Has anyone used JNDI on JBoss to make a
connection to a Windows NT server and mapped the directory structure of the
server?  This is without knowing the server structure.  I am looking at
doing a proof of concept where the user clicks a button from a page, then a
nice html page pops up with the server folders displayed and the user
traverses the structure until they find there file and copy it or ftp it to
a predetermine server.
 
Obviously using a ftp program would the easiest route to go but the user
wants an integrated look and feel in the app.  Therefore all this work.  Any
suggestions would be helpful.
 
Southin

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



[JBoss-user] The Weblogic to JBoss/Jetty experience.

2001-04-02 Thread Bill Burke

I've seen some posts here about supporting WebLogic deployment 
descriptors, so I thought I should share some of our experiences of 
porting a year old Weblogic 5.1 application to JBoss/Jetty.  We started 
off using JBoss 2.0Final and have recently moved to various snapshots of 
JBoss 2.1 as bugs are fixed.  We're using Jetty 3.0.3 as well.  One 
thing to note is that this was our first project using EJB, so we were a 
little cloudy on the EJB spec and the correct way to write beans.

JBoss:
- We found that we needed to declare ejb-refs for referenced beans in 
our jboss.xml and ejb-jar.xml files for JBoss to work with our Jars.  We 
did not need to do this with Weblogic.  Maybe this isn't a problem in  
JBoss 2.1?

- For EntityBeans, we did not know that the EJB spec states that each 
persistent data member of your bean class needs to be initialized in the 
ejbCreate methods.  We were depending on the initial values being set in 
the declaration of the member variable . (i.e. class fooBean { int 
m_SomeVariable = 25; }).  This is not a problem with Weblogic 5.1

- This problem almost caused us to ditch JBoss and buy Weblogic, 
although it was an RTFM error.  We're using JAWS and CMP and the default 
for tuned-updates is false.  When tuned-updates is false, every field 
in the bean is updated in the database including the primary keys!  When 
you update a primary key you must obtain a write-lock on the index for 
the table.  This was causing deadlock in our application because we were 
having one thread that was inserting into a table causing a lock on the 
index and another thread that was trying to update a primary key that 
was trying to get a lock on the index.  The moral of the story is ALWAYS 
HAVE tuned-updates set to TRUE!  IMHO, tuned-updates should be removed 
as a configuration parameter, or at least, primary keys should not be 
updated if they have not changed if tuned-updates is set to false.  
Otherwise, you're going to have dumbasses like me thinking JBoss is a 
piece of shit, when it is plain user error.

- Another deadlock problem we had was that the default trans-attribute 
for Weblogic is "Supports" for stateless beans, and for JBoss it is 
"Required".  Since some of our Stateless Beans where using entity beans 
and we were assuming "Supports", we were getting deadlock everywhere.  
It is not clearly stated in the JBoss documentation that the default 
trans-attribute is Supports.

Jetty:

- With the Weblogic 5.1 JSP engine you can do jsp:includes and then do 
a jsp:forward or a redirect.  With Jetty and probably Tomcat, since 
they both use the apache Jasper engine, jsp:include causes a flush of 
the output buffer and commits the request.  Thus you can't do a 
jsp:forward or a redirect.

- For the jsp:setProperty tag, the property attribute name's first 
character must be lowercase for Jetty.  Weblogic takes either lower or 
uppercase.
i.e.
jsp:setProperty name="TheObject" property="FooBar" param="foobar"/  ERROR!
jsp:setProperty name="TheObject" property="fooBar" param="foobar"/  
CORRECT

- errorPage will not work if you have already have had a jsp:include 
since the buffer get's flushed.

- To get the Jetty/Jboss integrated VM to work you must load your 
application's non-ejb-jars and classes through the ClassPathExtensions 
in jboss.conf.  Don't have your application's jars/classes in the System 
classpath

- You must have xml.jar in your CLASSPATH.

BTW, this story has a happy ending.  We have successfully ported or 
application from Weblogic 5.1 to JBoss/Jetty and are happy so far with 
the move.

(Jamie, do you have anything to add?)

Best regards,

Bill


 



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



Re: [JBoss-user] The Weblogic to JBoss/Jetty experience.

2001-04-02 Thread Rickard Öberg

Bill Burke wrote:
 JBoss:
 - We found that we needed to declare ejb-refs for referenced beans in
 our jboss.xml and ejb-jar.xml files for JBoss to work with our Jars.  We
 did not need to do this with Weblogic.  Maybe this isn't a problem in
 JBoss 2.1?

The jboss.xml one is only necessary if you have several JAR's. Otherwise
it works with just ejb-jar.xml. Using several JAR's in an EAR should
work too (IIRC).

 - For EntityBeans, we did not know that the EJB spec states that each
 persistent data member of your bean class needs to be initialized in the
 ejbCreate methods.  We were depending on the initial values being set in
 the declaration of the member variable . (i.e. class fooBean { int
 m_SomeVariable = 25; }).  This is not a problem with Weblogic 5.1

Because they don't use pooling. Simply set the pool size to 0 in
standard-jboss.xml for the same behaviour. If you need pooling, then the
WL 5.1 behaviour is gonna kill your performance.

 - This problem almost caused us to ditch JBoss and buy Weblogic,
 although it was an RTFM error.  We're using JAWS and CMP and the default
 for tuned-updates is false.  When tuned-updates is false, every field
 in the bean is updated in the database including the primary keys!  When
 you update a primary key you must obtain a write-lock on the index for
 the table.  This was causing deadlock in our application because we were
 having one thread that was inserting into a table causing a lock on the
 index and another thread that was trying to update a primary key that
 was trying to get a lock on the index.  The moral of the story is ALWAYS
 HAVE tuned-updates set to TRUE!  IMHO, tuned-updates should be removed
 as a configuration parameter, or at least, primary keys should not be
 updated if they have not changed if tuned-updates is set to false.
 Otherwise, you're going to have dumbasses like me thinking JBoss is a
 piece of shit, when it is plain user error.

PK values should not be updated, true.

 - Another deadlock problem we had was that the default trans-attribute
 for Weblogic is "Supports" for stateless beans, and for JBoss it is
 "Required".  Since some of our Stateless Beans where using entity beans
 and we were assuming "Supports", we were getting deadlock everywhere.
 It is not clearly stated in the JBoss documentation that the default
 trans-attribute is Supports.

True, that should be documented better.

 Jetty:
 
 - With the Weblogic 5.1 JSP engine you can do jsp:includes and then do
 a jsp:forward or a redirect.  With Jetty and probably Tomcat, since
 they both use the apache Jasper engine, jsp:include causes a flush of
 the output buffer and commits the request.  Thus you can't do a
 jsp:forward or a redirect.

The Jasper engine is flawed in many ways, true. This is one of them. (It
sucks performance-wise too).

 - errorPage will not work if you have already have had a jsp:include
 since the buffer get's flushed.
 
 - To get the Jetty/Jboss integrated VM to work you must load your
 application's non-ejb-jars and classes through the ClassPathExtensions
 in jboss.conf.  Don't have your application's jars/classes in the System
 classpath

True, this is a common problem. I remember that we had a discussion
about whether to include CLASSPATH or not. I personally preferred not to
use it because it's error-prone, but it was decided to keep it (can't
remember why right now).

 BTW, this story has a happy ending.  We have successfully ported or
 application from Weblogic 5.1 to JBoss/Jetty and are happy so far with
 the move.

Well, it's nice to have it end good, but it's sad that you had such a
bumpy road. Hopefully some of the sillier items on the list will improve
as we go along.

regards,
  Rickard

-- 
Rickard berg
Software Development Specialist
xlurc - Xpedio Linkping 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] Java pet store download problem

2001-04-02 Thread Nathan Coast

Hi, I'm trying to download the jps package from:

http://www.jboss.org/manual/jboss-petstore.tgz

But the download is only 11k and none of the zip utilities I have are able to 
open it (invalid archive).  I suspect 11k is a little small?

Can someone mail me a working copy of the zip?

Cheers
Nathan


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



Re: Performance (was Re: [JBoss-user] JBoss verses Orion)

2001-04-02 Thread James Cook

It is still considered "early release".

http://java.sun.com/j2ee/ecperf/

The JSR's public review is closed.

I think we will see a lot more of it when it is finalized, but now is the time
to start getting instructions together for deployment. This will entail the same
items that you have provided for the PetStore demo. Hopefully just some
deployment descriptors, and a program/script to creat/populate database tables.

It is my belief that there is a great disparity in performance among the many
ejb containers. I think ECPerf will be a huge success if it is easily deployed
and if it works! ;-)


jim

- Original Message -
From: "marc fleury" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 02, 2001 2:08 PM
Subject: RE: Performance (was Re: [JBoss-user] JBoss verses Orion)


Tom coleman was working with a guy from SUN directly.  We can ping them ...

how is ECPerf catching on in the market place I am not hearing anything
about it...

in fact is it still alive?

marc


|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of James Cook
|Sent: Monday, April 02, 2001 1:33 PM
|To: [EMAIL PROTECTED]
|Subject: Re: Performance (was Re: [JBoss-user] JBoss verses Orion)
|
|
|Marc,
|
|Have you guys published the appropriate deployment descriptors to use with
|ECPerf yet? So we can try it out.
|
|jim
|
|- Original Message -
|From: "marc fleury" [EMAIL PROTECTED]
|To: [EMAIL PROTECTED]
|Sent: Monday, April 02, 2001 12:38 PM
|Subject: RE: Performance (was Re: [JBoss-user] JBoss verses Orion)
|
|
|One word...
|
|ECPerf,
|
|the rest is BS and we can't go down and look at every little "home brew"
|test going on.
|
|marc
|
|
|
||-Original Message-
||From: [EMAIL PROTECTED]
||[mailto:[EMAIL PROTECTED]]On Behalf Of danch
||Sent: Monday, April 02, 2001 10:56 AM
||To: [EMAIL PROTECTED]
||Subject: Re: Performance (was Re: [JBoss-user] JBoss verses Orion)
||
||
||Rickard berg wrote:
||
|| danch wrote:
||
|| I've spent the day running some test similiar to Paul's.
||
|| My environment is Linux on a PIII 500, running Sun's 1.3 and
||1.3.1beta JDKs.
||
||
|| My environment is Athlon 650MHz, Sun 1.3, HotSpot Client (i.e. standard
|| install).
||
||
|| In the case of a standalone client looping and repeatedly calling the
|| same method on a stateless session bean, I found that Orion averaged
|| about 3ms. per invocation where JBoss was averaging 6-10 ms/invocation.
||
||
|| With the HelloWorld test in the "jbosstest" module I get 3ms/call,
|| consistently.
||What concerns me isn't the absolute number, but the differential.
||Comparing how fast your machine runs to how fast mine runs doesn't tell
||us much, really. How fast does Orion run HelloWorld on your machine?
||
||
||
|| I also made a servlet which performs an equivalent test in-VM. This was
|| even more disturbing, with Orion taking 10-50 ms to perform 5000
|| invocations and JBoss/Tomcat taking 2250 or thereabouts. This is such a
|| huge difference that I have to believe that optimized invocations are
|| broken in my configuration.
||Well, I was wrong there - it does correctly optimize calls.
||
||
||
|| Running the Tomcat test EAR, which does in-VM calls to a HelloWorld type
|| bean I get 0.08ms per invocation, i.e. 400ms for 5000 calls.
||Which would still be over 8 times longer than orion.
||
||
|| I don't know what's responsible for our differences, but the ones you
|| quote point to either bad environment or bad configuration (since JBoss
|| *can* do much better).
||Bad environment would handicap Orion as well (although it may be that it
||would be handicapped differently.
||
||-danch
||
||
||___
||JBoss-user mailing list
||[EMAIL PROTECTED]
||http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user
|
|
|
|___
|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] Follow up: Collections and finders

2001-04-02 Thread Chris Winters

* Carles Pi-Sunyer ([EMAIL PROTECTED]) [010402 15:22]:
 I've tracked my problem down to a field in the database that is sometimes
 NULL. The entity bean variable is declared as an int. My failure occurs when
 the ejbLoad attempts to load the NULL value into the int field. I'm then
 getting a NullPointerException. Is this the expected behavior? Is there a
 way I can code or configure about this problem?

Yeah, use the wrapper classes rather than the primitive
types. (java.lang.Integer vs. int) I had this problem too and
everything cleared up after I made this change.

Chris

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



Re: [JBoss-user] Custom MBeans

2001-04-02 Thread Scott M Stark

I'm doing a complete howto on writing custom MBeans that describes the
details of the configuration and depdendency aspects. This will cover the
Service, ServiceMBean  ServiceMBeanSupport classes.

- Original Message - 
From: "Liu, Kenneth Albert (Kenneth)** CTR **" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, April 02, 2001 1:02 PM
Subject: RE: [JBoss-user] Custom MBeans


 There is a jboss-doc mailing list at
 http://groups.yahoo.com/group/jboss-docs
 I would submit the email you posted as HOWTO: Create a custom JBoss MBean.
 It would be even better if you provided a little more explanation of what a
 ServiceMBean does.
 
 Ken



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



[JBoss-user] EAR deployment with Jboss/Tomcat

2001-04-02 Thread Jason Wells

Hello,

A basic question... I'm trying to deploy a very simple servlet that
calls a very simple stateless session bean. Our configuration has Apache
integrated with Tomcat/Jboss (embedded). I've been following these
instructions:

http://www.jboss.org/business/jboss-tomcat.html

I have a web archive (ejbHello.war) containing a servlet called
ejbHelloServlet. This servlet uses a stateless session bean called
ejbHello, which is in a JAR called ejbHello.jar. These have been
combined into an EAR called ejbHello.ear. The application.xml file in
the EAR sets the context root as /ejbHello. The EAR is deployed in the
Jboss /deploy directory.

Which is great, except that when I visit the URL, which I believe
(according to the instructions) should be
http://localhost:8082/ejbHello, I get a 404. 

What am I doing wrong here? One area that makes me suspicious is at the
end of the instructions, where it says "for your application to be
visible through Apache, you must setup the appropriate JkMount
statements in mod_jk.conf." However, it doesn't mention what the
'appropriate statements' are.

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

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



RE: [JBoss-user] instantdb deadlock

2001-04-02 Thread Dominik Baranowski

just replaced the jar

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alexander
Kogan
Sent: Friday, March 30, 2001 10:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] instantdb deadlock


Dominik,

Have you just replaced instantdb.jar or done something more
to switch to 3.26?

Thanks.


Dominik Baranowski wrote:

 FYI: I've encounted a deadlock while performing concurrent access to
 instantDB
 this is fixed in version 3.26 which can be downloaded from the enhydra
site.

 -dom

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

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

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


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



[JBoss-user] JBoss 2.1-beta / Jetty-3.1.RC2 - new jboss-jetty available

2001-04-02 Thread Julian Gosnell


For all those who have waited patiently. There is a new combined
jboss-jetty release here :

http://prdownloads.sourceforge.net/jetty/jboss-jetty-2.1-beta.tgz

I would like to have put it up on the JBoss site, but I am still waiting
for my SourceForge login to be permissioned to mess about with JBoss.

This is _NOT_ the promised full JMX integration (Jetty now has complete
support from JMX so you can really poke about about in it's innards
whilst it is running !), but simply an upgrade of the current
implementation. This will follow as soon as I figure out how to tie
JBoss and Jetty JMX support together (I shall probably still have to
wrap-n-delegate, which is exactly what I was hoping I could now avoid).

I would be very grateful if anyone encountering any problems with the
above let me know, so that Greg and I get a chance to fix them. So don't
be shy.

Enjoy,


Jules



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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



[JBoss-user] Memory Usage

2001-04-02 Thread Igor Shevchenko

Hello!

I've got a quick question about JBoss/Tomcat memory usage.
If there's no EJBs loaded / no user date, how much will it take ?

Please CC reply to me because I'm not on this list.

Regards, Igor



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



[JBoss-user] Jboss 2-1 Startup problem

2001-04-02 Thread Michael Oswall


I am new to JBoss and I just downloaded new the Jboss 2.1 release from March
26, 2001 from jboss.org.  I followed the minimal instructions for installing
Jboss both on my Windows 2000 machine and my Linux box.  In both OS's when I
try to startup Jboss, I get the following exception:

[Windows 2000 print out]

C:\jboss\jboss-2.1\binjava -jar run.jar
jboss.home = C:\jboss\jboss-2.1
Using configuration "default"
[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
Exception in thread "main" [Default]
javax.xml.parsers.FactoryConfigurationError
: java.lang.ClassNotFoundException:
org.apache.crimson.jaxp.DocumentBuilderFacto
ryImpl
[Default]   at
javax.xml.parsers.DocumentBuilderFactory.newInstance(Document
BuilderFactory.java:118)
[Default]   at org.jboss.Main.init(Main.java:192)
[Default]   at org.jboss.Main$1.run(Main.java:107)
[Default]   at java.security.AccessController.doPrivileged(Native
Method)
[Default]   at org.jboss.Main.main(Main.java:103)
[Default] Shutting down
[Service Control] Stopping 0 MBeans
[Service Control] Stopped 0 services
[Service Control] Destroying 0 MBeans
[Service Control] Destroyed 0 services
[Default] Shutdown complete

C:\jboss\jboss-2.1\bin

Am I missing something simple here?  I looked and made sure that I had
crimson.jar and jaxp.jar.  They are both sitting in the jboss lib directory.
I even tried adding them to the classpath, but that did not help.

Any suggestions would be greatly appreciated.

Thanks,
Oz


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



Re: [JBoss-user] Jboss 2-1 Startup problem

2001-04-02 Thread Scott M Stark

Yes, use the run.bat and run.sh scripts. Where are you seeing "java -jar run.jar" in 
the docs?

- Original Message - 
From: "Michael Oswall" [EMAIL PROTECTED]
To: "Jboss User / Support" [EMAIL PROTECTED]
Sent: Monday, April 02, 2001 4:26 PM
Subject: [JBoss-user] Jboss 2-1 Startup problem


 
 I am new to JBoss and I just downloaded new the Jboss 2.1 release from March
 26, 2001 from jboss.org.  I followed the minimal instructions for installing
 Jboss both on my Windows 2000 machine and my Linux box.  In both OS's when I
 try to startup Jboss, I get the following exception:



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



[JBoss-user] How to deploy an external jar in JBoss?

2001-04-02 Thread suyan zhu
I'd like to deploy an external jar file(e.g jdom.jar)used by thewar of an application in JBoss. How should it be specified in deployment descriptor, or Manifest.mf?
Thanks,
Suyan,Do You Yahoo!?
Yahoo! Mail Personal Address - 
Get email at your own domain with Yahoo! Mail.

RE: [JBoss-user] How to deploy an external jar in JBoss?

2001-04-02 Thread Filip Hanik



WEB-INF/lib

Filip

~Namaste - I bow to the divine in you~Filip 
HanikSoftware Architect[EMAIL PROTECTED]www.filip.net 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of suyan 
  zhuSent: Monday, April 02, 2001 5:14 PMTo: 
  [EMAIL PROTECTED]Subject: [JBoss-user] How to deploy 
  an external jar in JBoss?
  I'd like to deploy an external jar file(e.g jdom.jar)used by 
  thewar of an application in JBoss. How should it be specified in 
  deployment descriptor, or Manifest.mf?
  Thanks,
  Suyan,
  
  
  Do You Yahoo!?Yahoo! Mail Personal 
  Address - Get email at your own domain with Yahoo! 
Mail.


Re: [JBoss-user] JBoss on Win98

2001-04-02 Thread Peter Routtier-Wone

 How to you redirect the output to the file.

Edit the batch file. Putting the redirect outside the script doesn't work.

java -classpath "%CLASSPATH%" org.jboss.Main %1 %2 %3 %4 %5 %6 %7 %8 %9 
out.txt





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



Re: [JBoss-user] commit option A and ejbStore

2001-04-02 Thread danch

Shahar Solomianik wrote:

 Hi.
 Can someone explain why (for god sake) does the spec forces the container to
 invoke ejbStore on entity beans, when using commit option A , even if the
 bean's state hasn't change ???
probably just so that the container isn't required to figure out whether 
the bean has changed or not. Note that WebLogic and JBoss allow you to 
implement a 'boolean isModified();' method on your bean class such that 
if that method returns false, ejbStore() isn't called.

-danch


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



Re: [JBoss-user] re: JBoss 2.0 and Tomcat

2001-04-02 Thread Guy Rouillier

Where are you running the client from?  Are you showing us the classpath for
jboss-tomcat?  jnp-client.jar needs to be in the classpath of the client,
not of the server.  Hmmm, now this is curious; when I had jboss-client.jar
in the classpath, I didn't need jnp-client.jar at all.  Yet if I explode
jboss-client.jar, it doesn't contain
org/jnp/interfaces/NamingContextFactory.class.  So how can this class be
getting resolved with only jboss-client.jar?  (A question for the group, not
you, as I realized you asked the question in the first place.)

Clarify your scenario.  You are trying to invoke the interest ejb bean
running under jboss with embedded tomcat, from a jsp page or servlet running
under tomcat?  If so, this should all be done from within a single jvm.

- Original Message -
From: "Marcillo, David" [EMAIL PROTECTED]
To: "'jboss-user list'" [EMAIL PROTECTED]
Sent: Monday, April 02, 2001 4:38 PM
Subject: [JBoss-user] re: JBoss 2.0 and Tomcat



 I am trying to get to the sample Interest EJB to run in tomcat

 Running Environment:
 IIS with jakarta-tomcat-3.2.1 running inprocess
  Trying to connect to
 jBoss-2.0_FINAL   process

 I invoke the Interest EJB as follow:
  System.setProperty("java.naming.factory.initial",
   "org.jnp.interfaces.NamingContextFactory");
  System.setProperty("java.naming.provider.url",
 "localhost:1099");
   InitialContext  jndiContext = new InitialContext();

 I get the following error message:
  Cannot instantiate class: org.jnp.interfaces.NamingContextFactory
   [Root exception is java.lang.ClassNotFoundException:
   org/jnp/interfaces/NamingContextFactory]

 class path from System.getProperty("java.class.path"); is as follows:

 ClassPath:

c:\jakarta-tomcat-3.2.1\classes;c:\jakarta-tomcat-3.2.1\lib\jaxp.jar;c:\jaka

rta-tomcat-3.2.1\lib\parser.jar;c:\jakarta-tomcat-3.2.1\lib\jasper.jar;c:\ja

karta-tomcat-3.2.1\lib\servlet.jar;c:\jakarta-tomcat-3.2.1\lib\webserver.jar

;c:\jakarta-tomcat-3.2.1\conf;c:\jdk13\lib\tools.jar;C:\jdk13\jre\lib\i18n.j

ar;C:\jdk13\jre\lib\jaws.jar;C:\jdk13\jre\lib\rt.jar;C:\jdk13\jre\lib\sunrsa

sign.jar;C:\jdk13\lib\dt.jar;c:\jBoss-2.0_FINAL\client\ejb.jar;c:\jBoss-2.0_

FINAL\client\jboss-client.jar;c:\jBoss-2.0_FINAL\client\jnp-client.jar;c:\jB

oss-2.0_FINAL\client\jaas.jar;c:\jBoss-2.0_FINAL\client\jndi.jar;c:\jBoss-2.

0_FINAL\conf;c:\jBoss-2.0_FINAL\lib\jboss-jaas.jar;c:\jBoss-2.0_FINAL\lib\xm

l.jar;c:\jBoss-2.0_FINAL\lib\jjmxri.jar;c:\jBoss-2.0_FINAL\lib\jdbc2_0-stdex

t.jar;c:\jBoss-2.0_FINAL\lib\ext\activation.jar;c:\jBoss-2.0_FINAL\bin\run.j

ar;c:\jBoss-2.0_FINAL\lib\ext\awt.jar;c:\jBoss-2.0_FINAL\lib\ext\dynaserver.

jar;c:\jBoss-2.0_FINAL\lib\ext\ejxeditor.jar;c:\jBoss-2.0_FINAL\lib\ext\ejxe

jb.jar;c:\jBoss-2.0_FINAL\lib\ext\ejxjaws.jar;c:\jBoss-2.0_FINAL\lib\ext\ejx

jboss.jar;c:\jBoss-2.0_FINAL\lib\ext\hsql.jar;c:\jBoss-2.0_FINAL\lib\ext\idb

.jar;c:\jBoss-2.0_FINAL\lib\ext\jboss.jar;c:\jBoss-2.0_FINAL\lib\ext\jetty-s

ervice.jar;c:\jBoss-2.0_FINAL\lib\ext\jms.jar;c:\jBoss-2.0_FINAL\lib\ext\jmx

tools.jar;c:\jBoss-2.0_FINAL\lib\ext\jnpserver.jar;c:\jBoss-2.0_FINAL\lib\ex

t\jpl-util-0_5b.jar;c:\jBoss-2.0_FINAL\lib\ext\jta-spec1_0_1.jar;c:\jBoss-2.

0_FINAL\lib\ext\mail.jar;c:\jBoss-2.0_FINAL\lib\ext\spydermq.jar;c:\jBoss-2.
 0_FINAL\lib\ext\tomcat-service.jar;c:\jBoss-2.0_FINAL\lib\ext\mysql.jar

 Thanks,
 C. David Marcillo
 Elcom
 (781) 501-4382
 [EMAIL PROTECTED]


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



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



[JBoss-user] running the EJB client in the jboss EJB tutorial

2001-04-02 Thread anand

Hi all,

I am new to jboss and want to learn EJB through jboss. I was trying to
follow the 7 step tutorial (using the interest example) given and was
successful in deploying the EJB in jboss. But I am having problems in
running the client(InterestClient). 

I was able to successfully compile the InterestClient.java without any
error. But when I try to run it is giving the following error while I
run it. 

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

Can someone help me to get rid of this error and how I can run the
client correctly. The line 49 where the error is flagged contains this
line 
"Interest interest = home.create();"

Thanks,
Anand.

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



Re: [JBoss-user] running the EJB client in the jboss EJB tutorial

2001-04-02 Thread Aaron Metzger


Add jbosssx-client.jar to the client's classpath.


anand wrote:
 
 Hi all,
 
 I am new to jboss and want to learn EJB through jboss. I was trying to
 follow the 7 step tutorial (using the interest example) given and was
 successful in deploying the EJB in jboss. But I am having problems in
 running the client(InterestClient).
 
 I was able to successfully compile the InterestClient.java without any
 error. But when I try to run it is giving the following error while I
 run it.
 
 Got context
 Got reference
 Exception in thread "main" java.lang.NoClassDefFoundError:
 org/jboss/security/SecurityAssociation
 at
 org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericP
 roxy.java:184)
 at
 org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:23
 1)
 at $Proxy0.create(Unknown Source)
 at InterestClient.main(InterestClient.java:49)
 

-- 
Aaron Metzger

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



Re: [JBoss-user] Jboss 2-1 Startup problem

2001-04-02 Thread zach thompson

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 02 Apr 2001, you wrote:
 Yes, use the run.bat and run.sh scripts. Where are you seeing "java -jar run.jar" in 
the docs?
 

I had hit this same obstacle.  The reference to "java -jar run.jar" can be
found at http://www.jboss.org/documentation/HTML/ch01s05.html.  

Zach Thompson

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8

iQA/AwUBOslR0JCjAI4/vZatEQJL4wCdFdkKf6JkLXTRZpeh0UI+5LGGQvsAoLUe
m04KJFzysl5KhRlJqcJEP9BB
=4+fC
-END PGP SIGNATURE-

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



Re: [JBoss-user] Jboss 2-1 Startup problem

2001-04-02 Thread Scott M Stark

Not anymore. It now shows to use run.sh

 
 I had hit this same obstacle.  The reference to "java -jar run.jar" can be
 found at http://www.jboss.org/documentation/HTML/ch01s05.html.  
 
 Zach Thompson
 



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



[JBoss-user] Segmentation violation on Linux ....

2001-04-02 Thread swarajit

Hi,
I'm using JBOSS on Linux and jdk1.2.2. I tried to run Enitity
Bean(CMP) but it's giving the following dump 
Thanks and regards
Swarajit

RegistrationEntityBean] in setEntityContext
[RegistrationEntityBean] in ejbActivate
method unknown (eip = 0)
SIGSEGV   11*  segmentation violation
si_signo [11]: SIGSEGV   11*  segmentation violation
si_errno [0]: Success
si_code [0]: SI_USER [pid: 0, uid: 0]
stackpointer=0x44ba1450

Full thread dump Classic VM (1.2.2-RC2-K, green threads):
"Thread-12" (TID:0x40e62890, sys_thread_t:0x81a0a50, state:CW)
prio=5
at java.lang.Object.wait(Native Method)
at
org.jboss.util.timeout.TimeoutFactory.doWork(TimeoutFactory.java:506)
at
org.jboss.util.timeout.TimeoutFactory.access$1(TimeoutFactory.java:4)
RegistrationEntityBean] in setEntityContext
[RegistrationEntityBean] in ejbActivate
method unknown (eip = 0)
SIGSEGV   11*  segmentation violation
si_signo [11]: SIGSEGV   11*  segmentation violation
si_errno [0]: Success
si_code [0]: SI_USER [pid: 0, uid: 0]
stackpointer=0x44ba1450

Full thread dump Classic VM (1.2.2-RC2-K, green threads):
"Thread-12" (TID:0x40e62890, sys_thread_t:0x81a0a50, state:CW)
prio=5
at java.lang.Object.wait(Native Method)
at
org.jboss.util.timeout.TimeoutFactory.doWork(TimeoutFactory.java:506)
at
org.jboss.util.timeout.TimeoutFactory.access$1(TimeoutFactory.java:4)

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



[JBoss-user] JBoss Xalan Xerces problems

2001-04-02 Thread Brian Elliott

I can't get JBoss (2.0 final) to work with Xalan  Xerces even after
following the doc "Configuring and Using JAXP 1.1 in JBoss" and looking
at three postings from the archive. Here is where I make changes to my
run.bat (NT environment) - notice I did add xerces.jar and xalan.jar to
the CLASSPATH:

-- run.bat fragment -
:startJBoss
set
CLASSPATH=%CLASSPATH%;..\lib\jdbc2_0-stdext.jar;..\lib\jboss-jaas.jar;D:\jBoss\lib\xerces.jar;D:\jBoss\lib\xalan.jar

set
JAXP="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
set JAXP="$JAXP
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl"

java -classpath "%CLASSPATH%" -Dtomcat.home=%TOMCAT_HOME% org.jboss.Main
%1 %2 %3 %4 %5 %6 %7 %8 %9

pause

-- end run.bat -

And I created a jaxp.properties file in my D:\jdk1.3\jre\lib that looks
like this (which it looks like JBoss is referring to from the error
messages):

javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl

--end jaxp.properties-

The error I am getting basically says that the document is malformed but
when I run it standalone, it works fine:

javax.xml.transform.TransformerException: The markup in the document
following the root element must be well-formed.
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:660)
at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1118)
at
com.unpluggedsystems.mls.TranscoderBean.xForm(com/unpluggedsystems/mls/TranscoderBean.java:53)

---

Also I don't see any references in the JBoss startup output refering to
xerces or xalan if it matters.

Any ideas? Thanks,

Brian
-- 
Brian Elliott
Unplugged Systems
[EMAIL PROTECTED]
http://www.unpluggedsystems.com

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



RE: [JBoss-user] running the EJB client in the jboss EJB tutorial

2001-04-02 Thread anand

Thanks Aaron, 

That really worked and I got the output. 

Thanks again. 
Anand. 

-Original Message-
From: Aaron Metzger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 12:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] running the EJB client in the jboss EJB
tutorial



Add jbosssx-client.jar to the client's classpath.


anand wrote:
 
 Hi all,
 
 I am new to jboss and want to learn EJB through jboss. I was trying to
 follow the 7 step tutorial (using the interest example) given and was
 successful in deploying the EJB in jboss. But I am having problems in
 running the client(InterestClient).
 
 I was able to successfully compile the InterestClient.java without any
 error. But when I try to run it is giving the following error while I
 run it.
 
 Got context
 Got reference
 Exception in thread "main" java.lang.NoClassDefFoundError:
 org/jboss/security/SecurityAssociation
 at

org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericP
 roxy.java:184)
 at

org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:23
 1)
 at $Proxy0.create(Unknown Source)
 at InterestClient.main(InterestClient.java:49)
 

-- 
Aaron Metzger

___
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: Performance (was Re: [JBoss-user] JBoss verses Orion)

2001-04-02 Thread marc fleury

One word...

ECPerf,

the rest is BS and we can't go down and look at every little home brew
test going on.

marc



|-Original Message-
|From: [EMAIL PROTECTED]
|[mailto:[EMAIL PROTECTED]]On Behalf Of danch
|Sent: Monday, April 02, 2001 10:56 AM
|To: [EMAIL PROTECTED]
|Subject: Re: Performance (was Re: [JBoss-user] JBoss verses Orion)
|
|
|Rickard Öberg wrote:
|
| danch wrote:
|
| I've spent the day running some test similiar to Paul's.
|
| My environment is Linux on a PIII 500, running Sun's 1.3 and
|1.3.1beta JDKs.
|
|
| My environment is Athlon 650MHz, Sun 1.3, HotSpot Client (i.e. standard
| install).
|
|
| In the case of a standalone client looping and repeatedly calling the
| same method on a stateless session bean, I found that Orion averaged
| about 3ms. per invocation where JBoss was averaging 6-10 ms/invocation.
|
|
| With the HelloWorld test in the jbosstest module I get 3ms/call,
| consistently.
|What concerns me isn't the absolute number, but the differential.
|Comparing how fast your machine runs to how fast mine runs doesn't tell
|us much, really. How fast does Orion run HelloWorld on your machine?
|
|
|
| I also made a servlet which performs an equivalent test in-VM. This was
| even more disturbing, with Orion taking 10-50 ms to perform 5000
| invocations and JBoss/Tomcat taking 2250 or thereabouts. This is such a
| huge difference that I have to believe that optimized invocations are
| broken in my configuration.
|Well, I was wrong there - it does correctly optimize calls.
|
|
|
| Running the Tomcat test EAR, which does in-VM calls to a HelloWorld type
| bean I get 0.08ms per invocation, i.e. 400ms for 5000 calls.
|Which would still be over 8 times longer than orion.
|
|
| I don't know what's responsible for our differences, but the ones you
| quote point to either bad environment or bad configuration (since JBoss
| *can* do much better).
|Bad environment would handicap Orion as well (although it may be that it
|would be handicapped differently.
|
|-danch
|
|
|___
|JBoss-user mailing list
|[EMAIL PROTECTED]
|http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re'f. : [JBoss-user] Multiple Servers - Bean Locating

2001-04-02 Thread Philippe GTLYA-NTIC-PETIT

Hello,
I'm not a guru but your need looks like a directory used as a repository for your 
naming spaces you could access through ldap invocations Perhaps Rickard knows the 
trick...
/Philippe




[EMAIL PROTECTED]%internet le 01/04/2001 07:08:45
Veuillez répondre à [EMAIL PROTECTED]%internet@WTFR
Pour :  [EMAIL PROTECTED]%internet@WTFR
cc : 

Objet : [JBoss-user] Multiple Servers - Bean Locating

X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300
Errors-To: [EMAIL PROTECTED]
X-BeenThere: [EMAIL PROTECTED]
X-Mailman-Version: 2.0.3
Precedence: bulk
List-Help: mailto:[EMAIL PROTECTED]?subject=help
List-Post: mailto:[EMAIL PROTECTED]
List-Subscribe: http://lists.sourceforge.net/lists/listinfo/jboss-user, 
mailto:[EMAIL PROTECTED]?subject=subscribe
List-Id: The JBoss User main mailing list jboss-user.lists.sourceforge.net
List-Unsubscribe: http://lists.sourceforge.net/lists/listinfo/jboss-user, 
mailto:[EMAIL PROTECTED]?subject=unsubscribe
List-Archive: http://lists.sourceforge.net/archives//jboss-user/

I'm trying to get a handle on how jBoss can be used to distribute an
application. In development (and sometimes in production) all of the beans
that an application needs may not be located in the same container. How can
a bean in one container talk to a bean in another container? I could not
find anything in the docs that explained this very well.

Solution #1
===
I saw a newsgroup message where the author was relating a technique for
using the ejb-link tag in the jboss.xml file to include a url like:
jndi://host:port/path/to/object, or something like that. If this works,
good, but it significantly impacts the deployment process if every bean is
hardcoded, although it is via deployment descriptors.

Solution #2
===
I was thinking I could run only one of the jBoss servers with a naming
service. The other servers would be configured to use the name service of
the first container. Whenever a client or another EJB needed a reference to
a bean they would *all* look it up in the same location.

Solution #3
===
I read in the docs about the possibility of federating namespaces. Each
server's name service could be federated into one name service that clients
and jBoss containers would use for lookup.

So what is possible to achieve this today? Are some other more robust
solutions waiting for the clustering architecture to work its way out? Where
are the ideas for future direction discussed or documented?

thanks,
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