[JBoss-user] Memory Leak!!!

2001-11-26 Thread John LYC

HI ,
i'm running JBoss-2.4.3_Tomcat-3.2.3 on redhat linux 7.1.
Jdk1.3.1_01 with j2sdkee1.2.1.

I realized there seem to be a memory leak.
i have not been able to pinpoint exactly where the leak is coming from at
this point of time and am still investigating...

currently, my application uses Jakarta Struts as well.
the memory usage will slowly increment thru the weeks.
at one point of time, the memory used by jboss was at 100MB!

the java garbage collector seem to be working..
the memory did get restored back whenever the collector is working...

at one point, after many weeks of not restarting Jboss, halfway thru a
deployment, i encounter a out of memory exception.

another colleague of mine has a diff and very simple application that
basically read data  from text file and update the database. his apps is
running on another server altogether and he is having the same issue too. so
much so that the infra-structure guys are complaining abt the memory usage.


i also do not know if it is the way the applications is being coded?
but the 2 apps and the developers involved do not work with each other at
all.

anyway, i will continue my investigation and find out more.

In the meantime, has anyone encounter similar problem?
or know of anything?

thanks
John


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



[JBoss-user] Apache Webserver with Jboss

2001-11-22 Thread John LYC

Hi,
I would like to use Apache WebServer with Jboss...
so as to take away the webserver role from tomcat.
cos i remmber vaguely that i read somewhere that tomcat is not design for
providing webserver service.
performanace is not as good.

Has anyone done this before?
where can i find infomation on how to do this?

thanks
John

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



[JBoss-user] Tweak Jboss Logging level

2001-11-20 Thread John LYC

Where and how can i twaek Jboss Logging level?
thanks

John

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



[JBoss-user] Probelm with request

2001-10-25 Thread John LYC



hi ,
Sorry to post this here

anyway, i got this html page..
-snip-
form action='ship.do' name="goSelectForm" 
method="get" 
table width="100%" border="0" cellspacing="1" 
cellpadding="1" align="center" id="frame"tr id="secBody"td 
width="20"input type="checkbox" 
name="icdGoHeaderOid" value='2' 
/td
 td666/td 
tdPlant0001/td 
td25-Oct-2001/a/td td 
width="70"1 Open/td td width="70"2 
Packed/td td203.0/td 
tdinput type="text" size="5" maxlength="5" name="carrier" 
value='SIA' brinput type="text" size="12" 
maxlength="12" name="hbol" value='123456000'  
/td tdinput type="button" 
value='Update'   
/td/trtr 
id="secBody"td width="20"
 input type="checkbox" name="icdGoHeaderOid" 
value='3' /td
 td456654/td 
tdPlant0001/td 
td25-Oct-2001/a/td td 
width="70"0 Open/td td width="70"1 
Packed/td td1.88/td 
tdinput type="text" size="5" maxlength="5" 
name="carrier" value='JAL' 
brinput type="text" size="12" 
maxlength="12" name="hbol" value='789456123'  
/td tdinput type="button" 
value='Update'   
/td/tr
/table
...
--snip--

somehow, if i do not check the first checkbox (name="icdGoHeaderOid") with 
the value='2',
the values of the text elements that precede the 2nd checkbox will get 
associated with the checkbox parameter.. here is the querystring.

http://domain.com/web/ship.do?icdGoHeaderOid=SIAicdGoHeaderOid=123456000icdGoHeaderOid=3carrier=JALhbol=789456123funcId=110.02updateGoOid=goNo=formIndex=icdSoHeaderOid=2

notice the value "SIA" and "123456000" is associated with the 
icdGoHeaderOid when it should be carrier and HBOL respectively

hope i get help.. i'm totally clueless here..
Sorry again for posting it here..
please tell me a more approperiate mailing list if there is.
thanks
John


[JBoss-user] More of a tomcat/struts/java question

2001-10-19 Thread John LYC

Hi All 
Sorry guys,,, i have no where else to turn to ...
Hope i can get help here...
this could be a struts or java or even tomcat question.. i'm not sure

I'm using apache jakarta Structs with my EJB..
I have trouble forward to some of my Action classes.
tomcat log down a classNotFoundException for these classes
and i finally found the cause of the problem

those classes that doesnt work are reside in a deeper package.
package com.domain.xxx.custom.abc.view.helper;

i just move them up 2 level.
package com.domain.xxx.view.helper;
and they all work fine.

what is wrong here?
is it strut that couldn't handle more than X number of package depth?
or is it tomcat? or (unlikely) it is a j2EE restriction?

anyone knows what's going on?
Thanks
John





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



Re: [JBoss-user] RE: JBoss-user digest, Vol 1 #1568 - 11 msgs

2001-10-17 Thread John LYC

Hi Charles,
Never try out Netbeans yet...
will look at it...

But i must comment that Jbuilder is really fantastic when it comes to
generating beans codes.

john

- Original Message -
From: Charles Ng [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 16, 2001 10:53 PM
Subject: [JBoss-user] RE: JBoss-user digest, Vol 1 #1568 - 11 msgs


Hi Ivan and John,

I'm fortunate enough to have JBuilder Enterprise so I can setup JBoss to
be debugged remotely.

How entrenched are you guys with JBuilder?  Have you considered
NetBeans?

NetBeans has remote debugging as well as Ant support... and it's free.

I've played around with NetBeans 3.2.1 to evaluate it as an alternative
to JBuilder Enterprise; it appears to have a lot of the features of
JBuilder minus the $3000 price tag. :)

Charles

--__--__--

Message: 3
From: John LYC [EMAIL PROTECTED]
To: IvanLatysh [EMAIL PROTECTED],
[EMAIL PROTECTED]
Subject: Re: [JBoss-user] If someone using jBuilder and have configured
jBuilder to debug EJB with jBoss. Please help with configuration.
Date: Tue, 16 Oct 2001 15:56:04 +0800

Hi Ivan,

did you find any solutions yet?
i also need info on this..
I'm now using jbuilder to generate my CMP/BMP EJBs.
i use it for development and coding too.
but i will write my own deployment descriptor..
compile and deploy using ant.
i do not go thru Jbuilder for compiling , deploying and testing...
i will test my beans on a standalone instance of Jboss running outside
jbuilder..
very memory intensive..

BTW, i know that ant can be configure to work with Jbuilder. just dunt
know
how to do it.

Let me know if you have anything.
Thanks
John

- Original Message -
From: IvanLatysh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 12, 2001 12:56 AM
Subject: [JBoss-user] If someone using jBuilder and have configured
jBuilder
to debug EJB with jBoss. Please help with configuration.


 If someone using jBuilder and have configured jBuilder to debug EJB
with
jBoss.
 Please help with configuration.

 I have been om jBoss server and have read manual.
 But they mention some jar which I haven't.

 Please If you have seen somewhere on the web some fresh documentation
-
send me a link.

 Thank you.

 Sincerely yours, Ivan Latysh.

 [EMAIL PROTECTED]
 http://ivan.yourmail.com


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




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


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



Re: [JBoss-user] Prim-key-class must match?

2001-10-17 Thread John LYC

Check your ejb-jar.xml
the prim-key-type must match your beans prim key.

