[JBoss-user] [Beginners Corner] - Re: Configuring JBoss to existing tomcat

2004-04-19 Thread luigifonti
Yes, you must copy the files to tomcat directory, then start or re-start tomcat. Jboss doesn't need to be re-started if already active. The jar file with the packed bean classes must be copied to jboss directory (e.g. ../server/default/deploy/ ). It will automatically be deployed within few

[JBoss-user] [Beginners Corner] - Re: Configuring JBoss to existing tomcat

2004-04-19 Thread luigifonti
Oh, i see i made a mistake in my previous reply: the library jar files must be copied taking them from jboss-home/client/ directory, not from jboss-home/server/default/lib/ Bye Luigi Fonti View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3831379#3831379 Reply

[JBoss-user] [Beginners Corner] - Re: jboss on redhat 9

2004-04-17 Thread luigifonti
It seems the file jboss-service.xml is really missing. Can you check if the file is present in directory: /usr/local/jboss/server/default/deploy/jmx-invoker-adaptor-server.sar/META-INF ? It should be there, otherwise jboss was not completely installed. View the original post :

[JBoss-user] [Beginners Corner] - Re: Configuring JBoss to existing tomcat

2004-04-17 Thread luigifonti
I am currently using Tomcat-5 (pre-installed on port 80) and jboss-3.2.3 (with embedded Tomcat-4 on port 8080). They co-exist and work. Servlets are installed on tomcat-5, and they successfuly access EJBs managed by jboss (using remote interfaces). I just had to copy the following jar files

[JBoss-user] [Installation Configuration] - Re: I can't get localhome in jboss! Help me!

2004-04-10 Thread luigifonti
The point is: if a bean has remote interfaces, it can be recalled by plain java objects, local or remote, as well as by other beans on the same server. If the bean only has local interfaces, it may only be recalled by other beans on the same server. So you have two solutions: or you write remote

[JBoss-user] [Installation Configuration] - RMI problems with more IP addresses

2004-04-09 Thread luigifonti
It took a lot of time, but finally I solved a crazy problem. If the server PC has more than one network interface, with different IP addresses (e.g. an ADSL interface for internet, and an ethernet interface for a local area network), problems may arise accessing the server (Jboss or RMI) from

[JBoss-user] [Installation Configuration] - Re: Raising JBoss ports on one particular ip-addess

2004-04-08 Thread luigifonti
I have the same problem, so i tried to see where jboss.bind.address is defined, but I only found places where it is used, but none where it is defined. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3829815#3829815 Reply to the post :

[JBoss-user] [Installation Configuration] - Re: Raising JBoss ports on one particular ip-addess

2004-04-08 Thread luigifonti
Moreover, the -s ip-address option is only usable under Linux (run.sh), but under Windows run.bat doesn't like it. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3829823#3829823 Reply to the post :

[JBoss-user] [EJB/JBoss] - Re: Crazy problem

2004-03-21 Thread luigifonti
Could you please be more explicit ? How can I check the _reverse_ ns-lookup ? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826714#3826714;View the original post/a a href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3826714Reply to the post/a

[JBoss-user] [HTTPD, Servlets JSP] - JSP to EJB

