Re: [JBoss-user] Embedded Tomcat

2001-07-20 Thread damian guy


Ok, Solved this one. j2sdk1.4 was the culprit. 1.3.1 works a treat.

 
 I am trying to run a simple J2EE app using JBoss-2.2.2_Tomcat-3.2.2.
 
 Deploys Ok, and I can access EJBs from a Standalone java client.
 Intergartion with JSPs is a problem. I keep getting NoClassDefFound
 exceptions on $Proxy classes. I have worked out that the $Proxy classes
 are JBoss generated wrappers. Now the problem I am having as is evident
 from the NoClassDefFound error is that the wrong $Proxy class is being
 instantiated. I have proven this by looking in the JNDI tree and finding
 that the offendind $Proxy class does not exist. I can however load a
 legitimate $Proxy class from a JSP.
 
 Can someone **please** tell me why tomcat is attempting to load invalid
 $Proxy classes? How can I fix this?
 
 It shouldn't be this hard!
 
 TIA,
 Damian
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user

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



AW: [JBoss-user] ear file manifest classpath problem ?

2001-07-20 Thread Jung , Dr. Christoph



-Ursprüngliche Nachricht-
Von: Unico Hommes [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 19. Juli 2001 17:19
An: '[EMAIL PROTECTED]'
Betreff: RE: [JBoss-user] ear file manifest classpath problem ?

I think it would be a handy feature though to
specify some classpath info in the ear's Manifest.

but that is neither according to the spec, nor does it make sense from the 
logical point of jar nesting ... 

class-path in ear would rather relate different ears to each other
(which we have BTW prototypically implemented in the
org.jboss.deployment.scope.J2eeGlobalScopeDeployer). 

CGJ

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



RE: [JBoss-user] Object not found in storage

2001-07-20 Thread Saint-Martin Cecile

Are you sure your CMP is mapped with the right table?
Are you sure your table is not empty?
(You should test your result of findByPrimarykey before using it...)

SAINT-MARTIN Cecile
[EMAIL PROTECTED]

 -Message d'origine-
 De : [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]De la part de Carlos
 Ferrão
 Envoyé : vendredi 20 juillet 2001 01:50
 À : jboss ml
 Objet : [JBoss-user] Object not found in storage



   Hi all,

   I'm getting the following error:

 [acc_library] javax.ejb.ObjectNotFoundException: Object with primary key
 accessprj.Cpublicationpk@3 not found in storage
 [acc_library]   at
 org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntityCommand.findByP
 rimaryKey(JDBCFindEntityCommand.java:88)
 [acc_library]   at
 org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntityCommand.execute
 (JDBCFindEntityCommand.java:59)
 [acc_library]   at
 org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntity(
 JAWSPersistenceManager.java:130)
 [acc_library]   at
 org.jboss.ejb.plugins.CMPPersistenceManager.findEntity(CMPPersiste
 nceManager
 .java:270)
 [acc_library]   at
 org.jboss.ejb.EntityContainer.find(EntityContainer.java:419)
 [acc_library]   at java.lang.reflect.Method.invoke(Native Method)

 

 [acc_library]   at $Proxy24.findByPrimaryKey(Unknown Source)
 [acc_library]   at
 accessprj.acc_libraryBean.isPubAvailable(acc_libraryBean.java:644)

   I'm trying to access a field through an entity bean.

 try {
 Context jndiContext = new InitialContext();
 Object publication_ref = jndiContext.lookup(publication);
 publicationHome publicationhome = (publicationHome)
 javax.rmi.PortableRemoteObject.narrow(publication_ref,publicationH
 ome.class)
 ;
 pubpk.pub_id=pub_id;
 try {
   pub = publicationhome.findByPrimaryKey(pubpk);
   quantity= pub.getQuantity();
 } catch (javax.ejb.FinderException fe) { fe.printStackTrace();
 return available; }

   }
   catch (NamingException ne) {ne.printStackTrace();}
   catch (RemoteException re) {re.printStackTrace();}

 my primary key class is as follows:

 public class Cpublicationpk implements Serializable {
   public int pub_id;

   public int hashCode() {
 return pub_id;
   }

   public boolean equals(Object obj) {
 if (obj instanceof Cpublicationpk) {
   return (pub_id == ((Cpublicationpk)obj).pub_id);
 }
 return false;
   }
 }

 This happens with every row. What is wrong?? is something missing
 in JAWS??
 With Inprise AppServer this code works fine.

   Best Regards,
   Carlos Ferrao


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


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



[JBoss-user] Problem with postgresql

2001-07-20 Thread Tomasz Sulej

Hello,

I have a problem with inserting rows from Stateless Session Bean (bean transactions). 
It dosn't insert.

I have a method in the helper class ForumDAO (code below). When I call this
method from client application - it works fine, inserted record appears in database, 
great.
But... I've called this method from EJB method, and nothing happens. I've tried all 
(?) possibilities:

Without transaction, connection taken from the pool and not closed (returned) / with 
closing connection.
or
Within UserTransaction context with/without closing connection.

Inserted record appears in the postgresql log but not in database.
It's strange behaviour becouse on the same server I have CMP entity bean with 
mandatory transaction
on one method and this CMP works fine.

Jboss 2.4, Postgresql 7.1.2

Please help (I'm going little mad...)

Tomasz

CODE class=ForumDAO

public class ForumDAO {

 public boolean addNewForum(Connection conn) {
try {
String sql = insert into 
PreparedStatement stmt = conn.prepareStatement(sql);
[... set some parameters ...]

System.out.println(before execute);

stmt.executeUpdate();

System.out.println(after execute);

return true;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
}

/CODE

CODE class=ForumNewEJB

  [... bussines method ...]
  UserTransaction tx = ctx.getUserTransaction();

  Connection conn = ...

  try {

tx.begin();
forumDAO.addNewForum(conn);
tx.commit();
//conn.close();

  } catch (Exception e) {

try {
tx.rollback();
} catch (Exception er) {}

  }

/CODE
-- 
Tomasz Sulej
eo Networks Sp. z o.o.
tel. +48 22 622 61 85
kom. +48 606 250 438

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



Re: [JBoss-user] Classnames in JNDI

2001-07-20 Thread Lorenzo Resta



Hi Michael,

Yes, i am trying to "discover" EJB's on servers, lookup their home-interfaces
and maybe create one or more bean-instances, in order to register then in
a sort of "application-registry" together with other non-EJB java applications.

Lorenzo

Maraya Michael wrote:
[EMAIL PROTECTED]">	If I understand what you're saying, I think you're trying to accessEJBs without knowing what their names and home and remote interfaces are atcompile-time by using reflection at run-time.  Is this what you're trying todo?---Michael R. Maraya
  --From: 	Lorenzo Resta[SMTP:[EMAIL PROTECTED]]Reply To: 	[EMAIL PROTECTED]Sent: 	Thursday, July 19, 2001 12:20 PMTo: 	[EMAIL PROTECTED]Subject: 	Re: [JBoss-user] Classnames in JNDIHi Burkhard,The problem is that i don't know the bean's name. The list() methodreturnsan enumeration of JNDI names found in the given context. If you havedeployed beans in the context, youcan get at the name and classname through the NameClassPair class.I have also tried your approach :home.getEJBMetaData().getHomeInterfaceClass(),but i still get only classnames like "$Proxy0".Do you get the real classnames?Thanks LorenzoBurkhard Vogel wrote:	Hi,	not sure about the return values of list() but you can do:	Object obj = new InitialContext().lookup(BeanName);	EJBHome home =	(EJBHome)javax.rmi.PortableRemoteObject.narrow(obj, EJBHome.class);	log.debug("HomeInterface: " +	home.getEJBMetaData().getHomeInterfaceClass());	Burkhard	- Original Message -	From: "Lorenzo Resta"  [EMAIL PROTECTED]	To:  [EMAIL PROTECTED]	Sent: Thursday, July 19, 2001 4:49 PM	Subject: [JBoss-user] Classnames in JNDI		Hi,		Does someone know how to get the thre "real" class names ofEJB's looked		up through a given context?		Right now i try to look up all name in a specified contextlike this:		myContext = new InitialContext();		theNames = myContext.list("/company/applications");		while(theNames.hasMore()){		  NameClassPair theName =(NameClassPair)theNames.next();		  String theClassName = theName.getClassName(); //---Here i get		always classnames like "$Proxy1"		  Object theObjectRef   =	myContext.lookup(aName+"/"+theName.getName());		  EJBHome theHome =		(EJBHome)PortableRemoteObject.narrow(theObjectRef,EJBHome.class);		}		So far the code works fine, but the trouble is that theclass name		stores in JNDI is always something like "$Proxy1". But iwould like to		get the real		Homeinterface class name.		By the way : even in JNDIView the classnames appear as"$Proxy0",		"$Proxy1" , etc.		Any ideas how to get at the "real" class names?		Thanks		Lorenzo Resta		SurfKitchen Inc.		___		JBoss-user mailing list		[EMAIL PROTECTED]		http://lists.sourceforge.net/lists/listinfo/jboss-user	___	JBoss-user mailing list	[EMAIL PROTECTED]	http://lists.sourceforge.net/lists/listinfo/jboss-user

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






Re: [JBoss-user] Classnames in JNDI

2001-07-20 Thread Lorenzo Resta



Hi Ole,

I have tried the getEJBMetaData().getHomeInterfaceClass() method in JBoss,
but all i am getting here is the "$Proxy2" class name again,
so i suspect that the mentioned method returns the class that implements
the Home interface.
There is also the getEJBMetaData().getEJBHome(), but when i call this method,
an exception like this is thrown:

javax.naming.NoInitialContextException: Need to specify class name in environment
or system property, or as an applet parameter, or in an application resource
file: java.naming.factory.initial
 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646)
 at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
 at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:283)
 at javax.naming.InitialContext.lookup(InitialContext.java:350)
 at org.jboss.ejb.plugins.jrmp.interfaces.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:49)
 at org.jboss.ejb.plugins.jrmp.interfaces.EJBMetaDataImpl.getEJBHome(EJBMetaDataImpl.java:58)
 at com.surfkitchen.context.GlobalContext.registerEJBs(GlobalContext.java:130)
 at com.surfkitchen.context.GlobalContext.main(GlobalContext.java:178)
java.rmi.RemoteException: Could not get EJBHome
 at org.jboss.ejb.plugins.jrmp.interfaces.HomeHandleImpl.getEJBHome(HomeHandleImpl.java:55)
 at org.jboss.ejb.plugins.jrmp.interfaces.EJBMetaDataImpl.getEJBHome(EJBMetaDataImpl.java:58)
 at com.surfkitchen.context.GlobalContext.registerEJBs(GlobalContext.java:130)
 at com.surfkitchen.context.GlobalContext.main(GlobalContext.java:178)

As far as i can say from this exception, i have to specify the potential
home interface class names, before they can resolved...

Cheers

Lorenzo


Ole Husgaard wrote:
[EMAIL PROTECTED]">Hi,Lorenzo Resta wrote:
  Shouldn't the getEJBMetaData().getHomeInterfaceClass() return the home interface, or does itreturn the class that implements the home interface?

I think it should return the home interface class, and_not_ the class implementing the home interface.The EJB1.1 specification is surprisingly silent on this,but the Javadocs for BeanMetaData.getHomeInterfaceClass()says: "Obtain the Class object for the enterprise Bean'shome interface.".Doesn't it work that way in JBoss?Best Regards,Ole Husgaard.___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user






Re: [JBoss-user] HelloJms needed

2001-07-20 Thread Benoit Rolland

Jboss has a JMSServer called jbossMQ, it is rather new and it behave 
surprisingly sometimes.
For now I prefer to use the free swiftMQ that is well documented and 
very efficient.
The doc explains how to use it easily within JBoss.

Boris Garbuzov wrote:

 Can somebody point me any JMS materials specific for JBoss and
 some Hello example? I have no information on that. Does JBoss have JMS
 server? Are there any config files involved? I need to send my first
 message in JBoss. Thanks in advance, Boris.
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 


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



Re: [JBoss-user] dbase is acting way too slow

2001-07-20 Thread G.L. Grobe

Since I still don't seem to be connecting to the pool, still working on
this.

What should the attribute name=URL ... of the jboss.jcml file be. I
don't understand the url parts. Chptr 3 says it's the JDBC URL used to
connect to the data source. When making my own connections, it used to be:

jdbc:postgresql:acais where 'acais' is my database name. So I have ...
attribute name=URLjdbc:postgresql:acais://localhost:5432/attribute

Then I saw this example as was suggested.

attribute name=URLjdbc:oracle:thin:@pluto:1521:servsoft/attribute

1. // or @ (actually tried both ways, same results, slow)
2. what's the servsoft after the port #.

Also, from an example that was sent ... what is 'access' in the res-name
below, where'd that come from.
-
 resource-managers
 resource-manager
res-class=org.jboss.ejb.deployment.JDBCResource
 res-namejdbc/access/res-name
 res-jndi-namejava:/MyDB/res-jndi-name
 /resource-manager
 /resource-managers

enterprise-beans
   entity
   ejb-nameMyBean/ejb-name
   jndi-namemy/MyBeanHome/jndi-name
   configuration-name/configuration-name
   resource-ref
   res-ref-namejdbc/MyDB/res-ref-name
   resource-namejdbc/access/resource-name
   /resource-ref
  /entity
/enterprise-beans



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



RE: [JBoss-user] MalformedURLException if blank in jboss installation path

2001-07-20 Thread Sternagel Annegret (PN-SYS/DAS)

Hi,

thanks for the suggestions. I tried both, substituting the blank with %20%
and using the mylong~1 stuff,
but with no effect, in both cases a MalformedURLException is thrown.

Ciao
Annegret

 -Original Message-
 From: Burkhard Vogel [SMTP:[EMAIL PROTECTED]]
 Sent: Donnerstag, 19. Juli 2001 17:33
 To:   [EMAIL PROTECTED]
 Subject:  Re: [JBoss-user] MalformedURLException if blank in jboss
 installation path
 
 Hi,
 this is a java feature, if you can try substituting the blank with %20%
 in
 JBOSS_HOME, tell what happens (or an dos try the mylong~1 stuff).
 Burkhard
 - Original Message -
 From: Sternagel Annegret (PN-SYS/DAS) [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, July 19, 2001 4:28 PM
 Subject: [JBoss-user] MalformedURLException if blank in jboss installation
 path
 
 
  Hello,
 
  we are still using jboss 2.1. With this version we get a
  MalformedURLException during startup if there is a blank in the jboss
  installation path.
  Is this a known problem and fixed in a newer jboss version ?
  Any suggestions appreciated.
 
  Ciao
  Annegret
 
  [CorbaService] java.net.MalformedURLException: no protocol:
  test/conf/default/
  [CorbaService] at java.net.URL.init(URL.java:473)
  [CorbaService] at java.net.URL.init(URL.java:376)
  [CorbaService] at java.net.URL.init(URL.java:330)
  [CorbaService] at
  sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:374)
  [CorbaService] at
  sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132)
  [CorbaService] at
 
 sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:143
 )
  [CorbaService] at
 
 java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
  [CorbaService] at
  java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
  [CorbaService] at
  java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
  [CorbaService] at
  java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
  [CorbaService] at
  java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
  [CorbaService] at
  java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
  [CorbaService] at
 java.rmi.MarshalledObject.get(MarshalledObject.java:138)
  [CorbaService] at
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)
  [CorbaService] at
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
  [CorbaService] at
  javax.naming.InitialContext.lookup(InitialContext.java:350)
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user

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



