[JBoss-user] Unsubscribe me!

2002-06-24 Thread Tiago Fernandes Thomaz

Please unsubscribe  me!

Tiago Fernandes Thomaz


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] What is the CVS Password for anonymous user?

2002-06-24 Thread Lennart Petersson

From: Tim Fox [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] What is the CVS Password for anonymous user?
Date: Fri, 21 Jun 2002 10:38:35 +0100
Reply-To: [EMAIL PROTECTED]

are you behind a firewall? - if so you need to open port 2401

Sorry if already anvsered - digging through a lot of mails now :) There is another 
solution if you are behing a firewall. Read on this clip:

How can I access CVS services from behind a firewall?

Access to the project CVS servers is provided via SSH (for developers) and the CVS 
pserver protocols (for non-developers). SSH uses TCP port 22; CVS pserver uses TCP 
port 2401. Many firewalls block outbound traffic on these ports, thus preventing 
SourceForge.net developers and users from accessing the project CVS servers. To work 
around this limitation, we now offer the ability to connect to the project CVS servers 
using alternate ports (using different hostnames).

To access the project CVS server using SSH from behind a firewall, you may connect to 
port 80 of cvs-ssh.sourceforge.net. Traffic to port 80 of cvs-ssh.sourceforge.net is 
redirected to cvs.sourceforge.net. The SSH host fingerprint for 
cvs-ssh.sourceforge.net will match that of cvs.sourceforge.net.

To access the project CVS server using anonymous pserver-based access from behind a 
firewall, you may connect to port 80 of cvs-pserver.sourceforge.net. Traffic to port 
80 of cvs-pserver.sourceforge.nte is redirected to cvs.sourceforge.net.

/L



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] error when start my jboss server,pls help me!

2002-06-24 Thread don_henley

when begin running the jboss server,some error ocurr:
16:43:07,000 INFO  [Log4jService$URLWatchTimerTask] Configuring from URL: resour
ce:log4j.xml
log4j:ERROR Could not create an Appender. Reported error follows.

what should i do?

É̶¼ÐÅÏ¢¸Û http://www.zz.ha.cn
371Ãâ·ÑÓÊÏä http://www.371.net


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problems securing a webapp using FORMbased authentication.

2002-06-24 Thread Marcus Ahnve

Sorry, forgot that. 

JBoss3.0.0 with the bundled Jetty as downloadble from sourceforge.

/Marcus 

On Thu, 2002-06-20 at 20:48, Jules Gosnell wrote:
 What version of JBoss/Jetty are you using ?
 
 Jules
 
 
 Marcus Ahnve wrote:
  I might add that changing the security domain in jboss-web.xml to bogus
  values still gives the same result.
  
  /Marcus
  
  On Thu, 2002-06-20 at 19:21, Marcus Ahnve wrote:
  
 We're having problems securing a webapp. When accessing a secure page,
 we get the following log message:
 
 18:19:42,894 WARN  [Jetty] WARNING: Mis-configured Authenticator for
 [...]
 
 Earlier during the deployment we are getting:
 
 18:15:29,978 WARN  [Jetty] WARNING: No Realm set for
 JBossWebApplicationContext$JBossSXSecurityHandler in
 WebApplicationContext[/,Lecando Server WebApp]
 
 which is confusing since realms should only be set för BASIC
 authentication.
 
 We are using FORM based authentication. These are our config files:
 
 
 jboss-web.xml
 
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE jboss-web PUBLIC -//JBoss//DTD Web Application 2.3//EN
 http://www.jboss.org/j2ee/dtds/jboss-web_3_0.dtd;
 jboss-web
security-domainjava:/jaas/lecando-realm/security-domain
 /jboss-web
 
 
 login-config.xml:
 
 ?xml version=1.0 encoding=UTF-8?
 policy
 
 [Default realms removed for brevity]
 
 application-policy name = lecando-realm
 authentication
 login-module code =
 org.jboss.security.auth.spi.UsersRolesLoginModule flag = requisite/
 /authentication
 /application-policy
 /policy
 
 
 
 users.properties:
 
 marcus=aaa
 
 
 
 oles.properties:
 
 marcus=LecandoServerUser
 
 
 Any help greatly appreciated, we've been at this for quite some time
 now. /Marcus
 
 -- 
 Marcus Ahnve  email: [EMAIL PROTECTED]
 Lecando ABOffice: +46-(0)8-634 94 18
 SwedenMobile: +46-(0)70-462 19 18
 www.lecando.com   ICQ#: 4564879
 
 PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
  B941 DB1A
 
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
  
 
 
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Marcus Ahnve  email: [EMAIL PROTECTED]
Lecando ABOffice: +46-(0)8-634 94 18
SwedenMobile: +46-(0)70-462 19 18
www.lecando.com   ICQ#: 4564879

PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
 B941 DB1A




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Problems securing a webapp using FORMbased authentication.

2002-06-24 Thread Marcus Ahnve

And, as just tested, 3.0.1RC1.

/Marcus

On Mon, 2002-06-24 at 11:32, Marcus Ahnve wrote:
 Sorry, forgot that. 
 
 JBoss3.0.0 with the bundled Jetty as downloadble from sourceforge.
 
 /Marcus 
 
 On Thu, 2002-06-20 at 20:48, Jules Gosnell wrote:
  What version of JBoss/Jetty are you using ?
  
  Jules
  
  
  Marcus Ahnve wrote:
   I might add that changing the security domain in jboss-web.xml to bogus
   values still gives the same result.
   
   /Marcus
   
   On Thu, 2002-06-20 at 19:21, Marcus Ahnve wrote:
   
  We're having problems securing a webapp. When accessing a secure page,
  we get the following log message:
  
  18:19:42,894 WARN  [Jetty] WARNING: Mis-configured Authenticator for
  [...]
  
  Earlier during the deployment we are getting:
  
  18:15:29,978 WARN  [Jetty] WARNING: No Realm set for
  JBossWebApplicationContext$JBossSXSecurityHandler in
  WebApplicationContext[/,Lecando Server WebApp]
  
  which is confusing since realms should only be set för BASIC
  authentication.
  
  We are using FORM based authentication. These are our config files:
  
  
  jboss-web.xml
  
  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE jboss-web PUBLIC -//JBoss//DTD Web Application 2.3//EN
  http://www.jboss.org/j2ee/dtds/jboss-web_3_0.dtd;
  jboss-web
 security-domainjava:/jaas/lecando-realm/security-domain
  /jboss-web
  
  
  login-config.xml:
  
  ?xml version=1.0 encoding=UTF-8?
  policy
  
  [Default realms removed for brevity]
  
  application-policy name = lecando-realm
  authentication
  login-module code =
  org.jboss.security.auth.spi.UsersRolesLoginModule flag = requisite/
  /authentication
  /application-policy
  /policy
  
  
  
  users.properties:
  
  marcus=aaa
  
  
  
  oles.properties:
  
  marcus=LecandoServerUser
  
  
  Any help greatly appreciated, we've been at this for quite some time
  now. /Marcus
  
  -- 
  Marcus Ahnve  email: [EMAIL PROTECTED]
  Lecando ABOffice: +46-(0)8-634 94 18
  SwedenMobile: +46-(0)70-462 19 18
  www.lecando.com   ICQ#: 4564879
  
  PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
   B941 DB1A
  
  
  
  
  ---
  Sponsored by:
  ThinkGeek at http://www.ThinkGeek.com/
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
   
  
  
  
  
  
  ---
  Sponsored by:
  ThinkGeek at http://www.ThinkGeek.com/
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 -- 
 Marcus Ahnve  email: [EMAIL PROTECTED]
 Lecando ABOffice: +46-(0)8-634 94 18
 SwedenMobile: +46-(0)70-462 19 18
 www.lecando.com   ICQ#: 4564879
 
 PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
  B941 DB1A
 
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
-- 
Marcus Ahnve  email: [EMAIL PROTECTED]
Lecando ABOffice: +46-(0)8-634 94 18
SwedenMobile: +46-(0)70-462 19 18
www.lecando.com   ICQ#: 4564879

PGP: 891C 2F84 7CA2 F9F7 9B87 EC2F D93B 961B 4441 9BA2
 B941 DB1A




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] xdoclet creating wrong package

2002-06-24 Thread wonder sonic

Hi,
I'm not an xdoclet expert but did you put the line:

packageSubstitution packages=session,entity
substituteWith=interfaces/

in the build.xml ant file?

look at the example:

...
   target name=xdoclet-generate depends=init
  taskdef
 name=ejbdoclet
 classname=xdoclet.ejb.EjbDocletTask
  
 classpath refid=xdoclet.path/
  /taskdef

  ejbdoclet
 sourcepath=${src.ejb.dir}
 destdir=${build.generate.dir}
 classpathref=base.path
 excludedtags=@version,@author
 ejbspec=${ejb.version}
 mergedir=${src.resources.dir}/xdoclet
 force=${xdoclet.force}
  
 fileset dir=${src.ejb.dir}
include name=**/*Bean.java/
 /fileset

 packageSubstitution
packages=session,entity
substituteWith=interfaces/
 dataobject/
 remoteinterface/
 homeinterface/
 entitypk/
 entitycmp/
 deploymentdescriptor
destdir=${build.dir}/META-INF/
 !-- AS 4/29/02 Do not validate XML files
because JBoss 3.0 message driven will
  report an wrong error because it uses
the wrong jboss.dtd --
 jboss version=${jboss.version}
xmlencoding=UTF-8
typemapping=${type.mapping}
datasource=${datasource.name}
destdir=${build.dir}/META-INF
validateXml=false
 /
  /ejbdoclet
   /target
...

Hope it helps...
Wonder Sonic

 --- Sundaram [EMAIL PROTECTED] a écrit :  Hi,
 
 I have modified template example , created  user
 entity bean. some how it
 creating wrong package name.
 
 user entity class, it generating  wrong package
 name.
 com.percipia.auth.entity, but it suppose to be
 com.percipia.auth.interfaces.
 
 generated line:
public com.percipia.auth.entity.UserEntityData
 getValueObject(  ) throws
 java.rmi.RemoteException;
 
 
 
 UserEntityBean.java
 ---
 
 package com.percipia.auth.entity;
 
 import com.percipia.auth.interfaces.*;
 
 import java.sql.Date;
 import java.rmi.RemoteException;
 import java.util.Collection;
 import java.util.Iterator;
 
 import javax.ejb.CreateException;
 import javax.ejb.EJBException;
 import javax.ejb.EntityBean;
 import javax.ejb.EntityContext;
 import javax.ejb.FinderException;
 import javax.ejb.RemoveException;
 import javax.naming.Context;
 import javax.naming.InitialContext;
 import javax.naming.NamingException;
 import javax.rmi.PortableRemoteObject;
 
 /**
  * The Entity bean represents a UserEntity
  *
  * @author Andreas Schaefer
  * @version $Revision: 1.1 $
  *
  * @ejb:bean name=User/UserEntity
  *   display-name=UserEntity working on
 projects to support
 clients
  *   type=CMP
  *   jndi-name=ejb/User/UserEntity
  *
  * @ejb:transaction type=Required
  *
  * @ejb:data-object
 extends=com.percipia.auth.interfaces.AbstractData
  *  setdata=false
  *
  * @ejb:finder signature=java.util.Collection
 findAll()
  *
  * @ejb:finder
 signature=com.percipia.auth.interfaces.UserEntity
 findByName( java.lang.String pSurname,
 java.lang.String pLastName )
  *
  * @jboss:finder-query name=findByName
  * query=First_Name = {0} AND
 Last_Name = {1}
  *
  * @ejb:finder
 signature=com.percipia.auth.interfaces.UserEntity
 findAnotherByName( int pId, java.lang.String
 pSurname, java.lang.String
 pLastName )
  *
  * @jboss:finder-query name=findAnotherByName
  * query=Id != {0} AND
 First_Name = {1} AND Last_Name =
 {2}
  *
  * @jboss:table-name table-name=UserEntity
  *
  * @jboss:create-table create=true
  *
  * @jboss:remove-table remove=true
  **/
 public abstract class UserEntityBean