if your bean prim key is a composite key.. you most prolly create a
expensePK class.
in your xml, you must define your prim-key-type to that class...

John

- Original Message -
From: Jake Thompson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 17, 2001 10:57 AM
Subject: [JBoss-user] Prim-key-class must match?


Hi all,

Jboss 2.4.1 / Catalina / Linux RedHat 7.1 / Sun JDK 1.3.1_01

When I deploy my application, I get the following errors?


[Verifier]
Bean   : zebra/Expense
Section: 9.4.7.1
Warning: The type of the field named in the primkey-field element must match
the class in the prim-key-class element.


I get these messages for about half of my beans, I am using Xdoclet, however
all the code is prety much the same, some I get the warning and some I do
not.

Any thoughts?

Thanks,
Jake T.

PS When I try to search the archives, I get an error, so I have not looked
there first.





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


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



Re: [JBoss-user] Select COUNT????? in Entity

2001-10-16 Thread John LYC

what do you mean?
John

- Original Message -
From: Kar YEOW [EMAIL PROTECTED]
To: Jboss Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 16, 2001 2:54 PM
Subject: Re: [JBoss-user] Select COUNT? in Entity


 Try using Home Interface.  Kar
 - Original Message -
 From: John LYC [EMAIL PROTECTED]
 To: Jboss Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2001 1:08 PM
 Subject: [JBoss-user] Select COUNT? in Entity


 Hi all,
 I'm using Bean-managed Entity Beans..
 and i wanna do a sql select count..
 the thing is the finder methods in entity can only return the beans remote
 type or a collection of it.
 meaning i cannot select count .

 How do i do a sql count?

 one way to do work around i guess is to do a sql select as per normal ,
 return collection. and do a collection .size.
 but this seems redundant.
 i just wan a figure. instead i'm selecting a collection of beans

 help
 thanks
 john



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


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


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



Re: [JBoss-user] Select COUNT????? in Entity

2001-10-16 Thread John LYC

Isee...
so you do not inplement a finder methods for this...
well, i'll try it out...
Thanks... Kar

John



