Re: [JBoss-user] simple Postgres CMP HOWTO?
On Tue, 26 Nov 2002, Matthew Hixson wrote: Does there exist a simple HOWTO with step by step instructions on how to configure JBoss 3.0.4 CMP for use with Postgres 7.2? I've read through lots of Google search results and forum messages dealing with problems and solutions for various Postgres issues, but nothing that is an idiot proof HOWTO from start to finish. I don't know about any such HOWTO, but I don't see any need for it. We're finishing one project using Postgres database and we haven't encountered any Postgres specific complications. So: - Configure your datasource according to the example in jboss/docs/jca/postgres-service.xml - Configure CMP according to the UserGuide (Xdoclet is your friend) If you encounter any specific problem, come back and try to ask a more specific question :-) Pavel --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] configuring security if web and ejbs on differentmachines
On Wed, 20 Nov 2002, Dain wrote: There is no reason you have to separate the web container from the EJB container. I don't understand this - what if I want to run my application on two machines because of performance reasons? What should I do instead of putting my webapp on one machine and my EJBs on the second one? Pavel --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] configuring security if web and ejbs on differentmachines
OK, thanks for you response, I understand your point. But what should I do, if there's a need for better perfomance and customer says well, I could buy another CPU or more RAM, but I have also an extra unused machine here - couldn't we use it instead of buying new CPU or RAM? Should I try to explaint him it's not a good idea? I thought splitting my app between two machines should also give me a significant performance even though the serialization overhead, shouldn't it? Pavel On Thu, 21 Nov 2002, David Ward wrote: Maybe I'm coming in late on this thread... What *I* don't understand is why you think having your web container on one machine and your ejb's on another would perform better. Having your servlets run in the same JVM as your ejb's allows your servlets to access them with local interfaces, and you can pass your objects by reference instead of by value (read: serialization unecessary). You will get much better performance if everything is in the same JVM. Just beef up your box instead of spending $$$ on two. Now, if you want to have Apache serve up some static content and front your app, that's fine (especially if for security reasons you want your app server behind a firewall and your web server in the dmz). However, it will forward dynamic requests to your app server - where your web container and ejb tier coexist in the same process. David -- Pavel Kolesnikov wrote: On Wed, 20 Nov 2002, Dain wrote: There is no reason you have to separate the web container from the EJB container. I don't understand this - what if I want to run my application on two machines because of performance reasons? What should I do instead of putting my webapp on one machine and my EJBs on the second one? Pavel --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] configuring security if web and ejbs on different machines
Hello, I've configured my security realm on my JBoss 3.0.2 server. Everything works fine, but now I'd like to separate web container and EJB container to different machines. Is there any way how to configure it to make a web container to authenticate users against realm configured on different machine and above all to propagate the security context to EJBs running on different machine? I tried to find the answer in forums, but I found just unanswered questions :) Thanks a lot Pavel, --- This sf.net email is sponsored by: Battle your brains against the best in the Thawte Crypto Challenge. Be the first to crack the code - register now: http://www.gothawte.com/rd521.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 3.x doesn't set CMR in ejbPostCreate()
On Mon, 4 Nov 2002, Herve Tchepannou wrote: JBoss 3.x doesn't set CMR in ejbPostCreate(). It works for me. Could you be a bit more specific? Important - This message may contain privileged and confidential :-) Pavel --- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Http session
On Thu, 19 Sep 2002 [EMAIL PROTECTED] wrote: Someone can tell me how I can browse all the active http session with JBOSS/Jetty 3.2. I don't think you can do that. There may be a Jetty specific way to do that, but servlet specification doesn't tell anything about it. Even if you know a session id, there's no way to fetch related HttpSession object. Pavel --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem with JAAS
I've encountered such problem with JBoss 3.0.1RC1, JBoss 3.0.1 final was working correctly. If it's your case, you should also use login-config.xml instead of auth.conf. At least in my version of JBoss auth.conf starts with folloging lines: // This file is now obsolete but is read for backward compatability // Use the login-config.xml file instead (Since you haven't written anything about your webapp's configuration, I suppose it's done correctly :-) Pavel On Tue, 20 Aug 2002, jaime1 wrote: Hi,people I try to use the security in JBoss and did the following (as in the JBoss-JAAS documentation): 1. added this line to the jboss.xml of my beans security-domainjava:/jaas/jaascampus/security-domain 2. created the table table user{ username varchar(10) , password varchar(10) } table roles{ username varchar(10) , roles varchar(10) } 3. added my new configuration to auth.conf file : jaascampus { /* A JDBC based LoginModule LoginModule options: dsJndiName: The name of the DataSource of the database containing the Principals, Roles tables principalsQuery: The prepared statement query equivalent to: select Password from Principals where PrincipalID=? rolesQuery: The prepared statement query equivalent to: select Role, RoleGroup from Roles where PrincipalID=? */ org.jboss.security.auth.spi.DatabaseServerLoginModule required dsJndiName=java:/CampusDB principalsQuery=select password from user where username=? rolesQuery=select roles, 'Roles' from roles where username=? unauthenticatedIdentity=nobody ; }; 4.- Filled my tables with user: username=test password=testpassword roles : username=test roles=creategroup 5.- My ejb-jar is how following: ejb-jar enterprise-beans session display-nameThe Facade Controller/display-name ejb-nameTheFacade/ejb-name homecom.campus.presentation.session.ejb.FacadeHome/home remotecom.campus.presentation.session.ejb.Facade/remote ejb-classcom.campus.presentation.session.ejb.FacadeEJB/ejb-class session-typeStateful/session-type transaction-typeContainer/transaction-type security-role-ref role-namecreategroup/role-name role-linkcreategroup/role-link /security-role-ref /session /enterprise-beans assembly-descriptor security-role role-namecreategroup/role-name /security-role method-permission role-namecreategroup/role-name method ejb-nameTheFacade/ejb-name method-name*/method-name /method /method-permission container-transaction method ejb-nameTheFacade/ejb-name method-intfRemote/method-intf method-namehandlerEvent/method-name /method trans-attributeSupports/trans-attribute /container-transaction /assembly-descriptor /ejb-jar 6.- When i login with the user, password (test,testpassword) and tried to access to EJB I had the following message: [INFO,Default] EJBUtil : getFacadeHome(): JNDINames.FACADE_EJBHOME :java:comp/env/ejb/facade/Facade [INFO,Default] EJBUtil : getFacadeHome(): JNDINames.FACADE_EJBHOME : Debug 2 [ERROR,SecurityInterceptor] Insufficient method permissions, principal=null, method=create, requiredRoles=[creategroup], principalRoles=[] [ERROR,TheFacade] TRANSACTION ROLLBACK EXCEPTION: javax.transaction.TransactionRolledbackException: checkSecurityAssociation; nested exception is: java.lang.SecurityException: Insufficient method permissions, principal=null, method=create, requiredRoles=[creategroup], principalRoles=[]; nested exce ption is: java.rmi.RemoteException: checkSecurityAssociation; nested exception is: java.lang.SecurityException: Insufficient method permissions, principal=null, method=create, requiredRoles=[creategroup], principalRoles=[] java.rmi.RemoteException: checkSecurityAssociation; nested exception is: java.lang.SecurityException: Insufficient method permissions, principal=null, method=create, requiredRoles=[creategroup], principalRoles=[] java.lang.SecurityException: Insufficient method permissions, principal=null, method=create, requiredRoles=[creategroup], principalRoles=[] at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityI nterceptor.java:215) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav a:91) at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(Stateful SessionInstanceInterceptor.java:119) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:142) at
RE: [JBoss-user] Strange select statement
On Mon, 19 Aug 2002, Sacha Labourey wrote: Hello Pavel, No, it is not an error and this code hasn't been generated by xdoclet but by the CMP 2.0 engine. Yes, I understand the SQL statement itself has to be generated by CMP engine. Everything is fine as long as the SQL query is concerned. See the CMP doco (or source code) for more information. OK, understand an error is too hard evaluation of this since the SQL statement was syntactically correct. But don't you think this's at least something that should be optimized? BTW I understand why generated SQL statements may contain some redundant stuff, but Jon's example seemed to me to be really too strange :-) Pavel --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] may I expose CMR foreign key as a cmp-field?
Yes, I know it doesn't work because of duplicate columns in generated SQL statements. You say this is on the todo list for 4.0 - does it mean it's correct (according to the specs) to have CMR and CMP accessors for one column, but just current version of JBoss doesn't support it? Pavel On Thu, 15 Aug 2002, Dain Sundstrom wrote: This doesn't work. You end up with sql statements that have duplicate columns in them. This is on the todo list for 4.0. -dain Pavel Kolesnikov wrote: Hello, in my application, I need to synchronize content of database tables on the central server with client application, which should be able to work offline. That's why I need a simple way, how to get values of foreign keys in dependent tables. But I also want to be able to use MR 2.0 accessors to manipulate data. My questions are: 1, is this correct according to specs (I guess it doesn't say anything about it)? 2, will it work in JBoss 3.0.1? (my EJB gets deployed, but if underlying tables don't exist, JBoss attemps to create them using duplacate column names). Example: if I used Gangster-Organization example from the User Guide, I'd need something like this: public abstract class GangsterBean implements EntityBean { public abstract Integer getOrganizationId (); // CMP foreign key public abstract Organization getOrganization (); // CMR using // organizationId as a foreign key } If I tried to deploy such class and let JBoss to create tables, JBoss would say: org.jboss.deployment.DeploymentException: Error while creating table; - nested throwable: (java.sql.SQLException: Invalid argument value: Duplicate column name 'organizationId') If I told JBoss not to create tables, it would deploy may beans without complaining. I guess if my approach is correct, JBoss should be able to create tables correctly, and if my approach is wrong, JBoss shouldn't never deploy such beans. Any ideas? Thanks, Pavel --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] may I expose CMR foreign key as a cmp-field?
Hello, in my application, I need to synchronize content of database tables on the central server with client application, which should be able to work offline. That's why I need a simple way, how to get values of foreign keys in dependent tables. But I also want to be able to use MR 2.0 accessors to manipulate data. My questions are: 1, is this correct according to specs (I guess it doesn't say anything about it)? 2, will it work in JBoss 3.0.1? (my EJB gets deployed, but if underlying tables don't exist, JBoss attemps to create them using duplacate column names). Example: if I used Gangster-Organization example from the User Guide, I'd need something like this: public abstract class GangsterBean implements EntityBean { public abstract Integer getOrganizationId (); // CMP foreign key public abstract Organization getOrganization (); // CMR using // organizationId as a foreign key } If I tried to deploy such class and let JBoss to create tables, JBoss would say: org.jboss.deployment.DeploymentException: Error while creating table; - nested throwable: (java.sql.SQLException: Invalid argument value: Duplicate column name 'organizationId') If I told JBoss not to create tables, it would deploy may beans without complaining. I guess if my approach is correct, JBoss should be able to create tables correctly, and if my approach is wrong, JBoss shouldn't never deploy such beans. Any ideas? Thanks, Pavel --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] long table names
Hello, it seems that JBoss shortens table names longer than 31 characters. Is there any way how to turn this feature off? Thanks Pavel --- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss/Tomcat Question
On Sun, 11 Aug 2002, Greg Turner wrote: Is there going to be a release of JBoss-3.0.1Final/Tomcat-4.0.3 ? Until it's released try to remove deploy/jbossweb.sar and copy all tomcat related files (jboss/catalina and jboss/server/default/deploy/tomcat*xml) from older release of JBoss-3.*/Tomcat to appropriate places under jboss-3.0.1 root dir. I haven't tried it with JBoss-3.0.1 final, but it worked for me with 3.0.1RC1 and tomcat from jboss-3.0.0/tomcat - so I guess it could work with 3.0.1 final too. :-) Pavel --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Does JBoss 3.0.0 final fully support Abstract EJB2.0 Entity Beans?
On Wed, 3 Jul 2002, Allan Kamau wrote: Ive tried deploying entity beans that I had written following the EJB 2.0 specification, where I dont explicitly define the bean class fields/cmp fields but rather define only the abstract set/get methods for the class variables. It works for me very well. However I seen errors during deployment indicating that the bean class may not be defined as abstract. When I reverted back to writing the Bean class using the EJB 1.1 specification where I explicitly define the CMP fields like example public EJB 2.0 deployment descriptor should start with !DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd; If you are using EJB 1.1 DTD, it makes JBoss to think you're deploying EJB 1.1 beans. Pavel --- This sf.net email is sponsored by:ThinkGeek No, I will not fix your computer. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Strange exception deploying a WAR
On Wed, 26 Jun 2002, Pavel Kolesnikov wrote: Now the first web app works still correctly but the second one doesn't deploy. It hangs when it creates remote interface for my session bean, I can't even undeploy it or stop JBoss correctly (I had to kill -9 it after cca 10 minutes). Update: after few hours JBoss throwed OutOfMemory error. Pavel On Mon, 24 Jun 2002, Scott M Stark wrote: You are using an out of date beta. Go to sourceforge and get the latest 3.0.0 release. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Pavel Kolesnikov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 10:45 AM Subject: [JBoss-user] Strange exception deploying a WAR Hallo, I've encountered following weird problem; I have an EJB application containimg one session bean called UserManager that should be accessed from two web applications. I'm sure both of those web apps use the same code for getting home and remote interface for UserManager, they use similar deployment descriptors which seem to be correct according to Jboss docs, but deployment one of them causes following exception: java.lang.NullPointerException at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(Stat elessSessionContainer.java:598) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome( CachedConnectionInterceptor.java:167) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(Statele ssSessionInstanceInterceptor.java:57) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:98) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav a:104) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109) at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer .java:300) at org.jboss.ejb.Container.invoke(Container.java:727) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96) at $Proxy124.create(Unknown Source) Does anybody has an idea what may be wrong? I'm using JBoss 3.0.0 RC1 + Tomcat 4.0.3 on Redhat Linux 7.3. Thanks a lot Pavel --- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Jabber Inc. Don't miss the IM event of the season | Special offer for OSDN members! JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Strange exception deploying a WAR [SOLVED]
The problem was solved by upgrade to latest CVS. Hanging application mentioned bellow was partially caused by my mistake - the web app talks not only to app server but also to its own mysql database (directly using struts's db pool) and I forgot to put appropriate JDBC driver into the classpath. Anyway, I guess such mistake shouldn't cause the problem I described bellow. Pavel On Thu, 27 Jun 2002, Pavel Kolesnikov wrote: On Wed, 26 Jun 2002, Pavel Kolesnikov wrote: Now the first web app works still correctly but the second one doesn't deploy. It hangs when it creates remote interface for my session bean, I can't even undeploy it or stop JBoss correctly (I had to kill -9 it after cca 10 minutes). Update: after few hours JBoss throwed OutOfMemory error. Pavel On Mon, 24 Jun 2002, Scott M Stark wrote: You are using an out of date beta. Go to sourceforge and get the latest 3.0.0 release. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Pavel Kolesnikov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 10:45 AM Subject: [JBoss-user] Strange exception deploying a WAR Hallo, I've encountered following weird problem; I have an EJB application containimg one session bean called UserManager that should be accessed from two web applications. I'm sure both of those web apps use the same code for getting home and remote interface for UserManager, they use similar deployment descriptors which seem to be correct according to Jboss docs, but deployment one of them causes following exception: java.lang.NullPointerException at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(Stat elessSessionContainer.java:598) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome( CachedConnectionInterceptor.java:167) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(Statele ssSessionInstanceInterceptor.java:57) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:98) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav a:104) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109) at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer .java:300) at org.jboss.ejb.Container.invoke(Container.java:727) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96) at $Proxy124.create(Unknown Source) Does anybody has an idea what may be wrong? I'm using JBoss 3.0.0 RC1 + Tomcat 4.0.3 on Redhat Linux 7.3. Thanks a lot Pavel --- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Jabber Inc. Don't miss the IM event of the season | Special offer for OSDN members! JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Strange exception deploying a WAR
Well... I've upgraded to the lasted CVS version yesterday (because of another problems with 3.0.0). Now the first web app works still correctly but the second one doesn't deploy. It hangs when it creates remote interface for my session bean, I can't even undeploy it or stop JBoss correctly (I had to kill -9 it after cca 10 minutes). But it doesn't throw the exception mentioned in my previous e-mail. Pavel On Mon, 24 Jun 2002, Scott M Stark wrote: You are using an out of date beta. Go to sourceforge and get the latest 3.0.0 release. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Pavel Kolesnikov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 24, 2002 10:45 AM Subject: [JBoss-user] Strange exception deploying a WAR Hallo, I've encountered following weird problem; I have an EJB application containimg one session bean called UserManager that should be accessed from two web applications. I'm sure both of those web apps use the same code for getting home and remote interface for UserManager, they use similar deployment descriptors which seem to be correct according to Jboss docs, but deployment one of them causes following exception: java.lang.NullPointerException at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(Stat elessSessionContainer.java:598) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome( CachedConnectionInterceptor.java:167) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(Statele ssSessionInstanceInterceptor.java:57) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:98) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav a:104) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109) at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer .java:300) at org.jboss.ejb.Container.invoke(Container.java:727) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96) at $Proxy124.create(Unknown Source) Does anybody has an idea what may be wrong? I'm using JBoss 3.0.0 RC1 + Tomcat 4.0.3 on Redhat Linux 7.3. Thanks a lot Pavel --- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Jabber Inc. Don't miss the IM event of the season | Special offer for OSDN members! JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Sybase and SET CHAINED command not allowed
On Mon, 24 Jun 2002, David Jencks wrote: Please get 3.0.1 from cvs (checkout Branch_3_0 and verify that this is fixed. I'll be happy to do it, but are there anywhere on the web instructions telling me which modules I should checkout, what are the prerequisites and so on? I haven't found any such info page, so I've tried to checkout jboss module and run build.sh, but ant has complained about resource://org/jboss/tools/buildmagic/common.xml (file not found). Thanks for any help. Pavel --- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Strange exception deploying a WAR
Hallo, I've encountered following weird problem; I have an EJB application containimg one session bean called UserManager that should be accessed from two web applications. I'm sure both of those web apps use the same code for getting home and remote interface for UserManager, they use similar deployment descriptors which seem to be correct according to Jboss docs, but deployment one of them causes following exception: java.lang.NullPointerException at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(Stat elessSessionContainer.java:598) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome( CachedConnectionInterceptor.java:167) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(Statele ssSessionInstanceInterceptor.java:57) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:98) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.jav a:104) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109) at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer .java:300) at org.jboss.ejb.Container.invoke(Container.java:727) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96) at $Proxy124.create(Unknown Source) Does anybody has an idea what may be wrong? I'm using JBoss 3.0.0 RC1 + Tomcat 4.0.3 on Redhat Linux 7.3. Thanks a lot Pavel --- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Sybase and SET CHAINED command not allowed
On Mon, 24 Jun 2002, Scott M Stark wrote: You are using an out of date beta. Go to sourceforge and get the latest 3.0.0 release. Well... I tried to fix the problem before I start fighting another problem that has appeared with testing the 3.0.0 release :) The problem is following exception while deploying an EJB application. It appears after Deploying EJB messages: 20:15:15,549 INFO [EjbModule] Deploying UserManager 20:15:15,616 INFO [EjbModule] Deploying OptionsBrowser 20:15:15,682 INFO [EjbModule] Deploying UserStudentManager 20:15:15,919 INFO [EjbModule] Deploying UserGraduateManager 20:15:16,003 INFO [EjbModule] Deploying UserTeacherManager 20:15:16,240 INFO [EjbModule] Deploying UserAdvocateManager snip returning ManagedConnection to pool: javax.resource.ResourceException: Could not cleanup: com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed within multi-statement transaction. at org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.cleanup(LocalManagedConnection.java:198) at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.returnConnection(InternalManagedConnectionPool.java:137) at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.returnConnection(JBossManagedConnectionPool.java:324) at org.jboss.resource.connectionmanager.BaseConnectionManager2.returnManagedConnection(BaseConnectionManager2.java:494) at org.jboss.resource.connectionmanager.LocalTxConnectionManager$LocalConnectionEventListener.connectionClosed(LocalTxConnectionManager.java:388) at org.jboss.resource.adapter.jdbc.local.LocalManagedConnection.closeHandle(LocalManagedConnection.java:338) at org.jboss.resource.adapter.jdbc.local.LocalConnection.close(LocalConnection.java:97) at org.jboss.ejb.plugins.cmp.jdbc.JDBCUtil.safeClose(JDBCUtil.java:58) at org.jboss.ejb.plugins.cmp.jdbc.SQLUtil.fixTableName(SQLUtil.java:69) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.init(JDBCEntityBridge.java:103) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java:332) at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:155) at org.jboss.ejb.EntityContainer.create(EntityContainer.java:337) at org.jboss.ejb.Container.invoke(Container.java:789) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894) at $Proxy6.create(Unknown Source) at org.jboss.system.ServiceController.create(ServiceController.java:272) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) at $Proxy19.create(Unknown Source) Because of changes in service descriptors I used an mssql-service.xml from docs/jca/examples and changed the values for jdbc driver and database information. It happens with JBoss 3.0.0 on RH7.3 with Sybase ASE 11.0.0.3 and jConnect 5.2. Does anybody have an idea what could I do with this? Thanks Pavel --- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB references problem
On Thu, 25 Apr 2002, David Ward wrote: Simply: I have a session bean UserManager and I want it to access entity bean LocalRegion (through the local interface). Unfortunatelly, I'm getting just an exception saying LocalRegion not bound. David Well first of all, you show below that the OptionsBrowser bean has an ejb-ref to LocalRegion; what about UserManager? Sorry, my mistake. I was talking about OptionsBrowser. ejb-ref ejb-ref-nameejb/LocalRegion/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homenet.templation.juristic.as.ejb.entities.LocalRegionHome/home remotenet.templation.juristic.as.ejb.entities.LocalRegion/remote David Use local-home and local instead of home and remote above. You're right. And above all, there should be used ejb-local-ref instead of ejb-ref. ejb-ref ejb-ref-nameejb/LocalRegion/ejb-ref-name jndi-nameejb/LocalRegion/jndi-name /ejb-ref David You do not need an ejb-ref block in your jboss.xml file unless you are trying to access a bean on another server. I know, I was trying to test all possible possibilities :-) Thanks for your help Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] problem accessing EJBs from Web Container in 3.0RC1
Hello, I'm trying to make my application working using jboss.xml and jboss-web.xml configuration files, unfortunatelly I'm getting just user-unfriendly exception: java.lang.NullPointerException at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:598) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:167) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:57) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:98) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:167) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:52) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:104) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:109) at org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSessionContainer.java:300) at org.jboss.ejb.Container.invoke(Container.java:727) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:492) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:73) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96) at $Proxy155.create(Unknown Source) ... My ejb-jar.xml contains: session ejb-nameUserManager/ejb-name homenet.templation.juristic.as.ejb.sessions.UserManagerHome/home remotenet.templation.juristic.as.ejb.sessions.UserManager/remote ejb-classnet.templation.juristic.as.ejb.sessions.UserManagerEJB/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type /session jboss.xml: jboss enterprise-beans session ejb-nameUserManager/ejb-name jndi-namejuristic/UserManager/jndi-name /session /enterprise-beans /jboss web.xml: web-app !-- ... -- ejb-ref ejb-ref-namejuristic/UserManager/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homenet.templation.juristic.as.ejb.sessions.UserManagerHome/home remotenet.templation.juristic.as.ejb.sessions.UserManager/remote /ejb-ref /web-app jboss-web.xml: jboss-web ejb-ref ejb-ref-namejuristic/UserManager/ejb-ref-name jndi-namejuristic/UserManager/jndi-name /ejb-ref /jboss-web and finally in my servlet I'm looking for juristic/UserManager. Does anybody have an idea what could be wrong? Thanks a lot Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem accessing EJBs from Web Container in 3.0RC1
On Thu, 25 Apr 2002, David Ward wrote: I'm assuming your using the jbossrc1-tomcat4 bundle, and further guessing your hitting a bug I and others have found but I have yet to report at sourceforge (will today, I promise!). If my guess is correct, you have your home and remote interface classes Your guess is excellent, thanks a lot. As a side note, if in fact you are using 3.0, why aren't you using local interfaces? Two reasons: 1, I've started to write my beans under 2.4, I'm just switching to 3.0 and I haven't done all changes I want to 2, web container is supposed to run on another machine than JBoss in production environment I hope it makes sense. Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EJB references problem
Hello, another problems during switching to JBoss 3.0 (RC1 with Tomcat): Simply: I have a session bean UserManager and I want it to access entity bean LocalRegion (through the local interface). Unfortunatelly, I'm getting just an exception saying LocalRegion not bound. My ejb-jar.xml: entity ejb-nameLocalRegion/ejb-name display-nameLocalRegionEJB/display-name local-homenet.templation.juristic.as.ejb.entities.LocalRegionHome/local-home localnet.templation.juristic.as.ejb.entities.LocalRegion/local ejb-classnet.templation.juristic.as.ejb.entities.RegionEJB/ejb-class persistence-typeContainer/persistence-type reentrantFalse/reentrant cmp-version2.x/cmp-version abstract-schema-nameRegion/abstract-schema-name prim-key-classjava.lang.String/prim-key-class primkey-fieldregionId/primkey-field cmp-field field-nameregionId/field-name /cmp-field cmp-field field-nameregionName/field-name /cmp-field /entity session ejb-nameOptionsBrowser/ejb-name homenet.templation.juristic.as.ejb.sessions.OptionsBrowserHome/home remotenet.templation.juristic.as.ejb.sessions.OptionsBrowser/remote ejb-classnet.templation.juristic.as.ejb.sessions.OptionsBrowserEJB/ejb-class transaction-typeContainer/transaction-type session-typeStateless/session-type reentrantFalse/reentrant ejb-ref ejb-ref-nameejb/LocalRegion/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homenet.templation.juristic.as.ejb.entities.LocalRegionHome/home remotenet.templation.juristic.as.ejb.entities.LocalRegion/remote ejb-linkLocalRegion/ejb-link /ejb-ref /session I've encountered this problem without providing reference info in jboss.xml as well as with: ejb-ref ejb-ref-nameejb/LocalRegion/ejb-ref-name jndi-nameejb/LocalRegion/jndi-name /ejb-ref :-) I was trying to look for LocalRegion bean using ejb/LocalRegion as well as java:comp/env/ejb/LocalRegion. Thanks Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss 2.4.4 and sybase
Hallo, I'm trying to make work jboss 2.4.4 with sybase support (using Sybase ASE 11.0.0.3 for linux), but it reports following exception on startup: = [INFO,SybaseDS] Starting [INFO,SybaseDS] XA Connection pool SybaseDS bound to java:/SybaseDS [ERROR,SybaseDS] Stopped java.lang.NullPointerException at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown Source) at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412) at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) etc... I've copyied jConn2.jar from jConnnect 5.2 into $JBOSS_HOME/lib/ext, installed all SPs required by jConnect and put following lines into jboss.jcml and standardjaws.xml: === jboss.jcml === mbean code=org.jboss.jdbc.JdbcProvider name=DefaultDomain:service=JdbcProvider attribute name=Driverscom.sybase.jdbc2.jdbc.SybDriver,org.hsqldb.jdbcDriver,org.gjt.mm.mysql.Driver/attribute /mbean mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=SybaseDS attribute name=PoolNameSybaseDS/attribute attribute name=DataSourceClassorg.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl/attribute attribute name=Properties/attribute atribute name=URLjdbc:sybase:Tds:emental:7100/jurDirs/atribute attribute name=JDBCUsersa/attribute attribute name=Password/attribute !-- i've also tried attribute name=Password / -- /mbean == standardjaws.xml == ?xml version=1.0 encoding=UTF-8? jaws datasourcejava:/SybaseDS/datasource type-mappingSybase/type-mapping debugfalse/debug == I'm 100% percent sure values given in jcml file are correct (isql -Usa -P -SEMENTAL connects successfully from the computer where my JBoss is running), my interface file contains EMENTAL query tcp ether emental 7100 master tcp ether emental 7100 ) so I suppose that JDBC URL given in my jcml file should be correct. Do you have an idea what I'm doing wrong? Thanks a lot, Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem deploying struts app as ear
On Mon, 25 Feb 2002, Dmitri Colebatch wrote: Did you figure this out? I've just updated CVS and found that I now have the same thing with the following project structure: myapplication.ear - myejbs.jar - myclasses - myweb.war - WEB-INF/lib/struts.jar - WEB-INF/classes/myclasses I'd appreciate hearing how you went with it. I've figured out that this problem occures if you have some struts related stuff (e.g. your form classes) in myejbs.jar. Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss2.4.4_Tomcat4.0.1 with MySQL3.23.47
On Thu, 21 Feb 2002, Christine wrote: Hi, I would like to readdress my question and make it much clearer. I searched both on the Forums and mailing list, as if I did everything right. But I still get error, when I tried to use MySQL. I do appreciate any suggestion! ... attribute name=URLjdbc:mysql://localhost:3306/test/attribute ... [INFO,MySQLDS] Starting [INFO,MySQLDS] XA Connection pool MySQLDS bound to java:/MySQLDS [ERROR,MySQLDS] Stopped java.lang.NullPointerException at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown Source) I've encountered a similar problem few days ago - I was told that The driver can't connect to the database. Usually its a url problem. In my case my MySQL server was set to communicate only through the local socket, not a tcp port. Try to run mysql -hlocalhost -uroot test. It should fail from the same reasons as your Jboss does. But it should report the problem in a little bit more comprehensible way :-) Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] problem deploying struts app as ear
Hallo, I've written i simple struts based web application, which calls a session bean deployed at JBoss server and tries to display the result. If I deploy jar with my EJB and war with struts based web application separately, everything works fine. But if I create an ear package and deploy it, JSP pages report java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm You can check it out at http://server.netizen.cz/~koles/work/struts/ Don't you have an idea where is the problem? I found few e-mails reporting similar problems on the web, but no solution. Thanks Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem deploying struts app as ear
JBoss 2.4.4 Tomcat 3.2.3. and Struts 1.0.2 Pavel On Wed, 20 Feb 2002, [iso-8859-1] Julian Gosnell wrote: Which version of JBoss ? Which Servlet Container (Jetty, Tomcat, Catalina)... Anything else you think may be helpful. Jules --- Pavel Kolesnikov [EMAIL PROTECTED] wrote: Hallo, I've written i simple struts based web application, which calls a session bean deployed at JBoss server and tries to display the result. If I deploy jar with my EJB and war with struts based web application separately, everything works fine. But if I create an ear package and deploy it, JSP pages report java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm You can check it out at http://server.netizen.cz/~koles/work/struts/ Don't you have an idea where is the problem? I found few e-mails reporting similar problems on the web, but no solution. Thanks Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem deploying struts app as ear
On Wed, 20 Feb 2002, Dmitri Colebatch wrote: where is the struts.jar? This error is the classical error that comes up when the struts classes are loaded by a different classloader than the action classes. put struts.jar in WEB-INF/lib inside the .war and you shouldn't have any problems. Yes, struts.jar is in WEB-INF/lib. BTW I guess if it wasn't there I wouldn't be able to run neither strutstest.war standalone. And strutstest.WAR itself works well, the problem occurs only if I deploy it together with ejb classes in one EAR package. Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem deploying struts app as ear
hardcoded anywhere in your java code. Also, I just noticed that you specified testSession with a lower case t - my xml config examples use a capital T - just my convention. Just make sure they match up. BTW, my theory of your NoClassDefFoundError is that JBoss might have gotten its ClassLoaders confused when finding it's core extension jars in your application. Hope all this helps, David -- Pavel Kolesnikov wrote: On Wed, 20 Feb 2002, Dmitri Colebatch wrote: where is the struts.jar? This error is the classical error that comes up when the struts classes are loaded by a different classloader than the action classes. put struts.jar in WEB-INF/lib inside the .war and you shouldn't have any problems. Yes, struts.jar is in WEB-INF/lib. BTW I guess if it wasn't there I wouldn't be able to run neither strutstest.war standalone. And strutstest.WAR itself works well, the problem occurs only if I deploy it together with ejb classes in one EAR package. Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss 2.4.4 and mysql: Unknown Source
Hallo, I've tried to configure Jboss 2.4.4 to use MySQL database. Unfortunatelly I found only JBoss 3.0 configuration on Jboss site, so I tried some directions found on the web with Google. So I've changed JdbcProvider mbean in jboss.jcml to: mbean code=org.jboss.jdbc.JdbcProvider name=DefaultDomain:service=JdbcProvider attribute name=Driversorg.hsqldb.jdbcDriver,org.gjt.mm.mysql.Driver/attribute /mbean ... and added following mbean: mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=mySQLDS attribute name=PoolNamemySQLDS/attribute attribute name=DataSourceClassorg.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl/attribute attribute name=Properties/attribute attribute name=URLjdbc:mysql:/localhost/test/attribute attribute name=GCMinIdleTime120/attribute attribute name=JDBCUserroot/attribute attribute name=MaxSize10/attribute attribute name=Password***/attribute /mbean standardjaws.xml starts with following few lines: ?xml version=1.0 encoding=UTF-8? jaws datasourcejava:/mySQLDS/datasource type-mappingmySQL/type-mapping debugfalse/debug When I'm starting JBoss, I'm getting following message in its logfile: [16:44:19,979,mySQLDS] Starting [16:44:20,253,mySQLDS] XA Connection pool mySQLDS bound to java:/mySQLDS [16:44:20,719,mySQLDS] Stopped java.lang.NullPointerException at org.jboss.pool.jdbc.xa.XAPoolDataSource.getConnection(Unknown Source) at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:412) at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103) at java.lang.reflect.Method.invoke(Native Method) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967) at $Proxy0.start(Unknown Source) ... Could anyone of more experienced JBoss users tell me what could be wrong? Sorry if this problem seems to be too stupid, I'm real JBoss newbie. Thanks a lot Pavel ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user