[JBoss-user] MBean not starting at jboss startup, but else works normally

2002-06-08 Thread Marius Kotsbak

I have a mbean deployed with a name-service.xml. The code is in a .jar
file also deployed.

When I start jboss, the service isn't started (I get no errors), but if
I touch it after jboss is fully started, it starts and works normally. 

The MBean uses JMS, and connects to a queue described in another
*-service.xml. Do I have to specify dependency on JMS, naming, or the
queues (I didn't see any deps in the JNDIMap-example, which use jndi)?
If so, how what MBeans do I specify?

Marius
Boostcom 





signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] From RC1 DeploymentException

2002-06-08 Thread Frank Morton

To fix this problem, I added the following to each jboss.xml
for all my entity beans (2.0):

Standard CMP EntityBean

Did not have to do it with session beans.

Frank


> Moving from RC1 to 3.0.0 release. Looking smooth except
> when deploying beans I get a DeploymentException:
>
> Error in jboss.xml for Bean Profile: configuration '' not found in
> standardjboss.xml or jboss.xml
>
> Here is the jboss.xml file, which I assume is missing something
> that is now required:
>
> 
> 
>  false
>  
>
>  
>   
>Profile
>base2/profile
>
>   
>  
> 
>
> Anyone know what is missing or if this is from something else?
>
> Frank
>
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>


___

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

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



Re: [JBoss-user] EJBException when accessing bulk getter inEntityBean

2002-06-08 Thread Stefan Reuter

The method is implemented in AddressEntityCMP.java as

public AddressEntityData getData() {
  ...
  return dataHolder;
}

and in ejb-jar.xml i have
de.nova.ejb.AccountEntityCMP

should work fine. and works fine - with jdk1.4 but not with 1.3 :(


On Sun, 2002-06-09 at 03:40, Dain Sundstrom wrote:
> This happens when you have an unimplemented method, which is ok for cmp 
> accessors, cmr accessors, and ejbSelect methods.  If getData is a cmp 
> field, you forgot to declare it.  If it isn't, you need to provide an 
> implementation for the method.
> 
> -dain



___

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

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



[JBoss-user] java.lang.Long Problem with cmp

2002-06-08 Thread Faisal Naveed

Hi,
 I have made a cmp in which my primary key class takes
a primitive long. The type of the (Primary Key)coulmun
in sqlserver2000 database is BigInt.

public class ASNMasterPK implements Serializable {

  public long asnNo;

  public ASNMasterPK() {
  }

  public ASNMasterPK(long asnNo) {
this.asnNo = asnNo;
  }
  public boolean equals(Object obj) {
if (this.getClass().equals(obj.getClass())) {
  ASNMasterPK that = (ASNMasterPK) obj;
  return this.asnNo == that.asnNo;
}
return false;
  }
  public int hashCode() {
return ("" + asnNo).hashCode();
  }
}

when i am trying to access its
homeObj.findByPrimaryKey(new
ASHMasterPK(Long.parseLong(""))), i am
getting this error, can any body help me.

TRANSACTION ROLLBACK EXCEPTION:
javax.transaction.TransactionRolledbackException: Load
failed; nested exception is: 
java.rmi.NoSuchObjectException: Entity
com.cst.pps.preadmission.ejbs.cmp.asnmaster.ASNMasterPK@8ca941b7
not found;

Environment:
==
EjbSpec: ejb1.1
Jboss Version: Jboss JBoss-2.4.6_Tomcat-4.0.3

In the way of reply



__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

___

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

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



Re: [JBoss-user] 3.0.0 InstantiateException + JAWS?

2002-06-08 Thread Dain Sundstrom

You have the wrong doctype declared in the ejb-jar.xml file.  The 
correct doctype follows:

http://java.sun.com/dtd/ejb-jar_2_0.dtd";>


-dain

Frank Morton wrote:

> Still transitioning from RC1 to 3.0.0. When I instantiate
> 
> an EJB 2.0 entity bean, I get an InstantiateException
> 
> below. Also, in the stack trace is a reference to JAWS,
> 
> which I thought had nothing to do with EJB 2.0. I must
> 
> be wrong about that.
> 
>  
> 
> Any idea what can cause this. Runs fine under RC1.
> 
>  
> 
> Using mysql underneath.
> 
>  
> 
> Here is the exception:
> 
>  
> 
> 00:10:57,538 INFO  [Jetty] JSP: init
> 00:11:21,259 WARN  [Jetty] WARNING: Servlet Exception for 
> /icva/servlet/IcvaFramework
> java.lang.reflect.UndeclaredThrowableException: 
> java.rmi.ServerException: Could not instantiate bean; nested exception is:
> java.lang.InstantiationException: 
> com.base2inc.bean.entity.note.NoteBean; nested exception is:
> java.rmi.ServerException: Could not instantiate bean; nested 
> exception is:
> java.lang.InstantiationException: 
> com.base2inc.bean.entity.note.NoteBean
> java.rmi.ServerException: Could not instantiate bean; nested exception is:
> java.lang.InstantiationException: 
> com.base2inc.bean.entity.note.NoteBean
> java.lang.InstantiationException: com.base2inc.bean.entity.note.NoteBean
> at java.lang.Class.newInstance0(Native Method)
> at java.lang.Class.newInstance(Class.java:237)
> at 
> 
>org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.createBeanClassInstance(JAWSPersistenceManager.java:165)
> at 
> 
>org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersistenceManager.java:165)
> at 
> 
>org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:251)
> at 
> org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:294)
> at 
> org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208)
> at 
> 
>org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:122)
> at 
> org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)
> 
> 



___

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

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



Re: [JBoss-user] EJBException when accessing bulk getter in EntityBean

2002-06-08 Thread Dain Sundstrom

This happens when you have an unimplemented method, which is ok for cmp 
accessors, cmr accessors, and ejbSelect methods.  If getData is a cmp 
field, you forgot to declare it.  If it isn't, you need to provide an 
implementation for the method.

-dain

Stefan Reuter wrote:

> hi,
> 
> when i access a bulk getter method on an entity bean i get the following
> exception: 
> 
> javax.ejb.EJBException: Method is not a known CMP field accessor, CMR
> field accessor, or ejbSelect method: methodName=getData
> 
> the exception only occurs when using jdk 1.3, with 1.4 everything is
> fine.
> any ideas?
> 
> regards,
> stefan
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___

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

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



Re: [JBoss-user] Error on bean deploy with CMR

2002-06-08 Thread Dain Sundstrom

Andre Selton wrote:

> --- Dain Sundstrom <[EMAIL PROTECTED]> wrote:
> 
>>>
>>>  order
>>>  Order
>>>
>>>
>>
>>This one it wrong. You only need (can have)
>>cmr-field-type if the 
>>cmr-field is multi-valued.   
>>
> 
>   With this I can now deploy my beans on JBoss 3.0.0
>   But I can not make the relationships yet.
>   To make the relationship I am getting one interface
> for the Order and one for the Item. Like this :
> 
> Object ref = jndiContext.lookup("Order");
> OrderHome order_home = (OrderHome)
> PortableRemoteObject.narrow (ref, OrderHome.class);
> Order order = order_home.findByPrimaryKey(new
> OrderPK(new Integer(1)));
> 
> ref = jndiContext.lookup("Item");
> ItemHome item_home = (ItemHome)
> PortableRemoteObject.narrow (ref, ItemHome.class);
> Item item = item_home.findByPrimaryKey(new
> ItemPK(new Integer(1)));
> 
>   This is working.
>   Now to create the relationship I can do 2 things
> (one of) : call the order.setItems method or call the
> item.setOrder method. Both fail.
> 
>   If I use this I got a error on the first line :
> 
> Collection c = order.getItems();
> c.add(item);
> order.setItems(c);
>   
>   The error message (from exception) is :
> 
>   "java.lang.reflect.UndeclaredThrowableException"
> 
>   And the other method would be :
> 
>   item.setOrder(order);
> 
>   The error message (from exception) on this case is :
> 
> java.rmi.ServerException: RemoteException occurred in
> server thread; nested exception is: 
>   java.rmi.ServerException: null
> Embedded Exception
> $Proxy103; nested exception is: 
>   javax.ejb.EJBException: null
> Embedded Exception
> $Proxy103
> 
>   Please, what is the problem now ?