implements EntityBean
 {
 
 
 
 
 //

-
// Members
 
 
 
 //

-
 
public EntityContext mContext;
 
 
 
 
 //

-
// Methods
 
 
 
 //

-
 
/**
* Store the data within the provided data object
 into this bean.
*
* @param pUserEntity The Value Object containing
 the UserEntity values
*
* @ejb:interface-method view-type=remote
**/
public void setValueObject( UserEntityData
 pUserEntity )
   throws
  InvalidValueException
{
   // Check for Data Integrity in the Value
 Object
   if( pUserEntity == null ) {
  throw new InvalidValueException(
 object.undefined,
 UserEntity );
   }
   if( pUserEntity.getId() = 0 ) {
  throw new InvalidValueException(
 id.invalid, new String[] {
 UserEntity, Id } );
   }
   // Check if the UserEntity is not already
 saved
   try {
  UserEntityHome lHome = (UserEntityHome)
 mContext.getEJBHome();
  UserEntity lEntity =
 

Re: [JBoss-user] xdoclet creating wrong package

2002-06-24 Thread Sundaram Ramasamy

yes, I have those lines in my build.xml file.

- Original Message -
From: wonder sonic [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 7:50 AM
Subject: Re: [JBoss-user] xdoclet creating wrong package


 Hi,
 I'm not an xdoclet expert but did you put the line:

 packageSubstitution packages=session,entity
 substituteWith=interfaces/

 in the build.xml ant file?

 look at the example:

 ...
target name=xdoclet-generate depends=init
   taskdef
  name=ejbdoclet
  classname=xdoclet.ejb.EjbDocletTask
   
  classpath refid=xdoclet.path/
   /taskdef

   ejbdoclet
  sourcepath=${src.ejb.dir}
  destdir=${build.generate.dir}
  classpathref=base.path
  excludedtags=@version,@author
  ejbspec=${ejb.version}
  mergedir=${src.resources.dir}/xdoclet
  force=${xdoclet.force}
   
  fileset dir=${src.ejb.dir}
 include name=**/*Bean.java/
  /fileset

  packageSubstitution
 packages=session,entity
 substituteWith=interfaces/
  dataobject/
  remoteinterface/
  homeinterface/
  entitypk/
  entitycmp/
  deploymentdescriptor
 destdir=${build.dir}/META-INF/
  !-- AS 4/29/02 Do not validate XML files
 because JBoss 3.0 message driven will
   report an wrong error because it uses
 the wrong jboss.dtd --
  jboss version=${jboss.version}
 xmlencoding=UTF-8
 typemapping=${type.mapping}
 datasource=${datasource.name}
 destdir=${build.dir}/META-INF
 validateXml=false
  /
   /ejbdoclet
/target
 ...

 Hope it helps...
 Wonder Sonic

  --- Sundaram [EMAIL PROTECTED] a écrit :  Hi,
 
  I have modified template example , created  user
  entity bean. some how it
  creating wrong package name.
 
  user entity class, it generating  wrong package
  name.
  com.percipia.auth.entity, but it suppose to be
  com.percipia.auth.interfaces.
 
  generated line:
 public com.percipia.auth.entity.UserEntityData
  getValueObject(  ) throws
  java.rmi.RemoteException;
 
  
 
  UserEntityBean.java
  ---
 
  package com.percipia.auth.entity;
 
  import com.percipia.auth.interfaces.*;
 
  import java.sql.Date;
  import java.rmi.RemoteException;
  import java.util.Collection;
  import java.util.Iterator;
 
  import javax.ejb.CreateException;
  import javax.ejb.EJBException;
  import javax.ejb.EntityBean;
  import javax.ejb.EntityContext;
  import javax.ejb.FinderException;
  import javax.ejb.RemoveException;
  import javax.naming.Context;
  import javax.naming.InitialContext;
  import javax.naming.NamingException;
  import javax.rmi.PortableRemoteObject;
 
  /**
   * The Entity bean represents a UserEntity
   *
   * @author Andreas Schaefer
   * @version $Revision: 1.1 $
   *
   * @ejb:bean name=User/UserEntity
   *   display-name=UserEntity working on
  projects to support
  clients
   *   type=CMP
   *   jndi-name=ejb/User/UserEntity
   *
   * @ejb:transaction type=Required
   *
   * @ejb:data-object
  extends=com.percipia.auth.interfaces.AbstractData
   *  setdata=false
   *
   * @ejb:finder signature=java.util.Collection
  findAll()
   *
   * @ejb:finder
  signature=com.percipia.auth.interfaces.UserEntity
  findByName( java.lang.String pSurname,
  java.lang.String pLastName )
   *
   * @jboss:finder-query name=findByName
   * query=First_Name = {0} AND
  Last_Name = {1}
   *
   * @ejb:finder
  signature=com.percipia.auth.interfaces.UserEntity
  findAnotherByName( int pId, java.lang.String
  pSurname, java.lang.String
  pLastName )
   *
   * @jboss:finder-query name=findAnotherByName
   * query=Id != {0} AND
  First_Name = {1} AND Last_Name =
  {2}
   *
   * @jboss:table-name table-name=UserEntity
   *
   * @jboss:create-table create=true
   *
   * @jboss:remove-table remove=true
   **/
  public abstract class UserEntityBean
 implements EntityBean
  {
 
 
 
 
  //
 
 -
 // Members
 
 
 
  //
 
 -
 
 public EntityContext mContext;
 
 
 
 
  //
 
 -
 // Methods
 
 
 
  //
 
 -
 
 /**
 * Store the data within the provided data object
  into this bean.
 *
 * @param pUserEntity The Value Object containing
  the UserEntity values
 *
 * @ejb:interface-method view-type=remote
 **/
 public void setValueObject( UserEntityData
  pUserEntity )
throws
   InvalidValueException
 {
// Check for Data Integrity in the Value
  Object
if( pUserEntity == null ) {
   

Re: [JBoss-user] xdoclet creating wrong package

2002-06-24 Thread Emerson Cargnin - MSA

I prefer to use the tag inside of  home and remote interfaces, as it's 
better to separate the remotes from locals.

ex:

remoteinterface
packageSubstitution packages=servidor.ejb 
substituteWith=ambos.ejbinterface/
/remoteinterface

localinterface/  
   
homeinterface
packageSubstitution packages=servidor.ejb 
substituteWith=ambos.ejbinterface/   
/homeinterface
   
localhomeinterface/

wonder sonic wrote:

Hi,
I'm not an xdoclet expert but did you put the line:

packageSubstitution packages=session,entity
substituteWith=interfaces/

in the build.xml ant file?

look at the example:

...
   target name=xdoclet-generate depends=init
  taskdef
 name=ejbdoclet
 classname=xdoclet.ejb.EjbDocletTask
  
 classpath refid=xdoclet.path/
  /taskdef

  ejbdoclet
 sourcepath=${src.ejb.dir}
 destdir=${build.generate.dir}
 classpathref=base.path
 excludedtags=@version,@author
 ejbspec=${ejb.version}
 mergedir=${src.resources.dir}/xdoclet
 force=${xdoclet.force}
  
 fileset dir=${src.ejb.dir}
include name=**/*Bean.java/
 /fileset

 packageSubstitution
packages=session,entity
substituteWith=interfaces/
 dataobject/
 remoteinterface/
 homeinterface/
 entitypk/
 entitycmp/
 deploymentdescriptor
destdir=${build.dir}/META-INF/
 !-- AS 4/29/02 Do not validate XML files
because JBoss 3.0 message driven will
  report an wrong error because it uses
the wrong jboss.dtd --
 jboss version=${jboss.version}
xmlencoding=UTF-8
typemapping=${type.mapping}
datasource=${datasource.name}
destdir=${build.dir}/META-INF
validateXml=false
 /
  /ejbdoclet
   /target
...

Hope it helps...
Wonder Sonic

 --- Sundaram [EMAIL PROTECTED] a écrit :  Hi,

I have modified template example , created  user
entity bean. some how it
creating wrong package name.

user entity class, it generating  wrong package
name.
com.percipia.auth.entity, but it suppose to be
com.percipia.auth.interfaces.

generated line:
   public com.percipia.auth.entity.UserEntityData
getValueObject(  ) throws
java.rmi.RemoteException;



UserEntityBean.java
---

package com.percipia.auth.entity;

import com.percipia.auth.interfaces.*;

import java.sql.Date;
import java.rmi.RemoteException;
import java.util.Collection;
import java.util.Iterator;

import javax.ejb.CreateException;
import javax.ejb.EJBException;
import javax.ejb.EntityBean;
import javax.ejb.EntityContext;
import javax.ejb.FinderException;
import javax.ejb.RemoveException;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;

/**
 * The Entity bean represents a UserEntity
 *
 * @author Andreas Schaefer
 * @version $Revision: 1.1 $
 *
 * @ejb:bean name=User/UserEntity
 *   display-name=UserEntity working on
projects to support
clients
 *   type=CMP
 *   jndi-name=ejb/User/UserEntity
 *
 * @ejb:transaction type=Required
 *
 * @ejb:data-object
extends=com.percipia.auth.interfaces.AbstractData
 *  setdata=false
 *
 * @ejb:finder signature=java.util.Collection
findAll()
 *
 * @ejb:finder
signature=com.percipia.auth.interfaces.UserEntity
findByName( java.lang.String pSurname,
java.lang.String pLastName )
 *
 * @jboss:finder-query name=findByName
 * query=First_Name = {0} AND
Last_Name = {1}
 *
 * @ejb:finder
signature=com.percipia.auth.interfaces.UserEntity
findAnotherByName( int pId, java.lang.String
pSurname, java.lang.String
pLastName )
 *
 * @jboss:finder-query name=findAnotherByName
 * query=Id != {0} AND
First_Name = {1} AND Last_Name =
{2}
 *
 * @jboss:table-name table-name=UserEntity
 *
 * @jboss:create-table create=true
 *
 * @jboss:remove-table remove=true
 **/
public abstract class UserEntityBean
   implements EntityBean
{




//

-

   // Members



//

-

   public EntityContext mContext;




//

-

   // Methods



//

-

   /**
   * Store the data within the provided data object
into this bean.
   *
   * @param pUserEntity The Value Object containing
the UserEntity values
   *
   * @ejb:interface-method view-type=remote
   **/
   public void setValueObject( UserEntityData
pUserEntity )
  throws
 InvalidValueException
   {
  // Check for Data Integrity in the Value
Object
  if( pUserEntity == null ) {
 throw new InvalidValueException(

Re: [JBoss-user] xdoclet creating wrong package

2002-06-24 Thread wonder sonic

Could you send your ant build.xml file and your
.ant.properties file?

 --- Sundaram Ramasamy [EMAIL PROTECTED] a écrit : 
yes, I have those lines in my build.xml file.
 
 - Original Message -
 From: wonder sonic [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 24, 2002 7:50 AM
 Subject: Re: [JBoss-user] xdoclet creating wrong
 package
 
 
  Hi,
  I'm not an xdoclet expert but did you put the
 line:
 
  packageSubstitution packages=session,entity
  substituteWith=interfaces/
 
  in the build.xml ant file?
 
  look at the example:
 
  ...
 target name=xdoclet-generate depends=init
taskdef
   name=ejbdoclet
   classname=xdoclet.ejb.EjbDocletTask

   classpath refid=xdoclet.path/
/taskdef
 
ejbdoclet
   sourcepath=${src.ejb.dir}
   destdir=${build.generate.dir}
   classpathref=base.path
   excludedtags=@version,@author
   ejbspec=${ejb.version}
   mergedir=${src.resources.dir}/xdoclet
   force=${xdoclet.force}

   fileset dir=${src.ejb.dir}
  include name=**/*Bean.java/
   /fileset
 
   packageSubstitution
  packages=session,entity
  substituteWith=interfaces/
   dataobject/
   remoteinterface/
   homeinterface/
   entitypk/
   entitycmp/
   deploymentdescriptor
  destdir=${build.dir}/META-INF/
   !-- AS 4/29/02 Do not validate XML files
  because JBoss 3.0 message driven will
report an wrong error because it
 uses
  the wrong jboss.dtd --
   jboss version=${jboss.version}
  xmlencoding=UTF-8
  typemapping=${type.mapping}
  datasource=${datasource.name}
  destdir=${build.dir}/META-INF
  validateXml=false
   /
/ejbdoclet
 /target
  ...
 
  Hope it helps...
  Wonder Sonic
 
   --- Sundaram [EMAIL PROTECTED] a écrit :  Hi,
  
   I have modified template example , created  user
   entity bean. some how it
   creating wrong package name.
  
   user entity class, it generating  wrong package
   name.
   com.percipia.auth.entity, but it suppose to be
   com.percipia.auth.interfaces.
  
   generated line:
  public
 com.percipia.auth.entity.UserEntityData
   getValueObject(  ) throws
   java.rmi.RemoteException;
  
   
  
   UserEntityBean.java
   ---
  
   package com.percipia.auth.entity;
  
   import com.percipia.auth.interfaces.*;
  
   import java.sql.Date;
   import java.rmi.RemoteException;
   import java.util.Collection;
   import java.util.Iterator;
  
   import javax.ejb.CreateException;
   import javax.ejb.EJBException;
   import javax.ejb.EntityBean;
   import javax.ejb.EntityContext;
   import javax.ejb.FinderException;
   import javax.ejb.RemoveException;
   import javax.naming.Context;
   import javax.naming.InitialContext;
   import javax.naming.NamingException;
   import javax.rmi.PortableRemoteObject;
  
   /**
* The Entity bean represents a UserEntity
*
* @author Andreas Schaefer
* @version $Revision: 1.1 $
*
* @ejb:bean name=User/UserEntity
*   display-name=UserEntity working on
   projects to support
   clients
*   type=CMP
*   jndi-name=ejb/User/UserEntity
*
* @ejb:transaction type=Required
*
* @ejb:data-object
  
 extends=com.percipia.auth.interfaces.AbstractData
*  setdata=false
*
* @ejb:finder signature=java.util.Collection
   findAll()
*
* @ejb:finder
  
 signature=com.percipia.auth.interfaces.UserEntity
   findByName( java.lang.String pSurname,
   java.lang.String pLastName )
*
* @jboss:finder-query name=findByName
* query=First_Name = {0}
 AND
   Last_Name = {1}
*
* @ejb:finder
  
 signature=com.percipia.auth.interfaces.UserEntity
   findAnotherByName( int pId, java.lang.String
   pSurname, java.lang.String
   pLastName )
*
* @jboss:finder-query name=findAnotherByName
* query=Id != {0} AND
   First_Name = {1} AND Last_Name =
   {2}
*
* @jboss:table-name table-name=UserEntity
*
* @jboss:create-table create=true
*
* @jboss:remove-table remove=true
**/
   public abstract class UserEntityBean
  implements EntityBean
   {
  
  
  
  
   //
  
 

-
  // Members
  
  
  
   //
  
 

-
  
  public EntityContext mContext;
  
  
  
  
   //
  
 

-
  // Methods
  
  
  
   //
  
 
=== message truncated === 

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



[JBoss-user] Re: Never ending etandalone Tomcat issues

2002-06-24 Thread Jon Swinth

Thanks Guy, for the response.  That is the way I used to do things.  However,
there is code in org.jboss.tm.usertx.client.ClientUserTransaction that calls new 
InitialContext()
when you are trying to use a transaction from Tomcat.  If I don't use jndi.properties 
then the
client transaction will not work.  Much of the JBoss development is geared toward 
embedded
Tomcat/Jetty so I don't know whether this issue would qualify for a bug.  I am 
certainly finding
it difficult to be able to separate Tomcat and JBoss.  Looks like I will be limited to 
a physical
two-tier application even if I have written the code as three-tier or n-tier.

On Sunday 23 June 2002 12:23 pm, [EMAIL PROTECTED] wrote:
 From: Guy Rouillier [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Never ending etandalone Tomcat issues
 Date: Sun, 23 Jun 2002 01:06:20 -0400
 Reply-To: [EMAIL PROTECTED]

 I wouldn't recommend putting jndi.properties into the Tomcat classpath,
 because then you are restricting everyone using that instance of Tomcat to
 those settings.  What we do is to include the home and object creation into
 a header file, and include that header file on each jsp page that needs to
 get to JBoss (equivalent things can be done for servlets).  Here is what
 our header looks like:

          java.util.Hashtable env = new java.util.Hashtable();
          env.put(java.naming.factory.initial,    INITIAL_FACTORY);
          env.put(java.naming.provider.url,       aJndiURL);
          env.put(java.naming.factory.url.pkgs,   URL_FACTORY);
          ctx = new InitialContext(env);

          Object ref = ctx.lookup(xxx);
          home =
 (AuthenticationHome)PortableRemoteObject.narrow(ref,xxx.class);
          obj = home.create();

 A page that needs to connect to JBoss then would looks something like this:

 %@ include file=/common/html/nccheader.jsp %

 %
 obj.callSomeMethod();
 %

 If you have multiple objects you need to lookup, maybe just setting up the
 initial context in the header would be better, then getting the home and
 remote references can be done on the pages.


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] read-ahead in jboss3.0 CMP

2002-06-24 Thread Dan Christopherson

How are you accessing the entities? If your accesses are not all in the 
same transaction, the read-ahead is wasted right now.

-danch

Steve Buikhuizen wrote:
 Hello,
 
 I'm trying to get read-ahead working with the 3.0 release. Here's what 
 my jbosscmp-jdbc.xml looks like.
 
 jbosscmp-jdbc
defaults
  datasourcejava:/OracleDS/datasource
  datasource-mappingOracle8/datasource-mapping
 read-ahead
 strategyon-load/strategy
 page-size1000/page-size
 eager-load-group*/eager-load-group
 /read-ahead
 list-cache-max1000/list-cache-max
/defaults
 
enterprise-beans
 
 
 However, I still get N+1 queries run the the CMP engine so the 
 performance of the first read is very slow.
 
 I'm using Commit option A for these beans, could that be creating the 
 problem?
 
 I got this config from the standardjbosscmp-jdbc.xml file. I've checked 
 the CMP docs I purchased for 3.0 CMP
 but they are out of date (I'm also chasing Flashline to get an up to 
 date copy)
 
 Can anyone tell me how to make this work? I can't use jboss CMP until I 
 solve this problem and I really want to avoid
 BMP.
 
 Also, if anyone can tell me where I might find docs on replacing the 
 pluggable load strategy, I'd really like to test this out.
 
 Steve
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



-- 

=
Disclaimer:
All statements are my own, personal opinions and have nothing to do
with the opinions of employer, wife, or cat. They may not have anything
to do with objective reality, as a matter of fact. Your Milage May Vary, 
Excludes Delivery Charges, etc.
=



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Transaction object is null in JDBCStoreManager

2002-06-24 Thread Dain Sundstrom

JBossCMP will only work with a transaction. Are you trying to run cmp 
code without a transaction?

-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC


Julien Viet wrote:
 Hi,
  
 I have a NullPointerException in JDBCStoreManager
 because of a null transaction returned by the transaction manager
  
 line 213 of JDBCStoreManager : int status = tx.getStatus();
 here tx object is null
  
 I am using jboss Branch_3_0.
  
 any ideas ?
  





---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] CMR bug fixed?

2002-06-24 Thread Dain Sundstrom

Yes that is HEAD, but I agree with Stephen Coy in that you should only 
use this version if you are interested in developing JBoss.  As for the 
problems you have, I suggest you update the code again and recompile. 
You may have checked out the code in the middle of another developer's 
commit.

-dain

Douglas Su wrote:
 Dain,
  I've checked out JBoss-all module and I compiled a jboss3.1.0alpha 
 version.  Is this the correct version? Is the CMR bug fixed for this 
 version? Is this the Branch_3_0 and Head you are talking about?  This 
 version seems to give me some error on ejb-management.jar and 
 jmx-ejb-adaptor.jar when I starts the server.  Any Suggestion?
 
 Thank you very much,
 Douglas
 
 
 From: Dain Sundstrom [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] CMR bug fixed?
 Date: Thu, 20 Jun 2002 11:50:27 -0500

 Yep, if you execute a finder before the field is set the database is 
 not updated.  This has been fixed in cvs Branch_3_0 and HEAD.  cvs is 
 covered in the Quick Start guide.

 -dain

 Douglas Su wrote:

 Hi All,

  Is there a bug with the CMR field?  Is the bug fixed?  I am having 
 trouble creating 1:N relationship.  JBoss creates Null field and I 
 can't make a foreign key be apart of a primary key.  Any Suggestions?

 Thanks,
 Douglas


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



 ---
   Bringing you mounds of caffeinated joy
http://thinkgeek.com/sf

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



 -- 
 
 Dain Sundstrom
 Chief Architect JBossCMP
 JBoss Group, LLC
 



 ---
   Bringing you mounds of caffeinated joy
http://thinkgeek.com/sf

 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 
 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user





---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] SQL request

2002-06-24 Thread Dain Sundstrom

Set the org.jboss.ejb.plugins.cmp category in the log4.xml file to debug 
and you will see all of the executed sql.  If you want to see every 
parameter and loaded column, set the level to trace.  Documentation is 
in the file.

-dain

Greg Turner wrote:
 One way to do this is that most databases have a way to turn on trace
 info, so that you can see the sql statements that the database is
 receiving from the JDBC driver.  I would look at your database docs.
 
 wonder sonic wrote:
 
 
Hi,
Is there a way to read the SQL requests generated and
executed by JBoss for CMP entities?
A sort of debug level to setup in a config file...

TIA,
Wonder Sonic

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 --
 Greg Turner
 
 Tiburon Enterprise Systems
 http://www.tiburon-e-systems.com
 Box 1171
 Tiburon, CA 94920
 415-332-3363
 
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Tomcat/Jetty/JBoss Authentication through NT Domain

2002-06-24 Thread Michael Angelo Libio

I was wondering if anyone has ever come up with or thought of a solution for an internal web application that authenticates the users against the NT Domain controller. I'd like to use the built-in authentication mechanism provided by Tomcat of Jetty (via Realms), maybe even delegate it to JBoss security. Oh, one thing to note, we're not using MS Active Directory. As a plus, it would be nice to be able to use NT user groups for roles, but I can manage this separately if it's not available. Any reference to URL's and/or sample code/snippet is greatly appreciated. 
Join the world’s largest e-mail service with MSN Hotmail. Click Here


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] LDAP and BMP

2002-06-24 Thread Dain Sundstrom

Novell has an LDAP JDBC driver, but I don't know if it works.

http://developer.novell.com/ndk/ldapjdbc.htm

BTW, JBossCMP persistence to anything is scheduled for JBoss 4.0.

-dain

Elizabeth Barham wrote:
 Hi,
 
 I am interested in writing some kind of BMP or CMP that, instead of
 querying a database, queries an LDAP server. I've searched the net and
 come up with a few resources about JNDI and LDAP, but none that
 addresses, specifically, a BMP or CMP that works with an LDAP server.
 
 I have a few questions:
 
 1) Is this like way out there - am I trying to do something the
wrong way? (I'd like the objects within an LDAP server to appear as
beans within JBoss.)
 
 2) Is this something appropriate for BMP and CMP? And, if so, should I
begin investigating an MBean that provides such things as LDAP
Connection Pools?
 
 I'd like to be able to use LDAP both as a persistant store and also
 for authentication/authorization. My plan is to have a People class
 but also other objects (for example, Images).
 
 3) Is it a waste to wrap the LDAP server with a Bean? That is, should
clients just access the LDAP server directly via a few well-made
classes instead of communicating with JBoss to do it for them? Am I
miss applying JBoss for this job?
 
 Any pointers, references or pearls of wisdom greatly appreciated!
 
 Thank you, Elizabeth
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] read-ahead in jboss3.0 CMP

2002-06-24 Thread Dain Sundstrom

I would bet you are not using a single transaction for the access.  The 
data that is preloaded is only valid for a single transaction, and if it 
is not used it is lost.  I suggest you buy a copy of the JBossCMP 
documentation which has a chapter on Optimized Loading.

-dain

Steve Buikhuizen wrote:
 Hello,
 
 I'm trying to get read-ahead working with the 3.0 release. Here's what 
 my jbosscmp-jdbc.xml looks like.
 
 jbosscmp-jdbc
defaults
  datasourcejava:/OracleDS/datasource
  datasource-mappingOracle8/datasource-mapping
 read-ahead
 strategyon-load/strategy
 page-size1000/page-size
 eager-load-group*/eager-load-group
 /read-ahead
 list-cache-max1000/list-cache-max
/defaults
 
enterprise-beans
 
 
 However, I still get N+1 queries run the the CMP engine so the 
 performance of the first read is very slow.
 
 I'm using Commit option A for these beans, could that be creating the 
 problem?
 
 I got this config from the standardjbosscmp-jdbc.xml file. I've checked 
 the CMP docs I purchased for 3.0 CMP
 but they are out of date (I'm also chasing Flashline to get an up to 
 date copy)
 
 Can anyone tell me how to make this work? I can't use jboss CMP until I 
 solve this problem and I really want to avoid
 BMP.
 
 Also, if anyone can tell me where I might find docs on replacing the 
 pluggable load strategy, I'd really like to test this out.
 
 Steve
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: AW: [JBoss-user] data base cache.

2002-06-24 Thread Dain Sundstrom

JBoss does not have a distributed cache, and there isn't one planed 
other then better integration with Gemstone.

I don't really understand what you need. Can you explain exactly want 
you would want out of such a cache?  Any ideas and suggestions along 
this path would be greatly appreciated.

-dain

Stefan Groschupf wrote:
 Hi,
 
Ummm.. why won't entity beans do what you want??  Why do you want to tie
your servlets to a particular data representation format?
 
 
 
 Because the work is finished. ;-)
 Normally one Tomcat or jetty instance is enough to handle the request
 traffic, but at my actually project *may be* we get much more traffic.
  Cheers
 Stefan
 
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Migrating from CMP to BMP

2002-06-24 Thread Dain Sundstrom

JBossCMP only allows relationship between cmp entities managed by 
JBossCMP.  Does the EJB specification allow relationships between CMP 
and BMP (unidirectional of course).

Also, EJB-QL queries are are limited to only query over CMP entities. 
Did you know that JBossCMP supports BMP style ejbFind methods, so you 
can write any query you want.

-dain

Jason Owens wrote:
 Argh. I was missing something! The new documentation! It looks like it
 SHOULD work for me (the DynamicQL)... but my question now is: does XDoclet
 support these new jboss features? :-)
 However - I'm still interested in the whole CMP - BMP problem. What if I
 wasn't using JBoss - or DynamicQL still didn't cut it? What would the
 options be (simply don't use CMP??)?
 Thanks...
 -Jason
 
 
As a matter of fact, I did. However - I need to dynamically create
queries for a filtering/reporting feature, and JBossQL doesn't do that
(unless I missed something).
-Jason


Before migrating to BMP, did you check JBoss CMP docs.  Because JBoss
comes with JBossQL which has additional functionality beyond EJB-QL.



Jason Owens wrote:


Hello,

To get a quick start on my project, I implemented all my entity beans
with CMP (and CMR). However, now that everything's working, I need to
port one of those beans to BMP (since EJB-QL is severely limiting).

I'm just about through with that, however, when I attempt to deploy
my new bean, JBoss throws a DeploymentException from
JDBCRelationshipRoleMetaData saying my bean is not found! I've got 8
beans related to this one, and if I have to port each of those as
well...

My question: is it not possible to mix CMP and BMP beans while using
CMR? Do I have to rewrite ALL my $%^* beans with BMP just to do this
(there're 14 other beans, and I'm on a tight schedule...)? My BMP
simulates the exact behavior of the CMP... I didn't think there'd be
a problem. If I can't use CMR - what can I do (short of rewriting the
related beans)? The spec *seems* to indicate that CMR only works with
CMP. Well - why can't you use unidirectional relationships from the
CMP to a BMP? Seems like it should be possible...
If anyone can help, I'd appreciate it. Thanks.

FYI - I'm using JBoss3.0, and JDK 1.4

The actual error message from JBoss is:

org.jboss.deployment.DeploymentException: Entity: ScheduledEvent not
found for: org.jboss.metadata.RelationshipRoleMetaData@ea0105
Thanks
-Jason

---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Greg Turner

Tiburon Enterprise Systems
http://www.tiburon-e-systems.com
Box 1171
Tiburon, CA 94920
415-332-3363




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Re: JBoss-user digest, Vol 1 #2508 - 10 msgs

2002-06-24 Thread Dain Sundstrom

I think all you need is database pessimistic locking (SELECT FOR UPDATE) 
which will row lock the inventory item in the database for the length of 
the transaction as soon as it is loaded (finder or ejbLoad).  You can 
turn this on in JBossCMP with the row-locking element and in JAWS I 
think you use the select-for-update element.

-dain

Jon Swinth wrote:
 Thanks Marc for the reply.
 
 The issue with your solution is that the inventory checks are for different
 users than the where we are updating inventory.  Each time an item is 
 displayed on a page, the server checks inventory to see if it is still in
 stock.  This is required because the data keeps changing.  If the user wants
 the item then they will click add-to-cart and that process will lock the inventory,
 double check that there is still one available and reserve a copy all in one
 transaction.
 
 Lets say user A on one JBoss presses the add-to-cart button.  The record is
 locked and checked to see if there is one.  User B on a different JBoss requests
 a page that has the same item on it.  The system selects back the value for user B.
 User A finishes the transaction and commits.  User B finishes the transaction.  JBoss
 does the safety check for User B, determines that the record has changed, and 
 throws an exception.  This may not seem very likely, but in my experience it can
 happen at high volume, especially as the DB starts slowing down because of a 
 great many requests.  Also keep in mind that there will probably be 100 User Bs to
 1 User A.
 
 I think I have two options at this point. Make the User B queries lock the row
 so that all users wait in line for access and nobody gets an error.  Or, make the
 inventory query from a session bean using SQL.  I posted this to see if someone
 knew of a better solution that uses CMP so that code is portable.  For now,
 I am going with the direct SQL option because it is fast.  I have also made the
 User A requests lock the rows so they play nice with each other.
 
 
From: Marc Zampetti [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Trying to get outside a transaction
Reply-To: [EMAIL PROTECTED]


I think you are over-thinking the problem. All you need to do is have a
Session Bean method that performs the inventory check, and mark the
method as Requires Transaction (or Requires New). Then, when you check
the inventory, reserve a copy at that time. Thus, the check is the
reserve, and either it works, or it doesn't. If it works, you have the
copy reserved, and it doesn't, you know that it is not avaiable, and can
display the appropriate message to the user. The DB locking should
ensure that multile jBoss servers can't be caught in a race condiction.
On the db side, you would do something like this:

begin tran

update table, reduce inventory by 1

select info back that you need.

commit transaction.

The update will reduce the eventory, and hold a lock on the page or row
(depending upon the db setup). Then your select will return the info you
need to determine if the inventory was still available.

If you are using an Entity Bean, then the ejbLoad should be called when
the transaction starts. I'm not sure how jBoss does it, but you would
want to set the isolation level to REPEATABLE_READ, which basically
locks the db page or row with the select and holds it. In this case, you
must make sure that the entity is releases quickly, otherwise you are
holding locks in the database for a long time, which will grind your
system to a halt.
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Strange exception deploying a WAR

2002-06-24 Thread Pavel Kolesnikov

Hallo,

I've encountered following weird problem;

I have an EJB application containimg one session bean called
UserManager that should be accessed from two web applications.

I'm sure both of those web apps use the same code for getting
home and remote interface for UserManager, they use similar 
deployment descriptors which seem to be correct according
to Jboss docs, but deployment one of them causes following
exception:

java.lang.NullPointerException
 at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(Stat
elessSessionContainer.java:598)
 at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(
CachedConnectionInterceptor.java:167)
 at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(Statele
ssSessionInstanceInterceptor.java:57)
 at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
.java:98)
 at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:167)
 at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
 at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
a:104)
 at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
 at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer
.java:300)
 at org.jboss.ejb.Container.invoke(Container.java:727)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
 at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
 at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
 at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73
)
 at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
 at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
 at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96)
 at $Proxy124.create(Unknown Source)

