Re: [JBoss-user] JMS Queue!!!

2001-05-22 Thread Peter Antman

On 23 Maj, [EMAIL PROTECTED] wrote:
> Hi,
>  I'm very new to JBoss. Can you please tell me how can I create JMS
> queues in here??
> 
> Regards,
> Farhat

Edit conf/default/jbossmq.xml

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

-- 
Jobba hos oss: http://www.tim.se/weblab

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



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



[JBoss-user] Resource-Ref

2001-05-22 Thread Phan Anh Tran

Hi,

According to 1.1, one can specify datasources in the  section
of the deployment descriptor of an EJB.  Does JBOSS support this?  I have
been specifying my datasources directly in the jboss.jcml file, but I'd
rather not have to mess with anything container specific.  Thanks.

Anh



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


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



RE: [JBoss-user] Sorry: problem with finder find all

2001-05-22 Thread Belli Andrea

I've forgotten to attach the standardjawsfile <> 
Thanks

 standardjaws.xml


R: [JBoss-user] problem with finder find all

2001-05-22 Thread Belli Andrea

I attach the standardjaws for any doubt; I saw it and I found this query
prepared by jaws:
SELECT SENDER,BODY_N,DATE_N,TITLE_N,ID_NEWS FROM NEWS WHERE ID_NEWS=?
I don't understand why JAWS add the costruct "WHERE" in prepared statement;
I thought that a findall finder 'd prepare a query like: SELECT * FROM NEWS;
maybe is it a no standard construct? Or is it an error?

any suggestion?


-Messaggio originale-
Da: Dovan Nguyen [mailto:[EMAIL PROTECTED]]
Inviato: Tuesday, May 22, 2001 10:24 PM
A: [EMAIL PROTECTED]
Oggetto: Re: [JBoss-user] problem with finder find all


hi Chris,
I did this and i still don't see the trace.  could you please send us a
sample
of standardjaws.xml.  i am interested in seeing what jaws is doing,
especially
what SQL statement (if possible) jaws is sending.

thanks
dovan

"DeGreef, Chris J. (AIT)" wrote:

> Turn the Debug flag on in the standardjaws.xml file.  true
> Rerun the scenario and look into the server.log file.  You will at least
see
> what JAWS was doing just before the error.  I usually find that an
> unexpected NULL was involved at some point.
>
> -Original Message-
> From: Belli Andrea [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 12:44 PM
> To: Jboss-User (E-mail)
> Subject: [JBoss-user] problem with finder find all
>
> I have a jsp which call a session bean, which does a query on a db by an
> entity bean: the problem is when I try to view the rows on db.
> The jsp invoke the following method myfindAll():
>
> public NewsRemote[] myfindAll() throws RemoteException,FinderException
> {
> NewsHome home = (NewsHome) getHome("mail.News", NewsHome.class);
> Collection all = home.findAll();
> return (NewsRemote[]) all.toArray(new NewsRemote[0]);
> }
>
> The session bean (DbMail) invokes a method of the entity bean News,
> findAll(), which is made by the container, because News is CMP.
> During execution, I have this error:
>
> [mail.News] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception
is:
> java.sql.SQLException: Unable to create PreparedStatement!; nested
> exception is:
> java.rmi.ServerException: Load failed; nested exception is:
> java.sql.SQLException: Unable to create PreparedStatement!
>
> have you any suggestion?Andrea
>
> ___
> 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] Getting a UserTransaction via JNDI from a client?

2001-05-22 Thread Phan Anh Tran



Ok, I found out that it is not just possible with 
the current release.
 
Anh

  - Original Message - 
  From: 
  Phan Anh 
  Tran 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, May 22, 2001 10:56 
PM
  Subject: [JBoss-user] Getting a 
  UserTransaction via JNDI from a client?
  
  How do I get a user transaction via JNDI from a 
  client?  Using JDNIView, I can see a TransactionManager bound to java:, 
  but no UserTransactionso how do I go about this business?  
  Thanks...
   
  Anh
   


Re: [JBoss-user] Getting a UserTransaction via JNDI from a client?

2001-05-22 Thread Keerthi Panneer


Hi,
this should work for u..

Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY,  
"org.jnp.interfaces.NamingContextFactory");
env.setProperty(Context.PROVIDER_URL,  "localhost:1099");
env.setProperty(Context.URL_PKG_PREFIXES,  "org.jboss.naming");

InitialContext ic=new InitialContext(env);
Object tx=ic.lookup("java:/TransactionManager");


>From: "Phan Anh Tran" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: [JBoss-user] Getting a UserTransaction via JNDI from a client?
>Date: Tue, 22 May 2001 22:56:00 -0700
>
>How do I get a user transaction via JNDI from a client?  Using JDNIView, I 
>can see a TransactionManager bound to java:, but no UserTransactionso 
>how do I go about this business?  Thanks...
>
>Anh
>

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


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



Re: [JBoss-user] Error while deploying sample EJB.

2001-05-22 Thread Ivan Novick

[Info] Java version: 1.2,Sun Microsystems Inc

does this mean you are using jdk 1.2 if so you need 1.3

Ivan
- Original Message -
From: "Dinesh" <[EMAIL PROTECTED]>
To: "jboss-user-group" <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 9:47 PM
Subject: [JBoss-user] Error while deploying sample EJB.


hi,

   i am new to Jboss and using Jboss2.2.1. when i try to deploy the
sample
ejb "interest.jar", i am getting the foll' exception. I hope my server is
running successfully.

Exception in Brief :
-

Deploying:file:/C:/jboss/tmp/deploy/Default/interest.jar
[Verifier] Verifying
file:/C:/jboss/tmp/deploy/Default/interest.jar/ejb1001.jar
[Container factory] Deploying Interest
[Container factory] javax.naming.CommunicationException.  Root exception is
java.rmi.StubNotFoundException: Remote object not exported:
org.jboss.proxy.ProxyProxy



Anyone help me to solve this problem...

thanx  in advance,
dinesh.

Actual Exception: In Jboss server2.2.1
-


JBOSS_CLASSPATH=;run.jar;../lib/crimson.jar
jboss.home = C:\jboss
Using configuration "default"
[Info] Java version: 1.2,Sun Microsystems Inc.
[Info] Java VM: Classic VM 1.2,Sun Microsystems Inc.
[Info] System: Windows NT 5.0,x86
[Shutdown] Could not add shutdown hook
[Service Control] Registered with server
A nonfatal internal JIT (3.00.078(x)) error 'Relocation error: NULL
relocation
t
arget' has occurred in :
  'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting
method.
  Please report this error in detail to
http://java.sun.com/cgi-bin/bugreport.cg
i

[Service Control] Initializing 24 MBeans
[Webserver] Initializing
[Webserver] Initialized
[Naming] Initializing
[Naming] Initialized
[JNDIView] Initializing
[JNDIView] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[JAAS Security Manager] Initializing
[JAAS Security Manager] Initialized
[JDBC provider] Initializing
[JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver
[JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
[JDBC provider] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[InstantDB] Initializing
[InstantDB] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[Container factory] Initializing
[Container factory] Initialized
[JBossMQ] Initializing
[JBossMQ] Initialized
[DefaultJMSProvider] Initializing
[DefaultJMSProvider] Initialized
[StdJMSPool] Initializing
[StdJMSPool] Initialized
[J2EE Deployer Default] Initializing
[J2EE Deployer Default] Initialized
[Auto deploy] Initializing
[Auto deploy] Initialized
[RARDeployer] Initializing
[RARDeployer] Found a temp directory left over from a previous run -
deleting
it
.
[RARDeployer] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaNoTransCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaSharedLocalCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaXACMFactory] Initialized
[ConnectionFactoryLoader] Initializing
[BlackBoxDS] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Mail Service] Initializing
[Mail Service] Initialized
[Service Control] Initialized 24 services
[Service Control] Starting 24 MBeans
[Webserver] Starting
[Webserver] Codebase set to http://WS24:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Naming] Starting
[Naming] Naming started on port 1099
[Naming] Started
[JNDIView] Starting
[JNDIView] Started
[Transaction manager] Starting
[Transaction manager] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] JAAS.startService, cachePolicy=null
[JAAS Security Manager] JAAS.startService,
SecurityProxyFactory=org.jboss.securi
ty.SubjectSecurityProxyFactory@e235e31a
[JAAS Security Manager] Started
[JDBC provider] Starting
[JDBC provider] Started
[Hypersonic] Starting
[Hypersonic] Server 1.4 is running
[Hypersonic] Press [Ctrl]+[C] to abort
[Hypersonic] Database started
[Hypersonic] Started
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
Enhydra InstantDB - Version 3.26
[InstantDB] The Initial Developer of the Original Code is Lutris
Technologies
In
c.
Portions created by Lutris are Copyright (C) 1997-2001 Lutris Technologies,
Inc.

All Rights Reserved.
[InstantDB] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[Container factory] Starting
[Container factory] 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] No web container found - only EJB de

Re: [JBoss-user] JMS Queue!!!

2001-05-22 Thread Ivan Novick

from documentation:

Edit jbossmq.xml in conf/default and ad the queue or topic 

Eg:

 
   testQueue
 

Ivan
- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 10:25 PM
Subject: [JBoss-user] JMS Queue!!!


> Hi,
>  I'm very new to JBoss. Can you please tell me how can I create JMS
> queues in here??
> 
> Regards,
> Farhat
> 
> ___
> 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] Getting a UserTransaction via JNDI from a client?

2001-05-22 Thread Phan Anh Tran



How do I get a user transaction via JNDI from a 
client?  Using JDNIView, I can see a TransactionManager bound to java:, but 
no UserTransactionso how do I go about this business?  
Thanks...
 
Anh
 


SOLVED: [JBoss-user] Oracle and Jboss problems: the story continues... (or seems to). XA issue?

2001-05-22 Thread Sacha Labourey

Hello,

I've found my problem. I've was using the Oracle XA data source... Replacing
it by "org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl" did the trick.