[JBoss-user] jboss/tomcat with Xalan Xerces ?

2001-07-20 Thread Antoine . ISIDOR

I need the packages in xalan.jar and xerces.jar  to  execute my Entity
Bean.

I don't find the way to indicate to my  JBoss-2.2.2/Tomcat-3.2.2   server
how  to find them in execution of my JSP.


If somebody had this problem ? or anybody's suggestions..

thanks.


I already tried with puting these jars in jboss/lib/  tomcat/lib , even i
tried with making a lib/ directory in the WEB-INF/ directory of my .war


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



Re: [JBoss-user] Problem with postgresql

2001-07-20 Thread Samuel Franklyn

This also happens to me using SAPDB.
This is really strange because Oracle did not behave
this way.

- Original Message -
From: Tomasz Sulej [EMAIL PROTECTED]
To: jboss-user [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 5:24 PM
Subject: Re: [JBoss-user] Problem with postgresql


 Hmmm...

 It seems to be solved...
 But I need explanation why does it work like this?

 Inserted record appeared in database when I obtained connection within
transaction
 (after tx.begin())

 Why I cannot take connection before transaction begins???

 --
 Tomasz Sulej
 eo Networks Sp. z o.o.
 tel. +48 22 622 61 85
 kom. +48 606 250 438

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


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



Re: [JBoss-user] jboss/tomcat with Xalan Xerces ?

2001-07-20 Thread Roy Yip

Simply put those jar files in %JBOSS_HOME%/lib/ext.

[EMAIL PROTECTED] wrote:
 
 I need the packages in xalan.jar and xerces.jar  to  execute my Entity
 Bean.
 
 I don't find the way to indicate to my  JBoss-2.2.2/Tomcat-3.2.2   server
 how  to find them in execution of my JSP.
 
 If somebody had this problem ? or anybody's suggestions..
 
 thanks.
 
 I already tried with puting these jars in jboss/lib/  tomcat/lib , even i
 tried with making a lib/ directory in the WEB-INF/ directory of my .war
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] MalformedURLException if blank in jboss installa tion path

2001-07-20 Thread Philipp Meier

On Fri, Jul 20, 2001 at 10:38:05AM +0200, Sternagel Annegret (PN-SYS/DAS) wrote:
 Hi,
 
 thanks for the suggestions. I tried both, substituting the blank with %20%
 and using the mylong~1 stuff,
 but with no effect, in both cases a MalformedURLException is thrown.

Try either + for a blank, or %20 (no second %).

-billy.

-- 
Philipp Meier  o-matic GmbH
Geschäftsführer  Pfarrer-Weiß-Weg 16-18
Tel.: +49-(0)700-66284236 89077 Ulm

 PGP signature


Re: [JBoss-user] Classnames in JNDI

2001-07-20 Thread Lorenzo Resta



Hi Rajesh,

  You should be able to look up your beans in JNDI and call your desired
methods with help of java reflection.

   I just tried a little example. It looks like that:

  The registerEJB() method takes a JNDI context name as parameter and looks 
up your beans in the given context name like "/company/applications".

public void registerEJBs(String aContextName) throws NamingException{

NamingEnumeration theNames;

   Context theContext = new InitialContext();

theNames = getNames(theContext, aContextName);

while(theNames.hasMore()){

NameClassPair theName = (NameClassPair)theNames.next();

Object theObjectRef = myContext.lookup(aContextName+"/"+theName.getName());

EJBHome theHome = (EJBHome)PortableRemoteObject.narrow(theObjectRef,
 EJBHome.class);

//This works so far, but i am not sure if the home interface is
always at index 0
Class theHomeInterface= theHome.getClass().getInterfaces()[0];

System.out.println("Home of "+aContextName+"/"+theName.getName()+"
 is " + theHomeInterface.getName());

try{
java.lang.reflect.Method theCreateMethod;
Class[] theMethodArgs = {};

//Get the create() method
theCreateMethod = theHomeInterface.getMethod("create", theMethodArgs);
System.out.println("home interface create method " + theCreateMethod.toString());

Object[] theInvocationArgs = {};

//Invoke the create method on the home interface
Object theRemoteObject = theCreateMethod.invoke(theHome, theInvocationArgs);

 //This works so far, but i am not sure if the remote interface
is always at index 0
Class theRemoteInterface = theRemoteObject.getClass().getInterfaces()[0];

//You can look up your methods like this
java.lang.reflect.Method[] theBusinessMethods;
theBusinessMethods =  theRemoteInterface.getMethods();

System.out.println("The remote object is " + theRemoteInterface.getName());

}catch(NoSuchMethodException anException){
anException.printStackTrace();
}catch(java.lang.reflect.InvocationTargetException anException){
anException.printStackTrace();
}catch(IllegalAccessException anException){
anException.printStackTrace();
}

}

}

private NamingEnumeration getNames(Context aContext, String aName) throws
 NamingException{
NamingEnumeration theNames;

theNames = aContext.list(aName);

return theNames;
}

  
  I hope that this helped so far

  Cheers

  Lorenzo


   Rajesh Vilasrao Bhujbal wrote:

  
  hi,
  i saw
 your  mail in JBoss-user list.
  
  I am
also trying to  do same thing. I am sending reuest to queue through session
EJB. MDB listen to  quque and then calls business EJB.BusinessBeans are
not known to MDB  before hand.
  
  Can we
  callbusiness EJB insuch fashion? if yes, how?
  
  
  Rajesh
  
  
  
  
  
  Hi Michael,
  
  Yes, i am trying to "discover"  EJB's on servers, lookup their home-interfaces
 and maybe create one or more  bean-instances, in order to register then
in a sort of  "application-registry" together with other non-EJB java  applications.
  
  Lorenzo
  
  Maraya Michael wrote:
  
  [EMAIL PROTECTED]">	If I understand what you're saying, I think you're trying to accessEJBs without knowing what their names and home and remote interfaces are atcompile-time by using reflection at run-time.  Is this what you're trying todo?---Michael R. Maraya
--From: 	Lorenzo Resta[SMTP:[EMAIL PROTECTED]]Reply To: 	[EMAIL PROTECTED]Sent: 	Thursday, July 19, 2001 12:20 PMTo: 	[EMAIL PROTECTED]Subject: 	Re: [JBoss-user] Classnames in JNDIHi Burkhard,The problem is that i don't know the bean's name. The list() methodreturnsan enumeration of JNDI names found in the given context. If you havedeployed beans in the context, youcan get at the name and classname through the NameClassPair class.I have also tried your approach :home.getEJBMetaData().getHomeInterfaceClass(),but i still get only classnames like "$Proxy0".Do you get the real classnames?Thanks LorenzoBurkhard Vogel wrote:	Hi,	not sure about the return values of list() but you can do:	Object obj = new InitialContext().lookup(BeanName);	EJBHome home =	(EJBHome)javax.rmi.PortableRemoteObject.narrow(obj, EJBHome.class);	log.debug("HomeInterface: " +	home.getEJBMetaData().getHomeInterfaceClass());	Burkhard
  
  
  
  
  
  
  


[JBoss-user] How to get output

2001-07-20 Thread Rajesh Vilasrao Bhujbal

Hi, 

Q:1:
I am using JBoss-2.2.2. I had done scheduling of requests from user
using JMS queues. Following 
dia. depicts the flow of request:

Raj (User) request- Servlet ---message--- MDB (asynchronously)
--invokes--- Session Bean
 
how to go back to Raj   ??? 

After some business calculation in Session bean i want to send output to
user. In such scenario how to send output to user? How to make client
wait till he gets output?

===
Q:21:
I have ten session/entity beans on the server. I want to call one of
these beans at runtime through MDB. I have no idea about which bean to
call at compile time i.e. I want to make call to session beans
transparent.  Do we need to write configurations of all the beans in
deployment descriptor? How to identify home interface of these session
beans and then associate with MDB at runtime?

can we do this? how?


Raj


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



[JBoss-user] Problems with INSERT statement

2001-07-20 Thread Federico Vesco

Hi.

I have a problem making an insert-statement on a PostgresSQL.
All Queries are working well and fast.  But if i try to make an insert, it 
seems to work
(there is no exception) but nothing has been inserted to the table. Even if
i make an insert and directly after that a query on that entry, the
jdbc-driver finds that entry. But still nothing in the database.
I use JBoss2.2.2, PostgreSQL 7.0.3, Red Hat 7.1

May you help me?
Federico Vesco


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


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



Re: [JBoss-user] jboss/tomcat with Xalan Xerces ?

2001-07-20 Thread Steve Slatcher


Roy Yip [EMAIL PROTECTED] wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Simply put those jar files in %JBOSS_HOME%/lib/ext.

This make them available to the EJBs, but does can JSPs really find them here?

  I already tried with puting these jars in jboss/lib/  tomcat/lib , even i
  tried with making a lib/ directory in the WEB-INF/ directory of my .war

WEB-INF/lib is the location for jars that JSPs and Servlets need.




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



Re: [JBoss-user] Classnames in JNDI

2001-07-20 Thread Maurice le Rutte



I have tried the getEJBMetaData().getHomeInterfaceClass() method in
JBoss, but all i am getting here is the $Proxy2 class name again,
so i suspect that the mentioned method returns the class that implements
the Home interface.
The $Proxy2 is a class that is dynamically generated and wraps the home
interface methods. See java.lang.reflect.Proxy for more information. I think
you can use introspection to query the interfaces it implements, this should
include the name of the home interface class.

There is also the getEJBMetaData().getEJBHome(), but when i call this
method,
an exception like this is thrown:
javax.naming.NoInitialContextException: Need to specify class name
in environment or system property, or as an applet parameter, or in
an application resource file:  java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646)
[...]
Have you specified all needed configuration parameters? Easiest is to have a
jndi.properties in your classpath containing the following properties.
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming

Of course, you might need to change the java.naming.provider.url to fit your
local configuration needs.

Maurice.



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



Re: [JBoss-user] BLOB

2001-07-20 Thread Burkhard Vogel

Hi,
the described pattern works on oracle 8.0.x and MS SQL 7 as well.
Burkhard
- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 7:27 PM
Subject: RE: [JBoss-user] BLOB


 Hi,
 
  Well, I wonder if it can work, I could find no way in the jdbc spec to
  create a new blob!  So maybe you could read the picture but I 
  don't know
  how JAWS could insert a new row.  I hope I'm wrong, please 
  tell me how.
 
 Well... In case of Firebird 0.9.4 + InterClient 1.6 this works for me. I
 just have a mapping java.lang.Object - BLOB - BLOB and its works fine.
 
 I have find no createBlob() method in JDBC specs, but nobody prevents
 
 st = con.prepareStatement(INSERT INTO (blobcol) VALUES(?));
 st.setBytes(myBlobData);
 
 to work correctly (and because this works in case of InterClient's
 implementation I believe that JAWS uses this way of setting BLOB data).
 
 And I completely agree with you that this behaviour is completely
 implementation dependent, so one have to check it before using in live
 configuration.
 
 Regards,
 Roman.
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user


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



Re: [JBoss-user] Problems with INSERT statement

2001-07-20 Thread Tomasz Sulej

On Fri, Jul 20, 2001 at 11:53:04AM +0200, Federico Vesco wrote:
 Hi.
 
 I have a problem making an insert-statement on a PostgresSQL.
 All Queries are working well and fast.  But if i try to make an insert, it 
 seems to work
 (there is no exception) but nothing has been inserted to the table. Even if
 i make an insert and directly after that a query on that entry, the
 jdbc-driver finds that entry. But still nothing in the database.
 I use JBoss2.2.2, PostgreSQL 7.0.3, Red Hat 7.1
 

Few posts ago I sent a solution (workaround is better word)
Look at a thread: problems with postgresql

 May you help me?
 Federico Vesco
 
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user

-- 
Tomasz Sulej
eo Networks Sp. z o.o.
tel. +48 22 622 61 85
kom. +48 606 250 438

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



Re: [JBoss-user] dbase is acting way too slow

2001-07-20 Thread Burkhard Vogel

Hi,
why do you want to use an oracle url for a postgresql DB??? If you can
connect with the url you specified:
 attribute name=URLjdbc:postgresql:acais://localhost:5432/attribute
this is fine! what is the exception you get during startup? NPE? do you see
your driver is loaded by the JDBC provider?
What in't working if you use the above URL?
Burkhard

- Original Message -
From: G.L. Grobe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 10:38 AM
Subject: Re: [JBoss-user] dbase is acting way too slow


 Since I still don't seem to be connecting to the pool, still working on
 this.

 What should the attribute name=URL ... of the jboss.jcml file be. I
 don't understand the url parts. Chptr 3 says it's the JDBC URL used to
 connect to the data source. When making my own connections, it used to be:

 jdbc:postgresql:acais where 'acais' is my database name. So I have ...
 attribute name=URLjdbc:postgresql:acais://localhost:5432/attribute

 Then I saw this example as was suggested.

 attribute name=URLjdbc:oracle:thin:@pluto:1521:servsoft/attribute

 1. // or @ (actually tried both ways, same results, slow)
 2. what's the servsoft after the port #.

 Also, from an example that was sent ... what is 'access' in the res-name
 below, where'd that come from.
 -
  resource-managers
  resource-manager
 res-class=org.jboss.ejb.deployment.JDBCResource
  res-namejdbc/access/res-name
  res-jndi-namejava:/MyDB/res-jndi-name
  /resource-manager
  /resource-managers

 enterprise-beans
entity
ejb-nameMyBean/ejb-name
jndi-namemy/MyBeanHome/jndi-name
configuration-name/configuration-name
resource-ref
res-ref-namejdbc/MyDB/res-ref-name
resource-namejdbc/access/resource-name
/resource-ref
   /entity
 /enterprise-beans



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


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



Re: [JBoss-user] Classnames in JNDI

2001-07-20 Thread Lorenzo Resta



   Maurice,

 I did set all the JNDI properties like this:

  private String J2EE_BEAN_INITIAL_CONTEXT = "org.jnp.interfaces.NamingContextFactory";
  private String J2EE_SERVER  = "maloja:1099";
  private String J2EE_SERVER_USER= "username";
  private String J2EE_SERVER_PASSWORD = "password";

  private Context getInitialContext()throws NamingException{
  Properties p = new Properties();

  p.put("java.naming.factory.initial", J2EE_BEAN_INITIAL_CONTEXT);
  p.put("java.naming.provider.url", J2EE_SERVER);

  if (J2EE_SERVER_USER != null) {
  p.put(Context.SECURITY_PRINCIPAL, J2EE_SERVER_USER);
  if (J2EE_SERVER_PASSWORD == null){
  J2EE_SERVER_PASSWORD = "";
  }
  p.put(Context.SECURITY_CREDENTIALS, J2EE_SERVER_PASSWORD);
  }
  return new InitialContext(p);
  }


 The lookup went fine, but as soon as i called the getEJBMetaData().getEJBHome() 
method on the looked up home interface , the Exception occured.

 What's weird is that since i restarted JBoss, the getEJBMetaData().getHomeInterfaceClass() 
and getEJBMetaData().getRemoteInterfaceClass() work fine and
 return the "real" home and remote interface names.

 Thanks

 Lorenzo

 Maurice le Rutte wrote:
013901c11102$85d1f1e0$d9a0bc86@pc1mplr">
  I have tried the getEJBMetaData().getHomeInterfaceClass() method inJBoss, but all i am getting here is the "$Proxy2" class name again,so i suspect that the mentioned method returns the class that implementsthe Home interface.

The $Proxy2 is a class that is dynamically generated and wraps the homeinterface methods. See java.lang.reflect.Proxy for more information. I thinkyou can use introspection to query the interfaces it implements, this shouldinclude the name of the home interface class.
There is also the getEJBMetaData().getEJBHome(), but when i call this
  
  method,
  an exception like this is thrown:javax.naming.NoInitialContextException: Need to specify class namein environment or system property, or as an applet parameter, or inan application resource file:  java.naming.factory.initialat javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:646)[...]

Have you specified all needed configuration parameters? Easiest is to have ajndi.properties in your classpath containing the following properties.java.naming.factory.initial=org.jnp.interfaces.NamingContextFactoryjava.naming.provider.url=localhost:1099java.naming.factory.url.pkgs=org.jboss.namingOf course, you might need to change the java.naming.provider.url to fit yourlocal configuration needs.Maurice.___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user







Re: [JBoss-user] How to get output

2001-07-20 Thread Burkhard Vogel

Hi,
after you sent the message set your Servlet into a loop (with timeout) (eg
while( NoResponse and NotTimeout) ). Let the Session Bean call a method on
the servlet to set response material (e.g. setResponse(String)) and after
the response is set let the Session bean change the boolean NoResponse so
the servlet escapes the loop. Servlet can answer Rej.
Burkhard
- Original Message -
From: Rajesh Vilasrao Bhujbal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 11:39 AM
Subject: [JBoss-user] How to get output


Hi,

Q:1:
I am using JBoss-2.2.2. I had done scheduling of requests from user
using JMS queues. Following
dia. depicts the flow of request:

Raj (User) request- Servlet ---message--- MDB (asynchronously)
--invokes--- Session Bean

how to go back to Raj   ??? 

After some business calculation in Session bean i want to send output to
user. In such scenario how to send output to user? How to make client
wait till he gets output?

===
Q:21:
I have ten session/entity beans on the server. I want to call one of
these beans at runtime through MDB. I have no idea about which bean to
call at compile time i.e. I want to make call to session beans
transparent.  Do we need to write configurations of all the beans in
deployment descriptor? How to identify home interface of these session
beans and then associate with MDB at runtime?

can we do this? how?


Raj


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


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



Re: [JBoss-user] dbase is acting way too slow

2001-07-20 Thread Dmitri Colebatch

Have you tried writing a standalone java application that connects to the
database?  Perhaps the problem is in postgres' configuration.  Check your
pg_hba.conf file.

cheers
dim

On Fri, 20 Jul 2001, G.L. Grobe wrote:

 Since I still don't seem to be connecting to the pool, still working on
 this.
 
 What should the attribute name=URL ... of the jboss.jcml file be. I
 don't understand the url parts. Chptr 3 says it's the JDBC URL used to
 connect to the data source. When making my own connections, it used to be:
 
 jdbc:postgresql:acais where 'acais' is my database name. So I have ...
 attribute name=URLjdbc:postgresql:acais://localhost:5432/attribute
 
 Then I saw this example as was suggested.
 
 attribute name=URLjdbc:oracle:thin:@pluto:1521:servsoft/attribute
 
 1. // or @ (actually tried both ways, same results, slow)
 2. what's the servsoft after the port #.
 
 Also, from an example that was sent ... what is 'access' in the res-name
 below, where'd that come from.
 -
  resource-managers
  resource-manager
 res-class=org.jboss.ejb.deployment.JDBCResource
  res-namejdbc/access/res-name
  res-jndi-namejava:/MyDB/res-jndi-name
  /resource-manager
  /resource-managers
 
 enterprise-beans
entity
ejb-nameMyBean/ejb-name
jndi-namemy/MyBeanHome/jndi-name
configuration-name/configuration-name
resource-ref
res-ref-namejdbc/MyDB/res-ref-name
resource-namejdbc/access/resource-name
/resource-ref
   /entity
 /enterprise-beans
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 


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



Re: [JBoss-user] Problem with postgresql

2001-07-20 Thread Ole Husgaard

Hi,

Tomasz Sulej wrote:
 It seems to be solved...
 But I need explanation why does it work like this?
 
 Inserted record appeared in database when I obtained connection within transaction
 (after tx.begin())
 
 Why I cannot take connection before transaction begins???

This may have changed, as I have not have had the time
to follow all commits lately.

But if I remember correctly:

If you are doing BMT, and do something like
conn = getConnection();
followed by
ut.begin();
your connection is _not_ enlisted with the
transaction you just started.

IMHO that is/was a bug in JBoss.

Problem is that the container does not keep
track of open resources, and thus does not
know which connections to enlist.


Best Regards,

Ole Husgaard.

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



Re: [JBoss-user] ejbLoad not called even when commit-option is C

2001-07-20 Thread Burkhard Vogel