Does anybody has an idea what may be wrong?

I'm using JBoss 3.0.0 RC1 + Tomcat 4.0.3 on Redhat Linux 7.3.

Thanks a lot

Pavel





---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



(SOLVED) RE: [JBoss-user] ERROR Proxy: getClasses

2002-06-24 Thread Duarte Nuno Loreto

Hello!

Just for the record, if anyone else gets this problem and searches the
mailing list archives...

This problem was happening in HP-UX and not in W2K due to the HP-UX JVM.

We were using the 1.3.0.01 HP-UX JVM and it has major bugs. One was
preventing this from happening. When we upgraded to 1.3.1.05, it started
working as it worked in W2K.

Problem solved. We are happy! Thanks for your time.

Duarte Loreto

 -Original Message-
 From: Tiago Fernandes Thomaz 
 Sent: Quinta-feira, 20 de Junho de 2002 13:20
 To:   '[EMAIL PROTECTED]'
 Subject:  [JBoss-user] ERROR Proxy: getClasses
 
 I run JBoss2.4.6-Tomcat4.0.3 in my W2K and deploy my application (1 .ear,
 3.war, several .jar) and all goes well. Some beans reference other beans
 which are confined in different jars.
 When I run it on HP-UX I got the following exception:
 
 [ERROR, ProxyProxy] getClasses
 java.lang.ClassNotFoundException: My_SessionBeanHome
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at org.jboss.proxy.ProxyProxy.getClasses(ProxyProxy.java:35)
 at org.jboss.proxy.ProxyProxy.readResolve(ProxyProxy.java:49)
 at java.lang.reflect.Method.invoke(Native Method)
 at java.io.ObjectStreamClass.invokeMethod(Unknown Source)
 at java.io.ObjectInputStream.readObject(Unknown Source)
 at java.io.ObjectInputStream.readObject(Unknown Source)
 at java.rmi.MarshalledObject.get(Unknown Source)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:439)
 at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:419)
 at javax.naming.InitialContext.lookup(InitialContext.java:350)
 at java.lang.Thread.run(Unknown Source)
 
 
 Any ideas what might be causing this?
 Any help would be great.
 Thanks in advance for your help.
 My best,
 
 Tiago Fernandes Thomaz
 
 
 ---