Got me.  Both of these work for me.  We have a test that runs every 
night that looks just like this.

-dain



___

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

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



Re: [JBoss-user] web services on jboss

2002-06-08 Thread Marius Kotsbak

In the deploy-directory with the bean(s). Check the testsuite of
jboss.net.

On lør, 2002-06-08 at 03:46, Rama Kishore Yelamanchilli wrote:

Hello,

I plugged in jboss.net(web services) into jboss. Now I'm wondering what
can I do for deploying a web service and test it. I read the only
documentation page of jboss and learned that jws file needs to be
wrapped in a .wsr file. What else should .wsr file contain and where it
should be placed. Can you please give me a right direction??


Thanks

RamaKishore Yelamanchilli
440 Dixon Landing Rd Apt# J208
Milpitas CA 95035
 


Send and receive Hotmail on your mobile device: Click Here
___ Don't
miss the 2002 Sprint PCS Application Developer's Conference August 25-28
in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
___ JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



___

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

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



Re: [JBoss-user] JBoss 2.4.4+Tomcat 4.0.1 as NT service

2002-06-08 Thread Mitchell Kim



First of all, thanks for you reply.  I found 
an interesting fact while trying different stuff.  When I tried it on 
Windows 2000, it worked fine.  So, that leads to what's wrong with my 
Windows NT 4.0 Server??? in terms of environments...
Do you know any "requirements" for this thing to 
work? maybe service pack level?  Do I need to administrator to do 
this?  It let me install it without having an "Administrator" 
previliage...
Thanks.
 

  - Original Message - 
  From: 
  Guy Rouillier 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, June 07, 2002 10:33 
PM
  Subject: Re: [JBoss-user] JBoss 
  2.4.4+Tomcat 4.0.1 as NT service
  
  Don't know about the ones you mention, but 
  javants from the jboss/contrib section has been working fine for us for 
  several months.  We run Tomcat standalone and JBoss standalone, each 
  started as services via javants.
  
- Original Message - 
From: 
Mitchell Kim 

To: [EMAIL PROTECTED] 

Sent: Friday, June 07, 2002 2:40 
PM
Subject: [JBoss-user] JBoss 
2.4.4+Tomcat 4.0.1 as NT service

I have been trying to make JBoss+Tomcat to run 
as NT service but doesn't look like it's working correctly.  I was able 
to install Tomcat alone as NT Service using JavaService.exe.  However, 
when I try to install JBoss alone as a NT service, it gets installed fine 
but when I try to start the service, it fails.  My ultimate goal is to 
run JBoss+Tomcat both as a single NT service.  It looks like some 
people have done this but I just can't make it work.  I don't mind 
using JNT but didn't work out either.  Can anyone give me some tips on 
this?
 
Thanks.
 
Mitchell 
Kim (kimion.com)Software Developer[EMAIL PROTECTED]http://www.kimion.com


Re: [JBoss-user] Oracle/JNDI Connection Issue (pinging David Jencks)

2002-06-08 Thread David Jencks

jboss.jca:service=RARDeployment,name=Minerva
JDBC LocalTransaction ResourceAdapter no longer exists.  Take a look at the
oracle-service.xml in docs/examples/jca (binary, I hope) or
connector[jbosscx]/src/etc/example-config.

david jencks

On 2002.06.08 17:06:43 -0400 Stephen Davidson wrote:
> Greetings.
> 
> I have an oracle-service.xml file that I had been using for JBoss3.0Alpha
> through RC2(development version attached).  Now I am trying to port to
> 3.0final, and its not working.
> 
> What is supposed to happen is that I have a DataSource living at
> jdbc/pool/hrnexus that my application can use to connect to the database.
>  It is no longer there, and is not showing up in the 
> management tool, either.  The defined HRXOracleDS is showing up in the
> tool on 8082, however, and the log is showing as parsing this file.
> 
> Help, please?
> 
> -Steve
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
>   
>   
> 
>   
> 
>name="jboss.jca:service=LocalTxCM,name=HRXOracleDS">
> 
> jboss.jca:service=RARDeployer
> 
> 
> 
>   
>name="jboss.jca:service=LocalTxDS,name=HRXOracleDS">
> 
> optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=Minerva
> JDBC LocalTransaction ResourceAdapter
> 
> 
> 
>   
> 
>
>   ConnectionURL
>   java.lang.String
>   
>   
>jdbc:oracle:thin:@192.168.2.11:1521:ORCL
> 
> 
>   DriverClass
>   java.lang.String
>   
>oracle.jdbc.driver.OracleDriver
> 
>  
> 
>   UserName
>   java.lang.String
>   
>   hrnexus
> 
> 
>   Password
>   java.lang.String
>   
>   hrnexus
> 
>   
> 
> jdbc/pool/hrnexus
>   
> 
> 
>   
>name="jboss.jca:service=LocalTxPool,name=HRXOracleDS">
> 
> 1
> 50
> 5000
> 5
> 
> ByContainer
>   
> 
> optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager
> java:/jaas/HRXDBRealm
> java:/TransactionManager
>   
> 
> 
>   
> 
> 
> 

___

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

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



RE: [JBoss-user] From RC1 DeploymentException

2002-06-08 Thread Sacha Labourey

Hello,

you simply need to remove your  tag. Since
recently,  means null configuration. It is used to differentiate null
tags from unexisting tags.

Cheers,


Sacha

> -Message d'origine-
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de Frank
> Morton
> Envoyé : samedi, 8 juin 2002 02:32
> À : [EMAIL PROTECTED]
> Objet : [JBoss-user] From RC1 DeploymentException
>
>
> Moving from RC1 to 3.0.0 release. Looking smooth except
> when deploying beans I get a DeploymentException:
>
> Error in jboss.xml for Bean Profile: configuration '' not found in
> standardjboss.xml or jboss.xml
>
> Here is the jboss.xml file, which I assume is missing something
> that is now required:
>
> 
> 
>  false
>  
>
>  
>   
>Profile
>base2/profile
>
>   
>  
> 
>
> Anyone know what is missing or if this is from something else?


___

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

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



Re: [JBoss-user] Error on bean deploy with CMR

2002-06-08 Thread Andre Selton

At 09:42 7/6/2002 -0500, you wrote:

> This one it wrong. You only need (can have) 
> cmr->field-type if the cmr-field is multi-valued.
> I think this is another lame place in the spec, as 
> I can look up the field type using reflection, but 
> it is required.  Just remove the line and it 
> should start working.

  I did it and now it is being deployed without
errors.
  But when I try to make the relationships I get a
exception. I can insert the data without problems,
then I do this code to make the relationship.

Object ref = jndiContext.lookup("Order");
OrderHome order_home = (OrderHome)
PortableRemoteObject.narrow (ref, OrderHome.class);
Order o = order_home.findByPrimaryKey(new
OrderPK(new Integer(1)));

ref = jndiContext.lookup("Item");
ItemHome item_home = (ItemHome)
PortableRemoteObject.narrow (ref, ItemHome.class);
Item i = item_home.findByPrimaryKey(new ItemPK(new
Integer(1)));

On this point everthing is ok. I get the objects
to the both objects and they are valid. Then to make
the relationship I can do 2 things : or I use the
setOrder method of Item or I use the setItems method
of Order. Both fail :

Collection c = o.getItems();  // the exception
happen here
c.add(i);
o.setItems(c);

  On this case the exception is :

  "java.lang.reflect.UndeclaredThrowableException"

  The other way could be :

i.setOrder(o);

  And the error is :

java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is: 
java.rmi.ServerException: null
Embedded Exception
$Proxy102; nested exception is: 
javax.ejb.EJBException: null
Embedded Exception
$Proxy102

  What is the problem now ?

  Andre S.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

___

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

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



Re: [JBoss-user] performance on linux/windows

2002-06-08 Thread Marius Kotsbak

On lør, 2002-06-08 at 01:33, Dain Sundstrom wrote:
> It is not about performance it's about manageability in production. 
> Widows is simple too much of a pain to manage on a large scale.
> 
> -dain
For example, what do you do when running jboss on win and need to fix
something somewhere only connected to Internet with a modem. Run a slow
fullscreen-connection (like pcanywhere) to the win-server? It will
certainly be slow. Or log in with telnet (which is insecure) and try to
do in on the dos-command line? What if 2 pepole need to access it at the
same time?