Hi,
I think you can't use IsModified with lagacy apps! Try whitout it!
Burkhard
- Original Message -
From: Syed [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 4:46 AM
Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C



 Yes I have transaction Required flag.


 Thanks  Best Regards,
  Mustaffa Syed Meerkasim.




 Date: Thu, 19 Jul 2001 22:26:48 -0400
 From: David Jencks [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is C
 Reply-To: [EMAIL PROTECTED]

 Hi,
 You do have all your methods with transaction Required or RequiresNew,
 right?
 david jencks

 On 2001.07.19 22:03:57 -0400 Syed wrote:
 
  I am using JBoss 2.4 BETA(Rel_2_4_0_14).
 
  In the standardjboss.xml file under container configuration for
Standard
  BMP EntityBean, I set the commit-option to C.
  But it does not seem to be working.
  I think it behaves this way,,
 
  when ejbFindByPrimarykey is called,
  it finds the bean from the cache(if it is not in cache it eventually
  calls
  ejbLoad, so no problem during first invocation),
  then checks the isModified  calls ejbStore if isModified returns true..
  that's it.. it never calls ejbLoad.
  it can call ejbLoad if isModified returns false as there is possibility
  for
  the data be modified outside the entity bean.
  if isModified is true, it calls ejbStore and that means whatever data it
  has
  is the latest and no need to call ejbLoad...
 
  I don't know the complete cycle of events and the above given is my
  assumption of what is happening
  after looking at its behaviour ..
 
  Pls let me know if there are any other settings which can help ...
 
   Thanks  Best Regards,
   Mustaffa Syed Meerkasim.
  --
  From: Burkhard Vogel [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is
C
  Date: Thu, 19 Jul 2001 15:11:53 +0200
  Reply-To: [EMAIL PROTECTED]
 
  Hi,
  commit option C MUST do the job, if not I guess you are misconfigured.
  Where
  and how do you set your commit-option to C how do you deploy your beans
  (ejb-jar/jboss/jaws)?
  Burkhard
  - Original Message -
  From: Luke Studley [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, July 19, 2001 2:35 PM
  Subject: Re: [JBoss-user] ejbLoad not called even when commit-option is
C
 
 
   Hello
  
   I think this relates exactly to the same problem I am having, see my
  post
   from about 18 hours ago below. When I went back to read the ejb1.1.
  spec
  it
   seems to suggest that there are 3 different ways a container may
behave
   between transactional calls on a bean (see mail below), it appears to
  me
   that JBoss is taking option A, which is allowable, but not very useful
  for
   what I want to achieve (i.e. dB access from without the bean).
  
   I am hoping that somebody will rubbish my conclusions and tell me how
  we
  can
   make JBoss call ejbLoad at the beginning of each transactional set of
  calls.
  
   If you find any solution to this please do post it.
  
   Best of luck
  
   Luke
  
   -
   FROM: Luke StudleyDATE: 07/18/2001 15:29:21SUBJECT:  [JBoss-user]
JBoss
   Entity Bean Transactions This message is in MIME format. Since your
  mail
   reader does not understand
   this format, some or all of this message may not be legible.
  
   --_=_NextPart_001_01C10FD9.171B7B80
   Content-Type: text/plain
  
   Hi all
  
   In the ejb 1.1 Spec (pdf) 9.5.4 and 9.5.5 (ending and starting new
   transactions for entity beans) it mentions 3 options for a container
to
  end
   a transaction:
   A. mark not registered
   B. mark invalid state
   C. ejbPassivate()
  
   Which relates to the following actions for starting the next
  transaction:
   A. Do nothing
   B. ejbLoad()
   C. ejbLoad()
  
   Would it be true to say that JBoss implements option A? I am certainly
   seeing this type of behaviour with my session wrapped entity beans,
  i.e.
  no
   ejbLoad() called for new Transactions after the initial
  find/ejbActivate
   combo.
  
   If this is the case then you cannot pick up new transaction data
  changed
  in
   the dB from outside of JBoss without restarting or re-deploying your
  beans.
   Which is quite annoying for the application I have.
  
   Is any / all / none of this true?
   Is it possible to configure JBoss to use one of the other options
  mentioned
   in the spec? I.e. I basically need ejbLoad to be called on the entity
  beans
   afresh in each transaction.
  
   As always any answers appreciated.
  
   Thanks
  
   Luke
   -
  
  
  
  
   Message: 3
   From: Syed [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Date: Thu, 19 Jul 2001 17:58:20 +0800
   Subject: [JBoss-user] ejbLoad not called even when commit-option is C
   Reply-To: [EMAIL 

Re: [JBoss-user] jboss/tomcat with Xalan Xerces ?

2001-07-20 Thread Roy Yip

It's a bit tricky here. In my case, WEB-INF/lib doesn't work for jar
which involved Remote Method Invocation. I had to put it in
%TOMCAT_HOME%/lib to make the class loadable.

Steve Slatcher wrote:
 
 Roy Yip [EMAIL PROTECTED] wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
  Simply put those jar files in %JBOSS_HOME%/lib/ext.
 
 This make them available to the EJBs, but does can JSPs really find them here?
 
   I already tried with puting these jars in jboss/lib/  tomcat/lib , even i
   tried with making a lib/ directory in the WEB-INF/ directory of my .war
 
 WEB-INF/lib is the location for jars that JSPs and Servlets need.
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] Problem with postgresql

2001-07-20 Thread Burkhard Vogel

Hi,
just think, you are opening your car door and then disable the alarm - the
alarm goes off you open a connection, start a transaction, the
connection is not in transaction context...
Burkhard
- Original Message -
From: Tomasz Sulej [EMAIL PROTECTED]
To: jboss-user [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 12:24 PM
Subject: Re: [JBoss-user] Problem with postgresql


 Hmmm...

 It seems to be solved...
 But I need explanation why does it work like this?

 Inserted record appeared in database when I obtained connection within
transaction
 (after tx.begin())

 Why I cannot take connection before transaction begins???

 --
 Tomasz Sulej
 eo Networks Sp. z o.o.
 tel. +48 22 622 61 85
 kom. +48 606 250 438

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


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



[JBoss-user] Connection is broken

2001-07-20 Thread Nicolas Ocquidant

--already posted on the forum but no answer and i don't know what to
do--

Hi all !

I'm trying to use JBoss and hsql with heavy data (succession of 3D
blocks which could have 1000*1000*200 points with properties associated
with...).
So i have object with big persitent attributes (to try to limit db
access)
To initialize my data, i build arrays client side and i try to update
the corresponding entity bean (with a set method).
With 10*10*3 blocks, all is ok.
With 50*50*10 blocks, all goes wrong.

If someone could help me ...
The exception is:

-Client side-
[java] java.lang.reflect.UndeclaredThrowableException:
javax.transaction.RollbackException: Unable to commit, tx=XidImpl
[FormatId=257,
GlobalId=grsun51//11, BranchQual=] status=STATUS_ROLLEDBACK
[java] at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)

[java] at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)

[java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
[java] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown

Source)
[java] at
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:182)

[java] at $Proxy4.setPoints(Unknown Source)
[java] at com.geomath.t3d.TestClient.buildBlock4D(TestClient.java:308)
[java] at com.geomath.t3d.TestClient.main(TestClient.java:497)


--Server side--
[PointsBean] java.rmi.ServerException: Store failed; nested exception
is:
[PointsBean] java.sql.SQLException: Connection is broken
[PointsBean] java.sql.SQLException: Connection is broken
[PointsBean] at org.hsql.Trace.getError(Trace.java:124)
[PointsBean] at org.hsql.Trace.getError(Trace.java:115)
[PointsBean] at org.hsql.Trace.error(Trace.java:130)
[PointsBean] at
org.hsql.jdbcConnection.executeHSQL(jdbcConnection.java:642)
[PointsBean] at org.hsql.jdbcConnection.execute(jdbcConnection.java:540)

[PointsBean] at
org.hsql.jdbcStatement.fetchResult(jdbcStatement.java:499)
[PointsBean] at
org.hsql.jdbcStatement.executeUpdate(jdbcStatement.java:52)
[PointsBean] at
org.hsql.jdbcPreparedStatement.executeUpdate(jdbcPreparedStatement.java:114)

[PointsBean] at
org.opentools.minerva.jdbc.PreparedStatementInPool.executeUpdate(PreparedStatementInPool.java:82)

[PointsBean] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAndHandleResult(JDBCUpdateCommand.java:49)

[PointsBean] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:160)

[PointsBean] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEntityCommand.java:97)

[PointsBean] at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPersistenceManager.java:156)

[PointsBean] at
org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManager.java:401)

[PointsBean] at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSynchronization.beforeCompletion(EntitySynchronizationInterceptor.java:342)

[PointsBean] at
org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1228)
[PointsBean] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:322)
[PointsBean] at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
[PointsBean] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:318)

[PointsBean] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[PointsBean] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:190)

[PointsBean] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[PointsBean] at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323)
[PointsBean] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:392)

[PointsBean] at java.lang.reflect.Method.invoke(Native Method)
[PointsBean] at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[PointsBean] at sun.rmi.transport.Transport$1.run(Transport.java:142)
[PointsBean] at java.security.AccessController.doPrivileged(Native
Method)
[PointsBean] at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[PointsBean] at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)

[PointsBean] at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:643)

[PointsBean] at java.lang.Thread.run(Thread.java:484)


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



RE: [JBoss-user] Timer MBean

2001-07-20 Thread Saint-Martin Cecile

Thx, I have set filters and it works.

SAINT-MARTIN Cecile
[EMAIL PROTECTED]

 -Message d'origine-
 De : [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]De la part de Burkhard
 Vogel
 Envoyé : vendredi 20 juillet 2001 13:19
 À : [EMAIL PROTECTED]
 Objet : Re: [JBoss-user] Timer MBean


 Hi,
 a notification concerns everyone listening to a notification type. This
 means everyone listening to timer-notifications get woken up.
 To avoid this have a look at filters.
 Burkhard
 - Original Message -
 From: Saint-Martin Cecile [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, July 19, 2001 6:06 PM
 Subject: [JBoss-user] Timer MBean


  Hello,
 
  I have wroten an entity EJB that implements NotificationListener of API
  javax.management.
  It register itself as a listener to a notification that occurs after one
  minute.
  It seems to work but all entities that have previously register
 themselves
  wake up each time a new notification is send by the timer.
  I have understood, but its maybe wrong, that a notification concernes an
  instance not all instance of object.
 
  So, i am completly wrong?
 
  SAINT-MARTIN Cecile
  [EMAIL PROTECTED]
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user


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


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



Re: [JBoss-user] Classnames in JNDI

2001-07-20 Thread Ole Husgaard

Lorenzo Resta wrote:
 I have tried the getEJBMetaData().getHomeInterfaceClass() method in JBoss,
 but all i am getting here is the $Proxy2 class name again,
 so i suspect that the mentioned method returns the class that implements
 the Home interface.

I dont think it should (or does), and I am a bit puzzled by
this. Just tried re-running the jbosstest CTS tests from the
latest CVS MAIN branch, and the testContainerObjects test
passes as usually:

Get the Meta-data object...OK
Probe the Meta-data object:
  Home Interface  : org.jboss.test.cts.interfaces.CtsBmpHome
  PrimaryKey  : org.jboss.test.cts.keys.AccountPK
  Remote Interface: org.jboss.test.cts.interfaces.CtsBmp
Meta-data OK

Just for reference, the code that prints the above looks like:

System.out.print(Get the Meta-data object...);
EJBMetaData md = anotherHome.getEJBMetaData();
assert(md != null);
System.out.println(OK);
System.out.println(Probe the Meta-data object:);
String homeInterface = md.getHomeInterfaceClass().getName();
String primaryKey = md.getPrimaryKeyClass().getName();
String remoteInterface = md.getRemoteInterfaceClass().getName();
System.out.println(  Home Interface  :  + homeInterface);
System.out.println(  PrimaryKey  :  + primaryKey);
System.out.println(  Remote Interface:  + remoteInterface);
assert(homeInterface.equals(org.jboss.test.cts.interfaces.CtsBmpHome));
assert(primaryKey.equals(org.jboss.test.cts.keys.AccountPK));
assert(remoteInterface.equals(org.jboss.test.cts.interfaces.CtsBmp));
System.out.println(Meta-data OK);

This test only tests the metadata for entity beans.

With which kinds of beans do you have these problems?


Best Regards,

Ole Husgaard.

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



Re: [JBoss-user] BLOB

2001-07-20 Thread David Jencks

I'm not too surprised that any particular driver makes this work, however
my reading of the spec makes this behavior outside the spec:

jdbc3.0 pfd 3:

table b1 and b2 indicate the only java object corresponding to a BLOB field
is Blob!  byte[] goes with Binary, VarBinary or LongVarBinary, NOT BLOB. 
So I think a spec compliant driver will not allow access to BLOB fields
except from Blob objects, which can't be created... obviously I think this
is an error in the spec.

david jencks


On 2001.07.20 06:29:35 -0400 Burkhard Vogel wrote:
 Hi,
 the described pattern works on oracle 8.0.x and MS SQL 7 as well.
 Burkhard
 - Original Message - 
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, July 19, 2001 7:27 PM
 Subject: RE: [JBoss-user] BLOB
 
 
  Hi,
  
   Well, I wonder if it can work, I could find no way in the jdbc spec
 to
   create a new blob!  So maybe you could read the picture but I 
   don't know
   how JAWS could insert a new row.  I hope I'm wrong, please 
   tell me how.
  
  Well... In case of Firebird 0.9.4 + InterClient 1.6 this works for me.
 I
  just have a mapping java.lang.Object - BLOB - BLOB and its works
 fine.
  
  I have find no createBlob() method in JDBC specs, but nobody prevents
  
  st = con.prepareStatement(INSERT INTO (blobcol) VALUES(?));
  st.setBytes(myBlobData);
  
  to work correctly (and because this works in case of InterClient's
  implementation I believe that JAWS uses this way of setting BLOB data).
  
  And I completely agree with you that this behaviour is completely
  implementation dependent, so one have to check it before using in live
  configuration.
  
  Regards,
  Roman.
  
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 
 

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



Re: [JBoss-user] Classnames in JNDI

2001-07-20 Thread Lorenzo Resta



Ole,

After restarting JBoss (2.2.1 with Jetty), the getEJBMetaData().getHomeInterfaceClass()
works the way it should again.
I am also confused, why before restarting JBoss it was acting so strange!

Now it seems to work fine.

Thanxs a lot for your help!

Best regards

Lorenzo

Ole Husgaard wrote:
[EMAIL PROTECTED]">Lorenzo Resta wrote:
  I have tried the getEJBMetaData().getHomeInterfaceClass() method in JBoss,but all i am getting here is the "$Proxy2" class name again,so i suspect that the mentioned method returns the class that implementsthe Home interface.

I dont think it should (or does), and I am a bit puzzled bythis. Just tried re-running the jbosstest CTS tests from thelatest CVS MAIN branch, and the testContainerObjects testpasses as usually:Get the Meta-data object...OKProbe the Meta-data object:  Home Interface  : org.jboss.test.cts.interfaces.CtsBmpHome  PrimaryKey  : org.jboss.test.cts.keys.AccountPK  Remote Interface: org.jboss.test.cts.interfaces.CtsBmpMeta-data OKJust for reference, the code that prints the above looks like:System.out.print("Get the Meta-data object...");EJBMetaData md = anotherHome.getEJBMetaData();assert(md != null);System.out.println("OK");System.out.println("Probe the Meta-data object:");String homeInterface = md.getHomeInterfaceClass().getName();String primaryKey = md.getPrimaryKeyClass().getName();String remoteInterface = md.getRemoteInterfaceClass().getName();System.out.println("  Home Interface  : " + homeInterface);System.out.println("  PrimaryKey  : " + primaryKey);System.out.println("  Remote Interface: " + remoteInterface);assert(homeInterface.equals("org.jboss.test.cts.interfaces.CtsBmpHome"));assert(primaryKey.equals("org.jboss.test.cts.keys.AccountPK"));assert(remoteInterface.equals("org.jboss.test.cts.interfaces.CtsBmp"));System.out.println("Meta-data OK");This test only tests the metadata for entity beans.With which kinds of beans do you have these problems?Best Regards,Ole Husgaard.___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user






AW: [JBoss-user] RE:My app deploys but lookup from servlet won't work ! HELP!

2001-07-20 Thread Jan Heise

   Bean   : SphfGeneratorBean
   Method : public abstract SphfGenerator create()
 throws
 CreateException, RemoteException
   Section: 6.10.6
   Warning: The method return values in the home
 interface must be of

this error should go away if you make SphfGenerator implement
the serializable interface. if it is not serializable, it is
not a valid return type. i'm not sure if this solves your
other problem as i don't know your servlet code.


jan

--
Jan Heise / Tel: +49-170-4803237 / E-Mail: [EMAIL PROTECTED]

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Allan
Kamau
Gesendet: Freitag, 20. Juli 2001 14:13
An: [EMAIL PROTECTED]
Betreff: Re: [JBoss-user] RE:My app deploys but lookup from servlet
won't work ! HELP!


I've been searching for an answer to the same problem
(with exactly the same senerio: where a client other
than a servlet is accessing the ejb just fine) for a
couple of weeks.
If you get a solution please let me know.

Allan Kamau.

--- damian guy [EMAIL PROTECTED] wrote:
 Hi,

 Can anyone tell me how to fix the problem outlined
 below?

 Thanks,
 Damian

--
 FROM: philips.com
   DATE: 07/18/2001 08:53:43
   SUBJECT:  [JBoss-user] My app deploys but lookup
 from servlet won't
 work ! HELP !


   Hello,

   I'm a newbye with JBoss and J2EE deployment and
 it's the first web-app
 I try
   to deploy with JBoss ans EmbeddedTomcat (JBoss 2.2
 + Tomcat 3.2.1).

   I have made following archives :
- First, a jar containg my session beans and
 the enitty
 interfaces
   they're using (entites are in
another jar). When I test this SB with a
 simple client, it works
 well
   (without the following archives).