Bringing you mounds of caffeinated joy
 http://thinkgeek.com/sf
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Strange exception deploying a WAR

2002-06-24 Thread Scott M Stark

You are using an out of date beta. Go to sourceforge and get
the latest 3.0.0 release.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: Pavel Kolesnikov [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 10:45 AM
Subject: [JBoss-user] Strange exception deploying a WAR


 Hallo,

 I've encountered following weird problem;

 I have an EJB application containimg one session bean called
 UserManager that should be accessed from two web applications.

 I'm sure both of those web apps use the same code for getting
 home and remote interface for UserManager, they use similar
 deployment descriptors which seem to be correct according
 to Jboss docs, but deployment one of them causes following
 exception:

 java.lang.NullPointerException
  at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(Stat
 elessSessionContainer.java:598)
  at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(
 CachedConnectionInterceptor.java:167)
  at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(Statele
 ssSessionInstanceInterceptor.java:57)
  at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor
 .java:98)
  at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
 java:167)
  at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52)
  at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav
 a:104)
  at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109)
  at
org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer
 .java:300)
  at org.jboss.ejb.Container.invoke(Container.java:727)
  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492)
  at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
  at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102)
  at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73
 )
  at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76)
  at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
  at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96)
  at $Proxy124.create(Unknown Source)

 Does anybody has an idea what may be wrong?

 I'm using JBoss 3.0.0 RC1 + Tomcat 4.0.3 on Redhat Linux 7.3.

 Thanks a lot

 Pavel




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Re: Trying to get outside a transaction