With jboss running on linux (or similar OSes), you can just log in with
ssh, check logs, fix config/change code, compile and deploy it, restart
jboss etc. without problems from anywhere (including public web
terminals if you have a web-ssh client set up) in a secure way. 

> 
> Tejeshwar wrote:
> 
> > Hi..
> > 
> >  
> > 
> >  
> > 
> > I want to know one thing.
> > 
> > My question,
> > 
> >  
> > 
> > JBoss on windows/linux, which gives better performance?
> > 
> > whether windows or linux.
> > 
> >  
> > 
> > Pls reply back as early as possible.
> > 
> >  
> > 
> > Thanking you
> > 
> >  
> > 
> > with regards
> > 
> >  
> > 
> > Tejesh
> > 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___

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

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



Re: [JBoss-user] Error on bean deploy with CMR

2002-06-08 Thread Andre Selton

--- Dain Sundstrom <[EMAIL PROTECTED]> wrote:
> 
> > 
> >   order
> >   Order
> > 
> 
> 
> This one it wrong. You only need (can have)
> cmr-field-type if the 
> cmr-field is multi-valued.   

  With this I can now deploy my beans on JBoss 3.0.0
  But I can not make the relationships yet.
  To make the relationship I am getting one interface
for the Order and one for the Item. Like this :

Object ref = jndiContext.lookup("Order");
OrderHome order_home = (OrderHome)
PortableRemoteObject.narrow (ref, OrderHome.class);
Order order = order_home.findByPrimaryKey(new
OrderPK(new Integer(1)));

ref = jndiContext.lookup("Item");
ItemHome item_home = (ItemHome)
PortableRemoteObject.narrow (ref, ItemHome.class);
Item item = item_home.findByPrimaryKey(new
ItemPK(new Integer(1)));

  This is working.
  Now to create the relationship I can do 2 things
(one of) : call the order.setItems method or call the
item.setOrder method. Both fail.

  If I use this I got a error on the first line :

Collection c = order.getItems();
c.add(item);
order.setItems(c);
  
  The error message (from exception) is :

  "java.lang.reflect.UndeclaredThrowableException"

  And the other method would be :

  item.setOrder(order);

  The error message (from exception) on this case is :

java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is: 
java.rmi.ServerException: null
Embedded Exception
$Proxy103; nested exception is: 
javax.ejb.EJBException: null
Embedded Exception
$Proxy103

  Please, what is the problem now ?

  Andre S.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

___

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

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



[JBoss-user] EJBException when accessing bulk getter in EntityBean

2002-06-08 Thread Stefan Reuter

hi,

when i access a bulk getter method on an entity bean i get the following
exception: 

javax.ejb.EJBException: Method is not a known CMP field accessor, CMR
field accessor, or ejbSelect method: methodName=getData

the exception only occurs when using jdk 1.3, with 1.4 everything is
fine.
any ideas?

regards,
stefan


___

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

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



RE: [JBoss-user] JCA and Firebird - Connection problems...

2002-06-08 Thread Andre Selton


--- Torsten Terp <[EMAIL PROTECTED]> wrote:
> 
> If you instead write the filename as
> localhost/3050:c:/database/whatever.gdb
> it will work!
> 

  Ok. You are right, thanks for share.
  On my home I had JBoss 3 RC2 and on it this works
ok.
  But on my company we have JBoss 3.0.0 (final) and it
is not working very well. In what version you are
doing you development ?
  
  Andre S.

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

___

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

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



Re: [JBoss-user] Using auto increment of mysql for PK

2002-06-08 Thread Dain Sundstrom

That won't work with CMP.  It does work with BMP if you are going that 
route.  Unknown primary keys are are at the top of the new features 
list,  so it will be at least a month.

-dain

Arthur Wang wrote:

> I am using auto_increment function of MySql database for primary key of
> entity bean , so I don't need to set pk in ejbCreate, mysql will populate pk
> field in the datatbase automatically, but it has following exceptions.
> 
> -Original Message-
> From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 4:35 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Using auto increment of mysql for PK
> 
> 
> You need to be more specific. What exactly did you try?
> 
> -dain
> 
> Arthur Wang wrote:
> 
> 
>>Hi, 
>>
>>I tried to use auto_increment for primary key when I create a new entity
>>bean, but there are following exception:
>>
>>-
>>HTTP ERROR: 500 removing bean lock and it has tx set!; nested exception
>>
> is:
> 
>>java.lang.IllegalStateException: removing bean lock and it has tx set!
>>Embedded Exception removing bean lock and it has tx set!; nested exception
>>is: java.lang.IllegalStateException: removing bean lock and it has tx
>>
> set!;
> 
>>nested exception is: javax.ejb.TransactionRolledbackLocalException:
>>
> removing
> 
>>bean lock and it has tx set!; nested exception is:
>>java.lang.IllegalStateException: removing bean lock and it has tx set!
>>Embedded Exception removing bean lock and it has tx set!; nested exception
>>is: java.lang.IllegalStateException: removing bean lock and it has tx set!
>>
>>
>>Any reply would be highly appreciated.
>>thanks
>>
>>
>>Arthur Wang
>>Ensemble Systems Inc.
>>Tel: (604)232-7954 Fax: (604)231-9545
>>www.ensemble-systems.com
>>
>>
>>
>>___
>>
>>Don't miss the 2002 Sprint PCS Application Developer's Conference
>>August 25-28 in Las Vegas -
>>
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___

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

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



Re: [JBoss-user] Startup tasks

2002-06-08 Thread David Jencks

Please see if I explained this well enough in the quickstart guide and
provide suggestions for improvement.

thanks
david jencks