2004-03-19 Thread luigifonti
Is it possible to directly recall an EJB from a Java Server Page, in a way similar to that used to recall a normal java bean (jsp:useBean...% ? Can I see an example of the syntax to be used ? Tank you. Luigi a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3826656#3826656;View

[JBoss-user] [EJB/JBoss] - Re: Remote clients JNDI problem

2004-03-16 Thread luigifonti
OK, I've found a trick to get it working ! in /etc/hosts I wrote: 192.168.0.170 localhost in place of: 127.0.0.1 localhost i.e. I assigned to 'localhost' the address defined by DHCP. But if the address changes, should I edit /etc/hosts every time ? a

[JBoss-user] [EJB/JBoss] - Re: Remote clients JNDI problem

2004-03-16 Thread luigifonti
I have seen that this problem is not specific to jboss, but more generally involves RMI. With localhost defined as 127.0.0.1 in /etc/hosts, RMI based servers refuse servicing the requests, and force remote clients to address the node 127.0.0.1 (i.e. the client itself). If you assign to

[JBoss-user] [EJB/JBoss] - Re: Remote clients JNDI problem

2004-03-16 Thread luigifonti
I have found a better solution now. In /etc/hosts, I added a second line associating the real IP address of the Linux machine to an IP name, instead of changing the localhost definition: 127.0.0.1 localhost 192.168.0.170 myhost.com With this addition things work fine. Loooking around in

[JBoss-user] [EJB/JBoss] - Re: Remote clients JNDI problem

2004-03-15 Thread luigifonti
Yes I have already tried Context.list() and Context.listBindings(), but these methods require a name as parameter. What a name should I pass as parameter to list all the bindings ? I tried with *, with all and more, but the result is always the same: object not found in table. All the jboss

[JBoss-user] [EJB/JBoss] - Re: Remote clients JNDI problem

2004-03-15 Thread luigifonti
OK, I tried now Context.listBindings(), i.e. the empty name which should represent the Context itself. Again, I have the error: object not found in table. I am sure the problem is not on client side: if I try with different external servers (Win XP), things work. Only that damned server on

[JBoss-user] [EJB/JBoss] - Re: Remote clients JNDI problem

2004-03-12 Thread luigifonti
Thanks, but none of your suggestion works, sorry. My question is: Is there a way to list all the bounded names in jboss server, using a remote client (not jmx-console) ? a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3825346#3825346;View the original post/a a

[JBoss-user] [EJB/JBoss] - Re: Crazy problem

2004-03-09 Thread luigifonti
I've tried also the following : env = new Hashtable(); env.put (Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); env.put(Context.PROVIDER_URL,jnp://192.168.0.170:1099); InitialContext jndiContext = new InitialContext(env); ref =

[JBoss-user] [Installation Configuration] - Jboss only works with local clients on Linux

2004-03-08 Thread luigifonti
I've a crazy problem. Installed Jboss-3.2 on two different machines: the first one with Windows XP, the other one with Linux Mandrake 10. Create a test application which seems to work proper on both machines with local clients. The problem is when I try to use clients on remote machines: the

[JBoss-user] [Beginners Corner] - Crazy problem

2004-03-08 Thread luigifonti
I've a crazy problem. Installed Jboss-3.2 on two different machines: the first one with Windows XP, the other one with Linux Mandrake 10. Create a test application which seems to work properly on both machines with local clients. The problem is when I try to use clients on remote machines:

[JBoss-user] [EJB/JBoss] - Re: Crazy problem

2004-03-08 Thread luigifonti
This is the log of deployment of the package on the Linux machine, with IP address 192.168.0.170: 2004-03-08 22:53:13,341 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/usr/java/jboss3.2/server/default/deploy/banca.jar 2004-03-08 22:53:20,700 INFO

[JBoss-user] [EJB/JBoss] - Re: Crazy problem

2004-03-08 Thread luigifonti
No, sorry. I've tried with jnp://... but the result is the same. And please keep in mind that in the other sense (jboss on Windows XP, and client on Linux) things work fine using java://... a href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3824825#3824825;View the original post/a

[JBoss-user] [Persistence CMP/JBoss] - Error: CMR Collection only used within transaction

2004-03-02 Thread luigifonti
I've developed a very simple CMP EJB-set with multiple relations between them. Testing them, I call an EJB method returning a Collection: the CurrentCount(s) owned by a given Customer, then I try to print them. I get the following obscure error message: CMR Collection may only be used within

[JBoss-user] [EJB/JBoss] - Re: Warnings with mySql - XA

2004-02-27 Thread luigifonti
Found the solution: substituted mysql.jar wih a more recent version taken from mysql-connector-java-3.0.11 and everithing went to place. Formerly I was using a very old mmjdbc version. Luigi Fonti View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3823296#3823296

[JBoss-user] [EJB/JBoss] - Re: Transaction Warnings

2004-02-27 Thread luigifonti
Found the solution: substituted mysql.jar wih a more recent version taken from mysql-connector-java-3.0.11 and everithing went to place. Formerly I was using a very old mmjdbc version. Luigi Fonti View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3823297#3823297

[JBoss-user] [EJB/JBoss] - Re: Transaction Warnings

2004-02-26 Thread luigifonti
For what I can understand, my jboss installation is already configured for local datasource: mysql-service.xml has the following tags in it: module-option name = managedConnectionFactoryName jboss.jca:service=LocalTxCM,name=MySqlDS /module-option Is that what you mean ? Where else should

[JBoss-user] [EJB/JBoss] - Warnings with mySql - XA

2004-02-26 Thread luigifonti
I have developed my first, simple, Bean managed Entity bean. I am using Jboss-3.0.4 and mySql-3.2 Everyting works, but every time I access the database using the bean, i get some warnings, like: 1) javax.transaction.xa.XAException: wrong id in commit: expeced: null, got: XidImpl 2)

[JBoss-user] [EJB/JBoss] - Transaction Warnings

2004-02-25 Thread luigifonti
I have developed my first, simple, Bean managed Entity bean. I am using Jboss-3.0.4 and mySql-3.2 Everyting works, but every time I access the database using the bean, i get some warnings, like: 1) javax.transaction.xa.XAException: wrong id in commit: expeced: null, got: XidImpl 2)

[JBoss-user] [Installation Configuration] - How can i see the deployed ejbs?

2004-02-18 Thread luigifonti
I have Jboss-3 installed and working Now, I would like to see a map of installed EJB's and thei methods How can i do it ? Luigi Fonti View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3822005#3822005 Reply to the post :