2002-06-24 Thread Jon Swinth

Thanks for the reply Dain.

Yes, I have set the row-locking element for JBossCMP.  However, the problem
I have is that there will be a lot of access to the inventory rows that are just 
checking to 
see if there is still available and don't need a lock.  I would also like it if those 
reads did
not have to wait for some other transaction going on.  Or worse, those reads get an 
error
when their transaction completes because the row changed after they read the value but
before their transaction completed.  I just want to read the current value of the row. 
 It is
unimportant if the row is locked or something has updated it and not committed yet.  
Small
inaccuracies are not important.  The methods that actually update the rows do a safety 
check
after the lock is granted.  So far I can only solve this issue by a direct SQL select 
of the 
data I need.  I don't see any other solution now until JBossCMP supports something 
other
than Required on transactions.

Jon

On Monday 24 June 2002 10:55 am, [EMAIL PROTECTED] wrote:
 Message: 6
 Date: Mon, 24 Jun 2002 12:31:54 -0500
 From: Dain Sundstrom [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Re: JBoss-user digest, Vol 1 #2508 - 10 msgs
 Reply-To: [EMAIL PROTECTED]

 I think all you need is database pessimistic locking (SELECT FOR UPDATE)
 which will row lock the inventory item in the database for the length of
 the transaction as soon as it is loaded (finder or ejbLoad).  You can
 turn this on in JBossCMP with the row-locking element and in JAWS I
 think you use the select-for-update element.

 -dain


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Sybase and SET CHAINED command not allowed

2002-06-24 Thread Pavel Kolesnikov

On Mon, 24 Jun 2002, Scott M Stark wrote:

 You are using an out of date beta. Go to sourceforge and get
 the latest 3.0.0 release.

Well... I tried to fix the problem before I start fighting
another problem that has appeared with testing the 3.0.0
release :)

The problem is following exception while deploying an EJB
application. It appears after Deploying EJB messages:

20:15:15,549 INFO  [EjbModule] Deploying UserManager
20:15:15,616 INFO  [EjbModule] Deploying OptionsBrowser
20:15:15,682 INFO  [EjbModule] Deploying UserStudentManager
20:15:15,919 INFO  [EjbModule] Deploying UserGraduateManager
20:15:16,003 INFO  [EjbModule] Deploying UserTeacherManager
20:15:16,240 INFO  [EjbModule] Deploying UserAdvocateManager
snip
returning ManagedConnection to pool:
javax.resource.ResourceException: Could not cleanup: 
com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed 
within multi-statement transaction.
at 
org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.cleanup(LocalManagedConnection.java:198)
at 
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.returnConnection(InternalManagedConnectionPool.java:137)
at 
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.returnConnection(JBossManagedConnectionPool.java:324)
at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.returnManagedConnection(BaseConnectionManager2.java:494)
at 
org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConnectionEventListener.connectionClosed(LocalTxConnectionManager.java:388)
at 
org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.closeHandle(LocalManagedConnection.java:338)
at 
org.jboss.resource.adapter.jdbc.local.LocalConnection.close(LocalConnection.java:97)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.safeClose(JDBCUtil.java:58)
at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:69)
at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:103)
at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java:332)
at 
org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:155)
at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
at org.jboss.ejb.Container.invoke(Container.java:789)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
at $Proxy6.create(Unknown Source)
at org.jboss.system.ServiceController.create(ServiceController.java:272)
at java.lang.reflect.Method.invoke(Native Method)
at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy19.create(Unknown Source)

Because of changes in service descriptors I used an mssql-service.xml
from docs/jca/examples and changed the values for jdbc driver and 
database information.

It happens with JBoss 3.0.0 on RH7.3 with Sybase ASE 11.0.0.3
and jConnect 5.2.

Does anybody have an idea what could I do with this?

Thanks

Pavel



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Shorten server boot time/Pool not bound

2002-06-24 Thread Eric Kaplan

I had sent this one out last week and not gotten a response.  Does anyone
have any idea why this might be the case/seen something like this before?

Thanks

Eric

-Original Message-
From: Eric Kaplan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 19, 2002 10:51 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] Shorten server boot time/Pool not bound


Hi

I tried as suggested and still had no luck bringing up the app server and
deploying my beans.  I finally came upon the following configuration that
seemed to work (thanks greg for Find.java, it was invaluable), although I'm
getting my jndi name for my database pool is not bound (I had gotten this to
work perfectly under the default configuration).  My new_minimal
configuration is shown below.  Any ideas on why my jndi name for my db pool
would no longer be bound would be helpful.  My oracle-service.xml is the
same one I used in default which worked.

new_minimal/conf
jboss-service.xml
jndi.properties
log4j.xml
standardjboss.xml
new_minimal/deploy
(my ear file)
jmx-html-adaptor.sar
oracle-service.xml
new_minimal/lib
jnet.jar
jnpserver.jar
log4j.jar
classes12.zip
jboss.jar
jmxri.jar
jmxtools.jar
jpl-pattern.jar
jpl-util.jar
jboss-management.jar
jboss-j2ee.jar
jboss-jca.jar
jboss-jsr77.jar

I attached the .xml files, as they are specific to this configuration.

regards

Eric


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Greg Turner
Sent: Friday, June 14, 2002 10:12 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Shorten server boot time




[EMAIL PROTECTED] wrote:

 Hi Greg,

 please send again your jboss-service.xml
 - I just joined this list.

 Thanx, Aralos

 
  Doh.. Good Idea !!
 
  In true_minimal/lib, put log4j.jar,
  jnpserver.jar,jnet.jar,jmxtools.jar,jmxri.jar,jboss.jar
 
  In true_minimal/deploy put jmx-html-adaptor.sar
 
  In true_minimal/conf put log4j.xml,jboss-service.xml
 
  And find attached the jboss-service.xml file I used !!
 
  Enjoy.
 
  Greg Turner
 
 
 
 
 
 
  JD Brennan wrote:
 
  
  
   How about posting a listing of the contents of the zip file
   for true_minimal?  Seems that minimal doesn't even support
   EJBs...
  
   -Original Message-
   From: Greg Turner [mailto:EMAIL: PROTECTED]
   Sent: Thursday, June 13, 2002 6:11 PM
   To: EMAIL: PROTECTED
   Subject: Re: [JBoss-user] Shorten server boot time
  
   The minimal configuration that comes with JBoss-3.0.0 is not very
   good.  I would not use it.
   It throws errors when starting up and some errors are seen in the
   console and some are not.
   The logging and jndi classes do not get loaded.  No log
  file appears.
   Don't use it.
  
   I put together a configuration I call true_minimal that contains the
   following services:
   logging
   hot deploy
   ability to browse 8082
  
   I have zipped up this configuration, but the size is large
  for sending
   to this list (1.5K).
   If you want it, send me email direct, and I will send to you.
  
   Greg Turner
  
  
  
   Jules Gosnell wrote:
  
Doh !
   
I just thought
   
Try running ./run.sh --configration minimal
   
Jules
   
Jules Gosnell wrote:
 Everyone's needs will be different.

 Just start moving services that look like likely
  candidates out of
  
 deploy, and if you break something you need, put it back

 JBoss is designed to be tailored to your needs, not just to be a
 monolithic J2EE black-box


 Jules



 Steve Knight wrote:

 Hello,
 What services (files) can I safely remove from the Deploy
   directory in
 order to speed up the booting of JBoss 3.0.0?  I am only using
   EJB
 stuff..no clustering, etc...so I want to remove everything that
   isn't
 necessary.
 Obviously, I need my .ear and my db-service.xml...and I'm
   assuming
 Tomcat...But what about counter-service, mail-service, etc?

 Thanks,

 Steve






 ___

 Don't miss the 2002 Sprint PCS Application Developer's
  Conference
 August 25-28 in Las Vegas -
 http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

 ___
 JBoss-user mailing list
 EMAIL: PROTECTED
 https://lists.sourceforge.net/lists/listinfo/jboss-user
   
___
   
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
   http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
   
___
JBoss-user mailing list
EMAIL: PROTECTED

[JBoss-user] subscribe

2002-06-24 Thread Emilio Numazaki












Emilio Numazaki

Analista de Sistemas - NDS

* [EMAIL PROTECTED]

Fóton® Informática e Serviços

( (61) 328 5060 R.: 211










Re: [JBoss-user] Sybase and SET CHAINED command not allowed

2002-06-24 Thread David Jencks

Please get 3.0.1 from cvs (checkout Branch_3_0 and verify that this is
fixed.

david jencks

On 2002.06.24 14:24:35 -0400 Pavel Kolesnikov wrote:
 On Mon, 24 Jun 2002, Scott M Stark wrote:
 
  You are using an out of date beta. Go to sourceforge and get
  the latest 3.0.0 release.
 
 Well... I tried to fix the problem before I start fighting
 another problem that has appeared with testing the 3.0.0
 release :)
 
 The problem is following exception while deploying an EJB
 application. It appears after Deploying EJB messages:
 
 20:15:15,549 INFO  [EjbModule] Deploying UserManager
 20:15:15,616 INFO  [EjbModule] Deploying OptionsBrowser
 20:15:15,682 INFO  [EjbModule] Deploying UserStudentManager
 20:15:15,919 INFO  [EjbModule] Deploying UserGraduateManager
 20:15:16,003 INFO  [EjbModule] Deploying UserTeacherManager
 20:15:16,240 INFO  [EjbModule] Deploying UserAdvocateManager
 snip
 returning ManagedConnection to pool:
 javax.resource.ResourceException: Could not cleanup: 
 com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed 
 within multi-statement transaction.
 at 
org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.cleanup(LocalManagedConnection.java:198)
 at 
org.jboss.resource.connectionmanager.InternalManagedConnectionPool.returnConnection(InternalManagedConnectionPool.java:137)
 at 
org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.returnConnection(JBossManagedConnectionPool.java:324)
 at 
org.jboss.resource.connectionmanager.BaseConnectionManager2.returnManagedConnection(BaseConnectionManager2.java:494)
 at 
org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConnectionEventListener.connectionClosed(LocalTxConnectionManager.java:388)
 at 
org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.closeHandle(LocalManagedConnection.java:338)
 at 
org.jboss.resource.adapter.jdbc.local.LocalConnection.close(LocalConnection.java:97)
 at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.safeClose(JDBCUtil.java:58)
 at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:69)
 at 
org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:103)
 at 
org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java:332)
 at 
org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:155)
 at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337)
 at org.jboss.ejb.Container.invoke(Container.java:789)
 at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
 at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)
 at $Proxy6.create(Unknown Source)
 at org.jboss.system.ServiceController.create(ServiceController.java:272)
 at java.lang.reflect.Method.invoke(Native Method)
 at 
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
 at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
 at $Proxy19.create(Unknown Source)
 
 Because of changes in service descriptors I used an mssql-service.xml
 from docs/jca/examples and changed the values for jdbc driver and 
 database information.
 
 It happens with JBoss 3.0.0 on RH7.3 with Sybase ASE 11.0.0.3
 and jConnect 5.2.
 
 Does anybody have an idea what could I do with this?
 
 Thanks
 
 Pavel
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Shorten server boot time/Pool not bound

2002-06-24 Thread David Jencks