On 2002.06.07 14:21:56 -0400 JD Brennan wrote:
> I have written an MBean, but can't figure out how to get it
> to wait until all my Session and Entity Beans have been deployed before
> doing the startup activity.
> 
> Is there some depends attribute I can put in the jboss-service.xml
> file in my .sar?
> 
> I tried making JMX calls to the JBoss deployer, but it says
> the beans are deployed before they can be looked up by JNDI.
> 
> I also tried catching JNDI lookup errors, but there were too
> many combinations.  NameNotFoundException, ServerException wrapping
> NameNotFoundException, RemoteException wrapping ServerException
> wrapping NameNotFoundException.  I abandonded this path, since
> it didn't seem I could ever catch all the combinations.
> 
> Thanks for any suggestions!
> 
> JD
> 
> -Original Message-
> From: Greg Turner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 10:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Startup tasks
> 
> 
> Get the docs and learn to write and deploy an MBean.  Then write an MBean
> wrapper around your tftp server and deploy it.  Also the JMX book has an
> example of writing an MBean for JBoss.
> 
> Ludovico Basili wrote:
> 
> > Hello,
> > I would like to execute some tasks at startup (i.e., starting a tftp
> > server). To do so, I need a way to load classes and invoke methods on
> them
> > as JBoss starts.
> > Which is the better way to do that ?
> >
> > Thanks,
> >
> > --
> > Ludovico Basili
> > Software Engineer
> > Allied Telesis K.K.
> > Phone +39 02 41411245  - FAX +39 02 41411260 - email
> > [EMAIL PROTECTED]
> >
> > ___
> >
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> --
> Greg Turner
> 
> Tiburon Enterprise Systems
> http://www.tiburon-e-systems.com
> Box 1171
> Tiburon, CA 94920
> 415-332-3363
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> 
> 
> 
> RE: [JBoss-user] Startup tasks
> 
> 
> 
> I have written an MBean, but can't figure out how to get
> it
> to wait until all my Session and Entity Beans have been
> deployed before
> doing the startup activity.
> 
> 
> Is there some depends attribute I can put in the
> jboss-service.xml
> file in my .sar?
> 
> 
> I tried making JMX calls to the JBoss deployer, but it
> says
> the beans are deployed before they can be looked up by
> JNDI.
> 
> 
> I also tried catching JNDI lookup errors, but there were
> too
> many combinations.  NameNotFoundException,
> ServerException wrapping
> NameNotFoundException, RemoteException wrapping
> ServerException
> wrapping NameNotFoundException.  I abandonded this
> path, since
> it didn't seem I could ever catch all the
> combinations.
> 
> 
> Thanks for any suggestions!
> 
> 
> JD
> 
> 
> -Original Message-
> From: Greg Turner [ 
>HREF="mailto:[EMAIL PROTECTED]";>mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 10:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Startup tasks
> 
> 
> 
> Get the docs and learn to write and deploy an
> MBean.  Then write an MBean
> wrapper around your tftp server and deploy it. 
> Also the JMX book has an
> example of writing an MBean for JBoss.
> 
> 
> Ludovico Basili wrote:
> 
> 
> > Hello,
> > I would like to execute some tasks at startup
> (i.e., starting a tftp
> > server). To do so, I need a way to load classes and
> invoke methods on them
> > as JBoss starts.
> > Which is the better way to do that ?
> >
> > Thanks,
> >
> > --
> > Ludovico Basili
> > Software Engineer
> > Allied Telesis K.K.
> > Phone +39 02 41411245  - FAX +39 02 41411260 -
> email
> > [EMAIL PROTECTED]
> >
> > 
>___
> >
> > Don't miss the 2002 Sprint PCS Application
> Developer's Conference
> > August 25-28 in Las Vegas --  HREF="http://devcon.sprintpcs.com/adp/index.cfm";
> TARGET="_blank">http://devcon.sprintpcs.com/adp/index.cfm
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > HREF="https://lists.sourceforge.net/lists/listinfo/jboss-user";
> TARGET="_blank">https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> --
> Greg Turner
> 
> 
> Tiburon Enterprise Systems
> http://www.tiburon-e-systems.com";
> TARGE

[JBoss-user] Separate logfiles?

2002-06-08 Thread Ron van Pol








Can System.out and System.err logging
be redirected to separate logfiles for separate applications?

 

Thanks,

Ron

 








Re: [JBoss-user] Startup tasks

2002-06-08 Thread David Jencks

Making an mbean depend on a deployer only assures that the mbean starts
after the deployer, not after anything the deployer might deploy.  Depend
on the mbeans for the ejb containers. (seen in the j2ee section on port
8082)

david jencks

On 2002.06.07 15:24:50 -0400 Greg Turner wrote:
> don't focus on the beans themselves.  Focus, instead on the MBean
> deployer that deploys the jar file that contains the beans.  Try to
> figure out how to make the dependency on that specific deployer.  I'm
> not 100% sure, but I think a deployer gets instantiated for each jar
> file that needs deployment.
> 
> JD Brennan wrote:
> 
> >  Cool!  I'm running JBoss 3.x, but I can't figure out the
> > dependency.You can make one MBean depend on another, but I can't
> > figure outhow to get a MBean to depend on a set of Session/Entity
> > beansbeing deployed.JD
> > -Original Message-
> > From: Starsinic, Frank [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 07, 2002 11:38 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: [JBoss-user] Startup tasks
> >
> > this is not possible until jboss 3.0 even at that, i'm not sure how to
> > set up the dependency.frank
> >
> >  -Original Message-
> >  From: JD Brennan [mailto:[EMAIL PROTECTED]]
> >  Sent: Friday, June 07, 2002 11:22 AM
> >  To: '[EMAIL PROTECTED]'
> >  Subject: RE: [JBoss-user] Startup tasks
> >
> >  I have written an MBean, but can't figure out how to get it
> >  to wait until all my Session and Entity Beans have been
> >  deployed before
> >  doing the startup activity.
> >
> >  Is there some depends attribute I can put in the
> >  jboss-service.xml
> >  file in my .sar?
> >
> >  I tried making JMX calls to the JBoss deployer, but it says
> >  the beans are deployed before they can be looked up by JNDI.
> >
> >  I also tried catching JNDI lookup errors, but there were too
> >
> >  many combinations.  NameNotFoundException, ServerException
> >  wrapping
> >  NameNotFoundException, RemoteException wrapping
> >  ServerException
> >  wrapping NameNotFoundException.  I abandonded this path,
> >  since
> >  it didn't seem I could ever catch all the combinations.
> >
> >  Thanks for any suggestions!
> >
> >  JD
> >
> >  -Original Message-
> >  From: Greg Turner [mailto:[EMAIL PROTECTED]]
> >  Sent: Friday, June 07, 2002 10:38 AM
> >  To: [EMAIL PROTECTED]
> >  Subject: Re: [JBoss-user] Startup tasks
> >
> >  Get the docs and learn to write and deploy an MBean.  Then
> >  write an MBean
> >  wrapper around your tftp server and deploy it.  Also the JMX
> >  book has an
> >  example of writing an MBean for JBoss.
> >
> >  Ludovico Basili wrote:
> >
> >  > Hello,
> >  > I would like to execute some tasks at startup (i.e.,
> >  starting a tftp
> >  > server). To do so, I need a way to load classes and invoke
> >  methods on them
> >  > as JBoss starts.
> >  > Which is the better way to do that ?
> >  >
> >  > Thanks,
> >  >
> >  > --
> >  > Ludovico Basili
> >  > Software Engineer
> >  > Allied Telesis K.K.
> >  > Phone +39 02 41411245  - FAX +39 02 41411260 - email
> >  > [EMAIL PROTECTED]
> >  >
> >  >
> >  ___
> >
> >  >
> >  > Don't miss the 2002 Sprint PCS Application Developer's
> >  Conference
> >  > August 25-28 in Las Vegas --
> >  http://devcon.sprintpcs.com/adp/index.cfm
> >  >
> >  > ___
> >  > JBoss-user mailing list
> >  > [EMAIL PROTECTED]
> >  > https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> >  --
> >  Greg Turner
> >
> >  Tiburon Enterprise Systems
> >  http://www.tiburon-e-systems.com
> >  Box 1171
> >  Tiburon, CA 94920
> >  415-332-3363
> >
> >
> >  _
> >  _
> >
> >  Don't miss the 2002 Sprint PCS Application Developer's
> >  Conference
> >  August 25-28 in Las Vegas --
> >  http://devcon.sprintpcs.com/adp/index.cfm
> >
> >  ___
> >  JBoss-user mailing list
> >  [EMAIL PROTECTED]
> >  https://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> --
> Greg Turner
> 
> Tiburon Enterprise Systems
> http://www.tiburon-e-systems.com
> Box 1171
> Tiburon, CA 94920
> 415-332-3363
> 
> 
> 
> 
> don't focus on the beans themselves.  Focus, instead on the MBean
> deployer that deploys the jar file that contains the beans.  Try to
> figure out how to make the dependency on that specific deployer. 
> I'm not 100% sure, but I think a deployer gets instantiated for each jar
> file that needs deployment.
> JD Brennan wrote:
>   class=205305418-07062002> color="#80">Cool! 
> I'm running JBoss 3.x, but I can't figur

[JBoss-user] Oracle/JNDI Connection Issue (pinging David Jencks)

2002-06-08 Thread Stephen Davidson

Greetings.

I have an oracle-service.xml file that I had been using for JBoss3.0Alpha through 
RC2(development version attached).  Now I am trying to port to 3.0final, and its not 
working.

What is supposed to happen is that I have a DataSource living at jdbc/pool/hrnexus 
that my application can use to connect to the database.  It is no longer there, and is 
not showing up in the 
management tool, either.  The defined HRXOracleDS is showing up in the tool on 8082, 
however, and the log is showing as parsing this file.

Help, please?

-Steve















  
  
  

  

  

jboss.jca:service=RARDeployer



  
  

jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter



  

   
  ConnectionURL
  java.lang.String
  
  jdbc:oracle:thin:@192.168.2.11:1521:ORCL


  DriverClass
  java.lang.String
  oracle.jdbc.driver.OracleDriver

 

  UserName
  java.lang.String
  
  hrnexus


  Password
  java.lang.String
  
  hrnexus

  

jdbc/pool/hrnexus
  


  
  

1
50
5000
5

ByContainer
  

jboss.jca:service=CachedConnectionManager
java:/jaas/HRXDBRealm
java:/TransactionManager
  


  





Re: [JBoss-user] Auto created relationship table name.

2002-06-08 Thread Dain Sundstrom

This works for me, so I would guess that your configuration is wrong.

-dain

Arthur Wang wrote:

> I set create-table as true in my jbosscmp-jdbc.xml, so the jboss will create
> table for me, but the name of relation table created is like 'A-Bs-B-As", it
> is not the name I specified in relation-table-mapping of jbosscmp-jdbc.xml.
> 
> -Original Message-
> From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 4:27 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Auto created relationship table name.
> 
> 
> Arthur Wang wrote:
> 
> 
>>Hi ,
>>
>>I have a many to many relationship betwen two beans, and I specify the
>>relation table in the ejb-jar.xml file, but when set the create-table as
>>true in jbosscmp-jdbc.xml, the created relation table has a different name
>>as the one I specified in the relationship defination, this should not be
>>
> a
> 
>>problem if I use existing table, but in this case(create table when
>>
> deploy),
> 
>>many to many relationship may not working. Any idea on it?
>>
> 
> 
> I don't understand you.  Can you be more specific?
> 
> -dain
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -
> http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 



___

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

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



[JBoss-user] Logging mbean to a separate log

2002-06-08 Thread Marius Kotsbak

I have made a MBean that logs normally with log4j. The problem is that
it logs so much that I want the output to a separate file, and not in
the main logfile.

I have managed to have the output in a separate file using a new
appender, and a  with  to that logger, but I
can't find an easy way to exclude the output to the main log (root
category). It outputs the logging from the mbean to both server.log and
mylog.log.

Have anyone a clue of how to do this? I can't find a comprehensive doc
on log4j, not in the for-pay-doc on log4j either.

Thanks
Marius K
Boostcom 



signature.asc
Description: This is a digitally signed message part


Re: [JBoss-user] Startup tasks

2002-06-08 Thread David Jencks

If you look on port 8082, you'll see an mbean created (in the "j2ee"
section, not the jsr-77 section) for each ejb.  Use these mbean names in
your depends/depends-list tags.