- Then, a war containg my servlets, web pages
 and the interfaces
 of session beans.
- Finally, a ear archive with an
 application.xml for my modules.

   During the deployment of this ear archive,
 everything seems to go
 well.
   I've got this messages :
   ...
   [Auto deploy] Auto deploy of
 file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear
   [J2EE Deployer Default] Deploy J2EE application:
 file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear
   [J2EE Deployer Default] Create application
 frontend.ear
   [J2EE Deployer Default] inflate and install module
 web-app.war
   [J2EE Deployer Default] install module ejb-app.jar
   [J2EE Deployer Default] add all ejb jar files to
 the common classpath
   [J2EE Deployer Default] Starting module
 web-app.war
   2001-07-18 05:34:19 - ContextManager: Adding
 context Ctx( /frontend )
   [Container factory]

Deploying:file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear
   [Verifier] Verifying

file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear/ejb1002.jar
   [Verifier]
   Bean   : SphfGeneratorBean
   Method : public abstract SphfGenerator create()
 throws
 CreateException, RemoteException
   Section: 6.10.6
   Warning: The method return values in the home
 interface must be of
 valid
   types for RMI/IIOP.
   [Container factory] Deploying SphfGeneratorBean
   [Container factory] Deployed application:

file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear
   [J2EE Deployer Default] J2EE application:
 file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear
   is deployed.
   ...

   This warning doesn't bother me (first time i
 deploy my session beans,
 i
   already get it but everything was fine).
   When I launch my simple client, everything works
 fine !

   But, when I try a servlet, I've got the following
 exception thrown :

   2001-07-18 05:34:39 - Ctx( /frontend ): Exception
 in: R( /frontend +
 /servlet/DisplayPlansServlet
   + null) - java.lang.NoClassDefFoundError: $Proxy6
   at

sun.reflect.GeneratedSerializationConstructorAccessor66.newInstance(Unknown
   Source)
   at
 java.lang.reflect.Constructor.newInstance(Unknown
 Source)
   at
 java.io.ObjectStreamClass.newInstance(Unknown
 Source)
   at
 java.io.ObjectInputStream.readOrdinaryObject(Unknown
 Source)
   at
 java.io.ObjectInputStream.readObject0(Unknown
 Source)
   at
 java.io.ObjectInputStream.readObject(Unknown Source)
   at java.rmi.MarshalledObject.get(Unknown
 Source)
   at

org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)
   at

org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
   at
 javax.naming.InitialContext.lookup(Unknown Source)
   at

pcc.intranet.frontend.sphf.servlet.DisplayPlansServlet.init(pcc/intranet/fro
ntend/sphf/servlet/DisplayPlansServlet.java:87)
   at

org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
   .

   The code in my servlet is just a lookup to my
 session bean (and
 interface
   classes are in Web-inf/classes).
   Why does it thrown a NoClassDefFound Error ? What
 is the $Proxy6 class
 ?
   I've tried to package my application more properly
 by putting the
 

[JBoss-user] dtd references in .xml files

2001-07-20 Thread Pat McGibbon

JBoss-2.2.2_Tomcat-3.2.2
Windows 2000 sp1

Newbie question.

When I am deploying an ear file, JBoss tries to resolve dtd references in 
application.xml in the ear file, and ejb-jar.xml in ejb jar files.

If I have the reference as an http:// ref, this implies that I can only 
deploy on a machine that can 'see out' to the net.

If I have the reference as a file:/// ref, this implies that I have a 
hard-coded reference to the location of my dtd files that is bound to vary 
on other machines on which I deploy.

Short of the deployer unpacking and editing the .xml files within my .ear 
file, is there any way of making my .ear file more generally deployable?  
Or, can JBoss be configured not to try and resolve the dtd references?

Either I have missed something obvious through lack of experience (I hope 
so) or this is a bit of a flaw in either the J2EE spec or the way JBoss 
implements it.

Hope someone can help.

Regards,
Pat McGibbon.

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


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



[JBoss-user] JSPs calling EJBs

2001-07-20 Thread Dobromir . Herzog

Hi!

I use Tomcat 3.2.1 on first Linux machine and Jboss 3.2.2 on another
(IP:213.25.69.82).  I'm able to execute Interest example from Jboss's
manual but when I converted it to JSP it doesn't work. This is the JSP
code:

%@ page import=java.io.IOException, javax.naming.InitialContext,
javax.rmi.PortableRemoteObject, com.web_tomorrow.interest.*, java.util.
*,javax.ejb.*, javax.naming.Context %

HTMLBODY
%
 Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory);
 env.put(Context.PROVIDER_URL, 213.25.69.82:1099);
  try{
  InitialContext jndiContext = new InitialContext(env);
  Object ref  = jndiContext.lookup(interest/Interest);
  out.println(Got reference);

  InterestHome home = (InterestHome)  PortableRemoteObject.narrow
(ref,InterestHome.class);
  Interest interest = home.create();

  out.println  (Interest on 1000 units, at 10% per period, compounded
over 2 periods is:);
  out.println (interest.calculateCompoundInterest (1000, 0.10, 2));
}
catch(Exception e){
   out.println(Sth. wrong ...);
   out.println(e.toString());
}
 %
/BODY/HTML

When it runs the output is:
Sth. wrong ...javax.naming.CommunicationException [Root exception is
java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome]

I believe I have all (not all necessary but ALL) client jars in my
classpath, com.web_tomorrow.interest package in my WEB-INF/classes
directory.

Please hear my cry and advice something.

Deep in sulk,
Dobrus



***
This e-mail is confidential and may contain privileged information.
If you are not the addressee it may be unlawful for you to read, copy,
distribute, disclose or otherwise use the information in this e-mail.  Ify
 ou are not the intended recipient please notify us immediately.

Registered Office:
Cadbury Wedel Sp. z o.o.
ul. Zamoyskiego 28/30
03-801 Warsaw   tel +48 (22) 670-7700
Polandfax +48 (22) 670-7701
***

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



Re: [JBoss-user] JSPs calling EJBs

2001-07-20 Thread Fred Loney

When you say com.web_tomorrow.interest package in my WEB-INF/classes, do you mean 
interest.jar or the interest .class files? If the former, the jar goes in WEB-INF/lib.

[EMAIL PROTECTED] wrote:

 Hi!

 I use Tomcat 3.2.1 on first Linux machine and Jboss 3.2.2 on another
 (IP:213.25.69.82).  I'm able to execute Interest example from Jboss's
 manual but when I converted it to JSP it doesn't work. This is the JSP
 code:

 %@ page import=java.io.IOException, javax.naming.InitialContext,
 javax.rmi.PortableRemoteObject, com.web_tomorrow.interest.*, java.util.
 *,javax.ejb.*, javax.naming.Context %

 HTMLBODY
 %
  Hashtable env = new Hashtable();

 env.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory);
  env.put(Context.PROVIDER_URL, 213.25.69.82:1099);
   try{
   InitialContext jndiContext = new InitialContext(env);
   Object ref  = jndiContext.lookup(interest/Interest);
   out.println(Got reference);

   InterestHome home = (InterestHome)  PortableRemoteObject.narrow
 (ref,InterestHome.class);
   Interest interest = home.create();

   out.println  (Interest on 1000 units, at 10% per period, compounded
 over 2 periods is:);
   out.println (interest.calculateCompoundInterest (1000, 0.10, 2));
 }
 catch(Exception e){
out.println(Sth. wrong ...);
out.println(e.toString());
 }
  %
 /BODY/HTML

 When it runs the output is:
 Sth. wrong ...javax.naming.CommunicationException [Root exception is
 java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome]

 I believe I have all (not all necessary but ALL) client jars in my
 classpath, com.web_tomorrow.interest package in my WEB-INF/classes
 directory.

 Please hear my cry and advice something.

 Deep in sulk,
 Dobrus

--
Fred Loney
Spirited Software, Inc.
[EMAIL PROTECTED]



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



Re: [JBoss-user] RE:My app deploys but lookup from servlet won't work ! HELP!

2001-07-20 Thread laurent . broudoux



I've solved this problem by changing the version of JDK.
I  used JDK1.4 (with errors). I've gone back to JDK1.3 and everything runs fine 
without changes ... !





Fred Loney [EMAIL PROTECTED]@lists.sourceforge.net on 20/07/2001 17:05:05

