[JBoss-user] Transactions rollback for no reason on JBoss-4.0.0RC2!

2004-09-18 Thread Dasarath Weeratunge
Hi,

I'm using JBoss-4.0.0RC2. I'm calling an ejb whose
methods have Container/Required transaction setting.
The method getBalance
retrives the balance in a given account from a SQL
Server database. The method works fine and within the
method the transactional state is STATUS_ACTIVE.
However, when it returns I get the following exception
and the transaction is rolled back for no reason. I
wrote to the list earlier about mssql-xa-ds.xml not
getting deployed. I findout that when you place it
directly into the deploy directory (rather than
/META-INF of the ejb-jar archive) it deploys the
datasource. My database is OK since everything works
when I try this same code on jboss-3.2.4! Are there
any other setting that I have to setup when connecting
to a database other than to copy the jdbc drivers and
put the *-ds.xml file.

Can you please help me sort out this problem.

12:04:09,875 INFO  [EjbModule] Deploying Bank
12:04:09,984 INFO  [EJBDeployer] Deployed:
file:/C:/Dasarath/jboss-4.0.0RC2/server/default/deploy/bank.jar
12:04:28,265 INFO  [STDOUT] [BankBean]
getBalance(1001) STATUS_ACTIVE
12:04:28,265 INFO  [STDOUT] [BankBean] getConnection()
12:04:28,281 ERROR [LogInterceptor]
TransactionRolledbackException in method: public
abstract double test.Bank_.getBalance(int) throws
java.rm
i.RemoteException, causedBy:
org.jboss.tm.JBossRollbackException: Unable to commit,
tx=TransactionImpl:XidImpl[FormatId=257,
GlobalId=sarasavi-pub3/17, BranchQual=, localI
d=17] status=STATUS_NO_TRANSACTION
at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:344)
at
org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorCMT.java:457)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:325)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at
org.jboss.ejb.Container.invoke(Container.java:859)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at
org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:236)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:775)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at
sun.rmi.transport.Transport$1.run(Transport.java:148)
at
java.security.AccessController.doPrivileged(Native
Method)
at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)

Thanks.

--Dasarath



___
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Jboss and mysql configuration issues

2004-09-18 Thread Soumadeep
I am using JBoss 3.2.5 ...

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848676#3848676

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848676


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Jboss and mysql configuration issues

2004-09-18 Thread Soumadeep
Either way , with or without deploying my application jboss starts up fine when I run 
it on localhost... the problem occurs when I bind Jboss to a static IP (192.168.0.3) .

The JCA conf for mySQL doesn't give a problem but the MBeans, which use an  
initialcontext, fails. I am using jdk1.4.2_05 under RH9 and mySQL 
mysql-standard-4.0.20-pc-linux-i686