david jencks

On 2002.06.07 15:01:14 -0400 JD Brennan wrote:
> Cool!  I'm running JBoss 3.x, but I can't figure out the dependency.
> You can make one MBean depend on another, but I can't figure out
> how to get a MBean to depend on a set of Session/Entity beans
> being deployed.
>  
> JD
>  
> -Original Message-
> From: Starsinic, Frank [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 11:38 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] Startup tasks
> 
> 
> this is not possible until jboss 3.0 
>  
> even at that, i'm not sure how to set up the dependency.
>  
>  
> frank
> 
> -Original Message-
> From: JD Brennan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 07, 2002 11:22 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [JBoss-user] Startup tasks
> 
> 
> 
> I have written an MBean, but can't figure out how to get it 
> to wait until all my Session and Entity Beans have been deployed before 
> doing the startup activity. 
> 
> Is there some depends attribute I can put in the jboss-service.xml 
> file in my .sar? 
> 
> I tried making JMX calls to the JBoss deployer, but it says 
> the beans are deployed before they can be looked up by JNDI. 
> 
> I also tried catching JNDI lookup errors, but there were too 
> many combinations.  NameNotFoundException, ServerException wrapping 
> NameNotFoundException, RemoteException wrapping ServerException 
> wrapping NameNotFoundException.  I abandonded this path, since 
> it didn't seem I could ever catch all the combinations. 
> 
> Thanks for any suggestions! 
> 
> JD 
> 
> -Original Message- 
> From: Greg Turner [ mailto:[EMAIL PROTECTED]
>  ] 
> Sent: Friday, June 07, 2002 10:38 AM 
> To: [EMAIL PROTECTED] 
> Subject: Re: [JBoss-user] Startup tasks 
> 
> 
> Get the docs and learn to write and deploy an MBean.  Then write an MBean
> 
> wrapper around your tftp server and deploy it.  Also the JMX book has an 
> example of writing an MBean for JBoss. 
> 
> Ludovico Basili wrote: 
> 
> > Hello, 
> > I would like to execute some tasks at startup (i.e., starting a tftp 
> > server). To do so, I need a way to load classes and invoke methods on
> them
> 
> > as JBoss starts. 
> > Which is the better way to do that ? 
> > 
> > Thanks, 
> > 
> > -- 
> > Ludovico Basili 
> > Software Engineer 
> > Allied Telesis K.K. 
> > Phone +39 02 41411245  - FAX +39 02 41411260 - email 
> > [EMAIL PROTECTED] 
> > 
> > ___ 
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference 
> > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>   
> > 
> > ___ 
> > JBoss-user mailing list 
> > [EMAIL PROTECTED] 
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
>   
> 
> -- 
> Greg Turner 
> 
> Tiburon Enterprise Systems 
> http://www.tiburon-e-systems.com   
> Box 1171 
> Tiburon, CA 94920 
> 415-332-3363 
> 
> 
> 
> ___ 
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference 
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>   
> 
> ___ 
> JBoss-user mailing list 
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>   
> 
> 
> 
> 
> 
> RE: [JBoss-user] Startup tasks
> 
> 
> 
>  class=205305418-07062002>Cool!  I'm running JBoss 3.x, but I
> can't 
> figure out the dependency.
>  class=205305418-07062002>You can make one MBean depend on
> another, but I 
> can't figure out
>  class=205305418-07062002>how to get a MBean to depend on a set of
> 
> Session/Entity beans
>  class=205305418-07062002>being
> deployed.
>  class=205305418-07062002> 
>  class=205305418-07062002>JD
>  class=205305418-07062002> 
>  size=2>-Original Message-From: Starsinic, Frank 
> [mailto:[EMAIL PROTECTED]]Sent: Friday, June 07, 2002
> 11:38 
> AMTo: '[EMAIL PROTECTED]'Subject:
> RE: 
> [JBoss-user] Startup tasks
>  size=2>this 
> is not possible until jboss 3.0 
>  size=2> 
>  size=2>even 
> at that, i'm not sure how to set up the dependency.
>  size=2> 
>  size=2> 
>  size=2>frank
> 
>  size=2>-Original Message-From: JD Brennan 
>   [mailto:[EMAIL PROTECTED]]Sent: Friday, June 07,
> 2002 
>   11:22 AMTo: '[EMAIL PROTECTED]'Subject:
> 
>   RE: [JBoss-user] Startup tasks
>   I have written an MBean, but can't figure out how to
> get 
>   it to wait until all my Session and Entity
> Beans have 
>   been deployed before 

Re: [JBoss-user] Re: (JBoss3)Handles problem in Tomcat standalone(BUG?)

2002-06-08 Thread Andrew

Thank you for answer, but this is usual rmi lookup that dosen't use any
ejb handles. I mean HomeHandle/Handle- the objects for persistent rmi
references.
This objects works fine with JBosss2.4.6 but JBoss3 handles using
local(Tomcat) JNDI context instead of remote that it came from.

Regards.
- Original Message -
From: "Jon Swinth" <[EMAIL PROTECTED]>
To: "Andrew" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 9:31 PM
Subject: [JBoss-user] Re: (JBoss3)Handles problem in Tomcat standalone