- Original Message -
From: Kar YEOW [EMAIL PROTECTED]
To: Jboss Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 16, 2001 3:13 PM
Subject: Re: [JBoss-user] Select COUNT? in Entity


 Have a method in your home interface say
 public interface UserHome extends EJBHome {
 int getUserCount() throws RemoteException;
 }

 then in you ejb bean class you implement the method say

 public class UserBean extends  {
 public int ejbHomeGetUserCount() {
 ... do your select count(*) sql here
... etc
 return count;
 }

 }

 hope this help.  Kar
 - Original Message -
 From: John LYC [EMAIL PROTECTED]
 To: Kar YEOW [EMAIL PROTECTED]; Jboss Mailing List
 [EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2001 5:14 PM
 Subject: Re: [JBoss-user] Select COUNT? in Entity


 what do you mean?
 John

 - Original Message -
 From: Kar YEOW [EMAIL PROTECTED]
 To: Jboss Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2001 2:54 PM
 Subject: Re: [JBoss-user] Select COUNT? in Entity


  Try using Home Interface.  Kar
  - Original Message -
  From: John LYC [EMAIL PROTECTED]
  To: Jboss Mailing List [EMAIL PROTECTED]
  Sent: Tuesday, October 16, 2001 1:08 PM
  Subject: [JBoss-user] Select COUNT? in Entity
 
 
  Hi all,
  I'm using Bean-managed Entity Beans..
  and i wanna do a sql select count..
  the thing is the finder methods in entity can only return the beans
remote
  type or a collection of it.
  meaning i cannot select count .
 
  How do i do a sql count?
 
  one way to do work around i guess is to do a sql select as per normal
,
  return collection. and do a collection .size.
  but this seems redundant.
  i just wan a figure. instead i'm selecting a collection of beans
 
  help
  thanks
  john
 
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 


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


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



Re: [JBoss-user] F1 F1 F1 F1 F1 F1 F1 F1

2001-10-16 Thread John LYC

Go Download the EnterPrise JavaBeans Specification v1.1
from Sun websites..
there is a section called deployment descriptor..
it contains the DTD and also a sample file where all tags are defined.
hope this helps

John
- Original Message - 
From: ajit [EMAIL PROTECTED]
To: User @ JBoss [EMAIL PROTECTED]
Sent: Friday, October 12, 2001 1:28 PM
Subject: [JBoss-user] F1 F1 F1 F1 F1 F1 F1 F1


 Hi everybody;
 Here are few element in the ejb-jar.xml, i could not under stand in
 which condition i should defined in my DD and even if i want to defined
 what should be the values.
 Element names are
 
 assembly-descriptor
 env-entry
 security-role-ref
 security-identity
 resource-ref
 resource-env-ref
 
 Please provide simple example with child element ,I am  new for EJB.. As
 
 per SUN DTD all these tags are optional, but first i want to know where
 we should use and what will be the values of these tag as well as the
 values of child tag.
 
 PLEASE PROVIDE SOME EXAMPLE OF DD,  WHERE ALL THESE TAGS ARE DEFINED.
 
 Thanks
 Ajit
 Have a nice day
 
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 

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



Re: [JBoss-user] Select COUNT????? in Entity

2001-10-16 Thread John LYC

Sorry to trouble again...
Just wanna know is there a implemtation specs to follow...

such that the method must starts with ejbHomeXXX();

John

- Original Message -
From: Kar YEOW [EMAIL PROTECTED]
To: Jboss Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 16, 2001 3:13 PM
Subject: Re: [JBoss-user] Select COUNT? in Entity


 Have a method in your home interface say
 public interface UserHome extends EJBHome {
 int getUserCount() throws RemoteException;
 }

 then in you ejb bean class you implement the method say

 public class UserBean extends  {
 public int ejbHomeGetUserCount() {
 ... do your select count(*) sql here
... etc
 return count;
 }

 }

 hope this help.  Kar
 - Original Message -
 From: John LYC [EMAIL PROTECTED]
 To: Kar YEOW [EMAIL PROTECTED]; Jboss Mailing List
 [EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2001 5:14 PM
 Subject: Re: [JBoss-user] Select COUNT? in Entity


 what do you mean?
 John

 - Original Message -
 From: Kar YEOW [EMAIL PROTECTED]
 To: Jboss Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2001 2:54 PM
 Subject: Re: [JBoss-user] Select COUNT? in Entity


  Try using Home Interface.  Kar
  - Original Message -
  From: John LYC [EMAIL PROTECTED]
  To: Jboss Mailing List [EMAIL PROTECTED]
  Sent: Tuesday, October 16, 2001 1:08 PM
  Subject: [JBoss-user] Select COUNT? in Entity
 
 
  Hi all,
  I'm using Bean-managed Entity Beans..
  and i wanna do a sql select count..
  the thing is the finder methods in entity can only return the beans
remote
  type or a collection of it.
  meaning i cannot select count .
 
  How do i do a sql count?
 
  one way to do work around i guess is to do a sql select as per normal
,
  return collection. and do a collection .size.
  but this seems redundant.
  i just wan a figure. instead i'm selecting a collection of beans
 
  help
  thanks
  john
 
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 


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


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



Re: [JBoss-user] If someone using jBuilder and have configured jBuilder to debug EJB with jBoss. Please help with configuration.

2001-10-16 Thread John LYC

Hi Ivan,

did you find any solutions yet?
i also need info on this..
I'm now using jbuilder to generate my CMP/BMP EJBs.
i use it for development and coding too.
but i will write my own deployment descriptor..
compile and deploy using ant.
i do not go thru Jbuilder for compiling , deploying and testing...
i will test my beans on a standalone instance of Jboss running outside
jbuilder..
very memory intensive..

BTW, i know that ant can be configure to work with Jbuilder. just dunt know
how to do it.

Let me know if you have anything.
Thanks
John

- Original Message -
From: IvanLatysh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 12, 2001 12:56 AM
Subject: [JBoss-user] If someone using jBuilder and have configured jBuilder
to debug EJB with jBoss. Please help with configuration.


 If someone using jBuilder and have configured jBuilder to debug EJB with
jBoss.
 Please help with configuration.

 I have been om jBoss server and have read manual.
 But they mention some jar which I haven't.

 Please If you have seen somewhere on the web some fresh documentation -
send me a link.

 Thank you.

 Sincerely yours, Ivan Latysh.

 [EMAIL PROTECTED]
 http://ivan.yourmail.com


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


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



Re: [JBoss-user] Select COUNT????? in Entity

2001-10-16 Thread John LYC

Got It...
Thanks

John
- Original Message - 
From: Joost v.d. Wijgerd [EMAIL PROTECTED]
To: John LYC [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, October 16, 2001 3:31 PM
Subject: RE: [JBoss-user] Select COUNT? in Entity


Hi,

You're doing a BMP bean, so you work with jdbc already, why don't you
just define a method count() on the bean and call SELECT COUNT * FROM
blabla on the datasource

In my opinion you don't have to use only findBYXXX methods...

Joost.

-Original Message-
From: John LYC [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 16, 2001 5:08 AM
To: Jboss Mailing List
Subject: [JBoss-user] Select COUNT? in Entity


Hi all,
I'm using Bean-managed Entity Beans..
and i wanna do a sql select count..
the thing is the finder methods in entity can only return the beans
remote
type or a collection of it.
meaning i cannot select count .

How do i do a sql count?

one way to do work around i guess is to do a sql select as per normal
,
return collection. and do a collection .size.
but this seems redundant.
i just wan a figure. instead i'm selecting a collection of beans

help
thanks
john



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

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


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



[JBoss-user] Select COUNT????? in Entity

2001-10-15 Thread John LYC

Hi all,
I'm using Bean-managed Entity Beans..
and i wanna do a sql select count..
the thing is the finder methods in entity can only return the beans remote
type or a collection of it.
meaning i cannot select count .

How do i do a sql count?

one way to do work around i guess is to do a sql select as per normal ,
return collection. and do a collection .size.
but this seems redundant.
i just wan a figure. instead i'm selecting a collection of beans

help
thanks
john



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



[JBoss-user] 404 error at www.jboss.org

2001-10-08 Thread John LYC

Hi all,

FYI
I get a 404 error at the updated jboss.org.

John


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



Re: [JBoss-user] Another Warning from Jboss verifier during deployement...

2001-10-08 Thread John LYC

Right..
My ejb-jar, i declared my prim-key-class.. as string..
i guess that's not correct in my case...
should return the respective... StatePK?

john


- Original Message -
From: Nguyen Thanh Phong [EMAIL PROTECTED]
To: John LYC [EMAIL PROTECTED]; Jboss Mailing List
[EMAIL PROTECTED]
Sent: Monday, October 08, 2001 4:51 PM
Subject: Re: [JBoss-user] Another Warning from Jboss verifier during
deployement...


 Check your ejb-jar.xml for primary-key declaration.

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

 - Original Message -
 From: John LYC [EMAIL PROTECTED]
 To: Jboss Mailing List [EMAIL PROTECTED]
 Sent: Monday, October 08, 2001 3:14 PM
 Subject: [JBoss-user] Another Warning from Jboss verifier during
 deployement...


  Hi all,
  it's me again.
  This time i encounter a warning...
  my EJB still working...
 
  here is the warning..
  snip
  [Verifier]
  Bean   : ejb/entity/State
  Method : public StatePK ejbFindByPrimaryKey(StatePK) throws
 FinderException
  Section: 9.2.5
  Warning: The return type of the ejbFindByPrimaryKey method must be the
  primary key type.
  ---/snip---
 
  i checked the ejbFindByPrimaryKey method, it returns my primarykey
 class...
  --snip--
  public StatePK ejbFindByPrimaryKey(StatePK key) throws FinderException {
Connection connection = null;
PreparedStatement statement = null;
try {
 connection = dataSource.getConnection();
 statement = connection.prepareStatement(SELECT COUNTRY_CODE FROM
  dbo.STATE WHERE COUNTRY_CODE = ? AND STATE_CODE = ?);
 statement.setString(1, key.countryCode);
 statement.setString(2, key.stateCode);
 ResultSet resultSet = statement.executeQuery();
 if (!resultSet.next()) {
  throw new FinderException(Primary key does not exist);
 }
 statement.close();
 statement = null;
 connection.close();
 connection = null;
 return key;
}
catch(SQLException e) {
 throw new EJBException(Error executing SQL SELECT COUNTRY_CODE FROM
  dbo.STATE WHERE COUNTRY_CODE = ? AND STATE_CODE = ?:  + e.toString());
}
finally {
 try {
  if (statement != null) {
   statement.close();
  }
 }
 catch(SQLException e) {
 }
 try {
  if (connection != null) {
   connection.close();
  }
 }
 catch(SQLException e) {
 }
}
   }
  ---/snip--
 
 
  Here is my StatePK Class code
  -snip-
  public class StatePK implements Serializable {
 
  public String countryCode;
  public String stateCode;
 
  public StatePK() {
  }
 
  public StatePK(String countryCode, String stateCode) {
  this.countryCode = countryCode;
  this.stateCode = stateCode;
  }
  public boolean equals(Object obj) {
  if (this.getClass().equals(obj.getClass())) {
  StatePK that = (StatePK) obj;
  return this.countryCode.equals(that.countryCode) 
  this.stateCode.equals(that.stateCode);
  }
  return false;
  }
  public int hashCode() {
  return (countryCode + stateCode).hashCode();
  }
  }
 
  -/snip---
 
 
  anyoneone knows wat going on?
 
  Thanks
  john
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 



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



[JBoss-user] Many instance of TomCat/Jboss running..

2001-10-08 Thread John LYC

Hi all,

I don't know why there are many instances of tomcat or jboss  (dont know
which one) running in my server..
everytime i deploy, i get  Address already bind exception...
i can rm my .jar file,
one instance will append to server log saying the jar is detroyed.
another will append to the server log saying the jar
classnotFoundException... (did not destroy, still running the jar, you see)

what's wrong?
is it a tomcat or jboss error?
my conf?

Thanks
John



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



[JBoss-user] Start Jboss with tomcat as Daemon?

2001-10-08 Thread John LYC

Hi all,
how do i start Jboss-tomcat as a daemon in linux?

john


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



Re: [JBoss-user] Start Jboss with tomcat as Daemon?

2001-10-08 Thread John LYC

Hi,
try out the link you got me..
apparently, it is buggy.
i get a org.apache.crimson
classNotFoundException...

so i included this from the run.sh.

-snip---
CLASSPATH=$CLASSPATH:$JBOSS_HOME/lib/crimson.jar
JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.Docu
mentBuilderFactoryImpl
JAXP=$JAXP -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAX
ParserFactoryImpl
-snip---

then i get a java.lang.SecurityException: Sealing violation

?
please help
Thanks

John




- Original Message -
From: Edward Q. Bridges [EMAIL PROTECTED]
To: Jboss Mailing List [EMAIL PROTECTED]; John LYC
[EMAIL PROTECTED]
Sent: Monday, October 08, 2001 10:21 PM
Subject: Re: [JBoss-user] Start Jboss with tomcat as Daemon?



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



On Mon, 8 Oct 2001 21:43:03 +0800, John LYC wrote:

Hi all,
how do i start Jboss-tomcat as a daemon in linux?



argo_tec gmbh
 ed.q.bridges
 tel. 089-368179.552
 fax 089-368179.79
 osterwaldstraße 10
 (haus F eingang 21)
 80805 münchen
/argo_tec gmbh





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



Re: [JBoss-user] Deployed ejbutils-deploy.jar, but can't find class

2001-10-08 Thread John LYC

I think it goes into your ejb-jar.xml file ..
not the jboss...

John


- Original Message -
From: David M. Karr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 08, 2001 2:10 AM
Subject: Re: [JBoss-user] Deployed ejbutils-deploy.jar, but can't find class


  Nguyen == Nguyen Thanh Phong [EMAIL PROTECTED]
writes:

 Nguyen If you deploy your beans and EJBUtils separately (i.e. they
are not in the
 Nguyen same jar file), you cannot use ejb-link in your ejb-jar.xml.
Instead, you
 Nguyen have to put the JNDI of the ejb-ref in the jboss.xml. For
example:

 Nguyen enterprise-beans
 Nguyen entity
 Nguyen ejb-nameUserBean/ejb-name
 Nguyen jndi-name[JNDI of UserBean]/jndi-name
 Nguyen configuration-nameStandard CMP
EntityBean/configuration-name
 Nguyen ejb-ref
 Nguyen
ejb-ref-nameejb/UIDHighKeyGenerator/ejb-ref-name
 Nguyen jndi-name[JNDI of
UIDHighKeyGenerator]/jndi-name
 Nguyen /ejb-ref
 Nguyen /entity

 So a block like this goes into the jboss.xml, and does anything similar
go
 into the ejb-jar.xml for my application?  I've tried three variations,
with
 no success.

 If I just put the following into my jboss.xml (I get the jndi-name value
from
 the jboss.xml from the ejbutils-deploy.jar):
 ---
   session
ejb-nameUIDHighKeyGenerator/ejb-name
jndi-nameejb/UIDHighKeyGenerator/jndi-name
configuration-name/configuration-name
   /session
 ---

 then I get the following:
 ---
 [Container factory] failed to load jboss.xml.  There could be a syntax
error.
 [Container factory] org.jboss.ejb.DeploymentException: Error in jboss.xml
for Bean UIDHighKeyGenerator: found in jboss.xml but not in ejb-jar.xml
 [Container factory] at
org.jboss.metadata.ApplicationMetaData.importJbossXml
(ApplicationMetaData.java:387)
 ---

 If I instead put the following into my application's ejb-jar.xml, inside
the
 entity element that is referencing the session bean (and not include
the
 jboss.xml block):
 ---
ejb-ref
 ejb-ref-nameejb/UIDHighKeyGenerator/ejb-ref-name
 ejb-ref-typeSession/ejb-ref-type
 jndi-nameejb/UIDHighKeyGenerator/jndi-name
 homeorg.ejbutils.uid.UIDHighKeyGeneratorHome/home
 remoteorg.ejbutils.uid.UIDHighKeyGenerator/remote
/ejb-ref
 ---

 then I get the following:
 ---
 [Container factory] org.jboss.ejb.DeploymentException: ejb-ref
ejb/UIDHighKeyGenerator, expected either ejb-link in ejb-jar.xml or
jndi-name in jboss.xml
 [Container factory] at
org.jboss.ejb.Container.setupEnvironment(Container.java:495)
 ---

 If I instead add them both, I get this, which is the same as the first
case:
 ---
 [Container factory] failed to load jboss.xml.  There could be a syntax
error.
 [Container factory] org.jboss.ejb.DeploymentException: Error in jboss.xml
for Bean UIDHighKeyGenerator: found in jboss.xml but not in ejb-jar.xml
 [Container factory] at
org.jboss.metadata.ApplicationMetaData.importJbossXml
(ApplicationMetaData.java:387)
 ---

 --
 ===
 David M. Karr  ; Best Consulting
 [EMAIL PROTECTED]   ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)


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


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



[JBoss-user] Jboss warning whenever i deploy.

2001-10-03 Thread John LYC

Hi all,
when ever i deploy my ejb.jar files...

i get the following warning from jboss.. for every entity beans in my jar
file.
the entity beans are still working properly, i can call them and manipulate
the database.

here's the error msg
snip
[Verifier] ejb/entity/Contact: Verified.
[Verifier]
Bean   : ejb/entity/Country
Method : public abstract Country findByPrimaryKey(String) throws
RemoteException, FinderException
Section: 9.2.8
Warning: All the exceptions defined in the throws clause of an ejbFind
method of the entity bean class must be included in the throws clause of the
matching find method of the home interface.
--snip-

here's my home intereface
--snip--
public interface ContactHome extends EJBHome {
public Contact create(String contactOid, String name, String company,
String address1, String address2, String city, String state, String country,
String postal, String email, String phone, String fax, String id, String
accountNo) throws RemoteException, CreateException;
public Contact create(String contactOid) throws RemoteException,
CreateException;
public Contact findByPrimaryKey(String primaryKey) throws
RemoteException, FinderException;
public Collection findAll() throws RemoteException, FinderException;
}
-snip

here's my finder method...
---snip ---
public String ejbFindByPrimaryKey(String key) throws ObjectNotFoundException
{
Connection connection = null;
PreparedStatement statement = null;
try {
connection = dataSource.getConnection();
statement = connection.prepareStatement(SELECT CONTACT_OID FROM
dbo.CONTACT WHERE CONTACT_OID = ?);
statement.setString(1, key);
ResultSet resultSet = statement.executeQuery();
if (!resultSet.next()) {
throw new ObjectNotFoundException(Primary key does not
exist);
}
statement.close();
statement = null;
connection.close();

...
...
-snip--

please help me...
thank you all..
john


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



Re: [JBoss-user] Jboss warning whenever i deploy.

2001-10-03 Thread John LYC

Thank everyone,
i will change my method signature to throws finderException...

But i agree with you guys..
it should be legal thru inheritence.

anyway, for now, i'll just do as above.
regards,
John



- Original Message -
From: Dmitri Colebatch [EMAIL PROTECTED]
To: Sacha Labourey [EMAIL PROTECTED]
Cc: John LYC [EMAIL PROTECTED]; Jboss Mailing List
[EMAIL PROTECTED]
Sent: Wednesday, October 03, 2001 8:09 PM
Subject: RE: [JBoss-user] Jboss warning whenever i deploy.


 ObjectNotFoundException is a subclass of FinderException...

 On Wed, 3 Oct 2001, Sacha Labourey wrote:

  John,
 
  I guess the message is quite clear...
 
   Section: 9.2.8
   Warning: All the exceptions defined in the throws clause of an ejbFind
   method of the entity bean class must be included in the throws
   clause of the
   matching find method of the home interface.
 
  Look at section 9.2.8 of the EJB 1.1 spec.
 
  in short: exception on finder methods of the bean must be present on
finder
  declaration of the home.
 
  Your bean finder declaration:
   public String ejbFindByPrimaryKey(String key) throws
   ObjectNotFoundException
 
  = ObjectNotFoundException may be thrown
 
  Your home declaration for this finder:
   public Contact findByPrimaryKey(String primaryKey) throws
   RemoteException, FinderException;
 
  Where is the ObjectNotFoundException declaration on this method
declaration
  of the home?
 
 
 
 
  Sacha
 
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 


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


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



[JBoss-user] Jboss default trans-attribute

2001-10-03 Thread John LYC

Hi all,

what is Jboss trans-attribute for the descriptor?

Thanks
John


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



[JBoss-user] What is my JBOSS_DIST?

2001-09-27 Thread John LYC

Hi all,
Im using jboss with tomcat.
I'm just need to confirm where my JBOSS_DIST should point to.
it is
/opt/JBoss-2.4.0_Tomcat-3.2.3
or
/opt/JBoss-2.4.0_Tomcat-3.2.3/jboss
?

thanks
John

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



Re: [JBoss-user] What is my JBOSS_DIST?

2001-09-27 Thread John LYC

thank you... sir
john
- Original Message - 
From: Imran Bohoran [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 28, 2001 12:42 PM
Subject: RE: [JBoss-user] What is my JBOSS_DIST?


 it should point to
 
 /opt/JBoss-2.4.0_Tomcat-3.2.3/jboss
 
 cheers
 
 Imran
 
 -Original Message-
 From: John LYC [mailto:[EMAIL PROTECTED]]
 Sent: Friday, September 28, 2001 9:34 AM
 To: Jboss Mailing List
 Subject: [JBoss-user] What is my JBOSS_DIST?
 
 
 Hi all,
 Im using jboss with tomcat.
 I'm just need to confirm where my JBOSS_DIST should point to.
 it is
 /opt/JBoss-2.4.0_Tomcat-3.2.3
 or
 /opt/JBoss-2.4.0_Tomcat-3.2.3/jboss
 ?
 
 thanks
 John
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 

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



Re: [JBoss-user] error runing tomcat

2001-09-24 Thread John LYC

hi ,
yes it is in unix form..
im runnning in on a linux box..

John


- Original Message -
From: Pasturel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, September 21, 2001 10:34 PM
Subject: Re: [JBoss-user] error runing tomcat


 John LYC wrote:

  hi all,
  i get this error wherever i run the run_with_tomcat.sh.
  -
  JBOSS_CLASSPATH=:/usr/j2sdk1_3_1/lib/tools.jar: is not an identifier.
  -
 
  this is due to the first line the run_with_tomcat.sh
  the path to the tools.jar is correct..
 
  when i exec run.sh.
  my jboss starts up okay.
 
  i only change the jboss.jcml in both the default and tomcat directory.
  the changes are identical...
  i have change nothing else...
  do i need to do any configuration to the tomcat conf?
 
  thanks
  john
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user

 Is your run_with_tomcat.sh in unix format ? and not in dos format ?

 --
 --
-
 Jean-Louis PASTURELmail  [EMAIL PROTECTED]
 Perso http://perso.wanadoo.fr/jean-louis.pasturel/

___




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


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



[JBoss-user] Error running jboss on Solaris.

2001-09-24 Thread John LYC

hi all,
when i exec the run_with_tomcat.sh.
i get this error msg.
-
JBOSS_CLASSPATH=/usr/j2sdk1_3_1/lib/tools.jar: is not an identifier.
-

i think it comes from the 2nd line of the run_with_tomcat.sh
-
export JBOSS_CLASSPATH=$JBOSS_CLASSPATH:$JAVA_HOME/lib/tools.jar
-

I check and the path is correct, there is a tools.jar.

John


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



[JBoss-user] Any Great JSP Tag Library

2001-09-18 Thread John LYC

Hi All,

has anyone come across a great JSP Tag library that can be use with the
current Jboss/tomcat 3.2.x ?

Thanks
john

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



Re: [JBoss-user] DB2 Connecting problem remotely

2001-09-18 Thread John LYC



check yr jboss after it has startup...
it should tell you something abt whether the 
XADatasource is started or not..
or whether yr jdbc driver is loaded...

look forthe following..
--
[JdbcProvider] Initializing[JdbcProvider] 
Loaded JDBC-driver:com.sybase.jdbc2.jdbc.SybDriver[JdbcProvider] 
Initialized
...
...
...

[JdbcProvider] Starting[JdbcProvider] 
Started[XADataSourceLoader] Starting[DefaultDS] XA Connection pool 
DefaultDS bound to java:/DefaultDS[XADataSourceLoader] Started


...

--

if you dont see the above lines..
you most likey get some error msg from 
jboss
paste it here... for everyone to have a better 
idea...

John



  - Original Message - 
  From: 
  Krishna 
  Prasad 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, September 18, 2001 2:55 
  PM
  Subject: [JBoss-user] DB2 Connecting 
  problem remotely
  
  Hi all,
  
I'm trying to get 
  connection DB2 7.1 which is in remote system.
I copied db2java.zip 
  lib/ext directory under JBoss directory. 
  
I followed the 
  document http://www.jboss.org/documentation/HTML/ch04s11.html
In jboss.jcml, added 
  code is:
  
   mbean code="org.jboss.jdbc.JdbcProvider" 
  name="DefaultDomain:service=JdbcProvider" 
  attribute 
  name="Drivers"COM.ibm.db2.jdbc.app.DB2Driver/attribute 
  /mbean mbean code="org.jboss.jdbc.XADataSourceLoader" 
  name="DefaultDomain:service=XADataSource,name=DB2DS" 
  attribute 
  name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl/attribute 
   attribute 
  name="PoolName"DB2DS/attribute 
  attribute 
  name="URL"jdbc:db2://servername:8080/demomall/attribute 
  attribute 
  name="JDBCUser"user/attribute 
  attribute name="Password"pwd/attribute 
  /mbean
   After I started 
  run_with_tomcat, i'm not able to find out whether the connection established 
  or not. I tried to run my client program, then i got errors 
  like:
package import 
  com.ibm.db2.* ; does not exist
  
   So, can anyone 
  help me out from this problem. 
  
  Thanx in advance,
  Krishna
  *DisclaimerThis 
  message (including any attachments) contains confidential information 
  intended for a specific individual and purpose, and is protected by law. 
  If you are not the intended recipient, you should delete this message 
  and are hereby notified that any disclosure, copying, or distribution of 
  thismessage, or the taking of any action based on it, is strictly 
  prohibited.*Visit 
  us at http://www.mahindrabt.com


[JBoss-user] differences btw JBoss_w_tomcat and non-integrated?

2001-09-18 Thread John LYC

Hi all,

as we know Tom_cat just release 4.0
i know i can install jboss and tomcat as seperate entities altogether...
not the jboss bundle version.
i was wondering... how does this impact me?
configuration? my j2ee apps?

has anyone did this beofre?
can i just use the configuration files in $Jboss_Dist/conf/tomcat in the
bundle version and run it?
will that work?

john


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



Re: [JBoss-user] DB2 Connecting problem remotely

2001-09-18 Thread John LYC



did you see yr DB driver being 
loaded
from the code...
i only see the default frivers being 
loaded

also , you should have one instant of the follwoing 
mbean, the JdbcProvider mbean.
from your code , you have this in yr 
jboss.jcml


mbean code="org.jboss.jdbc.JdbcProvider" 
name="DefaultDomain:service=JdbcProvider" 
attribute 
name="Drivers"COM.ibm.db2.jdbc.app.DB2Driver/attribute 
/mbean

according to the above code, the 2 default Driver 
should not have been loaded...
please check, you might have added the above mbean 
and not remove the exsiting one.
they are the same mbean and cannot 
co-exisit.

if you still want the default dirver include yr 
driverto be loaded..
just add yr driver to the exisiting "jdbcProvider" 
mbean... remmber, onlye one "JdbcProvider" mbean can be there. the 
"drivers" attribute within thembeanis a comma delimited list of jdbc 
drivers
check yr DB driver name too... are you shure it 
starts with uppercase "COM"..

---

mbean code="org.jboss.jdbc.JdbcProvider" 
name="DefaultDomain:service=JdbcProvider" 
attribute 
name="Drivers"org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,COM.ibm.db2.jdbc.app.DB2Driver/attribute 
/mbean

--

john


  - Original Message - 
  From: 
  Krishna 
  Prasad 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, September 18, 2001 4:42 
  PM
  Subject: Re: [JBoss-user] DB2 Connecting 
  problem remotely
  
  Yes John,
  
 you 
  are absolutely correct. I found the following lines, but not for 
  DB2Driver,
  
   
  [JdbcProvider] Initializing
   
  [JdbcProvider] Loaded JDBC-driver:org.hsql.jdbcDriver
   
  [JdbcProvider] Loaded 
  JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
   
  [JdbcProvider] Initialized
   
   
 
  
  
   
  [JdbcProvider] Starting
   
  [JdbcProvider] Started
   
  [HypersonicDatabase] Starting
   
  [HypersonicDatabase] Database started
   
  [HypersonicDatabase] Started
 
  
 
  
  
   
  [XADataSourceLoader] Starting
   
  [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
   
  [Default] Server 1.4 is running
   
  [Default] Press [Ctrl]+[C] to abort
   
  [XADataSourceLoader] Started
 
  .
 
  
  
   Can 
  any one tell me, What could be the reason?
   The 
  code for jdbc in jboss.jcml is,
  
  !-- 
   
  -- !-- JDBC 
   -- 
  !--  
  --
  
   mbean code="org.jboss.jdbc.JdbcProvider" 
  name="DefaultDomain:service=JdbcProvider" 
  attribute 
  name="Drivers"COM.ibm.db2.jdbc.app.DB2Driver/attribute 
  /mbeanmbean code="org.jboss.jdbc.XADataSourceLoader" 
  name="DefaultDomain:service=XADataSource,name=DB2DS"attribute 
  name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl/attribute 
  attribute 
  name="PoolName"DB2DS/attributeattribute 
  name="URL"jdbc:db2://websphere:8080/demomall/attributeattribute 
  name="JDBCUser"wcs/attributeattribute 
  name="Password"wcs/attribute/mbean
  
   mbean code="org.jboss.jdbc.HypersonicDatabase" 
  name="DefaultDomain:service=Hypersonic" 
  attribute name="Port"1476/attribute 
  attribute name="Silent"true/attribute 
  attribute 
  name="Database"default/attribute 
  attribute name="Trace"false/attribute 
  /mbean
  
   mbean code="org.jboss.jdbc.XADataSourceLoader" 
  name="DefaultDomain:service=XADataSource,name=InstantDB" 
  attribute 
  name="PoolName"InstantDB/attribute 
  attribute 
  name="DataSourceClass"org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl/attribute 
  attribute name="Properties"/attribute 
  attribute 
  name="URL"jdbc:idb:../conf/default/instantdb.properties/attribute 
  attribute 
  name="GCMinIdleTime"120/attribute 
  attribute name="JDBCUser" / attribute 
  name="MaxSize"10/attribute attribute 
  name="Password" / attribute 
  name="GCEnabled"false/attribute 
  attribute 
  name="InvalidateOnError"false/attribute 
  attribute 
  name="TimestampUsed"false/attribute 
  attribute name="Blocking"true/attribute 
  attribute 
  name="GCInterval"12/attribute 
  attribute 
  name="IdleTimeout"180/attribute 
  attribute 
  name="IdleTimeoutEnabled"false/attribute 
  attribute 
  name="LoggingEnabled"false/attribute 
  attribute 
  name="MaxIdleTimeoutPercent"1.0/attribute 
  attribute name="MinSize"0/attribute 
  /mbean
  
   mbean code="org.jboss.jdbc.XADataSourceLoader" 
  name="DefaultDomain:service=XADataSource,name=DefaultDS" 
  attribute 
  name="PoolName"DefaultDS/attribute 
  attribute 
  name="DataSourceClass"org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl/attribute 
  attribute name="Properties"/attribute 
  attribute 
  name="URL"jdbc:HypersonicSQL:hsql://localhost:1476/attribute 
  attribute 
  name="GCMinIdleTime"120/attribute 
  attribute name="JDBCUser"sa/attribute 
  attribute name="MaxSize"10/attribute 
  

[JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

Hi all,
im a newbie to J2ee and jboss...
and i had a hard time configuring and trying to get jboss to work..
hope i can get some help here...

well, i finally got my EJB deployed...
and i have a test client (like the one in the nitro-interest example) to
test my EJB.
when i run the test-client locally on my machines.. i get a noIntialConetxt
exceptions..
now i have move my test-client into the myEJB.jar and run it from the
container itself..
now when i do a lookup(myEJBName), i get a myEJBName not bound
i checked my ejb-jar.xml
and have the following...
===
ejb-jar
  enterprise-beans
entity
  ejb-nameContact/ejb-name
  hometestejb.ContactHome/home
  remotetestejb.Contact/remote
  ejb-classtestejb.ContactBeanBMP/ejb-class
  persistence-typeBean/persistence-type
  prim-key-classjava.lang.String/prim-key-class
  reentrantFalse/reentrant
  resource-ref
 res-ref-namejdbc/DefaultDS/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
  /resource-ref
/entity
  /enterprise-beans
  assembly-descriptor
container-transaction
  method
 ejb-nameContact/ejb-name
 method-name*/method-name
  /method
  trans-attributeRequired/trans-attribute
/container-transaction
  /assembly-descriptor
/ejb-jar
end=

in my jboss.xml , i have :...
==

jboss
  enterprise-beans
entity
  ejb-nameContact/ejb-name
  jndi-nameContact/jndi-name
/entity
  /enterprise-beans
/jboss

end=

please help... thanks

john

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



Re: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

of course, in my code , myEJBName is Contact...
i wrote myEJBName as a form of expression..

Thanks anyway for your wonderful help.
John

- Original Message -
From: Sacha Labourey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 17, 2001 6:18 PM
Subject: RE: [JBoss-user] Error during conetxt.lookup()


 And what if you replace myEJBName by *your EJB name* that is
Contact...

  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de John LYC
  Envoyé : lundi, 17 septembre 2001 12:13
  À : Jboss Mailing List
  Objet : [JBoss-user] Error during conetxt.lookup()
 
 
  Hi all,
  im a newbie to J2ee and jboss...
  and i had a hard time configuring and trying to get jboss to work..
  hope i can get some help here...
 
  well, i finally got my EJB deployed...
  and i have a test client (like the one in the nitro-interest example) to
  test my EJB.
  when i run the test-client locally on my machines.. i get a
  noIntialConetxt
  exceptions..
  now i have move my test-client into the myEJB.jar and run it from the
  container itself..
  now when i do a lookup(myEJBName), i get a myEJBName not bound
  i checked my ejb-jar.xml
  and have the following...
  ===
  ejb-jar
enterprise-beans
  entity
ejb-nameContact/ejb-name
hometestejb.ContactHome/home
remotetestejb.Contact/remote
ejb-classtestejb.ContactBeanBMP/ejb-class
persistence-typeBean/persistence-type
prim-key-classjava.lang.String/prim-key-class
reentrantFalse/reentrant
resource-ref
   res-ref-namejdbc/DefaultDS/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
/resource-ref
  /entity
/enterprise-beans
assembly-descriptor
  container-transaction
method
   ejb-nameContact/ejb-name
   method-name*/method-name
/method
trans-attributeRequired/trans-attribute
  /container-transaction
/assembly-descriptor
  /ejb-jar
  end=
 
  in my jboss.xml , i have :...
  ==
 
  jboss
enterprise-beans
  entity
ejb-nameContact/ejb-name
jndi-nameContact/jndi-name
  /entity
/enterprise-beans
  /jboss
 
  end=
 
  please help... thanks
 
  john
 
  ___
  JBoss-user mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/jboss-user
 


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


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



Re: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

ohh.. sorry abt the change in the lookup name
i changed the ejb-name and the jndi-name around to trouble shoot..

and i didnt include any jndi.properities file...
will jboss read its default jndi.properities instead??

i know calling the client with the class constructor is tricky..
i did try the conventional way of runing a client on my machine...
include all class path.. (jboss_home\client... etc) still gave me the same
results..

something  i got from reading the JNDIVIEW of the server...
(http://locathost:8082)

=snip
java:comp namespace of the Contact bean:
  + env (class: org.jnp.interfaces.NamingContext)
  |   + jdbc (class: org.jnp.interfaces.NamingContext)
  |   |   + DefaultDS[link - java:/DefaultDS] (class: javax.naming.LinkRef)

..

..
Global JNDI Namespace
  + cont (class: $Proxy2) /// john: WHY IS THE CLASS $Proxy2 instead of my
bean class (testejb.Contact)..?
  + TopicConnectionFactory (class: org.jbossmq.SpyTopicConnectionFactory)
  + XAQueueConnectionFactory (class:
org.jbossmq.SpyXAQueueConnectionFactory)
  + jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)
.
...
end snip

notice the my JNDI Namesapce cont  is not bound to any class.


i have also included my stack trace here.

snip==

[Default] -- Failed initializing bean access.
[Default] javax.naming.NameNotFoundException: cont not bound
[Default]   at
org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
[Default]
[Default]   at
org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
[Default]
[Default]   at
org.jnp.server.NamingServer.getObject(NamingServer.java:487)
[Default]
[Default]   at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
[Default]
[Default]   at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
[Default]
[Default]   at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
[Default]
[Default]   at javax.naming.InitialContext.lookup(Unknown Source)
[Default]
[Default]   at
testejb.ContactTestClient1.init(ContactTestClient1.java:50)
[Default]
[Default]   at testejb.ContactBeanBMP.init(ContactBeanBMP.java:25)
[Default]
[Default]   at java.lang.Class.newInstance0(Native Method)
[Default]
[Default]   at java.lang.Class.newInstance(Unknown Source)
[Default]
[Default]   at
org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor
(AbstractVerifier.java:356)
[Default]
[Default]   at
org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVeri
fier11.java:1209)
[Default]
[Default]   at
org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier1
1.java:120)
[Default]
[Default]   at
org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
[Default]
[Default]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:467)
[Default]
[Default]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
[Default]
[Default]   at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
[Default]
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1628)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1523)
[Default]
[Default]   at
org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:4
86)
[Default]
[Default]   at
org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.ja
va:464)
[Default]
[Default]   at
org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:208)
[Default]
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1628)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1523)
[Default]
[Default]   at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
[Default]
[Default]   at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
[Default]
[Default]   at
org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:353)
[Default]
[Default]   at
org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:
107)
[Default]
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1628)
[Default]
[Default]   at
com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
:1523)
[Default]
[Default]   at
org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(C
onfigurationService.java:836)
[Default]
[Default]   at $Proxy0.start(Unknown Source)
[Default]
[Default]   at
org.jboss.util.ServiceControl.start(ServiceControl.java:81)
[Default]
[Default]   at java.lang.reflect.Method.invoke(Native Method)
[Default]
[Default]   at