The stacktrace is : (can't copy all of it, just putting the problem area)

11:17:48,424 INFO  [STDOUT] KPI MBean Started
11:17:48,425 INFO  [STDOUT] Rules MBean Started
11:17:48,475 INFO  [STDOUT] Actions MBean Started
11:17:48,478 INFO  [STDOUT] ## MBean Servers >>>1
11:17:48,581 INFO  [STDOUT] ## MBean Domain >>>jboss
11:17:48,586 INFO  [STDOUT] Added the Listeners to NotificationHandler
11:17:55,750 INFO  [STDOUT]  ...Startup Started 
...
11:17:55,755 INFO  [STDOUT] KPIDefinition Updater >
11:17:55,861 INFO  [STDOUT] Initial Context.Till Here
11:17:55,862 INFO  [STDOUT] providerURL jnp://192.168.0.3:1099
11:17:56,165 INFO  [STDOUT] javax.naming.CommunicationException [Root exception
is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception 
is:
java.net.ConnectException: Connection refused]
11:17:56,167 INFO  [STDOUT] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649)
11:17:56,262 INFO  [STDOUT] at 
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
11:17:56,262 INFO  [STDOUT] at 
javax.naming.InitialContext.lookup(InitialContext.java:347)
11:17:56,262 INFO  [STDOUT] at 
com.gourangi.mbeans.UpdateKPIDefinitions.update(UpdateKPIDefinitions.java:27)
11:17:56,263 INFO  [STDOUT] at 
com.gourangi.mbeans.AppStartup.start(AppStartup.java:30)
11:17:56,263 INFO  [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method)
11:17:56,305 INFO  [STDOUT] at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:17:56,306 INFO  [STDOUT] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848675#3848675

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848675


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [The Lizzard's corner] - Re: JBoss 4.0 Release Date

2004-09-18 Thread CptnKirk
Any updated news on the 4.0 final release?

-Jim

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848674#3848674

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848674


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Beginners Clustering Qu

2004-09-18 Thread lretief
Does the Job Handling Server run on JBoss? From your initial mail I am guessing no? Is 
it third-party, custom, Java whatever?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848673#3848673

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848673


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: Dukes Bank jboss-build.xml not correct for JBoss 3.2.5 i

2004-09-18 Thread GrandApeiron
Even disabling HTML doenst work...
So this is the last try. if it doesnt work leave a message if you want the files...

#

#  
#  
# 
#
# 
#  
#  


...
...



#  
#  
#
#
#
#  



You must remove all the # for sure

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848672#3848672

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848672


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Re: Dukes Bank jboss-build.xml not correct for JBoss 3.2.5 i

2004-09-18 Thread GrandApeiron
Damn HTML Forum's ;) removed the out commented XML lines of my example:



  
  
  

  
  
  




..

  
  



  





View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848671#3848671

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848671


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Dukes Bank jboss-build.xml not correct for JBoss 3.2.5 insta

2004-09-18 Thread GrandApeiron
Hi all,

i just installed JBoss today and wanted to setup the Dukes Bank application as 
described in the Getting Started guide.
Everything is fine and working well now. But i got some sniffy compilation errors 
after executing "ant -f jboss-build.xml".

I found out that the errors occur because the jboss-build.xml didnt include all 
necessary jars (to be specific: jsp-api.jar,servlet-api.jar) in the build-classpath or 
referenced to the wrong path ($JBOSS_HOME/lib instead of 
$JBOSS_HOME/server/default/deploy/jbossweb-tomcat50.sar).

After fixing these problems i was able to build/compile fine.

I dont know that for sure (maybe its a problem with my installation only, or i did 
something else wrong) but maybe one should modify the named jboss files or everyone 
trying to work through the Getting Started guide may run into the same trouble.

Here again what i did to make it work:
I commented out all "servlet" lines in j2eetutorial/built.properties 

and changed/added the following parts of jboss-build.xml
(you must replace the regarding sections with the ones below)


  
  
  


  
  



  



Bye All!, i need some sleep now.
Greetings from Germany,
Grand Apeiron

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848670#3848670

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848670


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Multiple Ear Files - Deploying message driven beans

2004-09-18 Thread darranl
Have you configured the different ears to use different classloaders so that the 
different implementations of the same class can be identified?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848669#3848669

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848669


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Jboss and mysql configuration issues

2004-09-18 Thread darranl
Could you provide the stack trace for the error, including the actual error message so 
that we can see what is actually being reported.  (It is easier to see the error 
reported by JBoss rather than a description of someones interpretation of the error).

Also what happens if you start JBoss without your application being deployed?  Are 
there any errors?

Which version of JBoss are you using and which JDK version?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848668#3848668

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848668


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Problem with simple 1-to-1 Relation with xdoclet and unknown

2004-09-18 Thread stud
Hello everyone,
i'm desperatly trying to write a simple CMR between two Entity Beans using XDoclet and 
the additional challenge of using unkown primary keys :)

I have two beans, a User and a Folder bean. Every User has a folder but not every 
Folder belongs to a user.

My code so far:

UserBean.java
/**
  |  * @ejb.bean
  |  *   name  =  "User"
  |  *   schema  =  "UserSchema"
  |  *   jndi-name  =  "User";
  |  *   description  =  "A User Bean"
  |  *   type  =  "CMP"
  |  *   cmp-version  =  "2.x"
  |  * @ejb.pk
  |  *   class  =  "java.lang.Object"
  |  *   generate  =  "false"
  |  * ---
  |  * @jboss.unknown-pk
  |  *   class  =  "java.lang.Integer"
  |  *   column-name  =  "user_id"
  |  *   auto-increment  =  "true"
  |  *   sql-type  =  "INTEGER"
  |  *   jdbc-type  =  "INTEGER"
  |  * @jboss.persistence
  |  *   pk-constraint  =  "false"
  |  *   remove-table  =  "true"
  |  * @jboss.entity-command
  |  *   name  =  "hsqldb-fetch-key"
  |  */
  | public abstract class UserBean implements EntityBean {
  | ...
  | /**
  |  * @ejb.interface-method
  |  * @ejb.relation
  |  *   name = "USER-has-one-FOLDER"
  |  *   role-name = "Every USER has one FOLDER"
  |  *   target-ejb = "Folder"
  |  *   target-role-name = "Some FOLDER belong to a USER"
  |  *   target-cascade-delete = "yes"
  |  * ---
  |  * @jboss.relation 
  |  *   related-pk-field = "folder"
  |  *   fk-column = "folder_id"
  |  *   dbindex = "true"
  |  *
  |  */
  | public abstract Folder getFolder();
  | }

Folder.java
/**
  |  * @ejb.bean
  |  *   name  =  "Folder"
  |  *   schema  =  "FolderSchema"
  |  *   jndi-name  =  "Folder";
  |  *   description  =  "A Folder Bean"
  |  *   type =  "CMP"
  |  *   cmp-version  =  "2.x"
  |  * @ejb.pk
  |  *   class  =  "java.lang.Object"
  |  *   generate  =  "false"
  |  * ---
  |  * @jboss.unknown-pk
  |  *   class  =  "java.lang.Integer"
  |  *   column-name  =  "folder_id"
  |  *   auto-increment  =  "true"
  |  *   sql-type  =  "INTEGER"
  |  *   jdbc-type  =  "INTEGER"
  |  * @jboss.persistence 
  |  *   pk-constraint  =  "false"
  |  *   remove-table  =  "true"
  |  * @jboss.entity-command
  |  *   name  =  "hsqldb-fetch-key"
  |  */
  | public abstract class FolderBean implements EntityBean {
  | ... (nothing specific to the relation)
  | }

This however gives me a DeploymentException:

Role 'Some FOLDER belong to a USER' on Entity Bean 'Folder' : CMP field for key not 
found: field name='folder_id'

I assume because of me using an unknown primary key its field is not a normal CMP 
field or something...
Is there a way to work around this?

Does anyone know more?
Thanks for the help,
Stud

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848667#3848667

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848667


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Jboss and mysql configuration issues

2004-09-18 Thread Soumadeep
More on the error: 

It seems like the problem is with getting the initialContext . I use MBeans, which 
make db calls at start up - this is where it's throwing the Communication Exception. I 
have added an entry in hosts.allow for the IP being used, was wondering if a 
java.policy would be required during Jboss startup.

Best regards
Soumadeep

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848666#3848666

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848666


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - help me!!! how to set class loader to every ear ?

2004-09-18 Thread daliliu
i want every ear has self class loader, i have put jboss-app.xml to meta-inf/ in ear 
,but i find there is some problems in deployment. ejb can be deployed correctly,but 
war does not. in my web.xml file ,there is a security filter, console print say: no 
class loader for my filter class. what's wrong,please help me! 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848665#3848665

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848665


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss Getting Started Documentation] - Dukebank example

2004-09-18 Thread premier_la
Hello,

I am lerning jbosss, while following the DukeBank example I am getting  error when I 
compile the Java source 

C:\j2eetutorial\bank>ant -f jboss-build.xml compile
Buildfile: jboss-build.xml