Please respond to [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To: [EMAIL PROTECTED]
cc:  (bcc: Laurent Broudoux/LME/PCC/PHILIPS)
Subject:  Re: [JBoss-user] RE:My app deploys but lookup from servlet won't work ! HELP!
Classification:



Just a guess, but perhaps your remote SB class is not in the deployment classpath. The 
cited warning is a red flag that the deployer does not recognize that SphfGenerator is 
a Remote. Assuming that SphfGenerator is derived from EjbObject, which is a
Remote, this suggests that the deployment verifier cannot completely resolve the 
SphfGenerator class declaration. That would account for the runtime failure, which 
results from an inability to marshal a Remote form of the SphfGenerator instance.

Try putting your app jars in the jboss lib directory. If the error disappears, it is 
an ear or deployer classpath problem.

--
Fred Loney
Enterprise Java Consultant
Spirited Software, Inc.
[EMAIL PROTECTED]

damian guy wrote:

 Hi,

 Can anyone tell me how to fix the problem outlined below?

 Thanks,
 Damian
 --
 FROM: philips.com
   DATE: 07/18/2001 08:53:43
   SUBJECT:  [JBoss-user] My app deploys but lookup from servlet won't
 work ! HELP !


   Hello,

   I'm a newbye with JBoss and J2EE deployment and it's the first web-app
 I try
   to deploy with JBoss ans EmbeddedTomcat (JBoss 2.2 + Tomcat 3.2.1).

   I have made following archives :
- First, a jar containg my session beans and the enitty
 interfaces
   they're using (entites are in
another jar). When I test this SB with a simple client, it works
 well
   (without the following archives).
- Then, a war containg my servlets, web pages and the interfaces
 of session beans.
- Finally, a ear archive with an application.xml for my modules.

   During the deployment of this ear archive, everything seems to go
 well.
   I've got this messages :
   ...
   [Auto deploy] Auto deploy of
 file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear
   [J2EE Deployer Default] Deploy J2EE application:
 file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear
   [J2EE Deployer Default] Create application frontend.ear
   [J2EE Deployer Default] inflate and install module web-app.war
   [J2EE Deployer Default] install module ejb-app.jar
   [J2EE Deployer Default] add all ejb jar files to the common classpath
   [J2EE Deployer Default] Starting module web-app.war
   2001-07-18 05:34:19 - ContextManager: Adding context Ctx( /frontend )
   [Container factory]
 Deploying:file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear
   [Verifier] Verifying
 file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear/ejb1002.jar
   [Verifier]
   Bean   : SphfGeneratorBean
   Method : public abstract SphfGenerator create() throws
 CreateException, RemoteException
   Section: 6.10.6
   Warning: The method return values in the home interface must be of
 valid
   types for RMI/IIOP.
   [Container factory] Deploying SphfGeneratorBean
   [Container factory] Deployed application:
 file:/C:/Devlpt/jboss-2.2/tmp/deploy/Default/frontend.ear
   [J2EE Deployer Default] J2EE application:
 file:/C:/Devlpt/jboss-2.2/deploy/frontend.ear
   is deployed.
   ...

   This warning doesn't bother me (first time i deploy my session beans,
 i
   already get it but everything was fine).
   When I launch my simple client, everything works fine !

   But, when I try a servlet, I've got the following exception thrown :

   2001-07-18 05:34:39 - Ctx( /frontend ): Exception in: R( /frontend +
 /servlet/DisplayPlansServlet
   + null) - java.lang.NoClassDefFoundError: $Proxy6
   at
 sun.reflect.GeneratedSerializationConstructorAccessor66.newInstance(Unknown
   Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at java.io.ObjectStreamClass.newInstance(Unknown Source)
   at java.io.ObjectInputStream.readOrdinaryObject(Unknown
 Source)
   at java.io.ObjectInputStream.readObject0(Unknown Source)
   at java.io.ObjectInputStream.readObject(Unknown Source)
   at java.rmi.MarshalledObject.get(Unknown Source)
   at
 org.jnp.interfaces.NamingContext.lookup(NamingContext.java:299)
   at
 org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
   at javax.naming.InitialContext.lookup(Unknown Source)
   at
 
pcc.intranet.frontend.sphf.servlet.DisplayPlansServlet.init(pcc/intranet/frontend/sphf/servlet/DisplayPlansServlet.java:87)
   at
 org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
   .

   The code in my servlet is just a lookup to my session bean (and
 interface
   classes are in Web-inf/classes).
   Why does 

[JBoss-user] Transaction support in JBoss 2.2.2

2001-07-20 Thread Jayakumar


I have two questions.  Can anyone help me please.  Sorry if this question is
asked before.

1)  How to get the transaction of an entity bean which is running on JBoss
hosted in another machine.
Is it possible to do like following,

Context ctx = ...  //getting the context of other machine's
jboss context
UserTransaction ut = (UserTransaction) ctx.lookup( ? );
//what to fill in the place of
? is it java:com/UserTransaction or anything else.


2)  Whether JBoss 2.2.2 supports nested transactions (including the
transactions which is obtained from another jboss instance).

Thanks in advance.


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



RE: [JBoss-user] jboss/tomcat with Xalan Xerces ?

2001-07-20 Thread Maraya Michael


Try putting xerces.jar and xalan.jar in the /lib directory inside
your EAR file then add the following Class-Path entry to your EJB jar and/or
WAR file's manifest:

Manifest-Version: 1.0
Class-Path: lib/xerces.jar lib/xalan.jar 

Remeber to add a new line after the last line (a Java bug requires
this).

---
Michael R. Maraya

 --
 From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Friday, July 20, 2001 4:47 AM
 To:   [EMAIL PROTECTED]
 Subject:  [JBoss-user] jboss/tomcat with Xalan  Xerces ?
 
 I need the packages in xalan.jar and xerces.jar  to  execute my Entity
 Bean.
 
 I don't find the way to indicate to my  JBoss-2.2.2/Tomcat-3.2.2   server
 how  to find them in execution of my JSP.
 
 
 If somebody had this problem ? or anybody's suggestions..
 
 thanks.
 
 
 I already tried with puting these jars in jboss/lib/  tomcat/lib , even i
 tried with making a lib/ directory in the WEB-INF/ directory of my .war
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

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



RE: [JBoss-user] JBoss Shutdown - On its own??

2001-07-20 Thread Maraya Michael


Maybe you logged in, started JBoss in the foreground, then logged
out?

---
Michael R. Maraya

 --
 From: Lex[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Friday, July 20, 2001 9:03 AM
 To:   [EMAIL PROTECTED]
 Subject:  [JBoss-user] JBoss Shutdown - On its own??
 
  
 What could cause JBoss to initiate a Shutdown on its own??
  
 We have JBoss 2.4 Beta (2_4_0_6) on RedHat 7.0 JRE 1.3.03 an it appears to
 shut down on its own for no apparent reason.  I see in the log it is as if
 some issuesd a shutdown on the server (but this is not the case).  This is
 very strange - any ideas??
  
 

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



RE: [JBoss-user] dtd references in .xml files

2001-07-20 Thread Maraya Michael


How about combining the two by having a http reference to 127.0.0.1?
That way, you don't have to be on the Internet and you can dynamically
determine the physical location of the DTDs by modifying your webserver's
configuration.

---
Michael R. Maraya

 --
 From: Pat McGibbon[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Friday, July 20, 2001 9:03 AM
 To:   [EMAIL PROTECTED]
 Subject:  [JBoss-user] dtd references in .xml files
 
 JBoss-2.2.2_Tomcat-3.2.2
 Windows 2000 sp1
 
 Newbie question.
 
 When I am deploying an ear file, JBoss tries to resolve dtd references in 
 application.xml in the ear file, and ejb-jar.xml in ejb jar files.
 
 If I have the reference as an http:// ref, this implies that I can only 
 deploy on a machine that can 'see out' to the net.
 
 If I have the reference as a file:/// ref, this implies that I have a 
 hard-coded reference to the location of my dtd files that is bound to vary
 
 on other machines on which I deploy.
 
 Short of the deployer unpacking and editing the .xml files within my .ear 
 file, is there any way of making my .ear file more generally deployable?  
 Or, can JBoss be configured not to try and resolve the dtd references?
 
 Either I have missed something obvious through lack of experience (I hope 
 so) or this is a bit of a flaw in either the J2EE spec or the way JBoss 
 implements it.
 
 Hope someone can help.
 
 Regards,
 Pat McGibbon.
 
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

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



[JBoss-user] How by pass security ( TOMCAT - JONAS )

2001-07-20 Thread Jaime Gomez

I test the example of JONAS by servlet, but i need to test whitout the 
box security, what i need to modify in the file of setup ?
Jaime

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



Re: [JBoss-user] Connection is broken

2001-07-20 Thread Burkhard Vogel

Hi,
I think maybe you are pushing hypersonic to hard. Try another DB, like
postgresql.
Burkhard
- Original Message -
From: Nicolas Ocquidant [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 2:29 PM
Subject: [JBoss-user] Connection is broken


 --already posted on the forum but no answer and i don't know what to
 do--

 Hi all !

 I'm trying to use JBoss and hsql with heavy data (succession of 3D
 blocks which could have 1000*1000*200 points with properties associated
 with...).
 So i have object with big persitent attributes (to try to limit db
 access)
 To initialize my data, i build arrays client side and i try to update
 the corresponding entity bean (with a set method).
 With 10*10*3 blocks, all is ok.
 With 50*50*10 blocks, all goes wrong.

 If someone could help me ...
 The exception is:

 -Client side-
 [java] java.lang.reflect.UndeclaredThrowableException:
 javax.transaction.RollbackException: Unable to commit, tx=XidImpl
 [FormatId=257,
 GlobalId=grsun51//11, BranchQual=] status=STATUS_ROLLEDBACK
 [java] at

sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
all.java:245)

 [java] at
 sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)

 [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
 [java] at
 org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown

 Source)
 [java] at

org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:18
2)

 [java] at $Proxy4.setPoints(Unknown Source)
 [java] at com.geomath.t3d.TestClient.buildBlock4D(TestClient.java:308)
 [java] at com.geomath.t3d.TestClient.main(TestClient.java:497)


 --Server side--
 [PointsBean] java.rmi.ServerException: Store failed; nested exception
 is:
 [PointsBean] java.sql.SQLException: Connection is broken
 [PointsBean] java.sql.SQLException: Connection is broken
 [PointsBean] at org.hsql.Trace.getError(Trace.java:124)
 [PointsBean] at org.hsql.Trace.getError(Trace.java:115)
 [PointsBean] at org.hsql.Trace.error(Trace.java:130)
 [PointsBean] at
 org.hsql.jdbcConnection.executeHSQL(jdbcConnection.java:642)
 [PointsBean] at org.hsql.jdbcConnection.execute(jdbcConnection.java:540)

 [PointsBean] at
 org.hsql.jdbcStatement.fetchResult(jdbcStatement.java:499)
 [PointsBean] at
 org.hsql.jdbcStatement.executeUpdate(jdbcStatement.java:52)
 [PointsBean] at

org.hsql.jdbcPreparedStatement.executeUpdate(jdbcPreparedStatement.java:114)

 [PointsBean] at

org.opentools.minerva.jdbc.PreparedStatementInPool.executeUpdate(PreparedSta
tementInPool.java:82)

 [PointsBean] at

org.jboss.ejb.plugins.jaws.jdbc.JDBCUpdateCommand.executeStatementAndHandleR
esult(JDBCUpdateCommand.java:49)

 [PointsBean] at

org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:160
)

 [PointsBean] at

org.jboss.ejb.plugins.jaws.jdbc.JDBCStoreEntityCommand.execute(JDBCStoreEnti
tyCommand.java:97)

 [PointsBean] at

org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.storeEntity(JAWSPersistenc
eManager.java:156)

 [PointsBean] at

org.jboss.ejb.plugins.CMPPersistenceManager.storeEntity(CMPPersistenceManage
r.java:401)

 [PointsBean] at

org.jboss.ejb.plugins.EntitySynchronizationInterceptor$InstanceSynchronizati
on.beforeCompletion(EntitySynchronizationInterceptor.java:342)

 [PointsBean] at
 org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1228)
 [PointsBean] at org.jboss.tm.TxCapsule.commit(TxCapsule.java:322)
 [PointsBean] at
 org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
 [PointsBean] at

org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:318)

 [PointsBean] at
 org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
 [PointsBean] at

org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:19
0)

 [PointsBean] at
 org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
 [PointsBean] at
 org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323)
 [PointsBean] at