You need (at least) jca-service.xml and jboss-local-jdbc.rar in deploy to
get local tx db access.

david jencks

On 2002.06.24 14:33:44 -0400 Eric Kaplan wrote:
 I had sent this one out last week and not gotten a response.  Does anyone
 have any idea why this might be the case/seen something like this before?
 
 Thanks
 
 Eric
 
 -Original Message-
 From: Eric Kaplan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 19, 2002 10:51 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [JBoss-user] Shorten server boot time/Pool not bound
 
 
 Hi
 
 I tried as suggested and still had no luck bringing up the app server and
 deploying my beans.  I finally came upon the following configuration that
 seemed to work (thanks greg for Find.java, it was invaluable), although
 I'm
 getting my jndi name for my database pool is not bound (I had gotten this
 to
 work perfectly under the default configuration).  My new_minimal
 configuration is shown below.  Any ideas on why my jndi name for my db
 pool
 would no longer be bound would be helpful.  My oracle-service.xml is the
 same one I used in default which worked.
 
 new_minimal/conf
   jboss-service.xml
   jndi.properties
   log4j.xml
   standardjboss.xml
 new_minimal/deploy
   (my ear file)
   jmx-html-adaptor.sar
   oracle-service.xml
 new_minimal/lib
   jnet.jar
   jnpserver.jar
   log4j.jar
   classes12.zip
   jboss.jar
   jmxri.jar
   jmxtools.jar
   jpl-pattern.jar
   jpl-util.jar
   jboss-management.jar
   jboss-j2ee.jar
   jboss-jca.jar
   jboss-jsr77.jar
 
 I attached the .xml files, as they are specific to this configuration.
 
 regards
 
 Eric
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Turner
 Sent: Friday, June 14, 2002 10:12 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Shorten server boot time
 
 
 
 
 [EMAIL PROTECTED] wrote:
 
  Hi Greg,
 
  please send again your jboss-service.xml
  - I just joined this list.
 
  Thanx, Aralos
 
  
   Doh.. Good Idea !!
  
   In true_minimal/lib, put log4j.jar,
   jnpserver.jar,jnet.jar,jmxtools.jar,jmxri.jar,jboss.jar
  
   In true_minimal/deploy put jmx-html-adaptor.sar
  
   In true_minimal/conf put log4j.xml,jboss-service.xml
  
   And find attached the jboss-service.xml file I used !!
  
   Enjoy.
  
   Greg Turner
  
  
  
  
  
  
   JD Brennan wrote:
  
   
   
How about posting a listing of the contents of the zip file
for true_minimal?  Seems that minimal doesn't even support
EJBs...
   
-Original Message-
From: Greg Turner [mailto:EMAIL: PROTECTED]
Sent: Thursday, June 13, 2002 6:11 PM
To: EMAIL: PROTECTED
Subject: Re: [JBoss-user] Shorten server boot time
   
The minimal configuration that comes with JBoss-3.0.0 is not very
good.  I would not use it.
It throws errors when starting up and some errors are seen in the
console and some are not.
The logging and jndi classes do not get loaded.  No log
   file appears.
Don't use it.
   
I put together a configuration I call true_minimal that contains
 the
following services:
logging
hot deploy
ability to browse 8082
   
I have zipped up this configuration, but the size is large
   for sending
to this list (1.5K).
If you want it, send me email direct, and I will send to you.
   
Greg Turner
   
   
   
Jules Gosnell wrote:
   
 Doh !

 I just thought

 Try running ./run.sh --configration minimal

 Jules

 Jules Gosnell wrote:
  Everyone's needs will be different.
 
  Just start moving services that look like likely
   candidates out of
   
  deploy, and if you break something you need, put it back
 
  JBoss is designed to be tailored to your needs, not just to be
 a
  monolithic J2EE black-box
 
 
  Jules
 
 
 
  Steve Knight wrote:
 
  Hello,
  What services (files) can I safely remove from the Deploy
directory in
  order to speed up the booting of JBoss 3.0.0?  I am only using
EJB
  stuff..no clustering, etc...so I want to remove everything that
isn't
  necessary.
  Obviously, I need my .ear and my db-service.xml...and I'm
assuming
  Tomcat...But what about counter-service, mail-service, etc?
 
  Thanks,
 
  Steve
 
 
 
 
 
 
  ___
 
  Don't miss the 2002 Sprint PCS Application Developer's
   Conference
  August 25-28 in Las Vegas -
  http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
 
  ___
  JBoss-user mailing list
  EMAIL: PROTECTED
  https://lists.sourceforge.net/lists/listinfo/jboss-user

 

RE: [JBoss-user] Shorten server boot time/Pool not bound

2002-06-24 Thread Eric Kaplan

OK, but I still get my db pool not bound, and this is the same
oracle-service.xml that works fine in the default directory.

Thanks

Eric

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
Sent: Monday, June 24, 2002 3:16 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Shorten server boot time/Pool not bound


You need (at least) jca-service.xml and jboss-local-jdbc.rar in deploy to
get local tx db access.

david jencks

On 2002.06.24 14:33:44 -0400 Eric Kaplan wrote:
 I had sent this one out last week and not gotten a response.  Does anyone
 have any idea why this might be the case/seen something like this before?

 Thanks

 Eric

 -Original Message-
 From: Eric Kaplan [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 19, 2002 10:51 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [JBoss-user] Shorten server boot time/Pool not bound


 Hi

 I tried as suggested and still had no luck bringing up the app server and
 deploying my beans.  I finally came upon the following configuration that
 seemed to work (thanks greg for Find.java, it was invaluable), although
 I'm
 getting my jndi name for my database pool is not bound (I had gotten this
 to
 work perfectly under the default configuration).  My new_minimal
 configuration is shown below.  Any ideas on why my jndi name for my db
 pool
 would no longer be bound would be helpful.  My oracle-service.xml is the
 same one I used in default which worked.

 new_minimal/conf
   jboss-service.xml
   jndi.properties
   log4j.xml
   standardjboss.xml
 new_minimal/deploy
   (my ear file)
   jmx-html-adaptor.sar
   oracle-service.xml
 new_minimal/lib
   jnet.jar
   jnpserver.jar
   log4j.jar
   classes12.zip
   jboss.jar
   jmxri.jar
   jmxtools.jar
   jpl-pattern.jar
   jpl-util.jar
   jboss-management.jar
   jboss-j2ee.jar
   jboss-jca.jar
   jboss-jsr77.jar

 I attached the .xml files, as they are specific to this configuration.

 regards

 Eric


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Turner
 Sent: Friday, June 14, 2002 10:12 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Shorten server boot time




 [EMAIL PROTECTED] wrote:

  Hi Greg,
 
  please send again your jboss-service.xml
  - I just joined this list.
 
  Thanx, Aralos
 
  
   Doh.. Good Idea !!
  
   In true_minimal/lib, put log4j.jar,
   jnpserver.jar,jnet.jar,jmxtools.jar,jmxri.jar,jboss.jar
  
   In true_minimal/deploy put jmx-html-adaptor.sar
  
   In true_minimal/conf put log4j.xml,jboss-service.xml
  
   And find attached the jboss-service.xml file I used !!
  
   Enjoy.
  
   Greg Turner
  
  
  
  
  
  
   JD Brennan wrote:
  
   
   
How about posting a listing of the contents of the zip file
for true_minimal?  Seems that minimal doesn't even support
EJBs...
   
-Original Message-
From: Greg Turner [mailto:EMAIL: PROTECTED]
Sent: Thursday, June 13, 2002 6:11 PM
To: EMAIL: PROTECTED
Subject: Re: [JBoss-user] Shorten server boot time
   
The minimal configuration that comes with JBoss-3.0.0 is not very
good.  I would not use it.
It throws errors when starting up and some errors are seen in the
console and some are not.
The logging and jndi classes do not get loaded.  No log
   file appears.
Don't use it.
   
I put together a configuration I call true_minimal that contains
 the
following services:
logging
hot deploy
ability to browse 8082
   
I have zipped up this configuration, but the size is large
   for sending
to this list (1.5K).
If you want it, send me email direct, and I will send to you.
   
Greg Turner
   
   
   
Jules Gosnell wrote:
   
 Doh !

 I just thought

 Try running ./run.sh --configration minimal

 Jules

 Jules Gosnell wrote:
  Everyone's needs will be different.
 
  Just start moving services that look like likely
   candidates out of
   
  deploy, and if you break something you need, put it back
 
  JBoss is designed to be tailored to your needs, not just to be
 a
  monolithic J2EE black-box
 
 
  Jules
 
 
 
  Steve Knight wrote:
 
  Hello,
  What services (files) can I safely remove from the Deploy
directory in
  order to speed up the booting of JBoss 3.0.0?  I am only using
EJB
  stuff..no clustering, etc...so I want to remove everything that
isn't
  necessary.
  Obviously, I need my .ear and my db-service.xml...and I'm
assuming
  Tomcat...But what about counter-service, mail-service, etc?
 
  Thanks,
 
  Steve
 
 
 
 
 
 
  ___
 
  Don't miss the 2002 Sprint PCS Application Developer's
   

[JBoss-user] jbosscmp-jdbc_3_0.dtd gone from website?

2002-06-24 Thread Jerry Smith

Has the jbosscmp-jdbc_3_0.dtd moved somewhere else?  It's no longer at
http://www.jboss.org/j2ee/dtd.


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] deployment cache

2002-06-24 Thread Emilio Numazaki

Hi people,

Has someone managed to use deployment cache with JBoss-3.0.0 (With Tomcat)?
I'm having the folowing problem:

Without cache, my .war file deploys and runs well, but when I activate
deployment cache, nothing works...
For example, without cache, I can access my application just typing the URL
+ /war_name: http://127.0.0.1/mytest
where the deployment package is called mytest.jar...
But, when I activate deployment cache, this URL returns an error message,
something like:
No Context configured to process this request

Someone had the same problem?

Thanks for everybody and have a nice day!


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Creating Connection Pools at runtime

2002-06-24 Thread Stephen Davidson

Hi David.

Thanks, exactly what I was looking for.  Now to port the general idea over to my 
ConnectionFactory object...

-Steve

David Jencks wrote:

 OK, look at the org.jboss.test.jmx.test.DeployConnectionManagerUnitTestCase
 in the testsuite module for an example of code that creates the mbeans that
 set up a datasource.
 
 david jencks
 
 On 2002.06.22 22:33:29 -0400 Stephen Davidson wrote:
 
Hi David.

This is for an already existing framework.

The database instance to connect to is determined by the application
during user login.  The login module in question was written before the
JAAS specifications were stabilized, which is why JAAS is 
not being used in the current version.  To put it in right now is more
work than manpower currently available.  But this means that JBoss
Security is basically completely bypassed,  and security is 
instead handled directly by the application.

We are talking 1-200 connections per Database, with each connection
generally last 10 minutes - 8 hours.
Application Managed Security.
The DataSources are stored in JNDI.  If a Datasource that the application
is looking for does not exist, a new one is created and stored in JNDI. 
I am guessing that in order to do this in JBoss, I 
need to access a ConnectionManager MBean.  Problem is, I do not know
which one, or what its parameters are.  Nor am I sure where to start
looking.  For Orion, I created an OrionCachingDataSource, and 
stored that in JNDI.  The Orion Container took care of managing the
number of connections, etc.  I would like to do something similiar with
JBoss.
Basically, I want the application to be able to create something similar
for jboss as a service.xml file, but at runtime by calling an appropriate
MBean.

I would love to play with what Mr. Bunker wrote for the next version of
this project, if there is one.  Right now, I just want to get the current
version ported to a stable platform (like JBoss), 
and out the door.

-Steve

David Jencks wrote:


Ease up on your assumptions and tell us more about your requirements.

What's going to determine which database instance you connect to?  How

many

connections/database instance?  How long do they last?  Container

managed

security?

Dan Bunker wrote a login module and modified the Local Tx wrapper so

that