prepare:

compile:
[javac] Compiling 1 source file to C:\j2eetutorial\bank\build

BUILD FAILED
C:\j2eetutorial\bank\jboss-build.xml:49: C:\j2eetutorial\bank${jboss.home}\client not 
found.

I am not able to figure out why this is happening..
jboss.home is set to C:\jboss-4.0.0RC1

thanks in advance for any help.
Premierla

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848664#3848664

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848664


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Multiple Ear Files - Deploying message driven beans

2004-09-18 Thread chuckharris
post your jboss.xml and ejb-jar.xml for each mdb.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848663#3848663

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848663


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Jboss and mysql configuration issues

2004-09-18 Thread Soumadeep
Hi,

When I setup JBoss to run using a static IP (jboss.bind.adress=192.168.0.3 - 
jboss-service.xml) on my linux box - basically added an entry in the /etc/hosts file : 
 I can't connect to mySQL, which is running on local host. The error I get is :

javax.naming.CommunicationException [Root exceptionis java.rmi.ConnectException: 
Connection refused to host: 127.0.0.1; nested exception is:
java.net.ConnectException: Connection refused] .

I am getting this error when  jboss starts up, on the other hand when jboss is setup 
to run on localhost everything works fine except I can't login from a remote machine 
:-(

Best regards
Soumadeep



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848662#3848662

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848662


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JMS implementation classes

2004-09-18 Thread timmorrow
That method is only available in JMS 1.1 which is only included with J2EE 1.4.

JBoss 3.x supports J2EE 1.3, which includes the JMS 1.0.2 APIs.  ConnectionFactory has 
no methods in that version.

I'd suggest reviewing the J2EE 1.3 javax.jms API docs and make sure if you're 
following any tutorials that they are for the JMS 1.0.2 spec.  The concepts are the 
same but the actual classes and methods you'll use are different.

Alternatively, use something like Spring Framework's API helpers to insulate your code 
from many of the API details.

Tim

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848659#3848659

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848659


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Failed to find factory for event

2004-09-18 Thread [EMAIL PROTECTED]
Its not an error as its logged at DEBUG level. Set the log4j category filter to INFO 
or higher on the org.jboss.management.j2ee.factory category.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848658#3848658

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848658


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Question about stateful session beans and transactions

2004-09-18 Thread [EMAIL PROTECTED]
This danger does not exist for container managed transactions. It exists only for bean 
managed transactions.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848657#3848657

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848657


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [J2EE Compliance] - Re: TimedObject, JBoss 4,RC1

2004-09-18 Thread [EMAIL PROTECTED]
No, its in the current 4.0 branch codebase.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848656#3848656

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848656


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Management, JMX/JBoss] - New PersistenceManager for XMBeans

2004-09-18 Thread [EMAIL PROTECTED]
There is a new PersistenceService for XMBeans, along with an XML-based 
AttributePersistenceManager implementation, in the upcoming 3.2.6 and 4.0.0 versions.

Use by choosing any persistencePolicy and the DelegatingPersistenceManager in your 
XMBean deployment descriptor, e.g.:


  |
  |   
  |   
  |
  | 

The produced persisted images will be stored as XML files, by default at:

./data/xmbean-attrs.

Details can be found at: 

http://www.jboss.org/wiki/Wiki.jsp?page=XMBeanAttributePersistenceService 

Cheers 
/Dimitris

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848652#3848652

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848652


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [J2EE Compliance] - Re: TimedObject, JBoss 4,RC1

2004-09-18 Thread Frintrop
hi  is it allready working in RC2 ?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848650#3848650

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848650


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Question about stateful session beans and transactions

2004-09-18 Thread balteo
Hello,
I have read about the dangers of beginning a transaction in a stateful session bean 
and not ending that transaction - which could result in the bean never being 
passivated. My question is then how do I ensure the transaction ends bearing in mind I 
only use container transactions?
Thanks in advance,
Julien Martin.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848649#3848649

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848649


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: Nukes with JBoss 3.2.5 ?