Also, as I am using v8.1.7, the XidClassName parameter is of no more use
(but doesn't create any problem, appart performance)

So, the story was in the data source. As I was searching for the archives,
I've read many mail regarding this and the first of these seems to indicate
that v8.1.7 data source impl was ok. But then I saw it wasn't for THIN
drivers...

Thank you. Cheers,



Sacha


> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Sacha
> Labourey
> Envoyé : mardi, 22 mai 2001 18:23
> À : jBoss-User Mailing List
> Objet : [JBoss-user] Oracle and Jboss problems: the story continues...
> (or seems to). XA issue?
>
>
> Hello,
>
> Again a problem with Jboss and Oracle. I am using drivers 8.1.7r3 thin and
> have this configuration (DB server is also 8.1.7):
>
> jboss.jcml:
> ===
>name="DefaultDomain:service=TransactionManager">
> 300
> oracle.jdbc.xa.OracleXid
>   
>
>name="DefaultDomain:service=ClientUserTransaction">
>   
>
>name="DefaultDomain:service=JdbcProvider">
>   name="Drivers">oracle.jdbc.driver.OracleDriver,org.hsql.jdbcDriver
> ,org.enhyd
> ra.instantdb.jdbc.idbDriver
>   
>
>name="DefaultDomain:service=XADataSource,name=OracleDB">
> OracleDB
>  name="DataSourceClass">oracle.jdbc.xa.client.OracleXADataSource ttribute>
> jdbc:oracle:thin:@test01:1521:cogito
> dupple
> bupple
>   
>
>
> When performing simple FindByPK, insert, update, ... everything is ok. But
> when performing massive find, It fails at something approaching the 9th
> object to fetch (I know, someone had this problem, but I haven't been able
> to solve it):
>
> lots of stuff...
> [Service Control] Started 28 services
> [Default] JBoss 2.3 BETA Started in 0m:29s
> [Bean Cache] Resized cache for bean AccessRight: old capacity = 1000, new
> capacity = 50
> [Bean Cache] Resized cache for bean User: old capacity = 1000,
> new capacity
> = 50
> [Bean Cache] Resized cache for bean AudioDestination: old capacity = 1000,
> new capacity = 50
> [Bean Cache] Resized cache for bean Computer: old capacity = 1000, new
> capacity = 50
> [Bean Cache] Resized cache for bean Event: old capacity = 1000,
> new capacity
> = 50
> [Bean Cache] Resized cache for bean Chronology: old capacity = 1000, new
> capacity = 50
> [Bean Cache] Resized cache for bean AudioSource: old capacity = 1000, new
> capacity = 50
> [JAWS] findByUseridAndComputer command executing: SELECT
> CUST_DESTINATION.XID FROM CUST_DESTINATION ,AUTHS WHERE
>AUTHS.USR_CUST_NUMBER =
> CUST_DESTINATION.XID AND
>   AUTHS.USR_OUTPUT_FLAG = 0 AND
>AUTHS.USR_XID = ? AND
>   AUTHS.USR_MACHINE_XID = ?
>
> [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=99
> [JAWS] Set parameter: idx=2, jdbcType=INTEGER, value=2
> [AudioDestination] Activated bean AudioDestination with id = 4261
> [JAWS] Load command executing: SELECT
> MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
> XID=? FOR UPDATE
> [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4261
> [AudioDestination] Activated bean AudioDestination with id = 4262
> [JAWS] Load command executing: SELECT
> MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
> XID=? FOR UPDATE
> [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4262
> [AudioDestination] Activated bean AudioDestination with id = 4263
> [JAWS] Load command executing: SELECT
> MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
> XID=? FOR UPDATE
> [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4263
> [AudioDestination] Activated bean AudioDestination with id = 4264
> [JAWS] Load command executing: SELECT
> MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
> XID=? FOR UPDATE
> [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4264
> [AudioDestination] Activated bean AudioDestination with id = 4265
> [JAWS] Load command executing: SELECT
> MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
> XID=? FOR UPDATE
> [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4265
> [AudioDestination] Activated bean AudioDestination with id = 4266
> [JAWS] Load command executing: SELECT
> MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
> XID=? FOR UPDATE
> [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4266
> [AudioDestination] Activated bean AudioDestination with id = 4267
> [JAWS] Load command executing: SELECT
> MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
> XID=? FOR UPDATE
> [JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4267
> [AudioDestination] Activated bean AudioDestination with i

[JBoss-user] JMS Queue!!!

2001-05-22 Thread Farhat . Pachisa

Hi,
 I'm very new to JBoss. Can you please tell me how can I create JMS
queues in here??

Regards,
Farhat

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



[JBoss-user] Error while deploying sample EJB.

2001-05-22 Thread Dinesh

hi,

   i am new to Jboss and using Jboss2.2.1. when i try to deploy the sample
ejb "interest.jar", i am getting the foll' exception. I hope my server is
running successfully. 

Exception in Brief :
-

Deploying:file:/C:/jboss/tmp/deploy/Default/interest.jar
[Verifier] Verifying
file:/C:/jboss/tmp/deploy/Default/interest.jar/ejb1001.jar
[Container factory] Deploying Interest
[Container factory] javax.naming.CommunicationException.  Root exception is
java.rmi.StubNotFoundException: Remote object not exported:
org.jboss.proxy.ProxyProxy



Anyone help me to solve this problem...

thanx  in advance,
dinesh.

Actual Exception: In Jboss server2.2.1
-


JBOSS_CLASSPATH=;run.jar;../lib/crimson.jar
jboss.home = C:\jboss
Using configuration "default"
[Info] Java version: 1.2,Sun Microsystems Inc.
[Info] Java VM: Classic VM 1.2,Sun Microsystems Inc.
[Info] System: Windows NT 5.0,x86
[Shutdown] Could not add shutdown hook
[Service Control] Registered with server
A nonfatal internal JIT (3.00.078(x)) error 'Relocation error: NULL relocation
t
arget' has occurred in :
  'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method.
  Please report this error in detail to
http://java.sun.com/cgi-bin/bugreport.cg
i

[Service Control] Initializing 24 MBeans
[Webserver] Initializing
[Webserver] Initialized
[Naming] Initializing
[Naming] Initialized
[JNDIView] Initializing
[JNDIView] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[JAAS Security Manager] Initializing
[JAAS Security Manager] Initialized
[JDBC provider] Initializing
[JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver
[JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
[JDBC provider] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[InstantDB] Initializing
[InstantDB] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[Container factory] Initializing
[Container factory] Initialized
[JBossMQ] Initializing
[JBossMQ] Initialized
[DefaultJMSProvider] Initializing
[DefaultJMSProvider] Initialized
[StdJMSPool] Initializing
[StdJMSPool] Initialized
[J2EE Deployer Default] Initializing
[J2EE Deployer Default] Initialized
[Auto deploy] Initializing
[Auto deploy] Initialized
[RARDeployer] Initializing
[RARDeployer] Found a temp directory left over from a previous run - deleting
it
.
[RARDeployer] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaNoTransCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaSharedLocalCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaXACMFactory] Initialized
[ConnectionFactoryLoader] Initializing
[BlackBoxDS] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Mail Service] Initializing
[Mail Service] Initialized
[Service Control] Initialized 24 services
[Service Control] Starting 24 MBeans
[Webserver] Starting
[Webserver] Codebase set to http://WS24:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Naming] Starting
[Naming] Naming started on port 1099
[Naming] Started
[JNDIView] Starting
[JNDIView] Started
[Transaction manager] Starting
[Transaction manager] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] JAAS.startService, cachePolicy=null
[JAAS Security Manager] JAAS.startService,
SecurityProxyFactory=org.jboss.securi
ty.SubjectSecurityProxyFactory@e235e31a
[JAAS Security Manager] Started
[JDBC provider] Starting
[JDBC provider] Started
[Hypersonic] Starting
[Hypersonic] Server 1.4 is running
[Hypersonic] Press [Ctrl]+[C] to abort
[Hypersonic] Database started
[Hypersonic] Started
[InstantDB] Starting
[InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
Enhydra InstantDB - Version 3.26
[InstantDB] The Initial Developer of the Original Code is Lutris Technologies
In
c.
Portions created by Lutris are Copyright (C) 1997-2001 Lutris Technologies,
Inc.

All Rights Reserved.
[InstantDB] Started
[DefaultDS] Starting
[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
[DefaultDS] Started
[Container factory] Starting
[Container factory] 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] No web container found - only EJB deployment
available..
.
[J2EE Deployer Default] Cleaning up deployment directory
[J2EE Deployer Default] Started
[Auto deploy] Starting
[Auto deploy] Watching C:\jboss\deploy
[Auto deploy] Started
[RARDeployer] Starting
[RARDeployer] Started
[MinervaNoTransCMFactory] Starting
[MinervaNoTransCMFactory] Connect

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

2001-05-22 Thread Phan Anh Tran

With closed I meant "free for re-use"...

Anh

- Original Message -
From: "Guy Rouillier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 12:17 PM
Subject: Re: [JBoss-user] Database connection pool hangs...


> Whether or not the actual connection is closed will depend on the pool
> manager you are using.  The one that comes with JBoss, JBossPool, does not
> close the connection, it just returns it to the pool.  Establishing a real
> connection is a very costly operation, so I would suspect that most pool
> managers would leave them open.  That's the whole point of pooling
> connections.
>
> - Original Message -
> From: "Phan Anh Tran" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 22, 2001 2:07 AM
> Subject: Re: [JBoss-user] Database connection pool hangs...
>
>
> > Yeah, I closed everything but the connections.  Once I closed the
> > connections, everything worked fine.
> >
> > By the way, upon seeing a connection.close(), does the actual connection
> > gets closed at that point and is free for re-used or does the connection
> > gets closed ans is free for re-used first after the relevant transaction
> has
> > been committed or rolled back?
> >
> > Thanks,
> >
> > Anh
> >
> > - Original Message -
> > From: "Paul Austin" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, May 21, 2001 8:46 AM
> > Subject: RE: [JBoss-user] Database connection pool hangs...
> >
> >
> > > To be totally safe on all drivers you should also close any result
sets
> > and
> > > statements as well has connections, I use the following code as a
> template
> > > for sql routines. This will make sure that everything is always
closed.
> > >
> > > Paul
> > >
> > > Connection con = null;
> > > Statement stmt = null;
> > > ResultSet rs = null;
> > > try {
> > >   con = ds.getConnection();
> > >   stmt = con.createStatement();
> > >   rs.executeQuery("sql here");
> > >   // etc
> > > } finally {
> > >   if (rs != null) {
> > > try {
> > >   rs.close();
> > > } catch (SQLException sqle) {
> > > }
> > >   }
> > >   if (stmt  != null) {
> > > try {
> > >   stmt.close();
> > > } catch (SQLException sqle) {
> > > }
> > >   }
> > >   if (con != null) {
> > > try {
> > >   con.close();
> > > } catch (SQLException sqle) {
> > > }
> > >   }
> > > }
> > >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of danch (Dan
> > > Christopherson)
> > > Sent: 21 May 2001 16:29
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [JBoss-user] Database connection pool hangs...
> > >
> > >
> > > You're probably not closing your connections. You should wrap all JDBC
> > > code in a try ... finally where you close all resulsets, statements,
and
> > > connections (in that order)
> > >
> > > -danch
> > >
> > > Phan Anh Tran wrote:
> > >
> > > > I found the problem.  I ran out of connections with blocking enabled
> on
> > > the
> > > > pool.
> > > >
> > > > Anh
> > > >
> > > >>
> > > >>This code is running in the context of a stateless session bean:
> > > >>
> > > >>Context initCtx = new InitialContext();
> > > >>DataSource ds = (DataSource)initCtx.lookup("java:/" +
> > > >>
> > > > aDataSourceName);
> > > >
> > > >>Connection conn = ds.getConnection();
> > > >>
> > > >>The code hangs some where in the ds.getConnection() after 5-6
> iterations
> > > >>(calls to the bean's one and only method).  Is this a jboss or a mm
> > driver
> > > >>problem?
> > > >>
> > > >>Thanks,
> > > >>Anh
> > >
> > >
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> > > _
> > > Do You Yahoo!?
> > > Get your free @yahoo.com address at http://mail.yahoo.com
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >
> > _
> > 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 mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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


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



Re: [JBoss-user] ClassPathExtension mechanism does not seem to work...

2001-05-22 Thread Phan Anh Tran

No changes necessary...just drop the .jar file in the lib/ext and jboss will
find your classes.

Anh

- Original Message -
From: "Morrison, Scott" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 11:00 AM
Subject: RE: [JBoss-user] ClassPathExtension mechanism does not seem to
work...


> When you do this - do you need to make any changes to the jboss
> configuration or does jboss always load any jar files in lib\ext?
>
> thanks
> scott
>
> -Original Message-
> From: Phan Anh Tran [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 21, 2001 11:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] ClassPathExtension mechanism does not seem to
> work...
>
>
> I just drop my extra libs in lib\ext.  Any reason why you don't want to go
> that route?
>
> Anh
>
> - Original Message -
> From: "Xandy Johnson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, May 21, 2001 10:31 PM
> Subject: Re: [JBoss-user] ClassPathExtension mechanism does not seem to
> work...
>
>
> >
> > Could you include the snippet from your jboss.conf where you have added
> > the extra libs?  It sounds like you might be adding individual jar
files,
> > but as far as I know, the ClassPathExtension is for adding directories
> > that contain jar files.  Also, are you running run.bat from within the
> > jboss\bin directory?
> >
> > Xandy
> >
> > On Mon, 21 May 2001, Adam Lipscombe wrote:
> >
> > > Hi All,
> > >
> > >
> > > Does anyone know how the "org.jboss.util.ClassPathExtension" mechanism
> works
> > > in jboss.conf?
> > >
> > > I added my libs there, and the server log reports that they have been
> > > loaded.
> > > However I get a ClassNotFoundException at runtime.
> > >
> > > The only way I can get JBoss/Tomcat to "see" the extra libs is to
> specify
> > > them as the "-classpath" arg when starting jboss via run.bat.
> > >
> > >
> > > Is the ClassPathExtension broken?
> > >
> > >
> > > Cheers - Adam
> > >
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
> _
> 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 mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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


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



Re: [JBoss-user] Trouble Using Datasource Remotely

2001-05-22 Thread Ivan Novick

I believe everyone said you can only access java:/ namespace from within a
J2ee component: servlet or EJB not from a client app

Ivan
- Original Message -
From: "Nicholas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 1:53 PM
Subject: [JBoss-user] Trouble Using Datasource Remotely


> I am attempting to access a connection through a
> remote DataSource. I have set up my connection pool
> called OracleDs and at startup time I see a message:
>
> [OracleDS] Starting
> [OracleDS] XA Connection pool OracleDS bound to
> java:/OracleDS
> [OracleDS] Started
>
> Then I created a command line client and I perform a
> JNDI lookup on "java:/OracleDS" but I always get a
> javax.naming.NameNotFoundException: OracleDS not bound
>
> Am I missing something?
>
> Thanks.
>
> file://Nicholas
>
> =
> Nicholas Whitehead
> Home: (973) 377 9335
> Cell: (973) 615 9646
> [EMAIL PROTECTED]
>
> Laugh your pants off with Lionel at eYada.com.
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] Trouble Using Datasource Remotely

2001-05-22 Thread Guy Rouillier

Pooled db connections are for use by EJBs, not by remote clients of EJBs.
In brief, the code using the connection must be running in the same JVM as
the connection pool.  See archives for extended discussion.

- Original Message -
From: "Nicholas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 4:53 PM
Subject: [JBoss-user] Trouble Using Datasource Remotely


> I am attempting to access a connection through a
> remote DataSource. I have set up my connection pool
> called OracleDs and at startup time I see a message:
>
> [OracleDS] Starting
> [OracleDS] XA Connection pool OracleDS bound to
> java:/OracleDS
> [OracleDS] Started
>
> Then I created a command line client and I perform a
> JNDI lookup on "java:/OracleDS" but I always get a
> javax.naming.NameNotFoundException: OracleDS not bound
>
> Am I missing something?
>
> Thanks.
>
> file://Nicholas
>
> =
> Nicholas Whitehead
> Home: (973) 377 9335
> Cell: (973) 615 9646
> [EMAIL PROTECTED]
>
> Laugh your pants off with Lionel at eYada.com.
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



[JBoss-user] JAAS & JBossSX vs Application Security

2001-05-22 Thread Jason Dillon

Hello, I am trying to figure out what the *best* approach is for adding
robust security to a highly distributed JMX/EJB/JMS application.  I have
just looked over the docs about JAAS as well as the JBossSX guide and I
still do not have a good feel for what is the correct approach for what I
am trying to do.

JAAS looks like it follows the basic Java 2 security model, which relies on a
static file to list who has access to what, which seems a little odd since
in most cases the 'who' is probably listed somewhere in a database, so I am
a little confused by there examples.

Currently we perform the authentication ourselves, via an ejb call that
returns a session bean that represents what that user can do.  This has some
obvious issues, like if the user just tried to lookup an object which they
are not supposed to directly instead of going through the gateway.

It looks like JAAS/JBossSX might solve, this forcing the user to login
first, but it is unclear how that would solve all of the access problems
that might occur.

Say User A created a file "user_a_private_stuff" via the FileManager bean,
how would I prevent User B from logging in, creating a FM bean then reading
that file?

Can the security framework be used to replace most (if not all) other
aspects of security, such as forcing users through a gateway "access
manager" bean?

Can it be used to grant/limit access to fine grained resources based on
principal or credentials retrieved from a database lookup (via an entity
bean)?

Is there any way to limit access via JNDI by this method?

Does anyone know of any detailed documentation/examples of non-trivial
security implementations (like users with a set of permissions, application
code that can check for a given permission or set of permissions as well as
the identity of a user before executing an action, and storing all of that
information in a database).

Or perhaps there is a way to use session beans similar to a servlet session
to store this data... I just don't know. =(

Any help would be appreciated.

--jason


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



Re: [JBoss-user] CMP and CMT: when does the commit happen?

2001-05-22 Thread Georg Rehfeld

Hi Roman

> When does the commit happens in case of container managed transaction 

> Required: ?

Depends on the caller/client already having a transaction or not.
If it has, the method executes in that TX context and there is
no commit at method return time. If the client has no TX the
container creates one, executes the method and just before
returning to the client commits.

> RequiredNew: ?

Ever on method return time, since, when the client already has
a TX, the container suspends it, creates a new one, executes
the method in that new TX and commits it at return time, but
resumes the old clients TX. If the client has no TX, the container
behaves as with Required.

regards

Georg
 ___   ___
| + | |__Georg Rehfeld  Woltmanstr. 12 20097 Hamburg
|_|_\ |___   [EMAIL PROTECTED]   +49 (40) 23 53 27 10



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



Re: [JBoss-user] Calling CORBA objects from JBoss

2001-05-22 Thread Dave Ortman

>I think I replied to that thread, but it didn't appear to make it to
>the list. Here's my post again:

Thanks Luke,

That solved the problem.  I didn't think to look through the development list
- thanks for pointing it out.

I only wish that your original reply would have gotten through... it would have
saved me some time. :)

Thanks again,
-Dave

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



Re: [JBoss-user] multiple key

2001-05-22 Thread Georg Rehfeld

Hi Andrea,

> I want to use a beans who maps a table on a relational db which haS a
> primary key composed by two colomns of this table, or eventually a column
of
> this table and a column which is a foreign key which point on another
table.
> This is may little problem; I don't understand if with JAWS I may do this,
> or I has to use a BMP.

We currently use BMP only and havn't touched JAWS yet, so I tried
a search in the JBoss docs, on the JAWS mailing list archive
and in the JBoss code. Neither in the docs nor in the archive I
could find a clear answer (though in the archive there are similar
questions -- unanswered :-( ).

In the code I found
(in org.jboss.ejb.plugins.jaws.jdbc.JDBCCreateEntityCommand) handling
for a 'composite key' while creating an EntityBean. So I assume
that JAWS is able to work with composite keys.

I think it works as follows: when you want to have a composite key
you must have a handmade primary key class, which must follow the
EJB spec 1.1 section 9.4.7.2 (and 9.2.9). Important is to have
each PK class field public and with the same name and type in
both, the PK class and the bean. In ejb-jar.xml do NOT
fill in the primkey-field element of the deployment descriptor,
but the FILL in the prim-key-class element.

The rest should be handled automatically by JAWS.

regards

Georg
 ___   ___
| + | |__Georg Rehfeld  Woltmanstr. 12 20097 Hamburg
|_|_\ |___   [EMAIL PROTECTED]   +49 (40) 23 53 27 10



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



Re: [JBoss-user] Re: Multiple Remote EJB Requests Bombs JBoss

2001-05-22 Thread Toby Allsopp

On Wed, May 23, 2001 at 09:42:44AM +1200, Jonathan Ackerman wrote:
> The logic for when to return the Connections back to the pool (if say the
> close() methods where not called) would be tricky since they aren't always
> attached to a transaction.

Ok, that's true.  I think that thinking about it as returning connections
to the pool when the transaction commits is a bit limiting.  The connection
handle that the bean gets could be a proxy that obtains a connection from 
the pool every time it is used, for example.

Toby.

> 
> Jonathan
> -Original Message-
> From: Toby Allsopp [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 23 May 2001 9:19 a.m.
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Re: Multiple Remote EJB Requests Bombs JBoss
> 
> 
> On Wed, May 23, 2001 at 08:18:20AM +1200, Jonathan Ackerman wrote:
> > I think that BMT complicates this quite a bit.
> > 
> > Check out section 11.3.3 of the EJB 1.1 spec. The example code gets the
> > Connections before the transaction is created and only closes them after
> the
> > transaction is committed.
> > 
> > This leaves two points (before and after the transaction) during which the
> > Connections could be used outside of an transaction :(
> 
> I still don't see the problem.  If the resource you're using supports
> non-transactional access then you'll just use it outside a transaction,
> otherwise you'll get some kind of exception or something.
> 
> What problems do you see with this?
> 
> Toby.

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



Re: [JBoss-user] SecurityAssociationHandler - where do I find it?

2001-05-22 Thread Scott M Stark

Its in the 2.2 branch of the jbosssx cvs module. Get it from the sourceforge cvs
browser by selecting:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jbosssx/src/main/org/jboss/security/auth/Attic/?only_with_tag=JBoss_2_2_1


- Original Message - 
From: "Dennis Ramos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 1:26 PM
Subject: [JBoss-user] SecurityAssociationHandler - where do I find it?


> Does anyone know how to get the source code for
> 
> "org.jboss.security.auth.SecurityAssociationHandler"
> 
> I cannot find it. The only class I have found is
> 
> "org.jboss.security.auth.callback.SecurityAssociationHandler"
> 
> I am trying to figure out why there is a bug when trying to pass credentials from 
>JSP to
> an EJB.
> 
> Please help if you know the answer. Thanks.
> 
> 
> 
> 


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



Re: [JBoss-user] what does jboss use instantDB for

2001-05-22 Thread Scott M Stark

Its just there for your use but it is not used by anything. Remove it if
you don't need it.

- Original Message - 
From: "Mader, Cary J" <[EMAIL PROTECTED]>
To: "Jboss-User (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 1:41 PM
Subject: [JBoss-user] what does jboss use instantDB for


> I couldn't find a clear answer in the list archives on what instantDB is
> actually used for by Jboss.  If anyone could provide a little detail, I'd
> like to hear it.  
> 
> Is the InstantDB instance that is started by JBoss there to use as I need?
> Or would I be better off starting a seperate instance of an InstantDB
> database?
> 
> Thanks.
> 
> Cary



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



Re: [JBoss-user] jsp cannot import classes from the common classpath. Will it be fixed?

2001-05-22 Thread David Ward

Keith,

What do you mean by the "common" classpath?  Hopefully you're not 
talking about what is traditionally in the $CLASSPATH env variable.  If 
your JSP needs some of your own defined classes to work, they should be 
put in your WAR file in the WEB-INF/classes directory.  These will be 
automatically loaded by Tomcat so they are available to your web app. 
All this is in the servlet2.2 spec.

Of course, maybe you mean something completely different and I'm just 
being ignorant (it's been known to happen).  ;)

Hope this helps,
David

--

Keith Kee wrote:

> Hi:
>I'm a newbie trying to get my jsps to run on JBoss 2.2.1 and embedded
> tomcat 3.2.1. It seems like the jspc cannot find the classes on the common
> path (using the Class-Path directive) which my jsp is trying to import. I
> searched in the mailing list archive and found that a lot of the people had
> the same problem.
>I was wondering if this problem will be fixed, or it is a limitation of
> tomcat?
> 
> Thanks
> keith
> 
> 
> ___
> 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] Sample client using SOAP with JBoss/ZOAP

2001-05-22 Thread Adam Lipscombe

ZOAP is dead.

Use Apache SOAP 2.1 with the Apache Xerces parser 1.3.0. It works.
Its vital (and IMHO quite difficult) to get  JBoss configuration correct.

Let me know if you have problems and I'll send you sample config files.



Cheers - Adam

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Rafael S. V.
Guimarães
Sent: Tuesday, May 22, 2001 7:29 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Sample client using SOAP with JBoss/ZOAP


Hi,

Somebody has sample client using SOAP with JBoss/ZOAP, or tutorial?

Thanks.

-
Rafael Simões Vieira Guimarães
Grupo Stela
Programa de Pós-Graduação em Engenharia de Produção - PPGEP
Universidade Federal de Santa Catarina - UFSC

-
E-mail : [EMAIL PROTECTED]
Home-page : http://www.stela.ufsc.br
Fone/fax : +55 48 331-7016
Endereço : Rua Lauro Linhares, 2123 - Edif. Trindade Center - Bloco B, 2o.
andar
CEP 88036-000 - Florianópolis - SC - Brasil

-


___
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] mySQL auto increment and CMP entity beans

2001-05-22 Thread Georg Rehfeld

Hi Paul,

> The code I am using is as follows, I had thought of creating an additional
> bean to do this but was wondering if there was an easier way.
>[code cut, see Pauls mail]

> [Section] java.lang.Error: id may not be null
> [Section]   at org.jboss.ejb.CacheKey.(CacheKey.java:51)
> [Section]   at
>
org.jboss.ejb.plugins.EntityInstanceCache.createCacheKey(EntityInstanceCache
> .java:47)
>[rest of trace cut]

This exception is thrown in the container, not in JAWS. So you
only have the chance to use a KeyGenerator().

And again reading the EJB spec 1.1 section 9.4.2 paragraph six
I found:

| The container may create the representation of the entity in the
| database immediately after ejbCreate(...) returns, or it can defer it to
| a later time (for example to the time after the matching
| ejbPostCreate(...) has been called, or to the end of the transaction).

So, to remain portable to other EJB implementations, you even
havn't the chance to use ejbPostCreate to access the autoincrement
value, as the DB access might have not been done already (though
with JAWS the insert is done between ejbCreate and ejbPostCreate).

regards

Georg
 ___   ___
| + | |__Georg Rehfeld  Woltmanstr. 12 20097 Hamburg
|_|_\ |___   [EMAIL PROTECTED]   +49 (40) 23 53 27 10

PS: In one of my earlier mails (on another but similar thread in
this list) I argued against Marc Fleurys proposal of a 'mixed mode'
entity bean, where the bean is essentially CMP but the create methods
(and finders) are BMP. I must have been too tired at the time of
writing that, a 'mixed mode' would help a lot with autoincrements
and sequences. See
http://www.mail-archive.com/jboss-user@lists.sourceforge.net/msg04776.html



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



RE: [JBoss-user] Could not start Jboss 2.2.1 in windows 2000 Server

2001-05-22 Thread Lewis Lin

YES, Java version: 1.3.0_01,Sun Microsystems Inc.

What does this error message mean? I have exactly the same configuration of
JBoss, JDK, Tomcat on my notebook. and it runs fine on my notebook.

Thanks,
Lewis Lin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ivan Novick
Sent: Tuesday, May 22, 2001 5:15 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Could not start Jboss 2.2.1 in windows 2000
Server


Just making sure: you are using JDK 1.3 right?  Because I dont think older
versions work with JBoss.

Ivan

- Original Message -
From: "Lewis Lin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 12:57 PM
Subject: [JBoss-user] Could not start Jboss 2.2.1 in windows 2000 Server


> Hi,
>   This is driving me crazy! I tried to set up JBoss 2.2.1 on windows 2000
> server. I kept getting this following error:
>
> JBOSS_CLASSPATH=;c:\Fairfin\jdk/lib/tools.jar;run.jar;../lib/crimson.jar
> jboss.home = C:\Fairfin\jboss
> Using configuration "tomcat"
> [Info] Java version: 1.3.0_01,Sun Microsystems Inc.
> [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0_01,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
> : org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
> [Default]   at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(Document
> BuilderFactory.java:154)
> [Default]   at org.jboss.Main.(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
> Press any key to continue . . .
>
> And I have checked the archive discussion. Make sure there is  nothing in
my
> classpath. Could some please please help me out?
>
> Thanks,
> Lewis Lin
>
>
> ==
>  PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw
>  PC home Online ºô¸ô®a®x¡@¡@ ·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸
> ==
>
> ___
> 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


==
 PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw 
 PC home Online ºô¸ô®a®x¡@¡@ ·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸ 
==

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



[JBoss-user] jsp cannot import classes from the common classpath. Will it be fixed?

2001-05-22 Thread Keith Kee

Hi:
   I'm a newbie trying to get my jsps to run on JBoss 2.2.1 and embedded
tomcat 3.2.1. It seems like the jspc cannot find the classes on the common
path (using the Class-Path directive) which my jsp is trying to import. I
searched in the mailing list archive and found that a lot of the people had
the same problem.
   I was wondering if this problem will be fixed, or it is a limitation of
tomcat?

Thanks
keith


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



Re: [JBoss-user] Oracle and Jboss problems: the story continues... (or seems to). XA issue?

2001-05-22 Thread Toby Allsopp

On Tue, May 22, 2001 at 05:06:54PM -0400, David Ward wrote:
> Toby,
> 
> Can you please clarify?  In 2.2.1, can I or can I not move the Xid class 
> configuration into my jboss.jcml?  I'd like to have all my config 

No.  This change will not be incorporated into a 2.2 version.  It is in
the current 2.3 development version and will appear in 2.4.

> changes in one place.  Do I need to have the 
> "org.jboss.tm.usertx.server.ClientUserTransactionService" mbean listed? 

I'm not sure about that one.  I imagine that it is support for client-
managed transactions, i.e. the ability for a client to grab a UserTransaction
object.

I don't know when it was added.  CVS can tell you.

>   Does anyone know if this changes in next week's expected 2.2.2 release?

Unlikely.  You can check to see if it's in the 2.2 branch if you are
sufficiently dextrous with CVS.

Toby.

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



RE: [JBoss-user] Re: Multiple Remote EJB Requests Bombs JBoss

2001-05-22 Thread Jonathan Ackerman

The logic for when to return the Connections back to the pool (if say the
close() methods where not called) would be tricky since they aren't always
attached to a transaction.

Jonathan
-Original Message-
From: Toby Allsopp [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 23 May 2001 9:19 a.m.
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Re: Multiple Remote EJB Requests Bombs JBoss


On Wed, May 23, 2001 at 08:18:20AM +1200, Jonathan Ackerman wrote:
> I think that BMT complicates this quite a bit.
> 
> Check out section 11.3.3 of the EJB 1.1 spec. The example code gets the
> Connections before the transaction is created and only closes them after
the
> transaction is committed.
> 
> This leaves two points (before and after the transaction) during which the
> Connections could be used outside of an transaction :(

I still don't see the problem.  If the resource you're using supports
non-transactional access then you'll just use it outside a transaction,
otherwise you'll get some kind of exception or something.

What problems do you see with this?

Toby.

> Jonathan
> 
> -Original Message-
> From: Toby Allsopp [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 22 May 2001 6:57 p.m.
> 
> Guy Rouillier wrote:
> 
> > Hmm, I see a potential problem with this.  What if I have logic like
this:
> > 
> > Get a whole bunch of data from somewhere.
> > Get a database connection.
> > For each record
> >   Do a whole bunch of database work
> >   Commit
> >If database work failed
> > Log an error
> >Continue
> > 
> > This is a pretty common scenario.  If you return the connection to the
> pool
> > once the transaction is finished, this code won't work.
> 
> 
> Ah, but when you start the new transaction, the container will know that 
> you still have a connection handle, so it will associate that handle 
> with a connection participating in the new transaction.
> 
> I hadn't thought about BMT before, but I can't see why it wouldn't work.
> 
> Toby.

___
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] what does jboss use instantDB for

2001-05-22 Thread Robert Nicholson

Maybe it's for durable messages with jbossmq

Just wild guess though.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Mader, Cary
> J
> Sent: Tuesday, May 22, 2001 1:41 PM
> To: Jboss-User (E-mail)
> Subject: [JBoss-user] what does jboss use instantDB for
>
>
> I couldn't find a clear answer in the list archives on what instantDB is
> actually used for by Jboss.  If anyone could provide a little detail, I'd
> like to hear it.
>
> Is the InstantDB instance that is started by JBoss there to use as I need?
> Or would I be better off starting a seperate instance of an InstantDB
> database?
>
> Thanks.
>
> Cary
>
>
> ___
> 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] Could not start Jboss 2.2.1 in windows 2000 Server

2001-05-22 Thread Ivan Novick

Just making sure: you are using JDK 1.3 right?  Because I dont think older
versions work with JBoss.

Ivan

- Original Message -
From: "Lewis Lin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 12:57 PM
Subject: [JBoss-user] Could not start Jboss 2.2.1 in windows 2000 Server


> Hi,
>   This is driving me crazy! I tried to set up JBoss 2.2.1 on windows 2000
> server. I kept getting this following error:
>
> JBOSS_CLASSPATH=;c:\Fairfin\jdk/lib/tools.jar;run.jar;../lib/crimson.jar
> jboss.home = C:\Fairfin\jboss
> Using configuration "tomcat"
> [Info] Java version: 1.3.0_01,Sun Microsystems Inc.
> [Info] Java VM: Java HotSpot(TM) Client VM 1.3.0_01,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
> : org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
> [Default]   at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(Document
> BuilderFactory.java:154)
> [Default]   at org.jboss.Main.(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
> Press any key to continue . . .
>
> And I have checked the archive discussion. Make sure there is  nothing in
my
> classpath. Could some please please help me out?
>
> Thanks,
> Lewis Lin
>
>
> ==
>  PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw
>  PC home Online ºô¸ô®a®x¡@¡@ ·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸
> ==
>
> ___
> 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] Trouble Using Datasource Remotely

2001-05-22 Thread Toby Allsopp

On Tue, May 22, 2001 at 01:53:11PM -0700, Nicholas wrote:
> I am attempting to access a connection through a
> remote DataSource. I have set up my connection pool
> called OracleDs and at startup time I see a message:
> 
> [OracleDS] Starting
> [OracleDS] XA Connection pool OracleDS bound to
> java:/OracleDS
> [OracleDS] Started
> 
> Then I created a command line client and I perform a
> JNDI lookup on "java:/OracleDS" but I always get a 
> javax.naming.NameNotFoundException: OracleDS not bound
> 
> Am I missing something?

Yes.  List archives.

Summary: rethink your requirement.

Toby.

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



Re: [JBoss-user] Re: Multiple Remote EJB Requests Bombs JBoss

2001-05-22 Thread Toby Allsopp

On Wed, May 23, 2001 at 08:18:20AM +1200, Jonathan Ackerman wrote:
> I think that BMT complicates this quite a bit.
> 
> Check out section 11.3.3 of the EJB 1.1 spec. The example code gets the
> Connections before the transaction is created and only closes them after the
> transaction is committed.
> 
> This leaves two points (before and after the transaction) during which the
> Connections could be used outside of an transaction :(

I still don't see the problem.  If the resource you're using supports
non-transactional access then you'll just use it outside a transaction,
otherwise you'll get some kind of exception or something.

What problems do you see with this?

Toby.

> Jonathan
> 
> -Original Message-
> From: Toby Allsopp [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 22 May 2001 6:57 p.m.
> 
> Guy Rouillier wrote:
> 
> > Hmm, I see a potential problem with this.  What if I have logic like this:
> > 
> > Get a whole bunch of data from somewhere.
> > Get a database connection.
> > For each record
> >   Do a whole bunch of database work
> >   Commit
> >If database work failed
> > Log an error
> >Continue
> > 
> > This is a pretty common scenario.  If you return the connection to the
> pool
> > once the transaction is finished, this code won't work.
> 
> 
> Ah, but when you start the new transaction, the container will know that 
> you still have a connection handle, so it will associate that handle 
> with a connection participating in the new transaction.
> 
> I hadn't thought about BMT before, but I can't see why it wouldn't work.
> 
> Toby.

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



Re: [JBoss-user] Calling CORBA objects from JBoss

2001-05-22 Thread Ivan Novick

So does that mean that from within JBoss we can make calls to OpenORB ,
visibroker or some other ORB?

I understand you are saying there is a bug in the JDK orb preventing the
calls?

Ivan


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



Re: [JBoss-user] Oracle and Jboss problems: the story continues... (or seems to). XA issue?

2001-05-22 Thread David Ward

Toby,

Can you please clarify?  In 2.2.1, can I or can I not move the Xid class 
configuration into my jboss.jcml?  I'd like to have all my config 
changes in one place.  Do I need to have the 
"org.jboss.tm.usertx.server.ClientUserTransactionService" mbean listed? 
  Does anyone know if this changes in next week's expected 2.2.2 release?

Unfortunately, I'm at home today and can't test against my work database 
(tunneling down)...

Thanks again,
David

--

Toby Allsopp wrote:

> On Tue, May 22, 2001 at 01:09:47PM -0400, David Ward wrote:
> 
>> Sacha,
>> 
>> I don't want to de-rail this thread off of your need, but I have a 
>> question about your configuration...
>> 
>> You put the oracle.jdbc.xa.OracleXid XidClassName in the jboss.jcml, 
>> thought the docs say to put it in jboss.properties as the value for 
>> jboss.xa.xidclass.  Also, I see an mbean block below for 
>> ClientUserTransactionService that isn't in my jboss.jcml file.
> 
> 
> The Xid class configuration has moved from jboss.properties to jboss.jcml
> since the 2.2 branch.
> 
> Toby.
> 
> ___
> 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] Trouble Using Datasource Remotely

2001-05-22 Thread Nicholas

I am attempting to access a connection through a
remote DataSource. I have set up my connection pool
called OracleDs and at startup time I see a message:

[OracleDS] Starting
[OracleDS] XA Connection pool OracleDS bound to
java:/OracleDS
[OracleDS] Started

Then I created a command line client and I perform a
JNDI lookup on "java:/OracleDS" but I always get a 
javax.naming.NameNotFoundException: OracleDS not bound

Am I missing something?

Thanks.

//Nicholas

=
Nicholas Whitehead
Home: (973) 377 9335
Cell: (973) 615 9646
[EMAIL PROTECTED]

Laugh your pants off with Lionel at eYada.com.

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

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



[JBoss-user] what does jboss use instantDB for

2001-05-22 Thread Mader, Cary J

I couldn't find a clear answer in the list archives on what instantDB is
actually used for by Jboss.  If anyone could provide a little detail, I'd
like to hear it.  

Is the InstantDB instance that is started by JBoss there to use as I need?
Or would I be better off starting a seperate instance of an InstantDB
database?

Thanks.

Cary


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



[JBoss-user] [Fwd: [JBoss-dev] jboss-jetty.01-05-21.tgz]

2001-05-22 Thread Julian Gosnell

since all has been quiet on the dev list regarding this snapshot I shall
open it to all comers on jboss-user.

Jules

P.S.

with regards to my worry about the Enhydra error at startup:

Scott M Stark wrote:

> >
> > I have one slight worry. The JBoss version I took out of CVS gave
the
> > following error on startup:
> >
> > [Default] Enhydra InstantDB - Version 3.26
> > [Default] Internal error - problem locking Database class
> > java.lang.ArrayIndexOutOfBoundsException
> >
> This error has been there for a while and seems to be an inocuous
error
> related to a recent release of InstantDB. It certainly has nothing to
do
> with Jetty or any other component.
>

Excellent. In that case this snapshot will be fine.

Thanks,


Jules



I have just checked this into the binaries module.

It's a snapshot of cvs jboss and jetty as of this evening, integrated
using Scott's new AbstractWebContainer as the jboss_jetty superclass.

New features include :

- ENC support via AbstractWebContainer (thanks Scott)
- internal Jetty MBeans are correctly registered with the JBoss JMX
Agent (exposing their interfaces via e.g. myhost:8082)
- undeploy/redeploy via J2EEDeployer should now work correctly.


I would be very interested to hear from anyone who has been waiting for
jboss-jetty ENC support, as whether this snapshot satisfies their
requirements - so don't be shy - let me know !

As far as JAAS integration goes - I shall start on it as soon as I am
sure the latest stuff works.


I have one slight worry. The JBoss version I took out of CVS gave the
following error on startup:

[Default] Enhydra InstantDB - Version 3.26
[Default] Internal error - problem locking Database class
java.lang.ArrayIndexOutOfBoundsException

If this is a showstopper (I have only tested jboss-jetty with
tomcat-test.ear!), please would someone let me know when it is fixed and
I shall rerelease.

Instructions:

For Un*x folk like myself:

tar zxvf jboss-jetty.01-05-21.tgz
cd jboss-jetty.01-05-21
./run.sh

For Windows folk:

Sorry,I'm sure you'll work it out ! - If someone mails me the equivalent
run.bat I'll check it into my tree.


Any problems - mail me,

Cheers,


Jules





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


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




Re: [JBoss-user] Validating users

2001-05-22 Thread Emanuel Galindo


Thanks for answer, to everybody.
But, anyone have a little example of this thing working? 

Or a big example, anything! 

On Tue, 22 May 2001, Scott M Stark wrote:

> Use the J2EE declarative security for both web content and EJBs and you
> are able to secure your content/objects without adding security to your code.
> When the 2.2.2 release is made next week there will be an updated version
> of the JAAS security tutorial that shows how to do this using a database.
> 
> - Original Message - 
> From: "Emanuel Galindo" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 22, 2001 8:52 AM
> Subject: [JBoss-user] Validating users
> 
> 
> > 
> > Hi, this is a very conceptual question.
> > Im looking for a way to authenticate my users against a database table
> > with nick or user id and password.
> > 
> > I see a lot of ways and i imagine others. I want to know what is the best.
> > 
> > The best for me would be like apache-perl dir security with dbi. When you
> > enter in a determined directory, they show you a pop u and you enter you
> > id and pass, verifies that and do what you want.
> > 
> > Without includes or whatever in bussines logic.
> > 
> > Chao.
> > 
> > 
> > ___
> > 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] Unable to compile using Filter (!!??)

2001-05-22 Thread David Ward

Emanuel,

No, I'm talking about using what the spec ensures a compatible container 
provides you.  Take the following web.xml deployment descriptor below. 
It's the container's job to make sure I'm authenticated and authorized 
before I get to access anthing in the "protected" directory; if I'm not 
authenticated, the container (Tomcat in your case) will automatically 
either pop up an auth window or forward you to the login page.  Similar 
mechanisms are available for EJB container stuff (right down to the 
method, if you want it!).  I suggest you get the servlet2.2 spec and 
look it over before you go through the hassle of implementing your own 
security code.  If you choose form-based login, your jsp code only has 
to look like this:


 Username: 
 Password: 
 


If you are using Tomcat and want to see an example, look in 
$TOMCAT_HOME/webapps/examples/jsp/security/.

Now, yes, of course at some point you need to connect it with your 
company's underlying security particulars.  In Tomcat, it's as easy as 
creating a "Realm RequestInterceptor."  They provide a "SimpleRealm" and 
"JDBCRealm" out-of-the-box.  Other containers have different ways of 
doing it, but it's usually pretty straightforward.

Again, what I always tell people is that they should really read an 
API's spec *before* they start designing their application that uses it. 
  If they don't read it, they will not be able to take advantage of all 
its features, and will probably end up doing a lot more custom work than 
they had to.

Regards,
David

--



http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>



Container Security Example


This is a simple web application that demonstrates container-mananged 
security.



index.jsp




Protected
/protected/*
DELETE
GET
POST
PUT


default






FORM
Protected

/login.jsp
/error.jsp





--

Emanuel Galindo wrote:

> When you said 'I suggest letting the container manage security for you'
> you mean that manually check that for example, i'ts the session loaded or
> else send the user to a login page?? i have been looked for auth. examples
> and the filtering mode seens to be the best for me. Let's me write code
> and map to the servlet that requires it without insert code in the
> servlets.
> 
> Emmanuel (writing like tarzan speaking Latin)
> 
> On Tue, 22 May 2001, David Ward wrote:
> 
> 
>> Emanuel,
>> 
>> Filters are introduced in the servlet 2.3 spec.  I'm guessing your 
>> servlet.jar is only 2.2, which is what comes with Tomcat 3.x.  servlet 
>> 2.3 will be part of Tomcat 4.
>> 
>> On a side (design) note, I suggest letting the container manage security 
>> for you.  The Sun example is probably just trying to teach people about 
>> Filters, without looking at the bigger picture (not sure; I haven't seen 
>> it).
>> 
>> Hope this helps,
>> David
>> 
>> --
>> 
>> Emanuel Galindo wrote:
>> 
>> 
>>> Hi, im designing auth process that map filter with a LogFilter servlet
>>> that parses incoming request.
>>> The code is tiny and it's structured base in an sun example.
>>> The problem come's when i compile it, i cannot reach the Filter class,
>>> obviusly either the FilterConfig or FilterChain. 
>>> I decompress servlet.jar in an temp dir the servlet.jar (the java docs
>>> says that this libs comes in javax.servlet) from diferents versions i have
>>> and i cannot found it !!! 
>>> 
>>> This feature can save me time and any suggestion or answer of any type in
>>> this subject would be nice 
>>> 
>>> Thanks in advance
>>> 
>>> 
>>> ___
>>> 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


-- 

---
David Ward[EMAIL PROTECTED]
Senior Software Engineer  http://www.dotech.com
Distributed Object Technologies, Inc. 716-381-8320 (phone)
500 Linden Oaks, Rochester, NY 14625  716-381-0598 (fax)


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



[JBoss-user] SecurityAssociationHandler - where do I find it?

2001-05-22 Thread Dennis Ramos

Does anyone know how to get the source code for

"org.jboss.security.auth.SecurityAssociationHandler"

I cannot find it. The only class I have found is

"org.jboss.security.auth.callback.SecurityAssociationHandler"

I am trying to figure out why there is a bug when trying to pass credentials from JSP 
to
an EJB.

Please help if you know the answer. Thanks.





begin:vcard 
n:Ramos;Dennis
tel;fax:718-409-1393
tel;home:718-597-6173
tel;work:718-409-1347
x-mozilla-html:FALSE
org:DJR Associates LLC
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Dennis Ramos
end:vcard



Re: [JBoss-user] problem with finder find all

2001-05-22 Thread Dovan Nguyen

hi Chris,
I did this and i still don't see the trace.  could you please send us a sample
of standardjaws.xml.  i am interested in seeing what jaws is doing, especially
what SQL statement (if possible) jaws is sending.

thanks
dovan

"DeGreef, Chris J. (AIT)" wrote:

> Turn the Debug flag on in the standardjaws.xml file.  true
> Rerun the scenario and look into the server.log file.  You will at least see
> what JAWS was doing just before the error.  I usually find that an
> unexpected NULL was involved at some point.
>
> -Original Message-
> From: Belli Andrea [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 12:44 PM
> To: Jboss-User (E-mail)
> Subject: [JBoss-user] problem with finder find all
>
> I have a jsp which call a session bean, which does a query on a db by an
> entity bean: the problem is when I try to view the rows on db.
> The jsp invoke the following method myfindAll():
>
> public NewsRemote[] myfindAll() throws RemoteException,FinderException
> {
> NewsHome home = (NewsHome) getHome("mail.News", NewsHome.class);
> Collection all = home.findAll();
> return (NewsRemote[]) all.toArray(new NewsRemote[0]);
> }
>
> The session bean (DbMail) invokes a method of the entity bean News,
> findAll(), which is made by the container, because News is CMP.
> During execution, I have this error:
>
> [mail.News] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
> java.sql.SQLException: Unable to create PreparedStatement!; nested
> exception is:
> java.rmi.ServerException: Load failed; nested exception is:
> java.sql.SQLException: Unable to create PreparedStatement!
>
> have you any suggestion?Andrea
>
> ___
> 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] Validating users

2001-05-22 Thread Scott M Stark

Use the J2EE declarative security for both web content and EJBs and you
are able to secure your content/objects without adding security to your code.
When the 2.2.2 release is made next week there will be an updated version
of the JAAS security tutorial that shows how to do this using a database.

- Original Message - 
From: "Emanuel Galindo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 8:52 AM
Subject: [JBoss-user] Validating users


> 
> Hi, this is a very conceptual question.
> Im looking for a way to authenticate my users against a database table
> with nick or user id and password.
> 
> I see a lot of ways and i imagine others. I want to know what is the best.
> 
> The best for me would be like apache-perl dir security with dbi. When you
> enter in a determined directory, they show you a pop u and you enter you
> id and pass, verifies that and do what you want.
> 
> Without includes or whatever in bussines logic.
> 
> Chao.
> 
> 
> ___
> 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] Re: Multiple Remote EJB Requests Bombs JBoss

2001-05-22 Thread Jonathan Ackerman

I think that BMT complicates this quite a bit.

Check out section 11.3.3 of the EJB 1.1 spec. The example code gets the
Connections before the transaction is created and only closes them after the
transaction is committed.

This leaves two points (before and after the transaction) during which the
Connections could be used outside of an transaction :(

Jonathan

-Original Message-
From: Toby Allsopp [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 22 May 2001 6:57 p.m.
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Re: Multiple Remote EJB Requests Bombs JBoss


Guy Rouillier wrote:

> Hmm, I see a potential problem with this.  What if I have logic like this:
> 
> Get a whole bunch of data from somewhere.
> Get a database connection.
> For each record
>   Do a whole bunch of database work
>   Commit
>If database work failed
> Log an error
>Continue
> 
> This is a pretty common scenario.  If you return the connection to the
pool
> once the transaction is finished, this code won't work.


Ah, but when you start the new transaction, the container will know that 
you still have a connection handle, so it will associate that handle 
with a connection participating in the new transaction.

I hadn't thought about BMT before, but I can't see why it wouldn't work.

Toby.



___
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] Oracle and Jboss problems: the story continues... (or seems to). XA issue?

2001-05-22 Thread Toby Allsopp

On Tue, May 22, 2001 at 01:09:47PM -0400, David Ward wrote:
> Sacha,
> 
> I don't want to de-rail this thread off of your need, but I have a 
> question about your configuration...
> 
> You put the oracle.jdbc.xa.OracleXid XidClassName in the jboss.jcml, 
> thought the docs say to put it in jboss.properties as the value for 
> jboss.xa.xidclass.  Also, I see an mbean block below for 
> ClientUserTransactionService that isn't in my jboss.jcml file.

The Xid class configuration has moved from jboss.properties to jboss.jcml
since the 2.2 branch.

Toby.

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



[JBoss-user] Could not start Jboss 2.2.1 in windows 2000 Server

2001-05-22 Thread Lewis Lin

Hi,
  This is driving me crazy! I tried to set up JBoss 2.2.1 on windows 2000
server. I kept getting this following error:

JBOSS_CLASSPATH=;c:\Fairfin\jdk/lib/tools.jar;run.jar;../lib/crimson.jar
jboss.home = C:\Fairfin\jboss
Using configuration "tomcat"
[Info] Java version: 1.3.0_01,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0_01,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
: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
[Default]   at
javax.xml.parsers.DocumentBuilderFactory.newInstance(Document
BuilderFactory.java:154)
[Default]   at org.jboss.Main.(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
Press any key to continue . . .

And I have checked the archive discussion. Make sure there is  nothing in my
classpath. Could some please please help me out?

Thanks,
Lewis Lin


==
 PC home §K¶O¹q¤l«H½c¡A¥Ó½Ð½Ð¦Ü: http://www.pchome.com.tw 
 PC home Online ºô¸ô®a®x¡@¡@ ·|­û²Ä¤@¡A¥xÆW³Ì¤jªº¤J¤fºô¯¸ 
==

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



Re: [JBoss-user] Why Minerva instead of Oracle DataSource impl?

2001-05-22 Thread Toby Allsopp

On Tue, May 22, 2001 at 10:46:34AM -0400, David Ward wrote:
> http://www.jboss.org/documentation/HTML/ch03s05.html
> 
> I have gotten Oracle 8i working fine with the example setup described on 
> the page above (about half-way down).  I still, though, have a question 
> about the block below:
> 
...
>  
>name="DataSourceClass">org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
...
> 
> It seems that Oracle provides a few DataSource classes (not all concrete 
> and not all XA, of course) in classes12.zip:
...
> oracle.jdbc.xa.OracleXADataSource
...
> 
> Why not use one of Oracle's XADataSources as the DataSourceClass attribute?

Try searching the list archives.  People have had a *lot* of trouble
using Oracle's XADataSource implementation.  I'm not sure of the details
myself, but there is a lot in the archives.

That said, it is better to use the real XADataSource if it will work for
you, as this allows you to actually do two-phase commit and all of those
nifty XA things.

Toby.

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



Re: [JBoss-user] question about minerva connections pooling

2001-05-22 Thread Toby Allsopp

On Tue, May 22, 2001 at 11:21:41AM +0200, [EMAIL PROTECTED] wrote:
> You are right. in my first email I wrote:
> 
> " I have one question about minerva connections pooling. I'm developing
> stateless ejb's that connect themselves to the database
>  through minerva pooling (I need make this, because my aplicattion need to
> create tables inside the database )."
> 
> Now I explain this in deep. I'm developing (my company in fact) one
> "catalog" application. (indeed is more complicate,and this is only a
> development's portion.) And users can create new catalog with it (a catalog
> is a table's collection in my database that store information). When users
> create a new catalog I create a new table in my database. Imagine users
> wants catalog "news". They can create a new table choose the properties and
> the items (title , author , date, etc..).
> 
> So, perhaps I will have a catalog with two tables: news and author. When I
> thought (for example ) about the "insert operation" in this catalog. I
> thought to use entitys.
> 
> I think (I'm not sure about this) that  typically EJB's aplications access
> database through entitys with container- manged transactions. I wanted to
> use a "news-entity and one author-entity". But I can't develop one if my
> table not exist in develop time. So I developed this application using
> stateless session bean.

I haven't taken the time to fully digest the above, I'm sorry.

> So I made a "Insert session" that connect to database, this session
> investigate the catalogo's structure and insert in the correct tables using
> bean - manged transactions

I still don't see why you want to use bean-managed transactions.

> Perhaps I could made two session bean for this operation using container -
> managed transactions. One "Insert catalog" session bean that invoque a
> "Insert into table" session bean for each insert statement. Do you know this
> is a good policy?. Really I didn't think this design in that time. Now I'm
> thinking this is a better design (but I`m begginer with ejb). What do you
> think?

I think the whole idea sounds strange.  Why do you need to go around creating
new tables?  Why not just have a single table that has key, value pairs?

> Exuse my english.

Excuse my lack of time to fully understand your problem.

Toby.

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



Re: [JBoss-user] Invalid protocol jndi exception thrown by tomcat4 Beta 3

2001-05-22 Thread Luke Taylor


Hi Simone,

I notice this problem is still there with Tomcat 4b5, and I saw your
post on the tomcat-dev list. Have you had any more information on
what's causing this and any possible workarounds? Any insight would be
great as I seem to be switching web containers on an almost hourly
basis :-). I'd like to be able to stabilize on one where I could at
least understand what's causing the bugs.

All the best,

Luke.


"Bordet, Simone" wrote:
> 
> Hey,
> 
> > Simon,
> >
> > Your suggestion did not work.  I disabled naming, no go.  I also tried
> > passing a properties object to new InitialContext for
> > locating ejbs, and
> > still no go.
> >
> > Any more suggestions?
> 
> As pointed out by Vincent Harcq, it can be a problem with beta3. Can you try
> the latest nightly build ?
> Also, can you post the code of your servlet/jsp where you call EJB1 and EJB2
> ?
> 

-- 
 Luke Taylor.
 PGP Key ID: 0x57E9523C

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



Re: [JBoss-user] Unable to compile using Filter (!!??)

2001-05-22 Thread Emanuel Galindo


When you said 'I suggest letting the container manage security for you'
you mean that manually check that for example, i'ts the session loaded or
else send the user to a login page?? i have been looked for auth. examples
and the filtering mode seens to be the best for me. Let's me write code
and map to the servlet that requires it without insert code in the
servlets.

Emmanuel (writing like tarzan speaking Latin)

On Tue, 22 May 2001, David Ward wrote:

> Emanuel,
> 
> Filters are introduced in the servlet 2.3 spec.  I'm guessing your 
> servlet.jar is only 2.2, which is what comes with Tomcat 3.x.  servlet 
> 2.3 will be part of Tomcat 4.
> 
> On a side (design) note, I suggest letting the container manage security 
> for you.  The Sun example is probably just trying to teach people about 
> Filters, without looking at the bigger picture (not sure; I haven't seen 
> it).
> 
> Hope this helps,
> David
> 
> --
> 
> Emanuel Galindo wrote:
> 
> > Hi, im designing auth process that map filter with a LogFilter servlet
> > that parses incoming request.
> > The code is tiny and it's structured base in an sun example.
> > The problem come's when i compile it, i cannot reach the Filter class,
> > obviusly either the FilterConfig or FilterChain. 
> > I decompress servlet.jar in an temp dir the servlet.jar (the java docs
> > says that this libs comes in javax.servlet) from diferents versions i have
> > and i cannot found it !!! 
> > 
> > This feature can save me time and any suggestion or answer of any type in
> > this subject would be nice 
> > 
> > Thanks in advance
> > 
> > 
> > ___
> > 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] 2nd Deployment Fails

2001-05-22 Thread Scott M Stark


> However, I'm not completely sure I understand why the other didn't work.
> Before the second deployment the previous is undeployed.  Why does the
> TraceCategory instance live beyond this undeployment.  And is there
> something specific I can do such that it is destroyed and will not affect a
> second deployment?
> 
There is nothing you can do since you can't unload a class in general, and
you certainly can't unload a class that is being used as is the case here
since the Category is keeping track of its instances in a hashtable.

> Perhaps I am looking at this wrong.  Should helper classes not be part of
> the deployed jar file?  Is that jar file only for EJBs?  In general, should
> helper classes be installed elsewhere and pointed to by a ClassPathExtension
> MBean?
> 
Not if there are being shared across deployment jars. In this case they should
be loaded by a class loader that is a parent class loader to all classes using
the shared class. 




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



Re: [JBoss-user] Calling CORBA objects from JBoss

2001-05-22 Thread Luke Taylor



Dave Ortman wrote:
> 
> Hi,
> 

Hi,

> I recently posted an inquiry regarding the utilization of CORBA objects from
> within EJB's deployed in JBoss.  Basically, I was unable to have a session bean
> make a call to a CORBA object.

I think I replied to that thread, but it didn't appear to make it to
the list. Here's my post again:

>Toby Allsopp wrote:
> 
> On Wed, May 16, 2001 at 10:48:56AM -0700, Dave Ortman wrote:
> > >org.omg.CORBA.ORB orb = ORB.init(new String[] {ior}, null);
...
> >
> > <>
> >
> > Ask and you shall recieve.
> >
> > [TestBean] java.lang.NullPointerException
> > [TestBean]  at com.sun.corba.se.internal.core.IOR.getCodebase(Unknown Source)
> >
> > [TestBean]  at com.sun.corba.se.internal.core.IOR.read(Unknown Source)
> > [TestBean]  at 
>com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(Unknown
> > Source)
> > [TestBean]  at 
>com.sun.corba.se.internal.iiop.CDRInputStream.read_Object(Unknown
> > Source)
> > [TestBean]  at com.sun.corba.se.internal.corba.ORB.string_to_object(Unknown
> > Source)
> 

> Hmm, well I can't complain about not enough information any more, so I'm
> going to have to admit that I have no idea.  Sorry.
> 
> Is the source for these com.sun.corba classes available?  You could try
> using a different ORB (e.g. JacORB) for which you have source.


Hi Guys,

If you remember, Toby, there was a previous discussion about this same
problem (identical exception) on jboss-dev. I don't think it was
resolved completely (apart from acknowledging that Sun's orb is a bit
ropey) but there was a fix (see below). You can download the complete
source (Java and C (eek!)) for the JDK from java.sun.com, including the
internal classes. These are v. useful for this kind of problem.

Here's the fix that Andreas posted (the thread was "CORBA integration"
on jboss-dev) :

> Hi Luke,
> 
> > P.S. Are you aware of the source version of the JDK which is
> available?
> 
> No, I wasn't aware of this. In the source code I found the commends
> I needed. 
> (And I'm a bit worry about sun because they don't show this comment
> in the doc. :-( ) 
> An IOR can have a attaced component with information about a java
> codebase. 
> If this is not present, a attaced component with the property
> defined in the system property
> 
> java.rmi.server.codebase
> 
> is created. But this is optional! In case of jBoss this property is
> set to http://[hostname]:8083/ 
> But for some reasons (I dont understand it compleate by now.) This
> causes an exception somewhere.
> 
> Now I just added one line to my code and the corba connection work
> fine:
> 
> System.getProperties().remove("java.rmi.server.codebase");
> 
> Can someone explain where this property is needed and if it can
> cause problems, if it is not present?
> 
> Thanks to all who spend some time with this problem!
> Andreas 
> 






-- 
 Luke Taylor.
 PGP Key ID: 0x57E9523C

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



RE: [JBoss-user] problem with finder find all

2001-05-22 Thread DeGreef, Chris J. (AIT)

Turn the Debug flag on in the standardjaws.xml file.  true
Rerun the scenario and look into the server.log file.  You will at least see
what JAWS was doing just before the error.  I usually find that an
unexpected NULL was involved at some point.

-Original Message-
From: Belli Andrea [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 12:44 PM
To: Jboss-User (E-mail)
Subject: [JBoss-user] problem with finder find all


I have a jsp which call a session bean, which does a query on a db by an
entity bean: the problem is when I try to view the rows on db.
The jsp invoke the following method myfindAll():

public NewsRemote[] myfindAll() throws RemoteException,FinderException
{
NewsHome home = (NewsHome) getHome("mail.News", NewsHome.class);
Collection all = home.findAll();
return (NewsRemote[]) all.toArray(new NewsRemote[0]);
}

The session bean (DbMail) invokes a method of the entity bean News,
findAll(), which is made by the container, because News is CMP.
During execution, I have this error:

[mail.News] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
java.sql.SQLException: Unable to create PreparedStatement!; nested
exception is:
java.rmi.ServerException: Load failed; nested exception is:
java.sql.SQLException: Unable to create PreparedStatement!

have you any suggestion?Andrea





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



Re: [JBoss-user] Unable to compile using Filter (!!??)

2001-05-22 Thread David Ward

Emanuel,

Filters are introduced in the servlet 2.3 spec.  I'm guessing your 
servlet.jar is only 2.2, which is what comes with Tomcat 3.x.  servlet 
2.3 will be part of Tomcat 4.

On a side (design) note, I suggest letting the container manage security 
for you.  The Sun example is probably just trying to teach people about 
Filters, without looking at the bigger picture (not sure; I haven't seen 
it).

Hope this helps,
David

--

Emanuel Galindo wrote:

> Hi, im designing auth process that map filter with a LogFilter servlet
> that parses incoming request.
> The code is tiny and it's structured base in an sun example.
> The problem come's when i compile it, i cannot reach the Filter class,
> obviusly either the FilterConfig or FilterChain. 
> I decompress servlet.jar in an temp dir the servlet.jar (the java docs
> says that this libs comes in javax.servlet) from diferents versions i have
> and i cannot found it !!! 
> 
> This feature can save me time and any suggestion or answer of any type in
> this subject would be nice 
> 
> Thanks in advance
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

---
David Ward[EMAIL PROTECTED]
Senior Software Engineer  http://www.dotech.com
Distributed Object Technologies, Inc. 716-381-8320 (phone)
500 Linden Oaks, Rochester, NY 14625  716-381-0598 (fax)


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



[JBoss-user] Unable to compile using Filter (!!??)

2001-05-22 Thread Emanuel Galindo


Hi, im designing auth process that map filter with a LogFilter servlet
that parses incoming request.
The code is tiny and it's structured base in an sun example.
The problem come's when i compile it, i cannot reach the Filter class,
obviusly either the FilterConfig or FilterChain. 
I decompress servlet.jar in an temp dir the servlet.jar (the java docs
says that this libs comes in javax.servlet) from diferents versions i have
and i cannot found it !!! 

This feature can save me time and any suggestion or answer of any type in
this subject would be nice 

Thanks in advance


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



Re: [JBoss-user] Sharing environment state

2001-05-22 Thread Peter Fagerlund

- "instance adaptive parallelism"
The model would be to let the JBoss instances (VM's) share resources
transparently as one ... by using JNDI, RMI, JMX, JMS ? ...

There is a first implementation called JBossHA ( High Availability ) for
stateless session beans - today, using RMI smart proxies.

I do not know - yet - ... but I like to know, if one could use the Relation
Service in JMX for this ??? ...

--

Are We looking at an "cluster" installation with priority of a redundancy /
failover mechanism -  or - accommodation of very high loads - ... weighted
together with the budget and time frame constrains ... I se difference for
different purposes ...

There hopefully is room for a toying discussion with ample testing :-) ...

/peter




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



[JBoss-user] Sample client using SOAP with JBoss/ZOAP

2001-05-22 Thread Rafael S. V. Guimarães

Hi,

Somebody has sample client using SOAP with JBoss/ZOAP, or tutorial?

Thanks.

-
Rafael Simões Vieira Guimarães
Grupo Stela
Programa de Pós-Graduação em Engenharia de Produção - PPGEP
Universidade Federal de Santa Catarina - UFSC

-
E-mail : [EMAIL PROTECTED]
Home-page : http://www.stela.ufsc.br
Fone/fax : +55 48 331-7016
Endereço : Rua Lauro Linhares, 2123 - Edif. Trindade Center - Bloco B, 2o.
andar
CEP 88036-000 - Florianópolis - SC - Brasil

-


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



RE: [JBoss-user] ClassPathExtension mechanism does not seem to work...

2001-05-22 Thread Morrison, Scott

When you do this - do you need to make any changes to the jboss
configuration or does jboss always load any jar files in lib\ext?

thanks
scott

-Original Message-
From: Phan Anh Tran [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 11:38 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] ClassPathExtension mechanism does not seem to
work...


I just drop my extra libs in lib\ext.  Any reason why you don't want to go
that route?

Anh

- Original Message -
From: "Xandy Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 10:31 PM
Subject: Re: [JBoss-user] ClassPathExtension mechanism does not seem to
work...


>
> Could you include the snippet from your jboss.conf where you have added
> the extra libs?  It sounds like you might be adding individual jar files,
> but as far as I know, the ClassPathExtension is for adding directories
> that contain jar files.  Also, are you running run.bat from within the
> jboss\bin directory?
>
> Xandy
>
> On Mon, 21 May 2001, Adam Lipscombe wrote:
>
> > Hi All,
> >
> >
> > Does anyone know how the "org.jboss.util.ClassPathExtension" mechanism
works
> > in jboss.conf?
> >
> > I added my libs there, and the server log reports that they have been
> > loaded.
> > However I get a ClassNotFoundException at runtime.
> >
> > The only way I can get JBoss/Tomcat to "see" the extra libs is to
specify
> > them as the "-classpath" arg when starting jboss via run.bat.
> >
> >
> > Is the ClassPathExtension broken?
> >
> >
> > Cheers - Adam
> >
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
>
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] UndeclaredThrowableException

2001-05-22 Thread danch (Dan Christopherson)

Look at the server's log file. There should be a couple of stack traces 
there as well. The first of these should point to what's really happening.

-danch

Hermann RANGAMANA wrote:

> Hi all gurus,
> 
> I'm developping a simple apli using jBoss. i successfuly deployed an simple
> BMP. But when i try to call a method on this Bean from the client, the
> following message is thrown (in the client side)
> Can anybody help me to understand what this message means and ... the
> solution?
> 
> java.lang.reflect.UndeclaredThrowableException:
> javax.transaction.RollbackException: Unable to commit, tx=XidImpl
> [FormatId=257, G
> lobalId=pluton//5, BranchQual=] status=STATUS_ROLLEDBACK
> at
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
> all.java:245)
> at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
> at
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown
> Source)
> at
> org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:18
> 2)
> at $Proxy1.getEtatCivil(Unknown Source)
> at TestClient.main(TestClient.java:51)
> 
> --hermann
> 
> PS : I'm using jBoss 2.2 on W2K and postgres 7.0.1 on Linux
> 
> 
> ___
> 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] petstore 1.1.2

2001-05-22 Thread Robert Nicholson

Yes the only reason you should need it and you can work around it is because
they use a j2ee RI class for deployment in the Ant rules. This can be easily
worked around by simply building a war and not worrying about that class.

That's the only reason you should need to reference j2ee.jar from RI

otherwise, the jars you need should come with jboss. you just have to
edit the j2ee.path stuff to make it reference the jboss files.

I recently ported 1.1.2 to Weblogic 6 and I simply passed -Dweblogic.home=
through as a property when invoking ant from build.bat and refereneced it
from the build.xml files.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Cuong Tran
> Sent: Tuesday, May 22, 2001 10:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] petstore 1.1.2
>
>
>
>   You need j2ee sdk to build it.
>
> --- mroosendaal <[EMAIL PROTECTED]> wrote:
> > Has anyone installed and deployed the new petstore 1.1.2, when i ran the
> > build.bat from petstore i got loads (60) of errors.
> >
> > I have jdk1.3 and jboss is running, it shouldn't be more then
> just executing
> > the build .bat in de petstore/src/petstore/src, shoud it?
> >
> > Maarten
> >
>
>
> =
> Cuong Q. Tran <[EMAIL PROTECTED]>
>
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>


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



[JBoss-user] problem with finder find all

2001-05-22 Thread Belli Andrea

I have a jsp which call a session bean, which does a query on a db by an
entity bean: the problem is when I try to view the rows on db.
The jsp invoke the following method myfindAll():

public NewsRemote[] myfindAll() throws RemoteException,FinderException
{
NewsHome home = (NewsHome) getHome("mail.News", NewsHome.class);
Collection all = home.findAll();
return (NewsRemote[]) all.toArray(new NewsRemote[0]);
}

The session bean (DbMail) invokes a method of the entity bean News,
findAll(), which is made by the container, because News is CMP.
During execution, I have this error:

[mail.News] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
java.sql.SQLException: Unable to create PreparedStatement!; nested
exception is:
java.rmi.ServerException: Load failed; nested exception is:
java.sql.SQLException: Unable to create PreparedStatement!

have you any suggestion?Andrea


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



[JBoss-user] MDB and transactions

2001-05-22 Thread Chree Haas

Hey all,
I'm having problems sending transacted messages from
a MessageDrivenBean.  In the attached example program, the client
(test.Main) send a mesage to queue/A.  MdbA receives the message
and sends a second message queue/B which is received by MdbB.
If the QueueSession in MdbA is created as transacted, the message
is never sent to queue/B.  If the QueueSession is created with
a false, the message is received by MdbB.

Did I miss something, or is there a bug in JBoss?

Thanks,
Chree
 mdb.jar


Re: [JBoss-user] petstore 1.1.2

2001-05-22 Thread Cuong Tran


  You need j2ee sdk to build it.

--- mroosendaal <[EMAIL PROTECTED]> wrote:
> Has anyone installed and deployed the new petstore 1.1.2, when i ran the
> build.bat from petstore i got loads (60) of errors.
> 
> I have jdk1.3 and jboss is running, it shouldn't be more then just executing
> the build .bat in de petstore/src/petstore/src, shoud it?
> 
> Maarten
> 


=
Cuong Q. Tran <[EMAIL PROTECTED]>

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

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



[JBoss-user] UndeclaredThrowableException

2001-05-22 Thread Hermann RANGAMANA

Hi all gurus,

I'm developping a simple apli using jBoss. i successfuly deployed an simple
BMP. But when i try to call a method on this Bean from the client, the
following message is thrown (in the client side)
Can anybody help me to understand what this message means and ... the
solution?

java.lang.reflect.UndeclaredThrowableException:
javax.transaction.RollbackException: Unable to commit, tx=XidImpl
[FormatId=257, G
lobalId=pluton//5, BranchQual=] status=STATUS_ROLLEDBACK
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:18
2)
at $Proxy1.getEtatCivil(Unknown Source)
at TestClient.main(TestClient.java:51)

--hermann

PS : I'm using jBoss 2.2 on W2K and postgres 7.0.1 on Linux


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



Re: [JBoss-user] Oracle and Jboss problems: the story continues... (or seems to). XA issue?

2001-05-22 Thread David Ward

Sacha,

I don't want to de-rail this thread off of your need, but I have a 
question about your configuration...

You put the oracle.jdbc.xa.OracleXid XidClassName in the jboss.jcml, 
thought the docs say to put it in jboss.properties as the value for 
jboss.xa.xidclass.  Also, I see an mbean block below for 
ClientUserTransactionService that isn't in my jboss.jcml file.

Are both these things specific to the fact that you're running JBoss 2.3 
BETA?  (I'm using 2.2.1.)

I had an earlier question to the jboss-user list about why do the docs 
say to use the minerva wrapper instead of the Oracle XADataSource, which 
I haven't had a reply to yet - though it seems you've been able to do 
it.  Again, is that just a 2.3 thing?  You probably don't have to do 
anything in jboss.properties, do you?

Thanks (and sorry for the distraction to your original question),
David

--

Sacha Labourey wrote:

> Hello,
> 
> Again a problem with Jboss and Oracle. I am using drivers 8.1.7r3 thin and
> have this configuration (DB server is also 8.1.7):
> 
> jboss.jcml:
> ===
>name="DefaultDomain:service=TransactionManager">
> 300
> oracle.jdbc.xa.OracleXid
>   
> 
>name="DefaultDomain:service=ClientUserTransaction">
>   
> 
>name="DefaultDomain:service=JdbcProvider">
>   name="Drivers">oracle.jdbc.driver.OracleDriver,org.hsql.jdbcDriver,org.enhyd
> ra.instantdb.jdbc.idbDriver
>   
> 
>name="DefaultDomain:service=XADataSource,name=OracleDB">
> OracleDB
>  name="DataSourceClass">oracle.jdbc.xa.client.OracleXADataSource
> jdbc:oracle:thin:@test01:1521:cogito
> dupple
> bupple
>   
> 
> 
> When performing simple FindByPK, insert, update, ... everything is ok. But
> when performing massive find, It fails at something approaching the 9th
> object to fetch (I know, someone had this problem, but I haven't been able
> to solve it):
> 
> lots of stuff...
> [Service Control] Started 28 services
> [Default] JBoss 2.3 BETA Started in 0m:29s



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



Re: [JBoss-user] CMP and BLOBs

2001-05-22 Thread danch (Dan Christopherson)

I'll try to get a fix ready for Scott's 2.2.2 release next week.

danch

Tim McCune wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> I'm trying to, but there is currently a pretty serious bug in JBoss
> that is really holding me back:
> 
> http://sourceforge.net/tracker/index.php?func=detail&aid=424059&group_
> id=22866&atid=376685
> 
> 
>>-Original Message-
>>From: Darius Davidavicius 
>>[mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, May 22, 2001 9:13 AM
>>To: [EMAIL PROTECTED]
>>Subject: Re: [JBoss-user] CMP and BLOBs
>>
>>
>>
>>re hi,
>>
>>For BMP beans if I using Oracle 8i BLOBs works fine. 
>>I'm interesting if anyone uses CMP for BLOBs storing. (not 
>>necessary Oracle)
>>
>>site http://wamoz.com/JDBC_and_Oracle_LOB.asp tells about the 
>>BMP way of data reading / writing.
>>
>>D&D
>>
>> 
>>On Tue, 22 May 2001 16:04:23 +0200, Burkhard Vogel wrote:
>>
>>
>>>No, due to Oracle driver limitations.
>>>see http://wamoz.com/JDBC_and_Oracle_LOB.asp
>>>Burkhard
>>>- Original Message -
>>>From: "Darius Davidavicius" <[EMAIL PROTECTED]>
>>>To: <[EMAIL PROTECTED]>
>>>Sent: Tuesday, May 22, 2001 3:20 PM
>>>Subject: [JBoss-user] CMP and BLOBs
>>>
>>>
>>>
hi all,

I would be thankfull if anyone advice me if it is possible 

>>to map byte[]
>>
>>>to the BLOB field of DB?
>>>
I'm going to use Oracle 8i, MSSQL or PostgreSQL
any tips, samples or links to how to would be perfect.
Thanks in advance,
D&D





>>>
>>>___
>>>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
>>
>>
> 
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 6.5.3 for non-commercial use 
> 
> iQA/AwUBOwqSLtUPOr8a7vy5EQJhBwCg/xCYzxWOpQfzEAM2oyzKPQsZTUsAoKHL
> itlmtawitB7BLbIWOzho3cfO
> =be+g
> -END PGP SIGNATURE-
> 
> ___
> 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] CMP and CMT: when does the commit happen?

2001-05-22 Thread danch (Dan Christopherson)

[EMAIL PROTECTED] wrote:

> Hi,
> 
> I've posted similar question previously, but probably it was not clear.
> 
> When does the commit happens in case of container managed transaction with
> the container managed persistence?


Container managed persistence doesn't really effect this - that only 
effects how the storage of entity beans is implemented.


> 
> Required: ?


When the first EJB method on the stack (deepest in the stack - the first 
one called) completes. That is, if you have two beans which are both 
marked 'Required' and bean A calls bean B, the transaction will commit 
when the method on bean A completes. See the note below on the effects 
of exceptions.


> 
> RequiredNew: ?


The commit will happen when the method exits unless it throws a system 
exception, in which case it will roll back. Note that application 
exceptions and EJBException will cause a commit.

hope this helps,
danch






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



[JBoss-user] Oracle and Jboss problems: the story continues... (or seems to). XA issue?

2001-05-22 Thread Sacha Labourey

Hello,

Again a problem with Jboss and Oracle. I am using drivers 8.1.7r3 thin and
have this configuration (DB server is also 8.1.7):

jboss.jcml:
===
  
300
oracle.jdbc.xa.OracleXid
  

  
  

  
 oracle.jdbc.driver.OracleDriver,org.hsql.jdbcDriver,org.enhyd
ra.instantdb.jdbc.idbDriver
  

  
OracleDB
oracle.jdbc.xa.client.OracleXADataSource
jdbc:oracle:thin:@test01:1521:cogito
dupple
bupple
  


When performing simple FindByPK, insert, update, ... everything is ok. But
when performing massive find, It fails at something approaching the 9th
object to fetch (I know, someone had this problem, but I haven't been able
to solve it):

lots of stuff...
[Service Control] Started 28 services
[Default] JBoss 2.3 BETA Started in 0m:29s
[Bean Cache] Resized cache for bean AccessRight: old capacity = 1000, new
capacity = 50
[Bean Cache] Resized cache for bean User: old capacity = 1000, new capacity
= 50
[Bean Cache] Resized cache for bean AudioDestination: old capacity = 1000,
new capacity = 50
[Bean Cache] Resized cache for bean Computer: old capacity = 1000, new
capacity = 50
[Bean Cache] Resized cache for bean Event: old capacity = 1000, new capacity
= 50
[Bean Cache] Resized cache for bean Chronology: old capacity = 1000, new
capacity = 50
[Bean Cache] Resized cache for bean AudioSource: old capacity = 1000, new
capacity = 50
[JAWS] findByUseridAndComputer command executing: SELECT
CUST_DESTINATION.XID FROM CUST_DESTINATION ,AUTHS WHERE
 AUTHS.USR_CUST_NUMBER = CUST_DESTINATION.XID AND
AUTHS.USR_OUTPUT_FLAG = 0 AND
 AUTHS.USR_XID = ? AND
AUTHS.USR_MACHINE_XID = ?

[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=99
[JAWS] Set parameter: idx=2, jdbcType=INTEGER, value=2
[AudioDestination] Activated bean AudioDestination with id = 4261
[JAWS] Load command executing: SELECT
MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
XID=? FOR UPDATE
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4261
[AudioDestination] Activated bean AudioDestination with id = 4262
[JAWS] Load command executing: SELECT
MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
XID=? FOR UPDATE
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4262
[AudioDestination] Activated bean AudioDestination with id = 4263
[JAWS] Load command executing: SELECT
MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
XID=? FOR UPDATE
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4263
[AudioDestination] Activated bean AudioDestination with id = 4264
[JAWS] Load command executing: SELECT
MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
XID=? FOR UPDATE
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4264
[AudioDestination] Activated bean AudioDestination with id = 4265
[JAWS] Load command executing: SELECT
MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
XID=? FOR UPDATE
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4265
[AudioDestination] Activated bean AudioDestination with id = 4266
[JAWS] Load command executing: SELECT
MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
XID=? FOR UPDATE
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4266
[AudioDestination] Activated bean AudioDestination with id = 4267
[JAWS] Load command executing: SELECT
MNECL,ND,MQAUL,MOXID,XID,STATUS,MODIS,AOUTID FROM CUST_DESTINATION WHERE
XID=? FOR UPDATE
[JAWS] Set parameter: idx=1, jdbcType=INTEGER, value=4267
[AudioDestination] Activated bean AudioDestination with id = 4268
[AudioDestination] XAException: tx=XidImpl [FormatId=257,
GlobalId=COGITO02//1, BranchQual=] errorCode=XA_UNKNOWN(-3)
[AudioDestination] oracle.jdbc.xa.OracleXAException
[AudioDestination]  at
oracle.jdbc.xa.OracleXAResource.checkError(OracleXAResource.java:498)
[AudioDestination]  at
oracle.jdbc.xa.client.OracleXAResource.start(OracleXAResource.java:190)
[AudioDestination]  at
org.jboss.tm.TxCapsule.startResource(TxCapsule.java:1087)
[AudioDestination]  at
org.jboss.tm.TxCapsule.enlistResource(TxCapsule.java:614)
[AudioDestination]  at
org.jboss.tm.TransactionImpl.enlistResource(TransactionImpl.java:111)
[AudioDestination]  at
org.jboss.pool.jdbc.xa.XAConnectionFactory.prepareObject(XAConnectionFactory
.java:269)
[AudioDestination]  at
org.jboss.pool.ObjectPool.getObject(ObjectPool.java:548)
[AudioDestination]  at
org.jboss.pool.ObjectPool.getObject(ObjectPool.java:521)
[AudioDestination]  at
org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:
165)
[AudioDestination]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getConnection(JDBCCommand.java:6
75)
[AudioDestination]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:152
)
[AudioDestination]  at
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.ex

RE: [JBoss-user] CMP and BLOBs

2001-05-22 Thread Tim McCune

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'm trying to, but there is currently a pretty serious bug in JBoss
that is really holding me back:

http://sourceforge.net/tracker/index.php?func=detail&aid=424059&group_
id=22866&atid=376685

> -Original Message-
> From: Darius Davidavicius 
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 22, 2001 9:13 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] CMP and BLOBs
> 
> 
> 
> re hi,
> 
> For BMP beans if I using Oracle 8i BLOBs works fine. 
> I'm interesting if anyone uses CMP for BLOBs storing. (not 
> necessary Oracle)
> 
> site http://wamoz.com/JDBC_and_Oracle_LOB.asp tells about the 
> BMP way of data reading / writing.
> 
> D&D
> 
>  
> On Tue, 22 May 2001 16:04:23 +0200, Burkhard Vogel wrote:
> 
> >No, due to Oracle driver limitations.
> >see http://wamoz.com/JDBC_and_Oracle_LOB.asp
> >Burkhard
> >- Original Message -
> >From: "Darius Davidavicius" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Tuesday, May 22, 2001 3:20 PM
> >Subject: [JBoss-user] CMP and BLOBs
> >
> >
> >> hi all,
> >>
> >> I would be thankfull if anyone advice me if it is possible 
> to map byte[]
> >to the BLOB field of DB?
> >> I'm going to use Oracle 8i, MSSQL or PostgreSQL
> >> any tips, samples or links to how to would be perfect.
> >> Thanks in advance,
> >> D&D
> >>
> >>
> >>
> >>
> >
> >
> >___
> >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
> 

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

iQA/AwUBOwqSLtUPOr8a7vy5EQJhBwCg/xCYzxWOpQfzEAM2oyzKPQsZTUsAoKHL
itlmtawitB7BLbIWOzho3cfO
=be+g
-END PGP SIGNATURE-

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



[JBoss-user] .EAR in JBoss-2.2.1_Tomcat-3.2.1 NT service

2001-05-22 Thread Jose Manuel Garcia



Hello,


  I am running JBoss-2.2.1_Tomcat-3.2.1 as an NT service (using
jk_nt_service.exe),
and I can do it indeed, but it does not unpackage any .EAR file in the deploy
directory.

  It may be because I had to remove parser.jar from the classpath to avoid a
sealing
violation. Is it the problem? What can I do to solve it?


  Best regards,


   José Manuel.

--
Jose Manuel Garcia Rivas
Consultant
mailto: [EMAIL PROTECTED]

REUTERS DSS, S.L.
C/Juan Bravo, 3C - 7D
28006 Madrid

Tel. +34 91 585 84 00
Fax  +34 91 435 35 08
http://www.reuters.com


-
Visit our Internet site at http://www.reuters.com

Any views expressed in this message are those of  the  individual
sender,  except  where  the sender specifically states them to be
the views of Reuters Ltd.

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



[JBoss-user] Validating users

2001-05-22 Thread Emanuel Galindo


Hi, this is a very conceptual question.
Im looking for a way to authenticate my users against a database table
with nick or user id and password.

I see a lot of ways and i imagine others. I want to know what is the best.

The best for me would be like apache-perl dir security with dbi. When you
enter in a determined directory, they show you a pop u and you enter you
id and pass, verifies that and do what you want.

Without includes or whatever in bussines logic.

Chao.


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



[JBoss-user] CMP and CMT: when does the commit happen?

2001-05-22 Thread RRokytskyy

Hi,

I've posted similar question previously, but probably it was not clear.

When does the commit happens in case of container managed transaction with
the container managed persistence?

Required: ?

RequiredNew: ?


Thanks in advance for any ideas.

Roman Rokytskyy.

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



RE: [JBoss-user] 2nd Deployment Fails

2001-05-22 Thread Michael Hustler

Thanks, I re-packaged the TraceCategory into a separate .jar file and stuck
it in lib/ext and this works.

However, I'm not completely sure I understand why the other didn't work.
Before the second deployment the previous is undeployed.  Why does the
TraceCategory instance live beyond this undeployment.  And is there
something specific I can do such that it is destroyed and will not affect a
second deployment?

Perhaps I am looking at this wrong.  Should helper classes not be part of
the deployed jar file?  Is that jar file only for EJBs?  In general, should
helper classes be installed elsewhere and pointed to by a ClassPathExtension
MBean?

thanks,
-mike.

-Original Message-
From: Scott M Stark [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 7:19 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] 2nd Deployment Fails


You can't deploy the custom catgory and factory in the
same jar as the ejb-jar because each deployment results
in a new type of TraceCategory. In Java the identity of
a class is determined by both the class name and its
ClassLoader. The first time you deploy it works and the
log4j Category class saves away the TraceCategory
instance with a category name of MyMDB.class.getName()
in the Hierarchy instance hashtable. On subsequent deployments
a new instance is not created because a category with
the name MyMDB.class.getName() already exists but its
type != the TraceCategory in the newly loaded ejb-jar
because different ClassLoaders were used.

You have to put your log4j customizations in the JBoss
lib/ext directory or some other path added via the
ClassPathExtension MBean.


Michael Hustler wrote:

> I am using log4j as the trace mechanisim for all of my beans.  I have
> extended log4j slightly to add new categories.  The typical static
> definition inside each bean class is:
>   static TraceCategory trace =
>   (TraceCategory) TraceCategory.getInstance( MyMDB.class );
> 
> MDB or Entity Bean the problem is the same.
> 
> The first time I deploy everything works great.
> 
> If I deploy a second time (while the server is still running) I get a
> ClassCastException:
>ERROR 2001-05-18 08:55:28,952 [Auto deploy]
> java.lang.ExceptionInInitializerError: java.lang.ClassCastException
> 
> This is due to the static initializer shown above.  I have tried moving
the
> initialization to the constructor instead with no success.  The
> getInstance() method above looks like this:
> 
>   public static Category getInstance( String name )
>   { 
>   return Category.getInstance( name, factory );
>   }
> 
> I have a single JAR file that I deploy.  It contains both MyMDB class and
> the TraceCategory class.
> 
> Your help is greately appreciated!!
> 
> -mike
> 


___
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] SQL Statements as JNDI resources

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


I have an application that is not over ejb.
I have all the SQL Statements of the application in a XML file.
Ej

  
select * from countries where status = 'ENABLED'
  


I am migratting the application to j2ee, using jboss.
How can i to put all the statements accesible by the EJB?
I would like to have all the statements in the same point.

It could be posible to put the XML file as a JNDI resource? How can i do this?

Or i have to register each statement as a JNDI entry?
What is the best way to do this?
I do not want to put the statements in each ejb-jar.xml file as env-entry.

I would like to have all the statements together.

Thanks for your help



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

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



RE: [JBoss-user] CMP and BLOBs

2001-05-22 Thread Ernest Chen
Title: RE: [JBoss-user] CMP and BLOBs





I used BLOB field to store text, CMP works fine with the following mapping in jaws.xml


 ^M
   body^M
   body^M
   JAVA_OBJECT^M
   BLOB^M
 ^M


-Original Message-
From: Darius Davidavicius [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 11:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] CMP and BLOBs




re hi,


For BMP beans if I using Oracle 8i BLOBs works fine. 
I'm interesting if anyone uses CMP for BLOBs storing. (not necessary Oracle)


site http://wamoz.com/JDBC_and_Oracle_LOB.asp tells about the BMP way of data reading / writing.


D&D


 
On Tue, 22 May 2001 16:04:23 +0200, Burkhard Vogel wrote:


>No, due to Oracle driver limitations.
>see http://wamoz.com/JDBC_and_Oracle_LOB.asp
>Burkhard
>- Original Message -
>From: "Darius Davidavicius" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, May 22, 2001 3:20 PM
>Subject: [JBoss-user] CMP and BLOBs
>
>
>> hi all,
>>
>> I would be thankfull if anyone advice me if it is possible to map byte[]
>to the BLOB field of DB?
>> I'm going to use Oracle 8i, MSSQL or PostgreSQL
>> any tips, samples or links to how to would be perfect.
>> Thanks in advance,
>> D&D
>>
>>
>>
>>
>
>
>___
>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] CMP and BLOBs

2001-05-22 Thread Darius Davidavicius


re hi,

For BMP beans if I using Oracle 8i BLOBs works fine. 
I'm interesting if anyone uses CMP for BLOBs storing. (not necessary Oracle)

site http://wamoz.com/JDBC_and_Oracle_LOB.asp tells about the BMP way of data reading 
/ writing.

D&D

 
On Tue, 22 May 2001 16:04:23 +0200, Burkhard Vogel wrote:

>No, due to Oracle driver limitations.
>see http://wamoz.com/JDBC_and_Oracle_LOB.asp
>Burkhard
>- Original Message -
>From: "Darius Davidavicius" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, May 22, 2001 3:20 PM
>Subject: [JBoss-user] CMP and BLOBs
>
>
>> hi all,
>>
>> I would be thankfull if anyone advice me if it is possible to map byte[]
>to the BLOB field of DB?
>> I'm going to use Oracle 8i, MSSQL or PostgreSQL
>> any tips, samples or links to how to would be perfect.
>> Thanks in advance,
>> D&D
>>
>>
>>
>>
>
>
>___
>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] Logging with embedded Tomcat

2001-05-22 Thread Robin Hillyard

I'm running JBoss-2.2.1 with embedded Tomcat 3.2.1 in a Windows 2000
environment and I'm having problems with logging.

Logging of the JBoss activity works just fine until the first invocation
of a Tomcat web app is made.  After the first few messages appear in the
(jboss) server.log file, that file basically remains unchanged.  The
(tomcat) servlet.log file continues to work fine.

I have tried two configurations in the jboss.conf file:  1) the console
logging & file logging option and 2) the Log4j option.  Both apparently
behave the same way.

Help appreciated,

Robin Hillyard

==
Robin Hillyard
TruExchange, Inc.
781-457-1311
[EMAIL PROTECTED]
http://www.truexchange.com

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



Re: [JBoss-user] Problems with having EmbeddedTomcat in JBoss to add contexts

2001-05-22 Thread danch (Dan Christopherson)

If you upgrade to the JBoss 2.2.1/Tomcat bundle, server.xml will be 
parseed. Also, if you package your app as an Enterprise Java app (.ear) 
a context will be added automatically when the ear file is deployed.

Please see the documentation section on the JBoss website for 
information about upgrading.

danch

Linda Danielsson wrote:

> Hi,
> 
>  
> 
> I´m using Tomcat 3.2.1 and JBoss2Final. How do I get the ContextManager 
> in JBoss (Tomcat) to add Contexts? The only context added is Ctx(). 
> Since I have my application in another webapp other than default, I have 
> configured server.xml, in Tomcat, for this. I want my 
> application-directory to be added as a new context, like 
> Ctx(/myWebApp) I don't even get the other defaults, Ctx(/admin) and 
> Ctx(/examples).
> 
>  
> 
> /Linda
> 
>  
> 
> *_CMD-output:_*
> 
> ** 
> 
> Using configuration "default"
> [Console logging] Initialized
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [File logging] Initializing
> [File logging] Initialized
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [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
> [Classpath extension] Initializing
> [Classpath extension] Initialized
> [JDBC] Loaded JDBC-driver:org.hsql.jdbcDriver
> [JDBC] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
> [JDBC] Loaded JDBC-driver:com.inet.pool.PoolDriver
> [JDBC] Loaded JDBC-driver:com.jnetdirect.jsql.JSQLDriver
> [Webserver] Initializing
> [Webserver] Initialized
> [Hypersonic] Initializing
> [Hypersonic] Initialized
> [Naming] Initializing
> [Naming] Naming started on port 1099
> [Naming] Initialized
> [Transaction manager] Initializing
> [Transaction manager] Initialized
> [JAAS Security Manager] Initializing
> [JAAS Security Manager] Initialized
> [Simple Realm Mapping] Initializing
> [Simple Realm Mapping] Initialized
> [Security manager] Initializing
> [Security manager] Initialized
> [InstantDB] Initializing
> [InstantDB] Initialized
> [DefaultDS] Initializing
> [DefaultDS] Initialized
> [Container factory] Initializing
> [Container factory] Initialized
> [Auto deploy] Watching C:\java\jboss2final\deploy
> [Auto deploy] Initializing
> [Auto deploy] Initialized
> [JMX RMI Adaptor] Initializing
> [JMX RMI Adaptor] Initialized
> [JMX RMI Connector] Initializing
> [JMX RMI Connector] Initialized
> [Configuration] Initializing
> [Configuration] Initialized
> [J2EE Deployer] Initializing
> [J2EE Deployer] Initialized
> [EmbeddedTomcat] Initializing
> [EmbeddedTomcat] Initialized
> [SpyderMQ] Initializing
> [SpyderMQ] Initialized
> 
>  
> 
> *[EmbeddedTomcat] Starting
> [EmbeddedTomcat] Testing if Tomcat is present
> [EmbeddedTomcat] OK
> [EmbeddedTomcat] ContextManager: Adding context Ctx(  )
> [EmbeddedTomcat] path="" :jsp: init
> [EmbeddedTomcat] PoolTcpConnector: Starting HttpConnectionHandler on 8080
> [EmbeddedTomcat] Started*
> 
> 
> [Simple Realm Mapping] Starting
> [Simple Realm Mapping] Started
> [Webserver] Starting
> [Webserver] Codebase set to http://gryner:8083/
> [Webserver] Started webserver on port 8083
> [Webserver] Started
> [Transaction manager] Starting
> [Transaction manager] Started
> [Hypersonic] Starting
> [Hypersonic] Server 1.4 is running
> [Hypersonic] Database started
> [Hypersonic] Started
> [Naming] Starting
> [Naming] Started
> [Movie] Starting
> [Hypersonic] Press [Ctrl]+[C] to abort
> [Movie] XA Connection pool Movie bound to java:/Movie
> [Movie] 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.
> [InstantDB] Started
> [DefaultDS] Starting
> [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
> [DefaultDS] Started
> [JAAS Security Manager] Starting
> [JAAS Security Manager] Started
> [Container factory] Starting
> [Container factory] Started
> [J2EE Deployer] Starting
> [J2EE Deployer] Cleaning up deployment directory 
> file:/C:/java/jboss2final/bin/.
> ./tmp/deploy/
> [J2EE Deployer] Started
> [Security manager] Starting
> [Security manager] Started
> [Auto deploy] Starting
> [Auto deploy] Auto deploy of file:/C:/java/jboss2final/deploy/movie.war
> [J2EE Deployer] Deploy J2EE application: 
> file:/C:/java/jboss2final/deploy/movie.
> war
> [J2EE Deployer] Create application movie.war
> [J2EE Deployer] Installing EJB package: movie.war
> [J2EE Deployer] Starting module movie.war
> [Container factory] 
> Deploying:file:/C:/java/jboss2final/bin/../tmp/deploy/movie.
> war/ejb1002.jar
> [Verifier] Verifying 
> file:/C:/java/jboss2final/bin/../tmp/deploy/movie.war/ejb10

[JBoss-user] Why Minerva instead of Oracle DataSource impl?

2001-05-22 Thread David Ward

http://www.jboss.org/documentation/HTML/ch03s05.html

I have gotten Oracle 8i working fine with the example setup described on 
the page above (about half-way down).  I still, though, have a question 
about the block below:


OracleDS
org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
jdbc:oracle:thin:@host.domain.com:1521:instance
scott
tiger


It seems that Oracle provides a few DataSource classes (not all concrete 
and not all XA, of course) in classes12.zip:
oracle.jdbc.pool.OracleDataSource
oracle.jdbc.pool.OracleConnectionCacheImpl
oracle.jdbc.pool.OracleConnectionPoolDataSource
oracle.jdbc.xa.OracleXADataSource
oracle.jdbc.xa.client.OracleXADataSource

Why not use one of Oracle's XADataSources as the DataSourceClass attribute?

Also, if we're using DataSources, why do we need any reference to 
"oracle.jdbc.driver.OracleDriver" in the JDBProvider block?

It seems to me that the 
"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl" (as it's name 
implies) is "wrapping" connections it gets from the old jdk1.1 
DriverManager method and possibly not taking advantage of a particular 
driver's own ability to do it.

Do I have to use the minerva wrapper?  Can I use what Oracle provides 
instead?  Which of Oracle's DataSource classes should I use?

Thanks for any insight into this,
David



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



RE: [JBoss-user] Jbuilder 4.0 Foundation & JBoss2.2.1 HowTo Guide

2001-05-22 Thread John Menke

Catalina is Tomcat 4.  Thanks for the reply.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of John P.
> Coffey
> Sent: Monday, May 21, 2001 5:21 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Jbuilder 4.0 Foundation & JBoss2.2.1 HowTo
> Guide
>
>
> John, actually I believe my howto addressed that, actually I am debugging
> withoug the embedded tomcat, I simply do not specify tomcat as
> the argument
> to start the debugger and I also ensured that the conf/default is in the
> classpath rather than conf/tomcat, I think that should do the
> trick.  Sorry
> Iam unfamiliar with Catalina.  I assume it is some form of web server/jsp
> engine?
>
> John Coffey
> Pingtel Corp.
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of John Menke
> Sent: Monday, May 21, 2001 11:55 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Jbuilder 4.0 Foundation & JBoss2.2.1 HowTo
> Guide
>
>
> John,
>
> I have JBoss2.2.1 installed with Catalina 4.0 beta 1 working and
> would like
> to debug with JBuilder.  If I am not using JBoss with embedded
> tomcat can I
> still use JBuilder to debug?  What changes do you think I will
> need to make
> to the setup?
>
> john
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of John P.
> > Coffey
> > Sent: Wednesday, May 16, 2001 2:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [JBoss-user] Jbuilder 4.0 Foundation & JBoss2.2.1 HowTo
> > Guide
> >
> >
> > Adam,
> >
> > no I did'nt experience such a problem.  1 question - does the
> JBoss server
> > start successfully from the console if not you are out of luck,
> also make
> > sure your versinos are the same as mine and note I ran from
> windows 2000?
> >
> > If the problem is specific to JBuilder running the console one
> thing I did
> > (it's probably not teh right way to fix JBuilder problems) was to start
> > afresh by deletinbg the .jbuilder4 directory from my home folder
> > (beware you
> > will need to have your installation keys handy before
> proceeding down this
> > route) and then follow the steps exactly as I indicated.  FYI I had a
> > colleague at the office do this and he gave me feedback before I
> > posted the
> > last note so the instructions are reasonably accurate.\
> >
> > Don't know if this helps, bug give it a try and hopefully it'll
> > succeed.  If
> > per chance you discover an error in the howto please let me
> know as I was
> > terribly frustrated with gettting this to work successfully.
> >
> > John Coffey
> >
> > Pingtel Corp
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Adam
> > Lipscombe
> > Sent: Wednesday, May 16, 2001 4:08 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [JBoss-user] Jbuilder 4.0 Foundation & JBoss2.2.1 HowTo
> > Guide
> >
> >
> > John,
> >
> >
> >
> > Thanks for such good info!
> >
> > I have got a problem though: when trying to run or debug the
> project, the
> > CPU goes to 100% and stays there for ages. After 10 minutes I gave up
> > waiting and ended the process.
> >
> > Did you experience this? Any work-arounds?
> >
> > I tried without the "-classic" but the results were the same.
> >
> >
> > Cheers - Adam
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of John P.
> > Coffey
> > Sent: Wednesday, May 16, 2001 1:48 AM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] Jbuilder 4.0 Foundation & JBoss2.2.1 HowTo Guide
> >
> >
> > Well after pulling my hair out for the last couple of days here
> is how to
> > get JBoss and JBuilder as friends...
> >
> > Instructions for integrating JBuilder 4.0 Foundation or Higher
> with JBoss
> > for source level debugging
> >
> > - Install the JBoss Server
> >
> > For the purposes of this howto, I installed teh JBossTomcat
> > release version
> > 2.2.1 into d:\JBoss-2.2.1_Tomcat-3.2.1.  Download this from
> > http://www.jboss.org and select the binary link from the page.
> This is a
> > little confusing as it also contains the source (in the best
> interests of
> > open source of course).
> >
> > - Create a JBuilder 4.0 Project
> >
> > I typically point this to the source for my EJB code.
> >
> > - Create a JBoss-Server library
> >
> > This is the most difficult part of the setup to get right, however once
> > completed it does not need to be changed so you can setup multiple ejb
> > projects and reuse this library (well done Borland)
> >
> > - Project / Project Properties / RequiredLibraries / Add...
> >
> > Add the following library entries to the JBoss-Server classpath
> (the order
> > is crucual here).  Pay specific attention to the log and tmp folders,
> > faulure to put these in the Library class path will cause the
> > classloader to
> > spit out error messages, the most confusing of which is that
> > /log.properties
> > or /tmp.properties files could not be located.  This is bec

[JBoss-user] Problems with having EmbeddedTomcat in JBoss to add contexts

2001-05-22 Thread Linda Danielsson
Hi,
 
I´m using Tomcat 3.2.1 and JBoss2Final. How do I get the ContextManager in JBoss (Tomcat) to add Contexts? The only context added is Ctx(). Since I have my application in another webapp other than default, I have configured server.xml, in Tomcat, for this. I want my application-directory to be added as a new context, like Ctx(/myWebApp) I don't even get the other defaults, Ctx(/admin) and Ctx(/examples).
 
/Linda
 
CMD-output:
 
Using configuration "default"[Console logging] Initialized[Classpath extension] Initializing[Classpath extension] Initialized[File logging] Initializing[File logging] Initialized[Classpath extension] Initializing[Classpath extension] Initialized[Classpath extension] Initializing[Classpath extension] Initialized[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[Classpath extension] Initializing[Classpath extension] Initialized[JDBC] Loaded JDBC-driver:org.hsql.jdbcDriver[JDBC] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver[JDBC] Loaded JDBC-driver:com.inet.pool.PoolDriver[JDBC] Loaded JDBC-driver:com.jnetdirect.jsql.JSQLDriver[Webserver] Initializing[Webserver] Initialized[Hypersonic] Initializing[Hypersonic] Initialized[Naming] Initializing[Naming] Naming started on port 1099[Naming] Initialized[Transaction manager] Initializing[Transaction manager] Initialized[JAAS Security Manager] Initializing[JAAS Security Manager] Initialized[Simple Realm Mapping] Initializing[Simple Realm Mapping] Initialized[Security manager] Initializing[Security manager] Initialized[InstantDB] Initializing[InstantDB] Initialized[DefaultDS] Initializing[DefaultDS] Initialized[Container factory] Initializing[Container factory] Initialized[Auto deploy] Watching C:\java\jboss2final\deploy[Auto deploy] Initializing[Auto deploy] Initialized[JMX RMI Adaptor] Initializing[JMX RMI Adaptor] Initialized[JMX RMI Connector] Initializing[JMX RMI Connector] Initialized[Configuration] Initializing[Configuration] Initialized[J2EE Deployer] Initializing[J2EE Deployer] Initialized[EmbeddedTomcat] Initializing[EmbeddedTomcat] Initialized[SpyderMQ] Initializing[SpyderMQ] Initialized
 
[EmbeddedTomcat] Starting[EmbeddedTomcat] Testing if Tomcat is present[EmbeddedTomcat] OK[EmbeddedTomcat] ContextManager: Adding context Ctx(  )[EmbeddedTomcat] path="" :jsp: init[EmbeddedTomcat] PoolTcpConnector: Starting HttpConnectionHandler on 8080[EmbeddedTomcat] Started
[Simple Realm Mapping] Starting[Simple Realm Mapping] Started[Webserver] Starting[Webserver] Codebase set to http://gryner:8083/[Webserver] Started webserver on port 8083[Webserver] Started[Transaction manager] Starting[Transaction manager] Started[Hypersonic] Starting[Hypersonic] Server 1.4 is running[Hypersonic] Database started[Hypersonic] Started[Naming] Starting[Naming] Started[Movie] Starting[Hypersonic] Press [Ctrl]+[C] to abort[Movie] XA Connection pool Movie bound to java:/Movie[Movie] Started[InstantDB] Starting[InstantDB] XA Connection pool InstantDB bound to java:/InstantDBEnhydra InstantDB - Version 3.21[InstantDB] The Initial Developer of the Original Code is Lutris Technologies Inc.Portions created by Lutris are Copyright (C) 1997-2000 Lutris Technologies, Inc.
All Rights Reserved.[InstantDB] Started[DefaultDS] Starting[DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS[DefaultDS] Started[JAAS Security Manager] Starting[JAAS Security Manager] Started[Container factory] Starting[Container factory] Started[J2EE Deployer] Starting[J2EE Deployer] Cleaning up deployment directory file:/C:/java/jboss2final/bin/../tmp/deploy/[J2EE Deployer] Started[Security manager] Starting[Security manager] Started[Auto deploy] Starting[Auto deploy] Auto deploy of file:/C:/java/jboss2final/deploy/movie.war[J2EE Deployer] Deploy J2EE application: file:/C:/java/jboss2final/deploy/movie.war[J2EE Deployer] Create application movie.war[J2EE Deployer] Installing EJB package: movie.war[J2EE Deployer] Starting module movie.war[Container factory] Deploying:file:/C:/java/jboss2final/bin/../tmp/deploy/movie.war/ejb1002.jar[Verifier] Verifying file:/C:/java/jboss2final/bin/../tmp/deploy/movie.war/ejb1002.jar[Container factory] Deploying Age[Container factory] Deploying Cathegory[Container factory] Deploying Cinema[Container factory] Deploying City[Container factory] Deploying Movie[Container factory] Deploying Performance[Container factory] Deploying Reservation[Container factory] Deploying Salon[Container factory] Deploying MovieSession[Container factory] Deploying NumberGenerator[Bean Cache] Cache policy scheduler started[Container factory] Deployed application: file:/C:/java/jboss2final/bin/../tmp/deploy/movie.war/ejb1002.jar[J2EE Deployer] J2EE application: file:/C:/java/jboss2final/deploy/movie.war isdeployed.[Auto deploy] Started[SpyderMQ] Starting[SpyderMQ] Testing if SpyderMQ is present[SpyderMQ] OK[SpyderMQ] Starting SpyderMQ...[SpyderMQ] Star

[JBoss-user] Sharing environment state

2001-05-22 Thread Jonas Bergström

Hello!

If I need to keep a common state for the whole JBoss environment (common to
all JBoss servers in a future clustered solution), how is that accomplished?

My first idea was to use a BMP entity bean, but since I don't want to use a
database to store the state in (the state is not persistent, and performance
reasons), I can't see how this would be done.

My second idea was to bind a "non-persistent-stateful object" to JNDI, but
that object would have to be "remote" to work in future clustered
environments. According to the specs, it's not permitted for several clients
to access the same stateful session bean, so how would this be done?

The common state I'm talking about is web client session data. What is the
preferred way to implement web client sessions if I want to use the EJB
container's and not the web container's session functionality?

One crazy idea I had was to bind every session data object to JNDI with the
session id as key, but I don't know about JNDI performance, how bad would
that be?


Thanks / Jonas


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



RE: [JBoss-user] Interesting test of JDBC pooling

2001-05-22 Thread Brian D. Brown

Hello Georg,

Thanks for your suggestion.  I instantiated the datasource in the
ejbCreate() method (via the JNDI lookup), and got the following results:

5457 ms.
5268 ms.
5398 ms.

It shaved roughly a second off the time required to do 1000 transactions, so
I guess it's safe to say that, in this case, the JNDI lookup was taking
about .001 second.

Every little bit helps!!

Take care,
Brian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Georg
Rehfeld
Sent: Monday, May 21, 2001 11:19 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Interesting test of JDBC pooling


Hi Brian,

> Here is the source for the session bean using connection pooling:

as others pointed out and you confirmed them to be right,
giving back the connections into the pool by executing
connection.close() speeds up your processing essentially.

But you not only test the speed of the connection pool, but
at the same time the speed of a JNDI lookup: your getName()
calls getConnection() which in turn not only gets the connection
but also creates a new InitialContext and does a lookup of
your datasource.

I would do the InitialContext.lookup() thing only once and
cache the DataSource to avoid further lookups. Pooled are
the Connections, that is the tight resource, not the DataSource.

And I would be very interested in your test results after that
modification, so we all can better see the overhead of lookup
vs. connection pooling.

 ___   ___
| + | |__Georg Rehfeld  Woltmanstr. 12 20097 Hamburg
|_|_\ |___   [EMAIL PROTECTED]   +49 (40) 23 53 27 10



___
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] [Newbie] Manual Example/Auto Deployer

2001-05-22 Thread Burkhard Vogel

Hi,
I would guess you replaced parts of the original config while including your
Oracle driver, thus building an unstable situation.
In the JDBC-Driver section of jboss.jcml, include the Oracle and leave the
Hypersonic driver, remove InstantDB. In the following part of jboss.jcml,
describing the datasources leave the Hypersonic/DefaultDS section untouched
and replace the InstantDB/InstantDS part with an Oracle part, which jan be
found about a thousand of times in the archives of this mailing list.
If you still get errors please post the relevant parts of jboss.jcml and a
full stack trace.
Burkhard
- Original Message -
From: "Klaus Pittig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 1:08 PM
Subject: [JBoss-user] [Newbie] Manual Example/Auto Deployer


> Hi.
> I'm new to JBoss (not to J2EE).
> I can start JBoss successfully including registering my Oracle JDBC
> Driver,
> but the Auto Deployer does not recognize the example EJB mentioned in
> the
> manual. JBoss is running under Win2k with JDK1.3.1 (-b24 release).
> What do I have to do with it now?
> The logs say, that the Auto Deployer was successfully initialized.
>
> If this cannot run for any reason that I don't know, I would like to
> know,
> how the manual deployment can be done with this container.
>
> The console output after starting JBoss with run.bat ends with
> "[Hypersonic] Press [Ctrl]+[C] to abort
>  [InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
> "
> and there are no errors shown.
>
> Thanks in advance
>   Klaus
>
>
>
>
> ___
> 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] CMP and BLOBs

2001-05-22 Thread Burkhard Vogel

No, due to Oracle driver limitations.
see http://wamoz.com/JDBC_and_Oracle_LOB.asp
Burkhard
- Original Message -
From: "Darius Davidavicius" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 22, 2001 3:20 PM
Subject: [JBoss-user] CMP and BLOBs


> hi all,
>
> I would be thankfull if anyone advice me if it is possible to map byte[]
to the BLOB field of DB?
> I'm going to use Oracle 8i, MSSQL or PostgreSQL
> any tips, samples or links to how to would be perfect.
> Thanks in advance,
> D&D
>
>
>
>


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



[JBoss-user] Same context with diferent DataSources

2001-05-22 Thread Emanuel Galindo


Anyone knows if jaws or whatever allows to have diferent datasources in
the same context?

chao.


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



RE: [JBoss-user] A problem with the list archive ??

2001-05-22 Thread Norton Lam

Why doesn't someone just point the _Archive_ link
on the sourceforge.net page to the "real" archive?
That's how everybody is getting to GeoCrawler.


-Original Message-
From: Burkhard Vogel [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 12:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] A problem with the list archive ??


We sould really put this somewhere prominent even more obvious the FAQ, this
link is _NOT_ working, has never and probably will not ever.
Everybody should _REALLY_ use the link provided on
www.jboss.org/business/lists.html , if this will ever be???
- Original Message -
From: "Hermann RANGAMANA" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 4:00 PM
Subject: [JBoss-user] A problem with the list archive ??


> Hi all,
>
> I always get the following error while performing search at the list
archive
> :
> "htsearch detected an error. Please report this to the returned matches
> webmaster of this site. The error message is:
>
> Unable to read configuration file '/bigassraid/htdig//conf/10767.conf'
> What is the problem?
> --h
>
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, May 21, 2001 3:10 PM
> Subject: [JBoss-user] How to use Jboss Built in database
>
>
> > Hi,
> >
> > I am a new bie.  I would like to know how to configure and access the
> built in database
> >
> > thanks in advance
> >
> >
> >
> >
> >
> >
> > ---
> > Runbox Mail Manager - www.runbox.no
> > Gratis epost-tjeneste
> >
> > ___
> > 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] problem with authentication

2001-05-22 Thread Scott M Stark


> I apologize for not researching further before asking, but I'm hoping you
> (someone) knows of the top of your head.
> 
> >This is a bug in the JAAS login config file class.
> Has this been reported to Sun?
> 
Yes.

> >The workaround it to have a single thread force a
> >load of the login configuration file so that when the frames all try to
> >access secured beans they don't cause the ConfigFile to be loaded
> >by multiple threads.
> Not sure what the implications of the bug are.  Is the config file something
> that gets loaded into cache once? Per user, or global, or could I have the
> problem when any two people try to login at the same time?  If global, is
> there a call I can put into a static block somewhere (or in the servlet init
> method) that will go ahead and load the file.  If the problem occurs per
> user, this could be a huge deal, if it is global, at worst I can add it to
> the list of things to do when restarting JBoss, "login to clear threading
> errors".
> 
Its loaded only once unless explicity reloaded.

> >I thought I added a synchronization that would prevent this
> >from happening.
> Where did you add this synchronization.  1) I want to make sure I have the
> right version, 2) If I do, I'll be happy to explore and see why my code
> still breaks.
> 
The synchronization was removed so what your seeing is expected. You
could force a load of the auth.conf file on server startup by either creating an
mbean or a servlet that is loaded on startup that created a LoginContext.



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



[JBoss-user] CMP and BLOBs

2001-05-22 Thread Darius Davidavicius


hi all,

I would be thankfull if anyone advice me if it is possible to map byte[] to the BLOB field of DB?
I'm going to use Oracle 8i, MSSQL or PostgreSQL
any tips, samples or links to how to would be perfect.
Thanks in advance,
D&D







[JBoss-user] Running Tomcat in JBuilder for debugging

2001-05-22 Thread Christophe GARCIA



Hi,
 
I am trying to run the "EmbededTomcat" object in 
JBuilder to be able to debug my servlets.
It has a security access problem.
 
I added in the JVM options the following 
:
 
-Djava.security.manager
-Djava.security.policy="d:/jboss-tomcat-2.2/jakarta-tomcat-3.2.1/conf/tomcat.policy"
-Dtomcat.home="d:/jboss-tomcat-2.2/jakarta-tomcat-3.2.1"
 
Here is my code :
 
import 
org.apache.tomcat.startup.*;
 
public class TomcatDebugger {
 
  public TomcatDebugger() {  
}
 
  public static void main(String[] 
args) {    try 
{    EmbededTomcat  
tomcat   = new 
EmbededTomcat();    
tomcat.main(args);    
  System.out.println("TomcatDebugger exited 
normally");    } catch (Exception e) 
{  System.out.println("TomcatDebugger 
exception: " + e);  
e.printStackTrace();    }  }
}
 
Did someone tried to do that before ?
Can someone help me out ?
 
Thanks,
Christophe    :o)
 
 
 
 


  
  
 
  
Christophe GARCIA1 rue des rivières - 
  CP 11669266 LYON Cedex 09
 
  
Tel :Fax :Email :  
04 72 19 25 0504 72 19 25 
  50[EMAIL PROTECTED] 


  
 
  


RE: [JBoss-user] problem with authentication

2001-05-22 Thread Alex Radka

I apologize for not researching further before asking, but I'm hoping you
(someone) knows of the top of your head.

>This is a bug in the JAAS login config file class.
Has this been reported to Sun?

>The workaround it to have a single thread force a
>load of the login configuration file so that when the frames all try to
>access secured beans they don't cause the ConfigFile to be loaded
>by multiple threads.
Not sure what the implications of the bug are.  Is the config file something
that gets loaded into cache once? Per user, or global, or could I have the
problem when any two people try to login at the same time?  If global, is
there a call I can put into a static block somewhere (or in the servlet init
method) that will go ahead and load the file.  If the problem occurs per
user, this could be a huge deal, if it is global, at worst I can add it to
the list of things to do when restarting JBoss, "login to clear threading
errors".

>I thought I added a synchronization that would prevent this
>from happening.
Where did you add this synchronization.  1) I want to make sure I have the
right version, 2) If I do, I'll be happy to explore and see why my code
still breaks.

Thanks,
Alex

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott M
Stark
Sent: Monday, May 21, 2001 12:05 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] problem with authentication


This is a bug in the JAAS login config file class. It is not thread safe and
when multiple login threads run at the same time it can produce the error
your seeing. I thought I added a synchronization that would prevent this
from happening. The workaround it to have a single thread force a
load of the login configuration file so that when the frames all try to
access secured beans they don't cause the ConfigFile to be loaded
by multiple threads.

- Original Message -
From: "Alex Radka" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 21, 2001 7:41 AM
Subject: [JBoss-user] problem with authentication


> Hi,
>
> I'm using JBoss-2.2.1 w/ the embedded Tomcat that comes with the release
> (3.2.1) on Win2000, and MySQL.
>
> I'm using Basic Authentication but to a DB instead of the prop files.
>
> My app uses frames with each frame calling a servlet which attaches to
> action classes which call stateless session beans.  The start page has a
> tree navigation tool on one side, and an entry page on the other with some
> info based on who the user is.
>
> Everything works fine when my initial page has only one frame calling the
> servlet, so I'm pretty sure I have everything configured correctly.  I get
> very odd behavior when both frames are hitting different session beans at
> the same time (which really only happens on the initial login).
>
> After login, depending on which frame gets 'there' first, a Security
> Exception is thrown, and the other frame builds correctly.  What I mean by
> 'get there first', is that the next time I recreate, the other frame fails
> (with the same exception) while the original frame that failed builds
> correctly. All subsequent logins work fine until I restart JBoss.
>
> I'm not sure what info to include, so I'll start with the stack trace.
>
> Any help would be appreciated.
>
> Alex
>
> [ERROR] Mon May 21 09:18:23 EDT 2001--
> java.rmi.ServerException: Container exception. Notify the container
> developers :-); nested exception is:
> java.lang.SecurityException: Configuration Error:
> Line 55: expected '=', found 'null'
> java.lang.SecurityException: Configuration Error:
> Line 55: expected '=', found 'null'
> at
>
com.sun.security.auth.login.ConfigFile.getAppConfigurationEntry(ConfigFile.j
> ava:221)
> at javax.security.auth.login.LoginContext.init(LoginContext.java:172)
> at javax.security.auth.login.LoginContext.(LoginContext.java:266)
> at javax.security.auth.login.LoginContext.(LoginContext.java:380)
> at
>
org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityMana
> ger.java:331)



___
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] EmbeddedTomcat: Element "web-app" does not allow "servlet" here

2001-05-22 Thread Julian Gosnell

This looks like the XML telling you that although it
has been instructed to check the grammar of your
webapps deployment descriptor (web.xml, jboss-web.xml)
it hasn't been given a custom error handler through
which to report problems - but it will spit them out
anyway.

element webapp does not allow servlet here probably
means that in your descriptor you have a servlet
element nested in a webapp element in a place where it
is ungrammatical. The parser has spotted this and is
warning you.

look carefully at the jsdk-1.2 doc and your web.xml
file.

good luck,


Jules

--- Richard Conway <[EMAIL PROTECTED]> wrote:
> 
> I'm using 'JBoss-2.2.1_Tomcat-3.2.1' running on
> Solaris 2.6.
> 
> I'm getting the occasional set of lines in my
> logfile...
> 
> [EmbeddedTomcat] Warning: validation was turned on
> but an
> org.xml.sax.ErrorHandler was not
> [EmbeddedTomcat] set, which is probably not what is
> desired.  Parser will
> use a default
> [EmbeddedTomcat] ErrorHandler to print the first 10
> errors.  Please call
> [EmbeddedTomcat] the 'setErrorHandler' method to fix
> this.
> [EmbeddedTomcat] Error: URI=null Line=18: Element
> "web-app" does not allow
> "servlet" here.
> 
> ... What's all this about then ?
> 
> The application appears to be behaving itself
> despite these messages.
> 
> Any ideas ?
> 
> Richard.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
>
http://lists.sourceforge.net/lists/listinfo/jboss-user



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

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



Re: [JBoss-user] [Newbie] Manual Example/Auto Deployer

2001-05-22 Thread Tobias Frech

Hi!
Klaus Pittig wrote:
> Hi.
> I'm new to JBoss (not to J2EE).
> I can start JBoss successfully including registering my Oracle JDBC
> Driver,
> but the Auto Deployer does not recognize the example EJB mentioned in
> the
> manual. JBoss is running under Win2k with JDK1.3.1 (-b24 release).
> What do I have to do with it now?
> The logs say, that the Auto Deployer was successfully initialized.
> 
> If this cannot run for any reason that I don't know, I would like to
> know,
> how the manual deployment can be done with this container.
> 
> The console output after starting JBoss with run.bat ends with
> "[Hypersonic] Press [Ctrl]+[C] to abort
>  [InstantDB] XA Connection pool InstantDB bound to java:/InstantDB
> "
> and there are no errors shown.

JBoss did not start completly. You should see the server trace ending
like described in the manual. Check your installation please.

Cheers,
Tobias

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



[JBoss-user] error building petstore 1.1.2

2001-05-22 Thread mroosendaal



I've managed to update Jboss to communicate with 
MySQL. The problem is that when i build the petstore i get the following 
error
*
  ../build/petstore.ear[error] No local 
string for enterprise.deployment.application.description[exec] Setting EJB 
version to EJB1.X...[exec] Setting EJB version to EJB1.X...[exec] 
Setting EJB version to EJB1.X...[exec] Setting EJB version to 
EJB1.X...[exec] Setting EJB version to EJB1.X...[exec] Setting EJB 
version to EJB1.X...[exec] Setting EJB version to EJB1.X...[exec] 
Creation of application in ../build/petstore.ear is completeExecuting 
Target: runtime[error][error] No local string for 
enterprise.deployment.application.description[exec] Set runtime 
done[error][error] No local string for 
enterprise.deployment.application.description[exec] Set runtime 
doneExecuting Target: coreCompleted in 99 seconds
 
C:\PETSTORE\SRC\PETSTORE\SRC>ocal string for 
enterprise.dThe name specified is not recognized as aninternal or 
external command, operable program or batch file.
**
The installation description on the JBoss site 
concerning the deployment is not very clear especially on point 8, 9, 10 which 
means putting the .ear file in the deploy folder of JBoss produces:
***
[J2EE Deployer Default] Module petstore.ear is not 
running[J2EE Deployer Default] Unable to stop module petstore.war: 
DefaultDomain:service=EmbeddedTomcat[J2EE Deployer Default] unable to 
stop application petstore.ear: org.jboss.deployment.J2eeDeploymentException: 
Error(s) on stopping application petstore.ear:Unable to stop module 
petstore.war: fatal error while calling :service=EmbeddedTomcat: 
DefaultDomain:service=EmbeddedTomcat/n[J2EE Deployer Default] Destroying 
application petstore.ear[Auto deploy] Deployment 
failed:file:/C:/Jboss/deploy/petstore.ear[Auto deploy] 
org.jboss.deployment.J2eeDeploymentException: application contains war 
files but no web container available
*
 
Hope somoeone has an idea,
Maarten
 


[JBoss-user] Tomcat wont load any pages anymore after first use of connection pool.

2001-05-22 Thread Rien Nentjes

Hello,

While migrating from a web-server application to a J2EE application with
JBoss, I run into some problems. The original version was already working on
Tomcat and now I wanted to add the JBoss functionality. I am using
Connection polling with Oracle through JNDI which seems to work fine. But
when I open and close a connection on this pool, directly after that Tomcat
wont load any pages anymore (not even html), and I get the next Exception:

java.lang.NullPointerExceptionnull  at
org.apache.tomcat.util.FileUtil.patch(FileUtil.java:271)nullat
org.apache.tomcat.util.FileUtil.safePath(FileUtil.java:180)null at
org.apache.tomcat.core.Context.getRealPath(Context.java:794)nullat
org.apache.tomcat.facade.ServletContextFacade.getRealPath(ServletContextFaca
de.java:136)nullat
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:381)null   at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)nullat
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)null
at org.apache.tomcat.core.Handler.service(Handler.java:286)null at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)null
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)null  at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)null
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)null  at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)nul
l   at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)nu
ll  at java.lang.Thread.run(Unknown Source)null

So the exception occurs somewhere in Tomcat (?) after a connectionpool is
being used for the first time. Anybody got an idea what's wrong here?

Rien.


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



[JBoss-user] EmbeddedTomcat: Element "web-app" does not allow "servlet" here

2001-05-22 Thread Richard Conway


I'm using 'JBoss-2.2.1_Tomcat-3.2.1' running on Solaris 2.6.

I'm getting the occasional set of lines in my logfile...

[EmbeddedTomcat] Warning: validation was turned on but an
org.xml.sax.ErrorHandler was not
[EmbeddedTomcat] set, which is probably not what is desired.  Parser will
use a default
[EmbeddedTomcat] ErrorHandler to print the first 10 errors.  Please call
[EmbeddedTomcat] the 'setErrorHandler' method to fix this.
[EmbeddedTomcat] Error: URI=null Line=18: Element "web-app" does not allow
"servlet" here.

... What's all this about then ?

The application appears to be behaving itself despite these messages.

Any ideas ?

Richard.

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



[JBoss-user] CommunicationException !

2001-05-22 Thread dinesh babu

hi,

   I am new to Jboss and trying to deploy the demo Interest ejb application
using jboss2.2.1 server. 

Server is running successfully, but when i try to deploy the interest.jar
using Auto deploy,

 it throws javax.naming.CommunicationException.




thanx in advance!
dinesh.




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

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



[JBoss-user] Is it possible to check the validity of a home interface?

2001-05-22 Thread Lennart Petersson

Just to see if it has been removed by the container or not? Using Ejipt we called the 
EJBHome method getEJBMetaData() within a try-catch block and in the catch did a new 
lookup, but with JBoss that call is handled locally on the client, never touching the 
container.

We have a helper class that is performing all lookups in the client app and caching 
homes. But the actual use of the home, such as create and remove is done in the code. 
We want to handle this check in the helper class.

Any ideas?

/Lennart

===
Lennart Petersson
www.benefit.se/english


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



[JBoss-user] EmbeddedTomcat command line options

2001-05-22 Thread Richard Conway


I'm using 'JBoss-2.2.1_Tomcat-3.2.1' running on Solaris 2.6.

I would like to run the embedded tomcat service with the equivalent of
'-config myconfig.xml' as can be done when tomcat is launched from the
command line.

Is this possible ?

Richard.

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



  1   2   >