the incoming user name is mapped to a particular db url and db user/pw.

This works within one pool/datasource.  I'd guess you might be able to
modify it slightly and perhaps write a different login module to do

what

you want.

I had a couple problems with including it in jboss core and haven't had
time to fix them, but it might be what you need.  Let me (or Dan) know.

david jencks

[snip to save bandwith] 


-- 
Java Developer
Looking for a new job opportunity
214-724-7741



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Shorten server boot time/Pool not bound

2002-06-24 Thread David Jencks

You have no security system.  You may possibly be able to run your adapter
without it if you remove the depends references to parts of it from your
oracle-service.xml.

Get 3.0.1 from cvs, it tells you about problems like this after every
directory scan.

david jencks

On 2002.06.24 15:45:56 -0400 Eric Kaplan wrote:
 OK, but I still get my db pool not bound, and this is the same
 oracle-service.xml that works fine in the default directory.
 
 Thanks
 
 Eric
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
 Sent: Monday, June 24, 2002 3:16 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Shorten server boot time/Pool not bound
 
 
 You need (at least) jca-service.xml and jboss-local-jdbc.rar in deploy to
 get local tx db access.
 
 david jencks
 
 On 2002.06.24 14:33:44 -0400 Eric Kaplan wrote:
  I had sent this one out last week and not gotten a response.  Does
 anyone
  have any idea why this might be the case/seen something like this
 before?
 
  Thanks
 
  Eric
 
  -Original Message-
  From: Eric Kaplan [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, June 19, 2002 10:51 AM
  To: [EMAIL PROTECTED]
  Subject: RE: [JBoss-user] Shorten server boot time/Pool not bound
 
 
  Hi
 
  I tried as suggested and still had no luck bringing up the app server
 and
  deploying my beans.  I finally came upon the following configuration
 that
  seemed to work (thanks greg for Find.java, it was invaluable), although
  I'm
  getting my jndi name for my database pool is not bound (I had gotten
 this
  to
  work perfectly under the default configuration).  My new_minimal
  configuration is shown below.  Any ideas on why my jndi name for my db
  pool
  would no longer be bound would be helpful.  My oracle-service.xml is
 the
  same one I used in default which worked.
 
  new_minimal/conf
  jboss-service.xml
  jndi.properties
  log4j.xml
  standardjboss.xml
  new_minimal/deploy
  (my ear file)
  jmx-html-adaptor.sar
  oracle-service.xml
  new_minimal/lib
  jnet.jar
  jnpserver.jar
  log4j.jar
  classes12.zip
  jboss.jar
  jmxri.jar
  jmxtools.jar
  jpl-pattern.jar
  jpl-util.jar
  jboss-management.jar
  jboss-j2ee.jar
  jboss-jca.jar
  jboss-jsr77.jar
 
  I attached the .xml files, as they are specific to this configuration.
 
  regards
 
  Eric
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Turner
  Sent: Friday, June 14, 2002 10:12 AM
  To: [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] Shorten server boot time
 
 
 
 
  [EMAIL PROTECTED] wrote:
 
   Hi Greg,
  
   please send again your jboss-service.xml
   - I just joined this list.
  
   Thanx, Aralos
  
   
Doh.. Good Idea !!
   
In true_minimal/lib, put log4j.jar,
jnpserver.jar,jnet.jar,jmxtools.jar,jmxri.jar,jboss.jar
   
In true_minimal/deploy put jmx-html-adaptor.sar
   
In true_minimal/conf put log4j.xml,jboss-service.xml
   
And find attached the jboss-service.xml file I used !!
   
Enjoy.
   
Greg Turner
   
   
   
   
   
   
JD Brennan wrote:
   


 How about posting a listing of the contents of the zip file
 for true_minimal?  Seems that minimal doesn't even support
 EJBs...

 -Original Message-
 From: Greg Turner [mailto:EMAIL: PROTECTED]
 Sent: Thursday, June 13, 2002 6:11 PM
 To: EMAIL: PROTECTED
 Subject: Re: [JBoss-user] Shorten server boot time

 The minimal configuration that comes with JBoss-3.0.0 is not very
 good.  I would not use it.
 It throws errors when starting up and some errors are seen in the
 console and some are not.
 The logging and jndi classes do not get loaded.  No log
file appears.
 Don't use it.

 I put together a configuration I call true_minimal that contains
  the
 following services:
 logging
 hot deploy
 ability to browse 8082

 I have zipped up this configuration, but the size is large
for sending
 to this list (1.5K).
 If you want it, send me email direct, and I will send to you.

 Greg Turner



 Jules Gosnell wrote:

  Doh !
 
  I just thought
 
  Try running ./run.sh --configration minimal
 
  Jules
 
  Jules Gosnell wrote:
   Everyone's needs will be different.
  
   Just start moving services that look like likely
candidates out of

   deploy, and if you break something you need, put it back
  
   JBoss is designed to be tailored to your needs, not just to
 be
  a
   monolithic J2EE black-box
  
  
   Jules
  
  
  
   Steve Knight wrote:
  
   Hello,
   What services (files) can I safely remove from the Deploy
 directory in
   order to speed up the booting of JBoss 3.0.0?  I am only
 

[JBoss-user] New to the list and New to JBoss 3.0

2002-06-24 Thread Conover, Ryan

Hello All,

I am currently running JBoss 2.4.4 with no problems.  Clients connect fine.
I am trying to migrate to JBoss 3.0, but all my clients are having trouble
connecting to the JBoss 3.0  Server.  In Jboss 2.4.4 I had to set 

java.rmi.server.hostname=myservername

in my jboss.properties file on the server.  What is the equivalent in JBoss
3.0 and is there any changes needed on my clients.

Ryan Conover
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.pitt.edu/~rscst25/




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] Shorten server boot time/Pool not bound

2002-06-24 Thread Eric Kaplan

that did it.  once again, thanks david.

regards

eric

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
Sent: Monday, June 24, 2002 4:36 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Shorten server boot time/Pool not bound


You have no security system.  You may possibly be able to run your adapter
without it if you remove the depends references to parts of it from your
oracle-service.xml.

Get 3.0.1 from cvs, it tells you about problems like this after every
directory scan.

david jencks

On 2002.06.24 15:45:56 -0400 Eric Kaplan wrote:
 OK, but I still get my db pool not bound, and this is the same
 oracle-service.xml that works fine in the default directory.

 Thanks

 Eric

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks
 Sent: Monday, June 24, 2002 3:16 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] Shorten server boot time/Pool not bound


 You need (at least) jca-service.xml and jboss-local-jdbc.rar in deploy to
 get local tx db access.

 david jencks

 On 2002.06.24 14:33:44 -0400 Eric Kaplan wrote:
  I had sent this one out last week and not gotten a response.  Does
 anyone
  have any idea why this might be the case/seen something like this
 before?
 
  Thanks
 
  Eric
 
  -Original Message-
  From: Eric Kaplan [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, June 19, 2002 10:51 AM
  To: [EMAIL PROTECTED]
  Subject: RE: [JBoss-user] Shorten server boot time/Pool not bound
 
 
  Hi
 
  I tried as suggested and still had no luck bringing up the app server
 and
  deploying my beans.  I finally came upon the following configuration
 that
  seemed to work (thanks greg for Find.java, it was invaluable), although
  I'm
  getting my jndi name for my database pool is not bound (I had gotten
 this
  to
  work perfectly under the default configuration).  My new_minimal
  configuration is shown below.  Any ideas on why my jndi name for my db
  pool
  would no longer be bound would be helpful.  My oracle-service.xml is
 the
  same one I used in default which worked.
 
  new_minimal/conf
  jboss-service.xml
  jndi.properties
  log4j.xml
  standardjboss.xml
  new_minimal/deploy
  (my ear file)
  jmx-html-adaptor.sar
  oracle-service.xml
  new_minimal/lib
  jnet.jar
  jnpserver.jar
  log4j.jar
  classes12.zip
  jboss.jar
  jmxri.jar
  jmxtools.jar
  jpl-pattern.jar
  jpl-util.jar
  jboss-management.jar
  jboss-j2ee.jar
  jboss-jca.jar
  jboss-jsr77.jar
 
  I attached the .xml files, as they are specific to this configuration.
 
  regards
 
  Eric
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Turner
  Sent: Friday, June 14, 2002 10:12 AM
  To: [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] Shorten server boot time
 
 
 
 
  [EMAIL PROTECTED] wrote:
 
   Hi Greg,
  
   please send again your jboss-service.xml
   - I just joined this list.
  
   Thanx, Aralos
  
   
Doh.. Good Idea !!
   
In true_minimal/lib, put log4j.jar,
jnpserver.jar,jnet.jar,jmxtools.jar,jmxri.jar,jboss.jar
   
In true_minimal/deploy put jmx-html-adaptor.sar
   
In true_minimal/conf put log4j.xml,jboss-service.xml
   
And find attached the jboss-service.xml file I used !!
   
Enjoy.
   
Greg Turner
   
   
   
   
   
   
JD Brennan wrote:
   


 How about posting a listing of the contents of the zip file
 for true_minimal?  Seems that minimal doesn't even support
 EJBs...

 -Original Message-
 From: Greg Turner [mailto:EMAIL: PROTECTED]
 Sent: Thursday, June 13, 2002 6:11 PM
 To: EMAIL: PROTECTED
 Subject: Re: [JBoss-user] Shorten server boot time

 The minimal configuration that comes with JBoss-3.0.0 is not very
 good.  I would not use it.
 It throws errors when starting up and some errors are seen in the
 console and some are not.
 The logging and jndi classes do not get loaded.  No log
file appears.
 Don't use it.

 I put together a configuration I call true_minimal that contains
  the
 following services:
 logging
 hot deploy
 ability to browse 8082

 I have zipped up this configuration, but the size is large
for sending
 to this list (1.5K).
 If you want it, send me email direct, and I will send to you.

 Greg Turner



 Jules Gosnell wrote:

  Doh !
 
  I just thought
 
  Try running ./run.sh --configration minimal
 
  Jules
 
  Jules Gosnell wrote:
   Everyone's needs will be different.
  
   Just start moving services that look like likely
candidates out of

   deploy, and if you break something you need, put it back
  
   JBoss is designed to be tailored to your needs, not just to
 be
  a

Re: [JBoss-user] New to the list and New to JBoss 3.0

2002-06-24 Thread Dain Sundstrom

Ryan,

I suggest you start with the Quick Start guide. I don't know if your 
question is answered in it, but is a good starting point.

http://prdownloads.sourceforge.net/jboss/JBoss.3.0QuickStart.pdf?download

-dain

Conover, Ryan wrote:
 Hello All,
 
 I am currently running JBoss 2.4.4 with no problems.  Clients connect fine.
 I am trying to migrate to JBoss 3.0, but all my clients are having trouble
 connecting to the JBoss 3.0  Server.  In Jboss 2.4.4 I had to set 
 
 java.rmi.server.hostname=myservername
 
 in my jboss.properties file on the server.  What is the equivalent in JBoss
 3.0 and is there any changes needed on my clients.
 
 Ryan Conover
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 http://www.pitt.edu/~rscst25/
 
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] New to the list and New to JBoss 3.0

2002-06-24 Thread Conover, Ryan

I have read through the quick start guide, but I have been still
unsuccessful.

Ryan Conover
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.pitt.edu/~rscst25/



-Original Message-
From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 24, 2002 6:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] New to the list and New to JBoss 3.0


Ryan,

I suggest you start with the Quick Start guide. I don't know if your 
question is answered in it, but is a good starting point.

http://prdownloads.sourceforge.net/jboss/JBoss.3.0QuickStart.pdf?download

-dain

Conover, Ryan wrote:
 Hello All,
 
 I am currently running JBoss 2.4.4 with no problems.  Clients connect
fine.
 I am trying to migrate to JBoss 3.0, but all my clients are having trouble
 connecting to the JBoss 3.0  Server.  In Jboss 2.4.4 I had to set 
 
 java.rmi.server.hostname=myservername
 
 in my jboss.properties file on the server.  What is the equivalent in