org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:392)

 [PointsBean] at java.lang.reflect.Method.invoke(Native Method)
 [PointsBean] at
 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
 [PointsBean] at sun.rmi.transport.Transport$1.run(Transport.java:142)
 [PointsBean] at java.security.AccessController.doPrivileged(Native
 Method)
 [PointsBean] at
 sun.rmi.transport.Transport.serviceCall(Transport.java:139)
 [PointsBean] at
 sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)

 [PointsBean] at

sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43)

 [PointsBean] at java.lang.Thread.run(Thread.java:484)


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


___
JBoss-user mailing list
[EMAIL PROTECTED]

RE: [JBoss-user] JBoss Shutdown - On its own??

2001-07-20 Thread Lex




No such luck - we always start it with the run.sh which runs 
it in the background. Good thought though.
Thanx for the reply,
Mike


 Maybe you logged in, started JBoss in the foreground, then logged
 out?
 ---
 Michael R. Maraya
 --
 From: Lex[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Friday, July 20, 2001 9:03 AM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] JBoss Shutdown - On its own??


 What could cause JBoss to initiate a Shutdown on its own??

We have JBoss 2.4 Beta (2_4_0_6) on RedHat 7.0 JRE 1.3.03 an it 
appears to
shut down on its own for no apparent reason. I see in the log it is 
as if
some issuesd a shutdown on the server (but this is not the case). 
This is
very strange - any ideas??




RE: [JBoss-user] dbase is acting way too slow

2001-07-20 Thread Grobe, Gary

I don't want to use an Oracle URL for a Postgresql DB. I'm wanting to know
why the URL's ppl have suggested to me are a bit different than mine and
maybe if I'm leaving something out.

I can connect w/ the URL this URL from servlets:
jdbc:postgresql:acais

But now that I've learned w/ app-servers/jboss you don't make the
connections like that, I'm using a DataSource. 

I don't get any errors or exceptions of any kind. But I know my queries
shouldn't be this slow. 10-20 secs per query and I'm using a test dbase w/
like 10 records in it. So as was mentioned in a previous e-mail, I don't
think the connection pooling is yet being used and/or conf'd correctly.

I've posted the server output before. I get no errors or exceptions. I'm
running on an AMD450 w/ 128Mb. I've had a slower configuration of this same
application work in subsecond times on this same box w/ other app servers.
So something is still wrong w/ my configuration.

-Original Message-
From: Burkhard Vogel [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 3:44 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] dbase is acting way too slow


Hi,
why do you want to use an oracle url for a postgresql DB??? If you can
connect with the url you specified:
 attribute name=URLjdbc:postgresql:acais://localhost:5432/attribute
this is fine! what is the exception you get during startup? NPE? do you see
your driver is loaded by the JDBC provider?
What in't working if you use the above URL?
Burkhard

- Original Message -
From: G.L. Grobe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 10:38 AM
Subject: Re: [JBoss-user] dbase is acting way too slow


 Since I still don't seem to be connecting to the pool, still working on
 this.

 What should the attribute name=URL ... of the jboss.jcml file be. I
 don't understand the url parts. Chptr 3 says it's the JDBC URL used to
 connect to the data source. When making my own connections, it used to be:

 jdbc:postgresql:acais where 'acais' is my database name. So I have ...
 attribute name=URLjdbc:postgresql:acais://localhost:5432/attribute

 Then I saw this example as was suggested.

 attribute name=URLjdbc:oracle:thin:@pluto:1521:servsoft/attribute

 1. // or @ (actually tried both ways, same results, slow)
 2. what's the servsoft after the port #.

 Also, from an example that was sent ... what is 'access' in the res-name
 below, where'd that come from.
 -
  resource-managers
  resource-manager
 res-class=org.jboss.ejb.deployment.JDBCResource
  res-namejdbc/access/res-name
  res-jndi-namejava:/MyDB/res-jndi-name
  /resource-manager
  /resource-managers

 enterprise-beans
entity
ejb-nameMyBean/ejb-name
jndi-namemy/MyBeanHome/jndi-name
configuration-name/configuration-name
resource-ref
res-ref-namejdbc/MyDB/res-ref-name
resource-namejdbc/access/resource-name
/resource-ref
   /entity
 /enterprise-beans



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


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

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



[JBoss-user] deploying JBoss

2001-07-20 Thread Ludovic Orban

Hi,

JBoss is starting many services that I don't need by default. Is it 
possible to remove some of them for deploying a version with only the 
services that I need ?

Examples on unwanted features are InstantDB and Hypersonic.

Is there also a way to run the JMS engine alone ?

Thanks,
Ludovic



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



Re: [JBoss-user] dbase is acting way too slow

2001-07-20 Thread Burkhard Vogel

Hi,
so how do you get your connections?
You are doing a lookup on a DataSource Object
Using Datasource.getConnection is slow Is that what you are saying???
access IS AN EXAMPLE. name it as you like, yust make sure both occurences of
access get changed to whatever you need.
Procedure is: you map your db to a resource manager and use the resource
manager in your beans...
AND buy more RAM!!! It'll help heaps. Guess RAM on integrated
Development/Server/Database machines should be 256 MB.
Burkhard
- Original Message -
From: Grobe, Gary [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 7:16 PM
Subject: RE: [JBoss-user] dbase is acting way too slow


 I don't want to use an Oracle URL for a Postgresql DB. I'm wanting to know
 why the URL's ppl have suggested to me are a bit different than mine and
 maybe if I'm leaving something out.

 I can connect w/ the URL this URL from servlets:
 jdbc:postgresql:acais

 But now that I've learned w/ app-servers/jboss you don't make the
 connections like that, I'm using a DataSource.

 I don't get any errors or exceptions of any kind. But I know my queries
 shouldn't be this slow. 10-20 secs per query and I'm using a test dbase w/
 like 10 records in it. So as was mentioned in a previous e-mail, I don't
 think the connection pooling is yet being used and/or conf'd correctly.

 I've posted the server output before. I get no errors or exceptions. I'm
 running on an AMD450 w/ 128Mb. I've had a slower configuration of this
same
 application work in subsecond times on this same box w/ other app servers.
 So something is still wrong w/ my configuration.

 -Original Message-
 From: Burkhard Vogel [mailto:[EMAIL PROTECTED]]
 Sent: Friday, July 20, 2001 3:44 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [JBoss-user] dbase is acting way too slow


 Hi,
 why do you want to use an oracle url for a postgresql DB??? If you can
 connect with the url you specified:
  attribute name=URLjdbc:postgresql:acais://localhost:5432/attribute
 this is fine! what is the exception you get during startup? NPE? do you
see
 your driver is loaded by the JDBC provider?
 What in't working if you use the above URL?
 Burkhard

 - Original Message -
 From: G.L. Grobe [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, July 20, 2001 10:38 AM
 Subject: Re: [JBoss-user] dbase is acting way too slow


  Since I still don't seem to be connecting to the pool, still working on
  this.
 
  What should the attribute name=URL ... of the jboss.jcml file be. I
  don't understand the url parts. Chptr 3 says it's the JDBC URL used to
  connect to the data source. When making my own connections, it used to
be:
 
  jdbc:postgresql:acais where 'acais' is my database name. So I have ...
  attribute name=URLjdbc:postgresql:acais://localhost:5432/attribute
 
  Then I saw this example as was suggested.
 
  attribute name=URLjdbc:oracle:thin:@pluto:1521:servsoft/attribute
 
  1. // or @ (actually tried both ways, same results, slow)
  2. what's the servsoft after the port #.
 
  Also, from an example that was sent ... what is 'access' in the res-name
  below, where'd that come from.
  -
   resource-managers
   resource-manager
  res-class=org.jboss.ejb.deployment.JDBCResource
   res-namejdbc/access/res-name
   res-jndi-namejava:/MyDB/res-jndi-name
   /resource-manager
   /resource-managers
 
  enterprise-beans
 entity
 ejb-nameMyBean/ejb-name
 jndi-namemy/MyBeanHome/jndi-name
 configuration-name/configuration-name
 resource-ref
 res-ref-namejdbc/MyDB/res-ref-name
 resource-namejdbc/access/resource-name
 /resource-ref
/entity
  /enterprise-beans
 
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user


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

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


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



[JBoss-user] jboss on HP-UX 11.0 under JDK 1.3/1.3.1

2001-07-20 Thread Alexander Kogan

Hello,

I'm just wondering, is anybody succeeded in 
running JBoss 2.2.2 - 2.4.x on HP-UX 11.0
under JDK 1.3 or 1.3.1beta?

Actually the problems appear on shutdown -
jboss hangs in the middle.
Curiously enough, we have similar a similar problem 
with tomcat shutdown. 

I suspect that it's a HP JDK fault, but want to
be sure.

Thanks in advance.
Alex.

P.S. Unfortunately HP becomes our major platform
and we really need to clear it up.



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

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



RE: [JBoss-user] deploying JBoss

2001-07-20 Thread Maraya Michael


You should be able to turn off InstantDB and Hypersonic by modifying
the jboss.jcml file in your configuration directory.  Just comment out the
parts you don't need.

---
Michael R. Maraya

 --
 From: Ludovic Orban[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Friday, July 20, 2001 1:23 PM
 To:   [EMAIL PROTECTED]
 Subject:  [JBoss-user] deploying JBoss
 
 Hi,
 
 JBoss is starting many services that I don't need by default. Is it 
 possible to remove some of them for deploying a version with only the 
 services that I need ?
 
 Examples on unwanted features are InstantDB and Hypersonic.
 
 Is there also a way to run the JMS engine alone ?
 
 Thanks,
 Ludovic
 
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 http://lists.sourceforge.net/lists/listinfo/jboss-user
 

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



RE: [JBoss-user] Transaction support in JBoss 2.2.2

2001-07-20 Thread Bill Burke

JBoss 2.2.2 does not support distributed or nested transactions.  JBoss 2.4
and 2.5(mainline) I think are integrated with a distributed transaction
manager, but I don't know how good or complete the integration is, but
definately does not support nested transactions.

Bill

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Jayakumar
 Sent: Friday, July 20, 2001 11:41 AM
 To: [EMAIL PROTECTED]
 Subject: [JBoss-user] Transaction support in JBoss 2.2.2
 Importance: High



 I have two questions.  Can anyone help me please.  Sorry if this
 question is
 asked before.

 1)  How to get the transaction of an entity bean which is running on JBoss
 hosted in another machine.
 Is it possible to do like following,

 Context ctx = ...  //getting the context of other
 machine's
 jboss context
 UserTransaction ut = (UserTransaction) ctx.lookup( ? );
 //what to fill in the place of
 ? is it java:com/UserTransaction or anything else.


 2)  Whether JBoss 2.2.2 supports nested transactions (including the
 transactions which is obtained from another jboss instance).

 Thanks in advance.


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




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



[JBoss-user] Control+C on server console

2001-07-20 Thread Boris Garbuzov

My JBoss often hangs, and I found a remidy to hit Control+C on its console.
Usually first hit helps it move from hanging and second kills the process. Now
it went worse and it does not react on second Control+C hit. It seems
intermittent. I am using Windows 2000 and Sun's JDK1.3. Should I re-downloand
and re-install JBoss? Change anything else?


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



Re: [JBoss-user] deploying JBoss

2001-07-20 Thread Michael Jara

You will also need to remove or rename your jboss-auto.jcml.  (At least,
that is true as of release 2.2.2.)  If you don't do this, JBoss will look
for Hypersonic and you'll get errors on startup.

Mike

- Original Message -
From: Maraya Michael [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 12:24 PM
Subject: RE: [JBoss-user] deploying JBoss



 You should be able to turn off InstantDB and Hypersonic by modifying
 the jboss.jcml file in your configuration directory.  Just comment out the
 parts you don't need.

 ---
 Michael R. Maraya

  --
  From: Ludovic Orban[SMTP:[EMAIL PROTECTED]]
  Reply To: [EMAIL PROTECTED]
  Sent: Friday, July 20, 2001 1:23 PM
  To: [EMAIL PROTECTED]
  Subject: [JBoss-user] deploying JBoss
 
  Hi,
 
  JBoss is starting many services that I don't need by default. Is it
  possible to remove some of them for deploying a version with only the
  services that I need ?
 
  Examples on unwanted features are InstantDB and Hypersonic.
 
  Is there also a way to run the JMS engine alone ?
 
  Thanks,
  Ludovic
 
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  http://lists.sourceforge.net/lists/listinfo/jboss-user
 

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



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



[JBoss-user] Problem with Handle.getObject() and Resin

2001-07-20 Thread Laurens M. Fridael

Hi,


I'm going to use JBoss/Tomcat for production but want to use Resin for
development because Resin is much easier to test and develop servlets with.
However, I get an error when I call Handle.getEJBObject(). (Looking up, and
working with, Home interfaces works fine.)

This is the code in my test JSP:

Object ref=new
javax.naming.InitialContext().lookup(java:comp/env/HelloEJB);
HelloHome home=(HelloHome)ref; // Should use PortableRemoteObject.narrow(),
but casting also works with JBoss
Hello hello=home.create(); // This works. The session bean is created.
hello.getHandle().getEJBObject(); // This yields an error, see the
stacktrace below

This is the exception stacktrace:

java.rmi.ServerException: Could not get EJBObject; nested exception is:

com.caucho.naming.NamingExceptionWrapper: java.lang.ClassNotFoundException:
com.sun.jndi.url.HelloEJB.HelloEJBURLContextFactory
java.lang.ClassNotFoundException:
com.sun.jndi.url.HelloEJB.HelloEJBURLContextFactory
at
com.caucho.util.DynamicClassLoader.loadClass(DynamicClassLoader.java:390)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at com.caucho.util.CauchoSystem.loadClass(CauchoSystem.java:359)
at com.caucho.naming.SchemeContext.getURLObject(SchemeContext.java:286)
at com.caucho.naming.SchemeContext.lookup(SchemeContext.java:116)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at
org.jboss.ejb.plugins.jrmp.interfaces.StatelessHandleImpl.getEJBObject(State
lessHandleImpl.java:48)
at _hello__jsp._jspService(/hello.jsp:18)
at com.caucho.jsp.JavaPage.service(JavaPage.java:87)
at com.caucho.jsp.JavaPage.subservice(JavaPage.java:81)
at com.caucho.jsp.Page.service(Page.java:398)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:166)
at com.caucho.server.http.Invocation.service(Invocation.java:272)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
at
com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
at java.lang.Thread.run(Thread.java:484)

JBoss is linked to Resin's JNDI context this way: (This is Resin-specific
configuration.)