2004-09-18 Thread jae77
i'm currently working on getting nukes to run in 3.2.4 and greater. you can run a 
second instance of jboss if you'd like, but you'll need to make sure you change all 
the port numbers so you don't get conflicts. 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848647#3848647

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848647


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Tuning passivation of stateful session ejbs with jboss

2004-09-18 Thread balteo
Thanks darranl!!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848646#3848646

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848646


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Tuning passivation of stateful session ejbs with jboss

2004-09-18 Thread darranl
If you look in the conf folder you should find a file called 'standardjboss.xml'.  

You should be able to find a container-configuration for 'Standard Stateful 
SessionBean', this has the settings you require in the 'cache-policy-conf'.

You could change these values to globaly affect all deploymented or look at the 
administrators and developers guide for instructions on how to override these values 
in one of your deployment descriptors.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848645#3848645

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848645


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Tuning passivation of stateful session ejbs with jboss

2004-09-18 Thread balteo
Hello,
In what configuration file can I decide when jboss steps in to passivate a stateful 
session ejb?
Thanks in advance,
Julien Martin.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848644#3848644

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848644


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: JMS implementation classes

2004-09-18 Thread cbotiza

 Thank you Tim, it seems you are write.

 Still, when I added jboss-j2ee.jar in IntelliJ IDEA's project configuration, it 
complains about having not found some methods, for example: 
ConnectionFactory.createConnection().

 What can I do?

 Thanks a lot

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848642#3848642

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848642


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Nukes User] - Re: Nukes with JBoss 3.2.5 ?

2004-09-18 Thread sheriff
I'd very much like to know the answers to the above post too.  Thanks in advance...

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848639#3848639

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848639


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: Jboss hang on HPUX

2004-09-18 Thread david.wade
Well, we installed the latest pthreads patch PHCO_30544, but the process still hangs...

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848638#3848638

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3848638


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Connecting to SQL Server database

2004-09-18 Thread Dasarath Weeratunge
Hi,

I'm using SQL Server with JBoss-4.0.0RC2.
I *was* using JBoss-3.2.4 before. I copied the SQL
Server libs to /default/lib and depolyed the same
ejbjar in JBoss-4.0.0RC2 that I was using earlier. Now
the ejb is getting depolyed but the datasource is not
setup. My mssql-xa-ds.xml is,


  
BankDS
   
com.microsoft.jdbcx.sqlserver.SQLServerDataSource
localhost
test
cursor
sa
admin
  


This is how I look it up in the bean-

InitialContext initCtx= new InitialContext();
DataSource ds=
(javax.sql.DataSource)initCtx.lookup("java:/BankDS");

Can u please tell me what I must do to get this
datasource setup in JBoss-4.0.0RC2?

Thanks

--Dasarath

P.S. this is the exception I get-

13:30:00,217 ERROR [LogInterceptor] RuntimeException
in method: public abstract double
test.jboss.ejb.bank.Bank.getBalance(int) throws
java.rm
i.RemoteException:
java.lang.RuntimeException:
javax.naming.NameNotFoundException: BankDS not bound
at
test.jboss.ejb.bank.BankBean.getConnection(BankBean.java:98)
at
test.jboss.ejb.bank.BankBean.getBalance(BankBean.java:104)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:113)
at
org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
at
org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:342)
at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:149)
at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:128)
at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at
org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at
org.jboss.ejb.Container.invoke(Container.java:859)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at
org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:236)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at
org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:775)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:382)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at
sun.rmi.transport.Transport$1.run(Transport.java:148)
at
java.security.AccessController.doPrivileged(Native
Method)
at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
Caused by: javax.naming.NameNotFoundException: BankDS
not bound
at
org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
at
org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
at
org.jnp.server.NamingServer.getObject(NamingServer.java:509)
at
org.jnp.server.NamingServer.lookup(NamingServer.java:282)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:529)
at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)