JBoss
 3.0 and is there any changes needed on my clients.
 
 Ryan Conover
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 http://www.pitt.edu/~rscst25/
 
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



re: [JBoss-user] 'EmbeddedCatalinaServiceSX [...] JasperException Unable to compile JSP' then stops all other JSPs compiling

2002-06-24 Thread Scot Mcphee

 Hi,

 I've inherited an incredibly poorly engineered web application which I am
 now trying to re-engineer so that's it's at least in better condition than
 which I've found it. After doing a bit of refactoring we found that when
 installed on our preview (test) server we sporadically get a
 JasperException; Unable to compile class for JSP, the stacktrace is
 reproduced at end of this message. I know this normally indicates
 some sort

Just for the sake of the list archive; we found a support class that was
written and in a dependent JAR file was overwriting the System.properties.

___
Scot Mcphee - Snr Developer
-   (mobile) +61-412-957414
___
TigerEx -http://www.tigerex.net
-  (bus) +61-2-82593613
___




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] help on JMS Connection's ExceptionListener

2002-06-24 Thread Sheng Zou
Title: help on JMS Connection's ExceptionListener





Hi,


Doesn't anyone know if JMS Connection's ExceptionListener stuff works or now in JBoss2.4.4? I saw similiar post on the Message Forum, but no one seems to know...

thanks a lot!


sheng





Re: [JBoss-user] CMR bug fixed?

2002-06-24 Thread Douglas Su

Dain and Stephen,

   First of all, thank you very much guys.  Okay, I checked out the 
jboss-all source from both HEAD and Branch_3_0.  The one from 
Branch_3_0 can not be successfully build.  It gives 6 errors and 3 
warnings.  The one from HEAD had no problem when I build it.  However it 
gives me problem when I try to deploy a single simple entity bean (with no 
relations).  The delpoyment errors was:

16:34:03,011 ERROR [EjbModule] Starting failed
org.jboss.deployment.DeploymentException: expected one true-mapping tag
at org.jboss.metadata.MetaData.getUniqueChild(MetaData.java:95)
at 
org.jboss.metadata.MetaData.getUniqueChildContent(MetaData.java:198)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCTypeMappingMetaData.init
(JDBCTypeMappingMetaData.java:130)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.init
(JDBCApplicationMetaData.java:202)



Any suggestion? Comment?

Thank you very much,

Douglas

From: Dain Sundstrom [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] CMR bug fixed?
Date: Mon, 24 Jun 2002 11:54:56 -0500

Yes that is HEAD, but I agree with Stephen Coy in that you should only use 
this version if you are interested in developing JBoss.  As for the 
problems you have, I suggest you update the code again and recompile. You 
may have checked out the code in the middle of another developer's commit.

-dain

Douglas Su wrote:
Dain,
  I've checked out JBoss-all module and I compiled a jboss3.1.0alpha 
version.  Is this the correct version? Is the CMR bug fixed for this 
version? Is this the Branch_3_0 and Head you are talking about?  This 
version seems to give me some error on ejb-management.jar and 
jmx-ejb-adaptor.jar when I starts the server.  Any Suggestion?

Thank you very much,
Douglas


From: Dain Sundstrom [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] CMR bug fixed?
Date: Thu, 20 Jun 2002 11:50:27 -0500

Yep, if you execute a finder before the field is set the database is not 
updated.  This has been fixed in cvs Branch_3_0 and HEAD.  cvs is covered 
in the Quick Start guide.

-dain

Douglas Su wrote:

Hi All,

  Is there a bug with the CMR field?  Is the bug fixed?  I am having 
trouble creating 1:N relationship.  JBoss creates Null field and I can't 
make a foreign key be apart of a primary key.  Any Suggestions?

Thanks,
Douglas


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



---
   Bringing you mounds of caffeinated joy
http://thinkgeek.com/sf

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



--

Dain Sundstrom
Chief Architect JBossCMP
JBoss Group, LLC




---
   Bringing you mounds of caffeinated joy
http://thinkgeek.com/sf

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





_
Send and receive Hotmail on your mobile device: http://mobile.msn.com



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user





---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user




_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] New to the list and New to JBoss 3.0

2002-06-24 Thread Scott M Stark

Look at the server/default/deploy/properties-service.xml and either
the URLList or Properties attributes that allow for setting system
properties.


Scott Stark
Chief Technology Officer
JBoss Group, LLC

- Original Message -
From: Conover, Ryan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 1:42 PM
Subject: [JBoss-user] New to the list and New to JBoss 3.0


 Hello All,

 I am currently running JBoss 2.4.4 with no problems.  Clients connect
fine.
 I am trying to migrate to JBoss 3.0, but all my clients are having trouble
 connecting to the JBoss 3.0  Server.  In Jboss 2.4.4 I had to set

 java.rmi.server.hostname=myservername

 in my jboss.properties file on the server.  What is the equivalent in
JBoss
 3.0 and is there any changes needed on my clients.

 Ryan Conover
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 http://www.pitt.edu/~rscst25/




---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



RE: [JBoss-user] jbosscmp-jdbc_3_0.dtd gone from website?

2002-06-24 Thread Sean Howell

Try http://jboss.org

No www's, it caught me too :)

Sean

-Original Message-
From: Jerry Smith [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, 25 June 2002 5:46 AM
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] jbosscmp-jdbc_3_0.dtd gone from website?

Has the jbosscmp-jdbc_3_0.dtd moved somewhere else?  It's no longer at
http://www.jboss.org/j2ee/dtd.


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Transactions Exceptions

2002-06-24 Thread Alice Ad
Hello,
I'm having problem understanding some concepts or may be there's something weird going on in my code.
MySessionBean is a statless bean. foo() in it has a "Required" trans-attribute
MyEntityBean has a local interface. bar() in it has a "RequiresNew" trans-attribute (changing it to "Required" produces the same problems).
foo() calls bar(). -
In bar(), I explicitly call EJBContext's setRollbackOnly(). -
foo() gets javax.transaction.RollbackException.
My questions are:
a. I don't think doing a setRollbackOnly() should throw an exception according to EJB2.0 specs (see 18.3.6)
b. Even if it should throw it, why is it throwing javax.transaction.RollbackException and not javax.ejb.TransactionRolledbackLocal Exception ?
Thanks very much for any help.
Do You Yahoo!?
Sign-up for Video Highlights of 2002 FIFA World Cup

[JBoss-user] Help on JBossMQ ConnectionBorken - Reconnect

2002-06-24 Thread Sheng Zou
Title: help on JMS Connection's ExceptionListener



As an 
alternative to subclass NON-WORKing ExceptionListener (JBoss2.4.4)to 
receive ConnectionBroken exception, i am trying towrite code to resend 
message on sender side upon JMSException, and my receiver will 
alwaysrestarts with JMS server, (so I don't have to rebuild connection for 
receivers). However, Igot this error while trying to retrieve 
QueueConnectionFactory from InitialContext. Here is what I am 
doing:
+ 
reusing existed InitialContext. 
+ 
Connection.close() before recreate queue connection,and I expect it to 
release all the external resources (of course, close() throws some exceptions 
about not able to unsubscribe from server)

PLEASE 
HELP!

ERROR 
[main] (iCCCategory.java:184) - Lookup Connection Factory 
failsjava.rmi.ConnectException: Connection refused to host: 172.16.19.153; 
nested exception is: 
java.lang.NullPointerExceptionjava.net.ConnectException: 
Connection refused: connectjava.net.ConnectException: Connection refused: 
connectat java.net.PlainSocketImpl.socketConnect(Native 
Method)at 
java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)at 
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)at 
java.net.Socket.init(Socket.java:273)at 
java.net.Socket.init(Socket.java:100)at 
com.solipsa.messaging.jms.iCCMessageService.getNewJMSConnection(iCCMessageService.java:511)at 
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)at 
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:120)at 
sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)at 
sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)at 
com.solipsa.messaging.jms.iCCMessageService.handleSendMessageException(iCCMessageService.java:480)at 
sun.rmi.server.UnicastRef.invoke(UnicastRef.java:83)at 
org.jnp.server.NamingServer_Stub.lookup(Unknown Source)at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)at 
javax.naming.InitialContext.lookup(InitialContext.java:350)at 
com.solipsa.messaging.jms.vendor.iCCJBossJMS.getQueueConnectionFactory(iCCJBossJMS.java:234)at 
com.solipsa.messaging.jms.iCCMessageService.sendMessage(iCCMessageService.java:462)at 
com.solipsa.messaging.jms.iCCMessageService.getNewJMSConnection(iCCMessageService.java:499)at 
com.solipsa.messaging.jms.iCCMessageService.handleSendMessageException(iCCMessageService.java:480)at 
com.solipsa.messaging.jms.iCCMessageService.sendMessage(iCCMessageService.java:462)at 
TestJMSConnectionRecovery.main(TestJMSConnectionRecovery.java:42)at 
TestJMSConnectionRecovery.main(TestJMSConnectionRecovery.java:42)

Thanks 
a lot!
Sheng


[JBoss-user] Re: Never ending etandalone Tomcat issues

2002-06-24 Thread Guy Rouillier

Sorry, I've never use the ClientUserTransaction class so I won't be of
further help.  Having used JBoss for quite awhile now, I would be very
surprised if this class was designed only to use the default set of
connection properties - just doesn't fit with the general pluggability built
into the rest of JBoss.  Hopefully Ole will pop in.  I just did a quick
browse of the 2.4.4 code and it looks like all that code is meant to be
executed on the server, which would explain why the default InitialContext
is used.  But again, hopefully someone who knows what they are talking about
will join the discussion.

- Original Message -
From: Jon Swinth [EMAIL PROTECTED]
To: Guy Rouillier [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, June 24, 2002 11:27 AM
Subject: Re: Never ending etandalone Tomcat issues


 Thanks Guy, for the response.  That is the way I used to do things.
However,
 there is code in org.jboss.tm.usertx.client.ClientUserTransaction that
calls new InitialContext()
 when you are trying to use a transaction from Tomcat.  If I don't use
jndi.properties then the
 client transaction will not work.  Much of the JBoss development is geared
toward embedded
 Tomcat/Jetty so I don't know whether this issue would qualify for a bug.
I am certainly finding
 it difficult to be able to separate Tomcat and JBoss.  Looks like I will
be limited to a physical
 two-tier application even if I have written the code as three-tier or
n-tier.

 On Sunday 23 June 2002 12:23 pm, [EMAIL PROTECTED]
wrote:
  From: Guy Rouillier [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] Never ending etandalone Tomcat issues
  Date: Sun, 23 Jun 2002 01:06:20 -0400
  Reply-To: [EMAIL PROTECTED]
 
  I wouldn't recommend putting jndi.properties into the Tomcat classpath,
  because then you are restricting everyone using that instance of Tomcat
to
  those settings. What we do is to include the home and object creation
into
  a header file, and include that header file on each jsp page that needs
to
  get to JBoss (equivalent things can be done for servlets). Here is what
  our header looks like:
 
  java.util.Hashtable env = new java.util.Hashtable();
  env.put(java.naming.factory.initial, INITIAL_FACTORY);
  env.put(java.naming.provider.url, aJndiURL);
  env.put(java.naming.factory.url.pkgs, URL_FACTORY);
  ctx = new InitialContext(env);
 
  Object ref = ctx.lookup(xxx);
  home =
  (AuthenticationHome)PortableRemoteObject.narrow(ref,xxx.class);
  obj = home.create();
 
  A page that needs to connect to JBoss then would looks something like
this:
 
  %@ include file=/common/html/nccheader.jsp %
 
  %
  obj.callSomeMethod();
  %
 
  If you have multiple objects you need to lookup, maybe just setting up
the
  initial context in the header would be better, then getting the home and
  remote references can be done on the pages.





---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user