> Since nobody seems to have answered you.  Here is what I use to connect
standalone Tomcat to Jboss.
> There is more here than you asked for, but you get the idea.
>
>   private static final String  contextFactory =
"org.jnp.interfaces.NamingContextFactory" ;
>   private static final String  urlPkgPrefixes =
"org.jnp.interfaces" ;
>   private static final String  providerUrl= "localhost:1099" ;
>   private static InitialContextjndiContext = null ;
>
>   public static InitialContext getJndiContext()
>   throws NamingException {
> return getJndiContext(false) ;
>   } //end getJndiContext()
>
>   public static synchronized InitialContext getJndiContext(
>   boolean  restart )
>   throws NamingException {
> if (jndiContext == null
>|| restart) {
> Properties props = new Properties();
> props.setProperty(Context.INITIAL_CONTEXT_FACTORY,
contextFactory);
> props.setProperty(Context.URL_PKG_PREFIXES, urlPkgPrefixes);
> props.setProperty(Context.PROVIDER_URL, providerUrl);
> jndiContext = new InitialContext(props);
> } //end if
> return jndiContext ;
>   } //end getJndiContext()
>
>   public static Object getRemoteHome(
>   String   beanName,
>   ClassremoteHomeClass )
>   throws NamingException {
> Object ref  = null ;
> try {
>   ref = getJndiContext().lookup(beanName);
> } catch (Exception e) {
>   ref = getJndiContext(true).lookup(beanName) ;
> } //end try
> return PortableRemoteObject.narrow(ref, remoteHomeClass);
>   } //end getRemoteHome()
>
>
> > From: "Andrew" <[EMAIL PROTECTED]>
> > To: "JBossUser" <[EMAIL PROTECTED]>
> > Date: Fri, 7 Jun 2002 18:46:02 +0400
> > Subject: [JBoss-user] (JBoss3)Handles problem in Tomcat standalone
> > Reply-To: [EMAIL PROTECTED]
> >
> > EJB handles not properly work in Tomcat environment seems it's using
> > Tomcat's JNDI Context for lookup...
> > What could be wrong?
> >
> > Thanks.
>
> ___
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>




___

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

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



Re: [JBoss-user] JBoss 3.0.0 hiding RuntimeExceptions ???

2002-06-08 Thread Marius Kotsbak

On lør, 2002-06-08 at 00:37, Brandon Knitter wrote:
> I checked out things with: cvs co -r JBoss_3_0_0 jboss-all
> 
> So, after I apply that patch, then I go into jboss-all/build dir and run
> build.sh.  Then what?  What do I move and copy over the binary distro I
> downloaded?  Is it an entire dir, or just a jar?
the contents of build/output is the same that the precompiled versions
you find at sourceforge. Just copy/move it somewhere and run it.


> 
> Thanks in advance,
> 
> -- 
> -bk
> 
> 
> Quoting Marius Kotsbak <[EMAIL PROTECTED]>:
> 
> > I have reported it as bug
> >
> (http://sourceforge.net/tracker/?func=detail&aid=565279&group_id=22866&atid=376685),
> >  
> > and submitted a patch to solve it (#562036
> >
> 
>http://sourceforge.net/tracker/index.php?func=detail&aid=562036&group_id=22866&atid=376687),
> > 
> > , but noone seems to notice. So I have to apply it myself every time I
> > build jboss :-( 
> > 
> > Without it, I get exception like this that doesn't tell me anything
> > several times a week! 
> > 
> > 
> > On fre, 2002-06-07 at 20:29, Paul Kavanagh wrote:
> > > Hi guys,
> > > 
> > > hoping someone can shed some light on this.
> > > 
> > > I'm using JBoss 3.0.0 (using default settings for everything) on Win2K,
> > but
> > > when I run my test applciation (Java client connecting to a simple
> > session
> > > bean) on it, JBoss is not showing us any RuntimeExceptions which are
> > being
> > > thrown (neither on the console nor in the server.log). The client is
> > getting
> > > a java.rmi.ServerException, but there's no stack trace or any info on the
> > > server. I'm using the default log4j.xml. Any ideas ?
> > > 
> > > Thanks in advance,
> > > -Paul
> > > 
> > > 
> > > ___
> > > 
> > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > > 
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> > 
> > ___
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -
> > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___

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

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



Re: [JBoss-user] org.jboss.util.NestedSQLException: failed to register driver

2002-06-08 Thread John Hogan

put the driver jar file in the classpath


- Original Message -
From: "Jim" <[EMAIL PROTECTED]>
Date: Thu, 6 Jun 2002 14:38:14 -0400 
To: <[EMAIL PROTECTED]>
Subject: [JBoss-user] org.jboss.util.NestedSQLException: failed to register driver


> I have one remaining problem with connecting to a database on a remote
> machine (occurs when I invoke a method on the bean that requests the
> connection using getConnection)
> 
> Here's the exception I get:
> org.jboss.util.NestedSQLException: Failed to register driver for:
> org.gjt.mm.mysql.Driver
> 
> A little further up in the log file:
> Driver not yet registered for url:
>  jdbc:mysql://remote.machine.org:3306/mydatabase
> 
> I followed the examples in the 'declaring resource references' section of
> the jboss manual.
> 
> In particular, I have this in my ejb-jar.xml file:
> 
> Blah
> jdbc/MySqlDS
> javax.sql.DataSource
> Container
>
> 
> And in my jboss.xml:
> 
>jdbc/MySqlDS
>java:/MySqlDS
>  
> 
> Finally, my jboss-service file has the entire mbean section from the mysql
> example
> (http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jbosscx/src/etc/exampl
> e-config/mysql-service.xml?rev=1.7&content-type=text/vnd.viewcvs-markup)
> with the appropriate changes for my setup.
> 
> I have also put an application-policy entry in my login-config.xml file...
> 
> I have copied the mm.mysql jar file into my server/default/lib directory.
> (it is version 2.0.14 of the driver).
> 
> Any suggestions?
> 
> Thanks...
> Jim
> 
> 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 

-- 
___
Get your premium email from http://www.ireland.com/email


___

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

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



Re: [JBoss-user] Apache Tomcat/4.0 - Http Status 404

2002-06-08 Thread David Jencks

You can deploy anything exploded, the dir. structure has to match the
compressed format.  So your jsps have to be inside a dir. named blah.war.

david jencks

On 2002.06.07 15:17:11 -0400 Coral Burns wrote:
> Thanks Olek!
> 
> The only issue with what you mention below is that I do want to run the
> Tomcat that is integrated with JBoss - I don't want to run TomCat in
> standalone mode , since for the application I'm working with I'm
> deploying a
> Bean to Jboss and also bringing up .jsp files via Tomcat (in an exploded
> format - not part of a war file).
> 
> So essentially, I want to deploy the Bean to JBoss but also bring up a
> jsp
> page that uses the bean via Tomcat.   So, I don't want to run JBoss and
> Tomcat separately, but instead I want them to run together - so the
> application can run.   I was able to do this with a former
> JBoss-2.4.3/Tomcat3.2.3 download  - I just had to add some Tomcat jar
> files
> to my classpath and edit the conf/server.xml file.  But I can't seem to
> get
> the same things going with the latest  JBoss3.0.0/Tomcat4.0.3 bundle.  I
> can
> bring up the examples provided in a browser, but the example.jsp pages
> are
> deployed via a war.
> 
> There has to be some way that I can just bring up .jsp pages with JBoss
> running with the integrated Tomcat which are in an "exploded" format,
> rather
> than in a war file.
> 
> Coral Burns
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Aleksander
> Grzebyta
> Sent: Friday, June 07, 2002 12:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Apache Tomcat/4.0 - Http Status 404
> 
> 
> Hello !
> 
> OK. Maybe go to catalina/bin dir, and run tomcat separately from JBoss.
> Then
> put some dir under webapps and then jsp in it. This must be WAR structure
> I
> don't knwo its minimal set, however Tomcat allows to put dir into webapps
> not only wars. On the other hand it seems to me that JBoss must obtain a
> war
> archive into its deploy dir to know what to do with it.
> 
> sincerely Olek
> 
> - Original Message -
> From: "Coral Burns" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 07, 2002 6:54 PM
> Subject: RE: [JBoss-user] Apache Tomcat/4.0 - Http Status 404
> 
> 
> > Thanks for your reply!
> >
> > But what I would like to do is bring up one simple .html or .jsp file
> (not
> > within a war or ear file) on localhost port 8080 rather than deploying
> the
> > test .jsp file within a war file...how do I go about doing that?
> >
> > Also, if I have downloaded the JBoss3.0.0/Tomcat4.0.3 bundle from
> jboss.org
> > then I have the entire Tomcat server don't I?  (I mean, I don't have to
> go
> > to jakarta and download TomCat 4.3.0 separately, do I)...
> >
> > Thanks in advance,
> >
> > Coral
> >
> >
> >
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Aleksander
> > Grzebyta
> > Sent: Friday, June 07, 2002 9:47 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Apache Tomcat/4.0 - Http Status 404
> >
> >
> > Hello !
> >
> > It seems to me that original Tomcat webapps is not active when working
> with
> > JBoss. Try to deploy same simple war under /server/default/deploy dir.
> >
> > sincerely Olek
> >
> > - Original Message -
> > From: "Coral Burns" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, June 07, 2002 4:55 PM
> > Subject: [JBoss-user] Apache Tomcat/4.0 - Http Status 404
> >
> >
> > >
> > > Hello:
> > >
> > > I downloaded the Jboss-3.0.0/Tomcat4.0.3 bundle from the jboss.org
> site
> > and
> > > I'm trying to bring up a test .html page using the Tomcat webserver,
> but
> I
> > > keep getting this error:
> > >
> > > Apache Tomcat/4.0 - Http Status 404 - the requested resource
> > /jsp/test.html
> > > is not available.
> > >
> > > Jboss, with the embedded Tomcat, seems to start fine and I get these
> > > messages in the console when I start Jboss, so I'm assuming that
> Tomcat
> is
> > > ok:
> > >
> > > 08:40:29,749 INFO  [MainDeployer] Adding deployer:
> > > org.jboss.web.catalina.EmbeddedCatalinaServiceSX@113dc1
> > > 08:40:34,185 INFO  [STDOUT] Apache Tomcat/4.0.3
> > > 08:40:34,215 INFO  [Engine] HttpConnector Opening server socket on
> all
> > host
> > > IP addresses
> > > 08:40:34,225 INFO  [Engine] HttpConnector[8080] Starting background
> thread
> > > 08:40:35,036 INFO  [Engine] HttpProcessor[8080][0] Starting
> background
> > > thread
> > > 08:40:35,046 INFO  [Engine] HttpProcessor[8080][1] Starting
> background
> > > thread
> > > 08:40:35,056 INFO  [Engine] HttpProcessor[8080][2] Starting
> background
> > > thread
> > > 08:40:35,056 INFO  [EmbeddedCatalinaServiceSX] OK
> > >
> > > I put my test .html file in this location on my computer:
> > >
> > > C:\jboss-3.0.0RC3_tomcat-4.0.3\catalina\webapps\examples\jsp\test.html
> > >
> > > and try and bring it up with this URL:
> > >
> > > http://localhost:8080/examples/jsp/test.html
> > >
> > >
> > > But

[JBoss-user] 3.0.0 InstantiateException + JAWS?

2002-06-08 Thread Frank Morton



Still transitioning from RC1 to 3.0.0. When I 
instantiate
an EJB 2.0 entity bean, I get an 
InstantiateException
below. Also, in the stack trace is a reference to 
JAWS,
which I thought had nothing to do with EJB 2.0. I 
must
be wrong about that.
 
Any idea what can cause this. Runs fine under 
RC1.
 
Using mysql underneath.
 
Here is the exception:
 
00:10:57,538 INFO  [Jetty] JSP: init00:11:21,259 WARN  
[Jetty] WARNING: Servlet Exception for 
/icva/servlet/IcvaFrameworkjava.lang.reflect.UndeclaredThrowableException: 
java.rmi.ServerException: Could not instantiate bean; nested exception is: 
    java.lang.InstantiationException: 
com.base2inc.bean.entity.note.NoteBean; nested exception is: 
    java.rmi.ServerException: Could 
not instantiate bean; nested exception is: 
    java.lang.InstantiationException: 
com.base2inc.bean.entity.note.NoteBeanjava.rmi.ServerException: Could not 
instantiate bean; nested exception is: 
    java.lang.InstantiationException: 
com.base2inc.bean.entity.note.NoteBeanjava.lang.InstantiationException: 
com.base2inc.bean.entity.note.NoteBean    
at java.lang.Class.newInstance0(Native 
Method)    at 
java.lang.Class.newInstance(Class.java:237)    
at 
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.createBeanClassInstance(JAWSPersistenceManager.java:165)    
at 
org.jboss.ejb.plugins.CMPPersistenceManager.createBeanClassInstance(CMPPersistenceManager.java:165)    
at 
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.createBeanClassInstance(CachedConnectionInterceptor.java:251)    
at 
org.jboss.ejb.EntityContainer.createBeanClassInstance(EntityContainer.java:294)    
at 
org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:208)    
at 
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:122)    
at 
org.jboss.ejb.plugins.EntityLockInterceptor.invokeHome(EntityLockInterceptor.java:79)