Re: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

Hey,,,..

Thanks for the tip...
i have not try it out yet...
hope it works =)

john

- Original Message -
From: Sacha Labourey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 17, 2001 11:20 PM
Subject: RE: [JBoss-user] Error during conetxt.lookup()


 John,
 - forget about your test *in* the container
 - in your client code, add the following:

 Properties props = new Properties();

 props.put( java.naming.factory.initial,
 org.jnp.interfaces.NamingContextFactory);
 props.put( java.naming.provider.url, jnp://yourServerName:1099);
 props.put( java.naming.factory.url.pkgs,
 org.jboss.naming:org.jnp.interfaces);

 Context ctx = new InitialContext(props);

   and replaces yourServerName in the second props.put line with the IP
 address of your server.

 As for the $Proxy2 you mentionned, that is normal. We use dynamic class
 loading with Java Proxy class. Consequently, the real class name that is
 bound is not the class you wait for.

 Cheers,


 Sacha




  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de John LYC
  Envoyé : lundi, 17 septembre 2001 14:59
  À : [EMAIL PROTECTED]
  Objet : Re: [JBoss-user] Error during conetxt.lookup()
 
 
  ohh.. sorry abt the change in the lookup name
  i changed the ejb-name and the jndi-name around to trouble shoot..
 
  and i didnt include any jndi.properities file...
  will jboss read its default jndi.properities instead??
 
  i know calling the client with the class constructor is tricky..
  i did try the conventional way of runing a client on my machine...
  include all class path.. (jboss_home\client... etc) still gave me the
same
  results..
 
  something  i got from reading the JNDIVIEW of the server...
  (http://locathost:8082)
 
  =snip
  java:comp namespace of the Contact bean:
+ env (class: org.jnp.interfaces.NamingContext)
|   + jdbc (class: org.jnp.interfaces.NamingContext)
|   |   + DefaultDS[link - java:/DefaultDS] (class:
  javax.naming.LinkRef)
 
  ..
  
  ..
  Global JNDI Namespace
+ cont (class: $Proxy2) /// john: WHY IS THE CLASS $Proxy2 instead of
my
  bean class (testejb.Contact)..?
+ TopicConnectionFactory (class:
org.jbossmq.SpyTopicConnectionFactory)
+ XAQueueConnectionFactory (class:
  org.jbossmq.SpyXAQueueConnectionFactory)
+ jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)
  .
  ...
  end snip
 
  notice the my JNDI Namesapce cont  is not bound to any class.
 
 
  i have also included my stack trace here.
 
  snip==
 
  [Default] -- Failed initializing bean access.
  [Default] javax.naming.NameNotFoundException: cont not bound
  [Default]   at
  org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
  [Default]
  [Default]   at
  org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
  [Default]
  [Default]   at
  org.jnp.server.NamingServer.getObject(NamingServer.java:487)
  [Default]
  [Default]   at
  org.jnp.server.NamingServer.lookup(NamingServer.java:282)
  [Default]
  [Default]   at
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
  [Default]
  [Default]   at
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
  [Default]
  [Default]   at javax.naming.InitialContext.lookup(Unknown Source)
  [Default]
  [Default]   at
  testejb.ContactTestClient1.init(ContactTestClient1.java:50)
  [Default]
  [Default]   at testejb.ContactBeanBMP.init(ContactBeanBMP.java:25)
  [Default]
  [Default]   at java.lang.Class.newInstance0(Native Method)
  [Default]
  [Default]   at java.lang.Class.newInstance(Unknown Source)
  [Default]
  [Default]   at
  org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor
  (AbstractVerifier.java:356)
  [Default]
  [Default]   at
  org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVeri
  fier11.java:1209)
  [Default]
  [Default]   at
  org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier1
  1.java:120)
  [Default]
  [Default]   at
  org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
  [Default]
  [Default]   at
  org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:467)
  [Default]
  [Default]   at
  org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
  [Default]
  [Default]   at
  org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
  [Default]
  [Default]   at java.lang.reflect.Method.invoke(Native Method)
  [Default]
  [Default]   at
  com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
  :1628)
  [Default]
  [Default]   at
  com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
  :1523)
  [Default]
  [Default]   at
  org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.java:4
  86)
  [Default]
  [Default

Re: [JBoss-user] Error during conetxt.lookup()

2001-09-17 Thread John LYC

Well,

I re-coded another bean  using a local client...
and it works i also did what you said.. set the properties of  the
jnp/jndi... in my client
thanks for helping...

man , this mailling list is great..

John

- Original Message -
From: Sacha Labourey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 17, 2001 11:20 PM
Subject: RE: [JBoss-user] Error during conetxt.lookup()


 John,
 - forget about your test *in* the container
 - in your client code, add the following:

 Properties props = new Properties();

 props.put( java.naming.factory.initial,
 org.jnp.interfaces.NamingContextFactory);
 props.put( java.naming.provider.url, jnp://yourServerName:1099);
 props.put( java.naming.factory.url.pkgs,
 org.jboss.naming:org.jnp.interfaces);

 Context ctx = new InitialContext(props);

   and replaces yourServerName in the second props.put line with the IP
 address of your server.

 As for the $Proxy2 you mentionned, that is normal. We use dynamic class
 loading with Java Proxy class. Consequently, the real class name that is
 bound is not the class you wait for.

 Cheers,


 Sacha




  -Message d'origine-
  De : [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]De la part de John LYC
  Envoyé : lundi, 17 septembre 2001 14:59
  À : [EMAIL PROTECTED]
  Objet : Re: [JBoss-user] Error during conetxt.lookup()
 
 
  ohh.. sorry abt the change in the lookup name
  i changed the ejb-name and the jndi-name around to trouble shoot..
 
  and i didnt include any jndi.properities file...
  will jboss read its default jndi.properities instead??
 
  i know calling the client with the class constructor is tricky..
  i did try the conventional way of runing a client on my machine...
  include all class path.. (jboss_home\client... etc) still gave me the
same
  results..
 
  something  i got from reading the JNDIVIEW of the server...
  (http://locathost:8082)
 
  =snip
  java:comp namespace of the Contact bean:
+ env (class: org.jnp.interfaces.NamingContext)
|   + jdbc (class: org.jnp.interfaces.NamingContext)
|   |   + DefaultDS[link - java:/DefaultDS] (class:
  javax.naming.LinkRef)
 
  ..
  
  ..
  Global JNDI Namespace
+ cont (class: $Proxy2) /// john: WHY IS THE CLASS $Proxy2 instead of
my
  bean class (testejb.Contact)..?
+ TopicConnectionFactory (class:
org.jbossmq.SpyTopicConnectionFactory)
+ XAQueueConnectionFactory (class:
  org.jbossmq.SpyXAQueueConnectionFactory)
+ jmx (class: org.jboss.jmx.server.JMXAdaptorImpl)
  .
  ...
  end snip
 
  notice the my JNDI Namesapce cont  is not bound to any class.
 
 
  i have also included my stack trace here.
 
  snip==
 
  [Default] -- Failed initializing bean access.
  [Default] javax.naming.NameNotFoundException: cont not bound
  [Default]   at
  org.jnp.server.NamingServer.getBinding(NamingServer.java:473)
  [Default]
  [Default]   at
  org.jnp.server.NamingServer.getBinding(NamingServer.java:481)
  [Default]
  [Default]   at
  org.jnp.server.NamingServer.getObject(NamingServer.java:487)
  [Default]
  [Default]   at
  org.jnp.server.NamingServer.lookup(NamingServer.java:282)
  [Default]
  [Default]   at
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
  [Default]
  [Default]   at
  org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
  [Default]
  [Default]   at javax.naming.InitialContext.lookup(Unknown Source)
  [Default]
  [Default]   at
  testejb.ContactTestClient1.init(ContactTestClient1.java:50)
  [Default]
  [Default]   at testejb.ContactBeanBMP.init(ContactBeanBMP.java:25)
  [Default]
  [Default]   at java.lang.Class.newInstance0(Native Method)
  [Default]
  [Default]   at java.lang.Class.newInstance(Unknown Source)
  [Default]
  [Default]   at
  org.jboss.verifier.strategy.AbstractVerifier.hasDefaultConstructor
  (AbstractVerifier.java:356)
  [Default]
  [Default]   at
  org.jboss.verifier.strategy.EJBVerifier11.verifyEntityBean(EJBVeri
  fier11.java:1209)
  [Default]
  [Default]   at
  org.jboss.verifier.strategy.EJBVerifier11.checkEntity(EJBVerifier1
  1.java:120)
  [Default]
  [Default]   at
  org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:132)
  [Default]
  [Default]   at
  org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:467)
  [Default]
  [Default]   at
  org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:369)
  [Default]
  [Default]   at
  org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:304)
  [Default]
  [Default]   at java.lang.reflect.Method.invoke(Native Method)
  [Default]
  [Default]   at
  com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
  :1628)
  [Default]
  [Default]   at
  com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java
  :1523)
  [Default]
  [Default