jndi-link
jndi-namejava:comp/env/jndi-name
jndi-factoryorg.jnp.interfaces.NamingContextFactory/jndi-factory
init-param java.naming.provider.url=localhost:1099/
/jndi-link

I sent a posting to the Resin interest list over a week ago and didn't get
any replies. Perhaps someone on this list help me out. Invoking
Handle.getEJBObject() in a standalone application works fine, BTW.


Regards
-Laurens


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



[JBoss-user] JBoss in win2k

2001-07-20 Thread Carlos Ferrão


Hi,
I was able to make JBoss work with jdk1.3...I just deleted jre1.2.
I'm trying to add a DB connection pool and I'm using the configuration I
have in Jboss2.2+Tomcat3.2.2 in Linux (It's working fine there):

jboss.jcml
!-- JDBC --
  mbean code=org.jboss.jdbc.JdbcProvider
name=DefaultDomain:service=JdbcProvider
 attribute name=Driversorg.postgresql.Driver/attribute
  /mbean

mbean code=org.jboss.jdbc.XADataSourceLoader
name=DefaultDomain:service=XADataSource,name=library
attribute name=PoolName/library/attribute
attribute
name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp
/attribute
attribute name=Properties/attribute
attribute
name=URLjdbc:postgresql://192.168.3.248:5432/library/attribute
attribute name=GCMinIdleTime120/attribute
attribute name=JDBCUserpostgres/attribute
attribute name=MaxSize10/attribute
attribute name=Passwordpostgres/attribute
attribute name=GCEnabledfalse/attribute
attribute name=InvalidateOnErrorfalse/attribute
attribute name=TimestampUsedfalse/attribute
attribute name=Blockingtrue/attribute
attribute name=GCInterval12/attribute
attribute name=IdleTimeout180/attribute
attribute name=IdleTimeoutEnabledfalse/attribute
attribute name=LoggingEnabledfalse/attribute
attribute name=MaxIdleTimeoutPercent1.0/attribute
attribute name=MinSize0/attribute
  /mbean

The driver postgresql.jar is in jboss_home/lib/ext, but when I start jboss
it hangs up:

JBOSS_CLASSPATH=;/lib/tools.jar;run.jar;../lib/crimson.jar
jboss.home =
E:\lixo\jboss2.2.2tomcat3.2.2\JBoss-2.2.2_Tomcat-3.2.2\JBoss-2.2.2_
Tomcat-3.2.2\jboss
Using JAAS LoginConfig:
file:/E:/lixo/jboss2.2.2tomcat3.2.2/JBoss-2.2.2_Tomcat-3
.2.2/JBoss-2.2.2_Tomcat-3.2.2/jboss/conf/tomcat/auth.conf
Using configuration tomcat
[Info] Java version: 1.3.0,Sun Microsystems Inc.
[Info] Java VM: Java HotSpot(TM) Client VM 1.3.0-C,Sun Microsystems Inc.
[Info] System: Windows 2000 5.0,x86
[Shutdown] Shutdown hook added
[Service Control] Registered with server
[Service Control] Initializing 26 MBeans
[Webserver] Initializing
[Webserver] Initialized
[Naming] Initializing
[Naming] Initialized
[JNDIView] Initializing
[JNDIView] Initialized
[Transaction manager] Initializing
[Transaction manager] Initialized
[JAAS Security Manager] Initializing
[JAAS Security Manager] Initialized
[JDBC provider] Initializing
[JDBC provider] Loaded JDBC-driver:org.postgresql.Driver
[JDBC provider] Initialized
[library] Initializing
[library] Initialized
[Container factory] Initializing
[Container factory] Initialized
[EmbeddedTomcatSX] Initializing
[EmbeddedTomcatSX] Initialized
[JBossMQ] Initializing
[JBossMQ] Initialized
[DefaultJMSProvider] Initializing
[DefaultJMSProvider] Initialized
[StdJMSPool] Initializing
[StdJMSPool] Initialized
[J2EE Deployer Default] Initializing
[J2EE Deployer Default] Initialized
[Auto deploy] Initializing
[Auto deploy] Initialized
[RARDeployer] Initializing
[RARDeployer] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaNoTransCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaSharedLocalCMFactory] Initialized
[ConnectionManagerFactoryLoader] Initializing
[MinervaXACMFactory] Initialized
[ConnectionFactoryLoader] Initializing
[BlackBoxDS] Initialized
[JMX RMI Adaptor] Initializing
[JMX RMI Adaptor] Initialized
[JMX RMI Connector] Initializing
[JMX RMI Connector] Initialized
[Mail Service] Initializing
[Mail Service] Initialized
[Hypersonic] Initializing
[Hypersonic] Initialized
[DefaultDS] Initializing
[DefaultDS] Initialized
[InstantDB] Initializing
[InstantDB] Initialized
[Service Control] Initialized 26 services
[Service Control] Starting 26 MBeans
[Webserver] Starting
[Webserver] Codebase set to http://raptor:8083/
[Webserver] Started webserver on port 8083
[Webserver] Started
[Naming] Starting
[Naming] Starting jnp server
[Naming] Started jnpPort=1099, rmiPort=0, Client SocketFactory=null, Server
Sock
etFactory=null
[Naming] Naming started on port 1099
[Naming] Started
[JNDIView] Starting
[JNDIView] Started
[Transaction manager] Starting
[Transaction manager] Started
[JAAS Security Manager] Starting
[JAAS Security Manager] JAAS.startService, cachePolicy=null
[JAAS Security Manager] JAAS.startService,
SecurityProxyFactory=org.jboss.securi
ty.SubjectSecurityProxyFactory@41d05d
[JAAS Security Manager] Started
[JDBC provider] Starting
[JDBC provider] Started
[library] Starting
[library] XA Connection pool library bound to java:/library

Did I miss something important ???

Thanks,
Carlos Ferrao


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



[JBoss-user] Object not found in storage

2001-07-20 Thread Carlos Ferrão



Hi,

The way I found to circumvent the problem was to temporarily use an sql
statement to access my DB directly, instead with my entity.

The CMP mapping is in the deployment descriptor ejb-jar.xml. I only added
one jaws.xml file that tells which type-mapping should use:

jaws
  datasourcelibrary/datasource
  type-mappingPostgreSQL/type-mapping
/jaws

Inserting records in another table work fine using entities.
Do I need to add anything more??

Thanks,
Carlos Ferrao


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



[JBoss-user] static hot-deploy

2001-07-20 Thread Carlos Ferrão


Is there any way to make the deploy dir of an application under jboss
deploy dir to be the same?
Whenever I put a .war file in deploy, this file is deployed under a temp
dir.
When I put a modified war over the first one, the name of the dir where my
web app is deployed changes.

I need to know the name of that dir in order to have Apache process non-JSP
files. If the deployment dir changes, I need to be always starting/stopping
apache and changing config, otherwise my html/images
/css won't be found and my site will be messed up.

Thanks in advance,
Carlos Ferrao


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



RE: [JBoss-user] commit option C doesn't work

2001-07-20 Thread Maraya Michael


Did you set the transaction type for your EJB to Required or
RequiresNew?

---
Michael R. Maraya

 --
 From: Ferguson, Doug[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Friday, July 20, 2001 4:02 PM
 To:   JBoss User (E-mail)
 Cc:   [EMAIL PROTECTED]
 Subject:  [JBoss-user] commit option C doesn't work
 
 Sorry about the cross post, but this issue ( if I have the right info)
 seems
 to break the spec..
 
 I setup a container configuration with commit option C and it never calls
 ebjLoad once
 it gets cached.
 
 What is up with that?
 
 I have read on the lists that you have to set all cache-policy-conf to
 1.
 If you have to setup addition configurations other than just setting
 commit
 option C doesn't the break spec?
 
 d.
 
 

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



[JBoss-user] check www.dbforms.org

2001-07-20 Thread Faisal Abdallah

Check www.dbforms.org  for a database driven web application  ide (jsp 
struts)
faisal


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



RE: [JBoss-user] JBoss in win2k

2001-07-20 Thread Maraya Michael


It might be a network issue -- Win2K may be filtering the ports that
Postgres needs.  Can you use Postgres from your Win2K machine outside of
JBoss?

---
Michael R. Maraya

 --
 From: Carlos Ferrão[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Friday, July 20, 2001 4:16 PM
 To:   jboss ml
 Subject:  [JBoss-user] JBoss in win2k
 
 
   I was able to make JBoss work with jdk1.3...I just deleted jre1.2.
 I'm trying to add a DB connection pool and I'm using the configuration I
 have in Jboss2.2+Tomcat3.2.2 in Linux (It's working fine there):
 
 

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



RE: [JBoss-user] jboss on HP-UX 11.0 under JDK 1.3/1.3.1

2001-07-20 Thread Semir Patel

Try 'kill -3 pid'  to get a VM dump and see if you can spot what is
potentially hanging up the shutdown process.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 2:12 PM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] jboss on HP-UX 11.0 under JDK 1.3/1.3.1



Not sure if this will help, but try all three shutdown procedures
and see if it hangs on all of them:

1) CTRL-C
2)
http://hostname:8082/InvokeAction//DefaultDomain%3Atype%3DShutdown/action=sh
utdown?action=shutdown
3) java -classpath $JBOSS_HOME/lib/ext/jboss.jar org.jboss.Shutdown
hostname

Substitute hostname as necessary.  Also, try downgrading to JDK
1.3.0 and see if you still have the problem.

Hope this helps.

---
Michael R. Maraya

 --
 From: Alexander Kogan[SMTP:[EMAIL PROTECTED]]
 Reply To: [EMAIL PROTECTED]
 Sent: Friday, July 20, 2001 2:09 PM
 To:   jBoss-user list
 Subject:  [JBoss-user] jboss on HP-UX 11.0 under JDK 1.3/1.3.1

 Hello,

 I'm just wondering, is anybody succeeded in
 running JBoss 2.2.2 - 2.4.x on HP-UX 11.0
 under JDK 1.3 or 1.3.1beta?

 Actually the problems appear on shutdown -
 jboss hangs in the middle.
 Curiously enough, we have similar a similar problem
 with tomcat shutdown.

 I suspect that it's a HP JDK fault, but want to
 be sure.

 Thanks in advance.
 Alex.

 P.S. Unfortunately HP becomes our major platform
 and we really need to clear it up.



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

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


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


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