Re: [JBoss-user] Opening multiple databases in on session bean

2002-06-08 Thread David Jencks

I don't know why it would be more than 2x slower.

If you access 2 or more resource managers (databases) within one
transaction, you need 2pc or xa in order to assure that you actually have
ACID tx properties.  If you are using the LocalTx wrapper and/or non-xa
databases, you don't have 2pc or xa, so if something goes wrong, you may
end up with inconsitent data.  The warning is pointing this out.

david jencks

On 2002.06.07 09:20:25 -0400 Greg Noorman wrote:
> I have started working with Jboss and was trying to access 2 different
> mysql
> databases on the same server.  When I do this the server comes up with
> the
> following warning:
> 
> 13:44:38,984 WARN  [LocalTxConnectionManager$LocalConnectionEventListener]
> prepare called on a local tx. You are not getting the semantics you
> expect!
> 13:44:38,985 WARN  [LocalTxConnectionManager$LocalConnectionEventListener]
> prepare called on a local tx. You are not getting the semantics you
> expect!
> 
> If only access one of the databases (either one), no warnings and
> response
> is quick.  If I hit both I get the warning and much slower response. I
> suppose because it has to process the Event.  In all cases, it does
> retrieve
> the correct information from the databases.
> Any ideas about this warning???
> 
> We are running jboss-3.0.0_tomcat-4.0.3 on a Solaris system using jdk
> 1.3.
> 
> Here is the code:
> 
> package cae.mysql;
> 
> import java.util.*;
> import javax.ejb.SessionBean;
> import javax.naming.*;
> import javax.rmi.PortableRemoteObject;
> import java.sql.*;
> 
> public class MySQLBean implements SessionBean {
> public void ejbCreate() {}
> public void ejbPostCreate() {}
> public String getTL (String tlname) throws java.rmi.RemoteException {
> return getchk();
> }
> public String getchk() {
> PreparedStatement pstmt = null;
> Connection conn = null;
> try {
> conn = getConnectionchk();
> pstmt = conn.prepareStatement("Select fval from checkit where
> find = 1");
> ResultSet rs = pstmt.executeQuery();
> if (rs.next()) {
> return rs.getString("fval");
> }
> } catch (Exception e) {
> e.printStackTrace();
> } finally {
> try { if (pstmt != null) pstmt.close(); }
> catch (Exception e) {}
> try { if (conn != null) conn.close(); }
> catch (Exception e) {}
> }
> return "Shucks";
> }
> public String getTL() {
> PreparedStatement pstmt = null;
> Connection conn = null;
> try {
> conn = getConnectionTL();
> pstmt = conn.prepareStatement("Select des_num from contains
> where draw_num = 174183");
> ResultSet rs = pstmt.executeQuery();
> if (rs.next()) {
> return rs.getString("des_num");
> }
> } catch (Exception e) {
> e.printStackTrace();
> } finally {
> try { if (pstmt != null) pstmt.close(); }
> catch (Exception e) {}
> try { if (conn != null) conn.close(); }
> catch (Exception e) {}
> }
> return "Dang, Missed again\n";
> }
> public Connection getConnectionchk() throws Exception {
> try {
> Context ctx = new InitialContext();
> javax.sql.DataSource ds =
> (javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/chkDS");
> return ds.getConnection();
> } catch (Exception e) {
> System.err.println("Couldn't get datasource!");
> e.printStackTrace();
> throw e;
> }
> }
> public Connection getConnectionTL() throws Exception {
> try {
> Context ctx = new InitialContext();
> javax.sql.DataSource ds =
> (javax.sql.DataSource)ctx.lookup("java:comp/env/jdbc/TravLogDS");
> return ds.getConnection();
> } catch (Exception e) {
> System.err.println("Couldn't get datasource!");
> e.printStackTrace();
> throw e;
> }
> }
> public void ejbActivate() {}
> public void ejbPassivate() {}
> public void ejbRemove() {}
> public void setSessionContext(javax.ejb.SessionContext ec) {}
> }
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

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

___
JBoss-user mailing 

Re: [JBoss-user] JBoss 3.0.0 hiding RuntimeExceptions ???

2002-06-08 Thread Marius Kotsbak

On lør, 2002-06-08 at 00:37, Brandon Knitter wrote:
> I checked out things with: cvs co -r JBoss_3_0_0 jboss-all
> 
> So, after I apply that patch, then I go into jboss-all/build dir and run
> build.sh.  Then what?  What do I move and copy over the binary distro I
> downloaded?  Is it an entire dir, or just a jar?
the contents of build/output is the same that the precompiled versions
you find at sourceforge. Just copy/move it somewhere and run it.


> 
> Thanks in advance,
> 
> -- 
> -bk
> 
> 
> Quoting Marius Kotsbak <[EMAIL PROTECTED]>:
> 
> > I have reported it as bug
> >
> (http://sourceforge.net/tracker/?func=detail&aid=565279&group_id=22866&atid=376685),
> >  
> > and submitted a patch to solve it (#562036
> >
> 
>http://sourceforge.net/tracker/index.php?func=detail&aid=562036&group_id=22866&atid=376687),
> > 
> > , but noone seems to notice. So I have to apply it myself every time I
> > build jboss :-( 
> > 
> > Without it, I get exception like this that doesn't tell me anything
> > several times a week! 
> > 
> > 
> > On fre, 2002-06-07 at 20:29, Paul Kavanagh wrote:
> > > Hi guys,
> > > 
> > > hoping someone can shed some light on this.
> > > 
> > > I'm using JBoss 3.0.0 (using default settings for everything) on Win2K,
> > but
> > > when I run my test applciation (Java client connecting to a simple
> > session
> > > bean) on it, JBoss is not showing us any RuntimeExceptions which are
> > being
> > > thrown (neither on the console nor in the server.log). The client is
> > getting
> > > a java.rmi.ServerException, but there's no stack trace or any info on the
> > > server. I'm using the default log4j.xml. Any ideas ?
> > > 
> > > Thanks in advance,
> > > -Paul
> > > 
> > > 
> > > ___
> > > 
> > > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> > > 
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> > 
> > ___
> > 
> > Don't miss the 2002 Sprint PCS Application Developer's Conference
> > August 25-28 in Las Vegas -
> > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> > 
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > 
> > 
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user



___

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

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



Re: [JBoss-user] web services on jboss

2002-06-08 Thread Marius Kotsbak

The best soure of information is jboss.net testsuite in cvs.

On lør, 2002-06-08 at 03:46, Rama Kishore Yelamanchilli wrote:

Hello,

I plugged in jboss.net(web services) into jboss. Now I'm wondering what
can I do for deploying a web service and test it. I read the only
documentation page of jboss and learned that jws file needs to be
wrapped in a .wsr file. What else should .wsr file contain and where it
should be placed. Can you please give me a right direction??

Thanks

RamaKishore Yelamanchilli
440 Dixon Landing Rd Apt# J208
Milpitas CA 95035
 


Send and receive Hotmail on your mobile device: Click Here
___ Don't
miss the 2002 Sprint PCS Application Developer's Conference August 25-28
in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
___ JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



___

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

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



Re: [JBoss-user] Auto created relationship table name.

2002-06-08 Thread Christofer Sandberg

I think the table mapping xml tags are named diffrently and are in another 
structure then the one you supplied assuming you are running JBoss 3.0 
something.

Try replacing the relationships part in your jbosscmp-jdbc.xml with the 
following:


  
Client-Acl

client_acl

false
false

client-has-acls


id
client_id

  
 
 
acl-has-clients


id
acl_id


 




/Christofer

On Saturday 08 June 2002 03.02, you wrote:
> I left out the entity bean stuff as it is pretty long.  Let me know if you
> see my problem or if you want to see other files.
> gary.
>
>
> 
>
> 
>
> 
>
> 
>   
>   java:/ISG_DS
>   PostgreSQL
>   true
>   false
>   false
>   false
>   300
>   true
>   false
>   false
>   false
>   foreign-key
>   
>   on-load
>   1000
>   *
>   
>   1000
>   t
>   
>   
>   
>   Client-Acl
>   
>   client_acl
>   false
>   false
>   
>   
>client-has-aclse> 
>   
>   id
>   
>client_id
>   
>   
>   
>   
>   
>acl-has-clientse> 
>   
>   id
>   
>acl_id
>   
>   
>   
>   
>   
>   
> 
>
> Arthur Wang wrote:
> >please post your many-to-many relationship defination in
> > jbosscmp-jdbc.xml.
> >
> >-Original Message-
>
> From: Gary S. Cuozzo [mailto:[EMAIL PROTECTED]]
>
> >Sent: Friday, June 07, 2002 5:21 PM
> >To: [EMAIL PROTECTED]
> >Subject: Re: [JBoss-user] Auto created relationship table name.
> >
> >
> >This seems similar to the problem that I am seeing.  I am not
> >auto-creating the table, but instead have an existing table that I want
> >to use.
> >
> >When I try to use my many-to-many relationship, I get exceptions because
> >the table (that jboss is trying to use) doesn't exist.  I have no idea
> >what I am doing wrong, but am looking at the recently posted cmr-example
> >right now.
> >
> >Currently, I have never gotten a table-mapped relationship to work.
> >
> >Anybody seen this problem & fixed it?  I actually posted a report a few
> >nights ago, but did not get any responses.
> >
> >I'll be sure to let you know if/when I figure this out.
> >
> >gary.
> >
> >Arthur Wang wrote:
> >>I set create-table as true in my jbosscmp-jdbc.xml, so the jboss will
> >
> >create
> >
> >>table for me, but the name of relation table created is like 'A-Bs-B-As",
> >
> >it
> >
> >>is not the name I specified in relation-table-mapping of
> >> jbosscmp-jdbc.xml.
> >>
> >>-Original Message-
> >>From: Dain Sundstrom [mailto:[EMAIL PROTECTED]]
> >>Sent: Friday, June 07, 2002 4:27 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: Re: [JBoss-user] Auto created relationship table name.
> >>
> >>Arthur Wang wrote:
> >>>Hi ,
> >>>
> >>>I have a many to many relationship betwen two beans, and I specify the
> >>>relation table in the ejb-jar.xml file, but when set the create-table as
> >>>true in jbosscmp-jdbc.xml, the created relation table has a different
> >>> name as the one I specified in the relationship defination, this should
> >>> not be
> >>
> >>a
> >>
> >>>problem if I use existing table, but in this case(create table when
> >>
> >>deploy),
> >>
> >>>many to many relationship may not working. Any idea on it?
> >>
> >>I don't understand you.  Can you be more specific?
> >>
> >>-dain
> >>
> >>
> >>
> >>___
> >>
> >>Don't miss the 2002 Sprint PCS Application Developer's Conference
> >>August 25-28 in Las Vegas -
> >>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> >>
> >>___
> >>JBoss-user mailing list
> >>[EMAIL PROTECTED]
> >>https://lists.sourceforge.net/lists/listinfo/jboss-user
> >>
> >>

Re: [JBoss-user] SapDB and Jboss

2002-06-08 Thread David Jencks

Please use the release version of jboss 3 or something later.  You won't
get any support for pre-release versions.

All the sample configurations are contributed by users of those products. 
If you look you will see they are almost completely identical to each
other.  Usually you just have to change the url format and driver class.  I
recommend changing the mbean names to indicate the db also.  After you have
gotten it to work please post the config and I will add it to cvs so other
users can benefit.

thanks
david jencks

On 2002.06.07 16:16:15 -0400 Arthur Wang wrote:
> Hi everyone,
> 
> I am using Jboss3.0 RC2, I found some example db-service.xml file under
> docs/examples/jca, but no example for sapdb (there is data mapping for
> sapdb
> in standardjaws.xml and standardjbosscmp-jdbc.xml), I am not sure if I
> can
> deploy cmp2.0 application in JBoss-SapDB. 
> 
> Your early reply would be highly apreciated.
> 
> Thanks
> Arthur Wang
> Ensemble Systems Inc.
> Tel: (604)232-7954 Fax: (604)231-9545
> www.ensemble-systems.com
> 
> 
> 
> ___
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - 
>http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 

___

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

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