RE: [JBoss-user] Jboss deployment;
sorry forgot to point out that when i deploy promotion.jar it deploys the refernce.jar beans; WEIRD; Chris Tragas Information Services Manager - [EMAIL PROTECTED] +61 3 9695 5711 direct +61 3 0402 28 10 20 mobile - a t o m i c m e d i a Leading Partners Online Level 1 / 216 City Road Southbank, Melbourne, Vic 3006 Australia. +61 3 9695 5777 tel +61 3 9695 5700 fax - www.atomicmedia.com - -Original Message- From: Chris Tragas Sent: Tuesday, June 12, 2001 4:16 PM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Jboss deployment; Hi all; I am experiencing a rather unusual deployment problem; I am deploying two jar files: reference.jar, and promotion.jar The server console output for the deployment of reference.jar follwoed by promotion.jar is listed bellow; obviously my reference.jar contains different beans to promotion.jar but jboss is not picking it up! HELP HELP HELP output: [Auto deploy] Auto deploy of file:/C:/JBoss-2.2.2/deploy/reference.jar [J2EE Deployer Default] Deploy J2EE application: file:/C:/JBoss-2.2.2/deploy/ref erence.jar [J2EE Deployer Default] Create application reference.jar [J2EE Deployer Default] install module reference.jar [Container factory] Deploying:file:/C:/JBoss-2.2.2/tmp/deploy/Default/reference. jar [Verifier] Verifying file:/C:/JBoss-2.2.2/tmp/deploy/Default/reference.jar/ejb10 01.jar [Container factory] Deploying CompanyDetails [Container factory] Deploying MechanicType [Container factory] Deploying CriteriaType [Container factory] Deploying FeatureType [Container factory] Deploying FrequencyType [Container factory] Deploying PromoLevelType [Container factory] Deploying PromoStatus [Container factory] Deploying AgeGroup [Container factory] Deploying States [Container factory] Deploying Features [Container factory] Deploying Entrants [Container factory] Deploying ValidMechanicCriteria [Bean Cache] Cache policy scheduler started [Container factory] Deployed application: file:/C:/JBoss-2.2.2/tmp/deploy/Defaul t/reference.jar [J2EE Deployer Default] J2EE application: file:/C:/JBoss-2.2.2/deploy/reference. jar is deployed. [Auto deploy] Auto deploy of file:/C:/JBoss-2.2.2/deploy/promotion.jar [J2EE Deployer Default] Deploy J2EE application: file:/C:/JBoss-2.2.2/deploy/pro motion.jar [J2EE Deployer Default] Create application promotion.jar [J2EE Deployer Default] install module promotion.jar [Container factory] Deploying:file:/C:/JBoss-2.2.2/tmp/deploy/Default/promotion. jar [Verifier] Verifying file:/C:/JBoss-2.2.2/tmp/deploy/Default/promotion.jar/ejb10 02.jar [Container factory] Deploying CompanyDetails [Container factory] Deploying MechanicType [Container factory] Deploying CriteriaType [Container factory] Deploying FeatureType [Container factory] Deploying FrequencyType [Container factory] Deploying PromoLevelType [Container factory] Deploying PromoStatus [Container factory] Deploying AgeGroup [Container factory] Deploying States [Container factory] Deploying Features [Container factory] Deploying Entrants [Container factory] Deploying ValidMechanicCriteria [Container factory] Deployed application: file:/C:/JBoss-2.2.2/tmp/deploy/Defaul t/promotion.jar [J2EE Deployer Default] J2EE application: file:/C:/JBoss-2.2.2/deploy/promotion. jar is deployed. end of output Chris Tragas Information Services Manager - [EMAIL PROTECTED] +61 3 9695 5711 direct +61 3 0402 28 10 20 mobile - a t o m i c m e d i a Leading Partners Online Level 1 / 216 City Road Southbank, Melbourne, Vic 3006 Australia. +61 3 9695 5777 tel +61 3 9695 5700 fax - www.atomicmedia.com - ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] PetStore 1.1.1 JBoss 2.2.2
Hi I'm trying run PetStore 1.1.1 with JBoss 2.2.2 I have JDK1.3 running on W2k, JBoss 2.2.2 from binary distribution, and PetStore 1.1.1 patched with JBoss patch. I replace jboss.jcml with file from JBoss patch for PetStore and add security to tomcat-users.xml. Cloudscape is running and has data imported. I'm successfully deploing application. When I access PetStore from browser, this errors occured :( What is wrong, can anyone help me ? [J2EE Deployer Default] Starting module petstore.war 2001-06-11 08:02:18 - ContextManager: Adding context Ctx( /estore ) [Auto deploy] Add env-entry serverType java.lang.String JBoss PRE 2.1 (www.jboss.org) no description [Auto deploy] Add env-entry securityAdapterClassName java.lang.String com.sun.j2ee.blueprints.petstore.util.JBossSecurityAdapter no description 2001-06-11 08:02:18 - Ctx( /estore ): FORM: WARNING, login page starts with context path /estore/control/formbasedloginscreen /estore 2001-06-11 08:02:18 - Ctx( /estore ): FORM: WARNING, error page starts with context path /estore/control/formbasedloginerrorscreen [J2EE Deployer Default] J2EE application: file:/E:/Java/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/petstore.ear is deployed. 2001-06-11 08:02:48 - Ctx( /estore ): Exception in: R( /estore + /control + /language) - java.lang.RuntimeException: NamingException while looking up DB context : env not bound at com.sun.j2ee.blueprints.shoppingcart.catalog.model.CatalogModel.init(Catalog Model.java:42) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getCatalogModel(Mo delManager.java:84) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.init(ModelManager. java:60) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j ava:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) --- Odchoz zprva neobsahuje viry. Zkontrolovno antivirovm systmem AVG (http://www.grisoft.cz). Verze: 6.0.261 / Virov bze: 131 - datum vydn: 6.6.2001 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Leslie Klein/London/CWB is out of the office.
I will be out of the office starting 12/06/2001 and will not return until 18/06/2001. I am away on a course for the rest of this week and will be back in the office on Monday the 18th. ** This e-mail has been prepared using information believed by the author to be reliable and accurate, but CWB makes no warranty as to accuracy or completeness. In particular CWB does not accept responsibility for changes made to this e-mail after it was sent. Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. They may be subject to change without notice. *** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] manual
Hi Boris, First of all, it is not very polite to scream, please don't do that. And second, why wait for someone to enhance the current docs? Take a deep breath and jump. Marcel Ivan Bolcina wrote: I TOTALLY AGREE. BAD DOCUMENTATION MIGHT BE DEATH OF JBOSS. PLEASE DO EXAMPLES. WHY PEOPLE PAY 10K FOR COMMERCIAL EJB SERVERS? BECAUSE OF DOCUMENTATION! IT'S EASY! -Original Message- From: Boris Garbuzov [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 6:57 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] manual Hello to all JBoss gurus and peers. The user manual is not very smooth and I can not find complete example description on deployment of full J2EE application with web client part. I do not see such samples shipped with the product too. Any other JBoss-Tomcat specific resources for novice are appreciated. Boris. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] manual
Title: RE: [JBoss-user] manual In agree too... More details for configuration files is needed. Cecile Saint-Martin[EMAIL PROTECTED] - Original Message - From: Ivan Bolcina To: '[EMAIL PROTECTED]' Sent: Tuesday, June 12, 2001 8:03 AM Subject: RE: [JBoss-user] manual I TOTALLY AGREE. BAD DOCUMENTATION MIGHT BE DEATH OF JBOSS. PLEASE DO EXAMPLES. WHY PEOPLE PAY 10K FOR COMMERCIAL EJB SERVERS? BECAUSE OF DOCUMENTATION! IT'S EASY! -Original Message- From: Boris Garbuzov [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 6:57 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] manual Hello to all JBoss gurus and peers. The user manual is not very smooth and I can not find complete example description on deployment of full J2EE application with web client part. I do not see such samples shipped with the product too. Any other JBoss-Tomcat specific resources for novice are appreciated. Boris. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: Re: [JBoss-user] run_with_tomcat.sh doesn't work?
READ THE COMMENTS FLOWING THROUGH THE TEXT Hello again, Hi, I am not clear about this !DOCTYPE ... The !DOCTYPE tag tells the XML parser what DocumentTypeDefinition(the DTD)source to use for verification of the XML's consistency. For tomcat_test.ear, I deleted this line in web.xml and the deployment worked. It should. For a new sample application contacts.ear, I have the same PB has I had for tomcat_test.ear. The deployment doesn't work. Hmmm... Let's see. I tried to do the same correction in its web.xml by removing the !DOCTYPE... Are you surce, that you removed the WHOLE tag? That means, that you have to remove: !DOCTYPE web-app PUBLIC "blah blah" but it gave me a new error message: [J2EE Deployer Default] Starting module contactapp.war [Auto deploy] deploy, ctxPath=/contacts, warUrl=file:/tmp/jm/JBoss-2.2.2_Tomcat- 3.2.2/jboss/tmp/deploy/Default/contactapp.ear/web1003/ 2001-06-11 03:56:11 - ContextManager: Adding context Ctx( /contacts ) [Auto deploy] ERROR reading /tmp/jm/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/De fault/contactapp.ear/web1003/WEB-INF/web.xml [Auto deploy] At Expecting quoted value for PUBLIC identifier. This is something wrong... Are you sure you don't have something like PUBLIC asdfhskldfhsdl I think you haven't removed the whole tag. You have to delete all the tag... Not only the !DOCTYPE part of it. Also... There are UNQUOTED ATTRIBUTES. It says it sees the PUBLIC part with no attribute(my guess). Can you paste the header of the xml? [Auto deploy] ERROR reading /tmp/jm/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/De fault/contactapp.ear/web1003/WEB-INF/web.xml [Auto deploy] org.xml.sax.SAXParseException: Expecting quoted value for PUBLIC identifier. [Auto deploy] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035) CUT OFF The value for the line was (which didn't work before removing it): !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd" TRY THIS: Go to: http://java.sun.com/j2ee/dtds/web-app_2_2.dtd Save the file to your hard drive. Let's say in C:/DTD/web-app_2_2.dtd Edit your deployment descriptor as follows: !DOCTYPE web-appSYSTEM "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" file://c:/dtd/web-app_2_2.dtd" Could you explain me how it works in every cases? Nonetheless, I have an idea of last minute. May I have to setup Tomcat and JBoss for telling them where is the proxy that I use? It could be because they can't find http://java.sun.com ... without knowing the proxy first. No way, taht I know :( Thanks, Jm See you. Lachezar
Re: [JBoss-user] manual
The documentation isn't that bad, but at some points it could be a bit more specific. The problem is that most things are under development or thinsg haven't been tested and you have to try out several things yourselve. This open source idea is not just for the code but also for the documentation so i suggest that anyone with an idea on how to upgrade a specific document should contact the writer and discuss it. (an idea would be to include a complete .jcml-file, or a deployment descriptor as an example) Maarten - Original Message - From: Scott M Stark [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 9:09 AM Subject: Re: [JBoss-user] manual So I see three options here. 1. Take the 10k your saving and write 10k worth of docs. 2. Send 10k to JBoss and we'll write 10k worth of docs. 3. Read the ultimate docs(the source) and save 10k less the hours it takes you. - Original Message - From: Ivan Bolcina [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 11, 2001 11:03 PM Subject: RE: [JBoss-user] manual I TOTALLY AGREE. BAD DOCUMENTATION MIGHT BE DEATH OF JBOSS. PLEASE DO EXAMPLES. WHY PEOPLE PAY 10K FOR COMMERCIAL EJB SERVERS? BECAUSE OF DOCUMENTATION! IT'S EASY! -Original Message- From: Boris Garbuzov [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 6:57 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] manual Hello to all JBoss gurus and peers. The user manual is not very smooth and I can not find complete example description on deployment of full J2EE application with web client part. I do not see such samples shipped with the product too. Any other JBoss-Tomcat specific resources for novice are appreciated. Boris. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] accessing mbeans
Hello! I was wondering: is it possible to get access to mbeans (or mbeanserver) from SessionBeans or Entitybeans? Or does it violate safety restrictions that have been set to EJBs? I'm trying to use a mbean that does some I/O from a sessionbean. Can it be done or am I wasting my time? Cheers! Timo Kauppinen ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Using CMP entity beans and stateful session bean: Communication link failure after 12 hours of inactivity
Hello Nicolai ! I think I have the same problem that you had but i dont know what i should do for solving it. I started JBoss yesterday and worked fine with my EJBs but today morning I get the communication link failure error I listed below. When I shutdown ans start jboss everythings working fine. Should I change something in my Minerva configuration for my mySQL-Pool or something else ? Or do i have to configure something in jaws.xml ? Greetings Anke Here is my jaws.xml: ?xml version=1.0 encoding=UTF-8? jaws datasourcejava:/mySQLDS/datasource type-mappingmySQL/type-mapping enterprise-beans entity ejb-nameLockBean/ejb-name table-namelocks/table-name create-tablefalse/create-table debugtrue/debug cmp-field field-nameobjId/field-name column-nameobj_id/column-name /cmp-field cmp-field field-nameuserId/field-name column-nameuser_id/column-name /cmp-field cmp-field field-nameorgId/field-name column-nameorg_id/column-name /cmp-field cmp-field field-namecounter/field-name column-namecounter/column-name /cmp-field /entity /enterprise-beans /jaws Here is my configuration in jboss.jcml for mySQLPool: mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=mySQLDB attribute name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.X ADataSourceImpl/attribute attribute name=PoolNamemySQLDS/attribute attribute name=URLjdbc:mysql://sun70/dbverteilung/attribute attribute name=JDBCUserroot/attribute attribute name=Password/ /mbean Here is the error messages from server log: [mySQLDS] Resource 'org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl@578aab' enlisted for 'org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@60a26f'. [mySQLDS] Pool mySQLDS [1/1/Unlimited] gave out pooled object: org.opentools.minerva.jdbc.xa.wrapper.XAConnectionImpl@60a26f [JAWS] java.sql.SQLException: Communication link failure: java.net.SocketException [JAWS] at org.gjt.mm.mysql.MysqlIO.sendCommand(MysqlIO.java:478) [JAWS] at org.gjt.mm.mysql.MysqlIO.sqlQueryDirect(MysqlIO.java:550) [JAWS] at org.gjt.mm.mysql.Connection.execSQL(Connection.java:885) [JAWS] at org.gjt.mm.mysql.PreparedStatement.executeQuery(PreparedState ment.java:288) [JAWS] at org.opentools.minerva.jdbc.PreparedStatementInPool.executeQuery (PreparedStatementInPool.java:71) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeState mentAndHandleResult(JDBCQueryCommand.java:58) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:159) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand.execute(JDBCFinderCommand.java:60) [JAWS] at org.jboss.ejb.plugins.jaws.jdbc.JDBCFindEntitiesCommand.execute(JDBCFindEntitiesCommand.java:145) [JAWS] at org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.findEntities(JAWSPersistenceManager.java:138) [JAWS] at org.jboss.ejb.plugins.CMPPersistenceManager.findEntities(CMPPersistenceManager.java:267) [JAWS] at org.jboss.ejb.EntityContainer.find(EntityContainer.java:392) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome(EntityContainer.java:639) [JAWS] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invokeHome(EntitySynchronizationInterceptor.java:160) [JAWS] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(EntityInstanceInterceptor.java:87) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:264) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86) [JAWS] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:119) [JAWS] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106) [JAWS] at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316) [JAWS] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:421) [JAWS] at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:198) [JAWS] at $Proxy6.findAll(Unknown Source) [JAWS] at de.werum.verteilung.ejb.LocksManagerBean.findAll(LocksManagerBean.java:197) [JAWS] at java.lang.reflect.Method.invoke(Native Method) [JAWS] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:472) [JAWS] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:87) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:264) [JAWS] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) [JAWS] at
[JBoss-user] repackaging JbossUtilAutonumber
Hello jboss-userz, Is it legal to separately package the jboss.util.autonumber bean, or add its classes to my project? I use jboss, but I want to deploy with orion, and I so I need a pk-generator that doesnt depend on the app server. -- Best regards, Christoph mailto:[EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Problems using DatabaseServerLoginModule
The roles query should be something like: select Role,RoleGroup from Roles where username=? You have: select rolename Role, 0 RoleGroup from rolemapper where username=? The rolename Role and 0 RoleGroup are prolly causing the problem. I'm not sure why this would cause a database structure change. --- Pelle Poluha [EMAIL PROTECTED] wrote: Thanks but the error I get says the role 'user' is required to invoke create. And the user 'pelle' has the role 'user' as the MySql table shows. And everything works just fine as soon as I change to the UsersRolesLoginModule. Perhaps there is something wrong with the roles query as Grim Shieldsson suggested (but then I would have to change the structure of the table which I'd prefer not to). Regards, Pelle Poluha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre Vermeulen@i-Commerce Sent: den 11 juni 2001 10:36 To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Problems using DatabaseServerLoginModule Just a few ideas. Seems like don't have any permissoins set on your create method (Not telling which role can execute the create method), or change the permissions on the bean level that all methods use the same role. helpfull ? -Original Message- From: Pelle Poluha [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 10:10 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Problems using DatabaseServerLoginModule Hello! I'm trying to use the DatabaseServerLoginModule for authentication and role mapping. Earlier, I used the UsersRolesLoginModule successfully. As can be seen below (PreparedStatements printed to screen by JBoss), the authentication goes well but it seems the role mapping fails. [UserManager] select password from user where username=? [UserManager] select password from user where username=? [UserManager] 'pelle' User 'pelle' authenticated. [UserManager] select rolename Role, 0 RoleGroup from rolemapper where username=? [UserManager] select rolename Role, 0 RoleGroup from rolemapper where username=? [UserManager] 'pelle' [UserManager] Insufficient method permissions, principal=pelle, method=create, r equiredRoles=[user] When I query the database manually, I get the following results: mysql select rolename Role, 0 RoleGroup from rolemapper where username='pelle'; +--+---+ | Role | RoleGroup | +--+---+ | boss | 0 | | user | 0 | +--+---+ The auth.conf looks like this: other { org.jboss.security.auth.spi.DatabaseServerLoginModule required dsJndiName=java:/mySQL principalsQuery=select password from user where username=? rolesQuery=select rolename Role, 0 RoleGroup from rolemapper where username=? ; }; In standardjboss.xml, I have added the following line: jboss security-domainjava:/jaas/other/security-domain securefalse/secure ... Any help appreciated. Regards, Pelle Poluha ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user = Grim Shieldsson (James A Barrows) Acting Chieftain of Clan StormWolf Barbarian Freehold Alliance Oppurtunity doesn't knock. It only presents itself after you kick down the door. --Kyle Chandler __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss deployment;
Hi, I would think you have reference.jar in the lib/ext dir, right?? if so, make sure you put a version there which contains _ONLY_ home and remote interfaces, no deployment desriptors, no implementation. Should sort things out. Burkhard - Original Message - From: Chris Tragas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 8:36 AM Subject: RE: [JBoss-user] Jboss deployment; sorry forgot to point out that when i deploy promotion.jar it deploys the refernce.jar beans; WEIRD; Chris Tragas Information Services Manager - [EMAIL PROTECTED] +61 3 9695 5711 direct +61 3 0402 28 10 20 mobile - a t o m i c m e d i a Leading Partners Online Level 1 / 216 City Road Southbank, Melbourne, Vic 3006 Australia. +61 3 9695 5777 tel +61 3 9695 5700 fax - www.atomicmedia.com - -Original Message- From: Chris Tragas Sent: Tuesday, June 12, 2001 4:16 PM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Jboss deployment; Hi all; I am experiencing a rather unusual deployment problem; I am deploying two jar files: reference.jar, and promotion.jar The server console output for the deployment of reference.jar follwoed by promotion.jar is listed bellow; obviously my reference.jar contains different beans to promotion.jar but jboss is not picking it up! HELP HELP HELP output: [Auto deploy] Auto deploy of file:/C:/JBoss-2.2.2/deploy/reference.jar [J2EE Deployer Default] Deploy J2EE application: file:/C:/JBoss-2.2.2/deploy/ref erence.jar [J2EE Deployer Default] Create application reference.jar [J2EE Deployer Default] install module reference.jar [Container factory] Deploying:file:/C:/JBoss-2.2.2/tmp/deploy/Default/reference. jar [Verifier] Verifying file:/C:/JBoss-2.2.2/tmp/deploy/Default/reference.jar/ejb10 01.jar [Container factory] Deploying CompanyDetails [Container factory] Deploying MechanicType [Container factory] Deploying CriteriaType [Container factory] Deploying FeatureType [Container factory] Deploying FrequencyType [Container factory] Deploying PromoLevelType [Container factory] Deploying PromoStatus [Container factory] Deploying AgeGroup [Container factory] Deploying States [Container factory] Deploying Features [Container factory] Deploying Entrants [Container factory] Deploying ValidMechanicCriteria [Bean Cache] Cache policy scheduler started [Container factory] Deployed application: file:/C:/JBoss-2.2.2/tmp/deploy/Defaul t/reference.jar [J2EE Deployer Default] J2EE application: file:/C:/JBoss-2.2.2/deploy/reference. jar is deployed. [Auto deploy] Auto deploy of file:/C:/JBoss-2.2.2/deploy/promotion.jar [J2EE Deployer Default] Deploy J2EE application: file:/C:/JBoss-2.2.2/deploy/pro motion.jar [J2EE Deployer Default] Create application promotion.jar [J2EE Deployer Default] install module promotion.jar [Container factory] Deploying:file:/C:/JBoss-2.2.2/tmp/deploy/Default/promotion. jar [Verifier] Verifying file:/C:/JBoss-2.2.2/tmp/deploy/Default/promotion.jar/ejb10 02.jar [Container factory] Deploying CompanyDetails [Container factory] Deploying MechanicType [Container factory] Deploying CriteriaType [Container factory] Deploying FeatureType [Container factory] Deploying FrequencyType [Container factory] Deploying PromoLevelType [Container factory] Deploying PromoStatus [Container factory] Deploying AgeGroup [Container factory] Deploying States [Container factory] Deploying Features [Container factory] Deploying Entrants [Container factory] Deploying ValidMechanicCriteria [Container factory] Deployed application: file:/C:/JBoss-2.2.2/tmp/deploy/Defaul t/promotion.jar [J2EE Deployer Default] J2EE application: file:/C:/JBoss-2.2.2/deploy/promotion. jar is deployed. end of output Chris Tragas Information Services Manager - [EMAIL PROTECTED] +61 3 9695 5711 direct +61 3 0402 28 10 20 mobile - a t o m i c m e d i a Leading Partners Online Level 1 / 216 City Road Southbank, Melbourne, Vic 3006 Australia. +61 3 9695 5777 tel +61 3 9695 5700 fax - www.atomicmedia.com - ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] jBoss cannot handle char primitive type
Kar, Could you post the code for this, it looks as if it is looking for an Object of type Char not the primative type char. The object wrapper for char is the class java.lang.Character. Paul -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kar YEOWSent: 12 June 2001 01:13To: [EMAIL PROTECTED]Subject: [JBoss-user] jBoss cannot handle char primitive type I got and exception when calling an EJB with methods that uses char primitive type. May be I have done something wrong. I have attached theEJB code. Anyone? My work around is to use Integer but it would be nice if 'char' works. Kar --- java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: javax.transaction.TransactionRolledbackException: java/lang/Char; nested exception is: java.lang.NoClassDefFoundError: java/lang/Char javax.transaction.TransactionRolledbackException: java/lang/Char; nested exception is: java.lang.NoClassDefFoundError: java/lang/Char java.lang.NoClassDefFoundError: java/lang/Char at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248) at $Proxy0.create(Unknown Source) at au.com.apir.test.EJBTester.main(EJBTester.java:44) Exception in thread "main"
[JBoss-user] how to use self-created classes in ejb
hello i made a class pechkin.Envelope and ejb pechkin.ejbs.EnvelopeFactory that used Envelope. it were compiled successfully but deployment was failed. i put pechkin.Envelope and pechkin.ejbs.EnvelopeFactory in a war-file and pechkin.ejbs.EnvelopeFactory in a jar. during deployment i get an error: java.lang.NoClassDefFoundError: pechkin/Envelope. could someone help, please? thanks. ALex ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Shuting down JBoss
Hi. I'm trying to make a Java program for shuting down JBoss. The program calls the JMX service shutdown, which works fine from the HTMLAdaptor, but in this case the shutdown process hangs when it comes to the naming service. This in turn hangs the shutdown program. What am I doing wrong? Is there another recommended way of shutingdown JBoss? I want to be able to do it from a script. ** Magnus Grimsell [EMAIL PROTECTED] 013-37 35 24 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Problems using DatabaseServerLoginModule
I would at least have to change the column names in the table and change the entity bean dealing with that table. Regards, Pelle The roles query should be something like: select Role,RoleGroup from Roles where username=? You have: select rolename Role, 0 RoleGroup from rolemapper where username=? The rolename Role and 0 RoleGroup are prolly causing the problem. I'm not sure why this would cause a database structure change. Perhaps there is something wrong with the roles query as Grim Shieldsson suggested (but then I would have to change the structure of the table which I'd prefer not to). ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Upgrading to Hypersonic 1.6 and various otherquestions...
These snippets is from org.jboss.jdbc.HypersonicDatabase.java This is how the MBean locates and loads the $JBOSS_HOME$/db/ URL dbLocator = getClass().getResource(/db.properties); File dbDir = new File(dbLocator.getFile()).getParentFile(); File dbName = new File(dbDir, hypersonic/+name); These are the drivers : String dbStrVersion_1_4 = jdbc:HypersonicSQL:hsql://host:+port; String dbStrVersion_1_6 = jdbc:hsqldb:hsql://host:+port; Today U need to modify the stopService() to use the 1.6 driver manually and recompile. Maybe the 2.3 could be distributed with 1.6 by default ? ... /peter ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: Re: Re: [JBoss-user] run_with_tomcat.sh doesn't work?(Lachezar Dobrev)
Hello, Thanks for your help. I understand well how web.xml uses !DOCTYPE ... and the fact that it's better not calling a DTD outside if we need to go through a proxy. The easiest is to delete this line if it is not needed to check it's a valid XML. Nevertheless, I would still like to know how to access a DTD outside by configuring the proxy. On the other hand, it works now, why trying to fix it ;) Bye, Jm ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] More security questions
I have spent some time looking at the security of a possible JBoss-Tomcat system and I have a few questions left. We want the server to be very safe! 1/ Do I want to use the policy file system to restrict access to files and directories? Is this the best way or is it a left-over from some previous system? I ask this because it seem to be commented out or effectively disabled in most examples. 2/ Are there any problems in using JAAS and wrapping the whole client conversation in SSL to protect the passwords. 3/ I want a single login to the whole suite of servlets and beans. Do I just use standard declarative security on the lot? Will JBoss maintain a users login state across access to several applications? 4/ If I have servlets that have no reference to any beans, should I wrap them in a jboss application war and ear files to get security or is there a better way? 5/ Should I be able to use DIGEST authentication on a servlet , just by setting that as the auth-method or is there more to it? It looks as if the server doesn't make the method clear to the client. 6/ SRP - is this a good way to go? Again, it is in the config files but always seems to be commented out and not really emphasised or expanded upon in the examples. Thanks in advance. Gerry ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Leslie Klein/London/CWB is out of the office.
I will be out of the office starting 12/06/2001 and will not return until 18/06/2001. I am away on a course for the rest of this week and will be back in the office on Monday the 18th. ** This e-mail has been prepared using information believed by the author to be reliable and accurate, but CWB makes no warranty as to accuracy or completeness. In particular CWB does not accept responsibility for changes made to this e-mail after it was sent. Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. They may be subject to change without notice. *** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] StreamCorruptedException - NOT different JDK's
Hello! When I make a request to a stateless session bean from a client I get this exception (see below). The bean returns the Xerces implementation of an org.w3c.dom.Document object. The client AND the server runs this version of java on win2000: java version 1.3.0_02 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02) Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode) Stack trace: java.lang.reflect.UndeclaredThrowableException: java.io.StreamCorruptedException: Unexpected end of block data at java.io.ObjectInputStream.readObject(ObjectInputStream.java:408) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at org.apache.xerces.dom.ParentNode.readObject(ParentNode.java:954) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2213) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at java.rmi.MarshalledObject.get(MarshalledObject.java:138) at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke StatelessSessionProxy.java:188) at $Proxy1.getUser(Unknown Source) Any ideas? Thanks / Jonas ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Web Server
Hi, I am a new one to JBoss List. Can anyone tell me is there any web server with Jboss or we have to use the other one like IIS. Regards, Faisal Naveed
Re: [JBoss-user] Problems to install JDBC driver
I am facing the same problem. I am trying to load a postgresql driver. I have copied the driver to the /lib/ext/ directory, configured the jboss.jcml file to include. !-- JDBC -- mbean code=org.jboss.jdbc.JdbcProvider name=DefaultDomain:service=JdbcProvider attribute name=Driversorg.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.postgresql.Driver/attribute /mbean mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=postgresqlPool attribute name=PoolNamepostgresqlPool/attribute attribute name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl/attribute attribute name=Properties/attribute attribute name=URLjdbc:postgresql:diary1/attribute attribute name=JDBCUseralex/attribute attribute name=Password / /mbean I modified the jboss.properties to read. jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.postgresql.Driver On starting JBoss-2.2.2 I got the following error. [postgresqlPool] Initializing [postgresqlPool] Initialized .. .. [postgresqlPool] Starting [postgresqlPool] XA Connection pool postgresqlPool bound to java:/postgresqlPool [postgresqlPool] Stopped [postgresqlPool] java.lang.NullPointerException [postgresqlPool]at org.opentools.mineva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource.java:165) .. --- Arnaud TAVARD [EMAIL PROTECTED] wrote: you need to put your jdbc driver in the jboss.properies file as well From: Marie Rajon [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Problems to install JDBC driver Date: Mon, 11 Jun 2001 15:28:54 +0200 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ATTACHMENT part 2 message/rfc822 From: Marie Rajon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Problems to install JDBC driver Reply-to: [EMAIL PROTECTED] Date: Mon, 11 Jun 2001 15:28:54 +0200 HR htmlDIVHi,/DIV DIVnbsp;/DIV DIVI am using JBOSS with Cloudscape and I have difficulties to install the JDBC Drivers. I copied the RmiJdbc.jar file in the lib/ext directory of JBOSS and I add COM.cloudscape.core.RmiJdbcDriver in the jboss.jcml configuration file, but jboss doesn't want to load it when it starts .../DIV DIVCould you help me and tell me what I did wrong?/DIV DIVnbsp;/DIV DIVThank you very much/DIV DIVnbsp;/DIV DIVMarie/DIVbr clear=allhrGet Your Private, Free E-mail from MSN Hotmail at a href=http://www.hotmail.com;http://www.hotmail.com/a.br/p/html ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Web Server
Hi, There is a very simple control panel web interface to jboss - but not to be used for your applications - on port 8082, I think. To combine it with your own webapps, you need to use Tomcat or Jetty - see the JBoss site for more info. I don't think IIS supports servlets directly...assuming that is what you want to do... HTH, Chris -Original Message- From: Faisal Naveed [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 12 June 2001 10:10 To: [EMAIL PROTECTED] Subject: [JBoss-user] Web Server Hi, I am a new one to JBoss List. Can anyone tell me is there any web server with Jboss or we have to use the other one like IIS. Regards, Faisal Naveed This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK. The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery. == ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] (Code Example -- LONG) Timer MBan Problem
Hi, so far so bad. What kind of interface do I have to implement? Is there an example of EJBs using the timer-MBean service??? Help? Burkhard - Original Message - From: Jim Brownfield [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 6:50 AM Subject: RE: [JBoss-user] (Code Example -- LONG) Timer MBan Problem Here's an example that works for me. YMMV. I've tried to remove all application specific code, but still leave relavent timer MBean code. I reset the timer on each timer call. You can probably set the timer up to send periodically. The timerInterval is in seconds in this example (default 10 seconds). Blame formatting stuff on VisualAge :). Good luck! import java.util.*; import javax.naming.*; import javax.jms.*; import javax.management.*; import javax.management.timer.*; public class YourMBean extends org.jboss.util.ServiceMBeanSupport implements YourMBeanInterface { protected javax.management.MBeanServer mbeanServer = null; protected javax.management.ObjectInstance timerRef = null; protected long timeInterval = 10 * javax.management.timer.Timer.ONE_SECOND; public class Listener implements NotificationListener { public void handleNotification(Notification pNotification, Object pHandback) { try { YourMBean.this.setTimer(); /* Other Stuff Here */ } catch (Exception e) { System.out.println( Exception in YourMBean inner class Listener: + e.toString()); } } } public String getName() { return YourNameHere; } public long getTimeInterval() { return timeInterval; } public javax.management.ObjectName preRegister(javax.management.MBeanServer param1, javax.management.ObjectName param2) throws java.lang.Exception { mbeanServer = param1; return super.preRegister( param1, param2 ); } public void setTimeInterval(long newTimeInterval) { timeInterval = newTimeInterval * javax.management.timer.Timer.ONE_SECOND; } public void setTimer() throws java.lang.Exception { try { Date timerDate = new Date( new Date().getTime() + getTimeInterval() ); Integer theTimer = (Integer) mbeanServer.invoke( timerRef.getObjectName(), addNotification, new Object [] { Your name here, One Time Timer, null, timerDate }, new String [] { .getClass().getName(), .getClass().getName(), java.lang.Object, timerDate.getClass().getName() } ); } catch (Exception e) { log.log( YourMBean.setTimer() exception: + e.getMessage() ); throw e; } } public void setupTimer() throws Exception { try { Set beanList = mbeanServer.queryMBeans( new ObjectName(DefaultDomain, service, timer), null); if (!beanList.isEmpty()) { timerRef = (ObjectInstance) beanList.iterator().next(); } mbeanServer.addNotificationListener( timerRef.getObjectName(), new Listener(), null, null ); } catch (Exception e) { log.log(Exception in YourMBean.setupTimer(): + e.toString()); throw e; } setTimer(); } public void start() throws java.lang.Exception { super.start(); /* Some Stuff here */ setupTimer(); } } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Keerthi Panneer Sent: Monday, June 11, 2001 9:04 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Timer MBan Problem Hi, I tried the example described at http://www.jboss.org/documentation/HTML/ch11s74.html but i could not get it work... please let me know if someone gives you a working source code thanks keerthi From: David Crecente [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Lista Jboss [EMAIL PROTECTED] Subject: [JBoss-user] Timer MBan Problem Date: Mon, 11 Jun 2001 18:40:37 +0200 Hi all, Could someone send me a Timer MBean sample? Thank you in advance. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems to install JDBC driver
Hi, 1) make sure your Driver is loaded by serching a line like [JDBC provider] Loaded JDBC-driver:org.postgresql.Driver 2) provide a password, some Drivers don't work without one, or try making it a real empty one: attribute name=Password /attribute 3) tripple check your URL to the db. Burkhard - Original Message - From: Allan Kamau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 11:31 AM Subject: Re: [JBoss-user] Problems to install JDBC driver I am facing the same problem. I am trying to load a postgresql driver. I have copied the driver to the /lib/ext/ directory, configured the jboss.jcml file to include. !-- JDBC -- mbean code=org.jboss.jdbc.JdbcProvider name=DefaultDomain:service=JdbcProvider attribute name=Driversorg.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org. postgresql.Driver/attribute /mbean mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=postgresqlPool attribute name=PoolNamepostgresqlPool/attribute attribute name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name=Properties/attribute attribute name=URLjdbc:postgresql:diary1/attribute attribute name=JDBCUseralex/attribute attribute name=Password / /mbean I modified the jboss.properties to read. jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.po stgresql.Driver On starting JBoss-2.2.2 I got the following error. [postgresqlPool] Initializing [postgresqlPool] Initialized .. .. [postgresqlPool] Starting [postgresqlPool] XA Connection pool postgresqlPool bound to java:/postgresqlPool [postgresqlPool] Stopped [postgresqlPool] java.lang.NullPointerException [postgresqlPool]at org.opentools.mineva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource .java:165) .. --- Arnaud TAVARD [EMAIL PROTECTED] wrote: you need to put your jdbc driver in the jboss.properies file as well From: Marie Rajon [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Problems to install JDBC driver Date: Mon, 11 Jun 2001 15:28:54 +0200 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ATTACHMENT part 2 message/rfc822 From: Marie Rajon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Problems to install JDBC driver Reply-to: [EMAIL PROTECTED] Date: Mon, 11 Jun 2001 15:28:54 +0200 HR htmlDIVHi,/DIV DIVnbsp;/DIV DIVI am using JBOSS with Cloudscape and I have difficulties to install the JDBC Drivers. I copied the RmiJdbc.jar file in the lib/ext directory of JBOSS and I add COM.cloudscape.core.RmiJdbcDriver in the jboss.jcml configuration file, but jboss doesn't want to load it when it starts .../DIV DIVCould you help me and tell me what I did wrong?/DIV DIVnbsp;/DIV DIVThank you very much/DIV DIVnbsp;/DIV DIVMarie/DIVbr clear=allhrGet Your Private, Free E-mail from MSN Hotmail at a href=http://www.hotmail.com;http://www.hotmail.com/a.br/p/html ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] handleNotification Timer MBean Problem
Hi all, I am running Timer Mbean and JBoss call it each 10 seconds. I handle the notification in Listener class and i want to look up a session bean here, but i get NamingException and exception.getMessage() return null. My Listener class: package sonix; import javax.management.*; import javax.naming.*; import sonix.session.*; import javax.rmi.PortableRemoteObject; import java.util.Properties; public class Listener implements NotificationListener { public void handleNotification(Notification pNotification, Object pHandback) { // Here to whatever you want or call a method // in the outer class System.out.println( You got a Notification: + pNotification ); Properties env = new Properties(); env.setProperty(java.naming.factory.initial, org.jnp.interfaces.NamingContextFactory); env.setProperty(java.naming.provider.url, localhost:1099); //env.setProperty(java.naming.provider.url, 192.168.27.148:1099); env.setProperty(java.naming.factory.url.pkgs, org.jboss.naming); try { InitialContext jndiContext = new InitialContext(env); Object ref = jndiContext.lookup(sonix/session/ProcessNewAlarmS); ProcessNewAlarmSHome alarmhome = (ProcessNewAlarmSHome)PortableRemoteObject.narrow (ref, ProcessNewAlarmSHome.class); ProcessNewAlarmS alarm = alarmhome.create(); alarm.notifyAlarms(); } catch(javax.naming.NamingException e) { System.out.println(Error: + e.getMessage()); } catch(javax.ejb.CreateException e) { System.out.println(Error: + e.getMessage()); } catch(java.rmi.RemoteException e) { System.out.println(Error: + e.getMessage()); } catch(Exception e) { System.out.println(Error: + e.getMessage()); } } } Line Object ref = jndiContext.lookup(sonix/session/ProcessNewAlarmS); throws NamingException Can someone help me? Thank you in advance. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Leslie Klein/London/CWB is out of the office.
I will be out of the office starting 12/06/2001 and will not return until 18/06/2001. I am away on a course for the rest of this week and will be back in the office on Monday the 18th. ** This e-mail has been prepared using information believed by the author to be reliable and accurate, but CWB makes no warranty as to accuracy or completeness. In particular CWB does not accept responsibility for changes made to this e-mail after it was sent. Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. They may be subject to change without notice. *** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] StreamCorruptedException - NOT different JDK's
Helo again. I'm terribly sorry to claim Your attention unnecessarily, the client and the server had different versions of xerces.jar... / Jonas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jonas Bergström Sent: Tuesday, June 12, 2001 11:11 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] StreamCorruptedException - NOT different JDK's Hello! When I make a request to a stateless session bean from a client I get this exception (see below). The bean returns the Xerces implementation of an org.w3c.dom.Document object. The client AND the server runs this version of java on win2000: java version 1.3.0_02 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02) Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode) Stack trace: java.lang.reflect.UndeclaredThrowableException: java.io.StreamCorruptedException: Unexpected end of block data at java.io.ObjectInputStream.readObject(ObjectInputStream.java:408) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at org.apache.xerces.dom.ParentNode.readObject(ParentNode.java:954) at java.lang.reflect.Method.invoke(Native Method) at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2213) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at java.rmi.MarshalledObject.get(MarshalledObject.java:138) at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke StatelessSessionProxy.java:188) at $Proxy1.getUser(Unknown Source) Any ideas? Thanks / Jonas ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] problem with MS SQL Server and JBoss
Hello all, i am new to the world of jboss. i tried to use sql server with jboss and did the same thing as mentioned in the documentation. but i could not succeed from quite long. i am using Jboss 2.2.1 with tomcat 3.2.1 windows 2k sql server 2000. any help is appreciated.thanks in advance.. best regards srikanth talasila [InstantDB] Started [DefaultDS] Starting [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS [DefaultDS] Started [SQLServerPool] Starting [SQLServerPool] XA Connection pool SQLServerPool bound to java:/SQLServerPool [SQLServerPool] Stopped [SQLServerPool] java.lang.NullPointerException [SQLServerPool] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getCon nection(XAPoolDataSource.java:165) [SQLServerPool] at org.jboss.jdbc.XADataSourceLoader.startService(XAData SourceLoader.java:330) [SQLServerPool] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBean Support.java:93) [SQLServerPool] at java.lang.reflect.Method.invoke(Native Method) [SQLServerPool] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1628) [SQLServerPool] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1523) [SQLServerPool] at org.jboss.util.ServiceControl.start(ServiceControl.ja va:97) [SQLServerPool] at java.lang.reflect.Method.invoke(Native Method) [SQLServerPool] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1628) [SQLServerPool] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1523) [SQLServerPool] at org.jboss.Main.init(Main.java:203) [SQLServerPool] at org.jboss.Main$1.run(Main.java:107) [SQLServerPool] at java.security.AccessController.doPrivileged(Native Me thod) [SQLServerPool] at org.jboss.Main.main(Main.java:103) [Service Control] Could not start DefaultDomain:service=XADataSource,name=SQLSer verPool [Service Control] java.lang.NullPointerException [Service Control] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getCon nection(XAPoolDataSource.java:165) [Service Control] at org.jboss.jdbc.XADataSourceLoader.startService(XAData SourceLoader.java:330) [Service Control] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBean Support.java:93) [Service Control] at java.lang.reflect.Method.invoke(Native Method) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1628) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1523) [Service Control] at org.jboss.util.ServiceControl.start(ServiceControl.ja va:97) [Service Control] at java.lang.reflect.Method.invoke(Native Method) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1628) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1523) [Service Control] at org.jboss.Main.init(Main.java:203) [Service Control] at org.jboss.Main$1.run(Main.java:107) [Service Control] at java.security.AccessController.doPrivileged(Native Me thod) [Service Control] at org.jboss.Main.main(Main.java:103) [Container factory] Starting [Container factory] Started [EmbeddedTomcat] Starting __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] (Code Example -- LONG) Timer MBan Problem
Hi all, finally i saved my trouble. I put my sonixMbean.jar (Listener.class, JNDIMapMBean.class, JNDIMap.class) in lib/ext and now all is working fine. May be my code will be able useful to someone. Thanks all. [---] My MBean is a mix with you prior code and JBoss documentacion example. *** * Inteface class: * *** package sonix; // The JNDIMap MBean interface import javax.naming.NamingException; public interface JNDIMapMBean { public String getJndiName(); public void setJndiName(String jndiName) throws NamingException; public void start() throws Exception; public void stop() throws Exception; } * * MBean class:* * package sonix; // The JNDIMap MBean implementation import java.io.InputStream; import java.util.HashMap; import javax.naming.CompositeName; import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.Name; import javax.naming.NamingException; import org.jboss.naming.NonSerializableFactory; import javax.management.*; import java.util.Set; import java.util.Date; import java.util.Properties; import sonix.session.*; import javax.rmi.PortableRemoteObject; public class JNDIMap extends org.jboss.util.ServiceMBeanSupport implements JNDIMapMBean { private String jndiName; private HashMap contextMap = new HashMap(); private boolean started; protected javax.management.MBeanServer mbeanServer = null; protected javax.management.ObjectInstance timerRef = null; protected long timeInterval = 10 * javax.management.timer.Timer.ONE_SECOND; public String getName() {return jndiName;} public long getTimeInterval() {return timeInterval;} public javax.management.ObjectName preRegister(javax.management.MBeanServer param1, javax.management.ObjectName param2) throws java.lang.Exception { mbeanServer = param1; return super.preRegister( param1, param2 ); } public void setTimeInterval(long newTimeInterval) { timeInterval = newTimeInterval * javax.management.timer.Timer.ONE_SECOND; } public void setTimer() throws java.lang.Exception { try { Date timerDate = new Date( new Date().getTime() + getTimeInterval() ); Integer theTimer = (Integer) mbeanServer.invoke( timerRef.getObjectName(), addNotification, new Object [] { jndiName, 10, null, timerDate, new Long(javax.management.timer.Timer.ONE_SECOND*10)}, new String [] { .getClass().getName(), .getClass().getName(), java.lang.Object, timerDate.getClass().getName(), Long.TYPE.getName()} ); } catch (Exception e) { log.log( JNDIMap.setTimer() exception: + e.getMessage() ); throw e; } } public void setupTimer() throws Exception { try { Set beanList = mbeanServer.queryMBeans( new ObjectName(DefaultDomain, service, timer), null); if (!beanList.isEmpty()) { timerRef = (ObjectInstance) beanList.iterator().next(); } mbeanServer.addNotificationListener( timerRef.getObjectName(), new Listener(), null, null ); } catch (Exception e) { log.log(Exception in YourMBean.setupTimer(): + e.toString()); throw e; } setTimer(); } public String getJndiName() { return jndiName; } public void setJndiName(String jndiName) throws NamingException { String oldName = this.jndiName; this.jndiName = jndiName; if( started ) { unbind(oldName); try { rebind(); } catch(Exception e) { NamingException ne = new NamingException(Failed to update jndiName); ne.setRootCause(e); throw ne; } } } public void start() throws Exception started = true; rebind(); setupTimer(); } public void stop() { started = false; unbind(jndiName); } private static Context createContext(Context rootContext, Name name) throws NamingException { Context subctx = rootContext; for(int n = 0; n name.size(); n ++) { String atom = name.get(n); try { Object obj = subctx.lookup(atom); subctx = (Context) obj; } catch(NamingException e) { // No binding exists, create a subcontext subctx
[JBoss-user] Leslie Klein/London/CWB is out of the office.
I will be out of the office starting 12/06/2001 and will not return until 18/06/2001. I am away on a course for the rest of this week and will be back in the office on Monday the 18th. ** This e-mail has been prepared using information believed by the author to be reliable and accurate, but CWB makes no warranty as to accuracy or completeness. In particular CWB does not accept responsibility for changes made to this e-mail after it was sent. Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. They may be subject to change without notice. *** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss-web.xml in JBoss2.2.2
Hello, I'd like to know whether jboss-web.xml is still used in JBoss2.2.2 and what is its purpose. I have tried to run the application of http://www.oakgrovesoftware.com/~rbackhouse/ It is deployed but it doesn't work. In fact during the start of JBoss, I get the error below. What do you think of that? The author told me it could be a faulty congiguration of JBoss concerning the default datasource but I haven't changed any things related. Bye, Jm [Auto deploy] Linking ejb-ref: ContactSession to JNDI name: null [Auto deploy] javax.naming.NamingException: ejb-ref: ContactSession, expected jndi-name in jboss-web.xml [Auto deploy] at org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.java:359 ) [Auto deploy] at org.jboss.web.AbstractWebContainer.parseWebAppDescriptors(AbstractWebContain er.java:299) [Auto deploy] at org.jboss.web.AbstractWebContainer$DescriptorParser.parseWebAppDescriptors(A bstractWebContainer.java:398) [Auto deploy] at org.jboss.tomcat.naming.JbossWebXmlReader.contextInit(JbossWebXmlReader.java :61) [Auto deploy] at org.apache.tomcat.core.ContextManager.initContext(ContextManager.java:491) [Auto deploy] at org.jboss.tomcat.TomcatEntry.initContext(TomcatEntry.java:144) [Auto deploy] at org.jboss.tomcat.EmbeddedTomcatServiceSX.performDeploy(EmbeddedTomcatService SX.java:117) [Auto deploy] at org.jboss.web.AbstractWebContainer.deploy(AbstractWebContainer.java:178) [Auto deploy] at java.lang.reflect.Method.invoke(Native Method) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Auto deploy] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:431) [Auto deploy] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178) [Auto deploy] at java.lang.reflect.Method.invoke(Native Method) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358) [Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221) [Auto deploy] at org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:332) [Auto deploy] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93) [Auto deploy] at java.lang.reflect.Method.invoke(Native Method) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Auto deploy] at org.jboss.util.ServiceControl.start(ServiceControl.java:97) [Auto deploy] at java.lang.reflect.Method.invoke(Native Method) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Auto deploy] at org.jboss.Main.init(Main.java:217) [Auto deploy] at org.jboss.Main$1.run(Main.java:121) [Auto deploy] at java.security.AccessController.doPrivileged(Native Method) [Auto deploy] at org.jboss.Main.main(Main.java:117) [Auto deploy] Initialized: {WebApplication: /tmp/jm/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/contactapp.ear/web 1003/, URL: file:/tmp/jm/JBoss-2.2.2_Tomcat-3.2.2/jboss/tmp/deploy/Default/contactapp.ea r/web1003/, classLoader: AdaptiveClassLoader( ):1465214} [J2EE Deployer Default] J2EE application: file:/tmp/jm/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/contactapp.ear is deployed. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] repackaging JbossUtilAutonumber
Christoph Sturm wrote: Is it legal to separately package the jboss.util.autonumber bean, or add its classes to my project? I use jboss, but I want to deploy with orion, and I so I need a pk-generator that doesnt depend on the app server. (This is informal advice, with no warranty. See the LGPL license for the exact terms.) Under the LGPL license, you may use the bean in your project if it is distributed under LGPL. If LGPL is an acronym for Lesser GPL (but NOT if it means Library GPL), you may also pick these bits for your project if you distribute your project under GPL. Best Regards, Ole Husgaard. P.S: IMHO enterprise beans do _not_ have their right place in the JBoss core server. It would be better if this was in the contrib module. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems installing Postgresql JDBC driver:
Hi, I have tried the steps below very carefully,followed all the instructions in the documentation. I am now suspecting my jdbc driver may be faulty . Kindly anyone send me an attachment of a postgresql 7.x JDBC. Thanks in advance. Allan. --- Burkhard Vogel [EMAIL PROTECTED] wrote: Hi, 1) make sure your Driver is loaded by serching a line like [JDBC provider] Loaded JDBC-driver:org.postgresql.Driver 2) provide a password, some Drivers don't work without one, or try making it a real empty one: attribute name=Password /attribute 3) tripple check your URL to the db. Burkhard - Original Message - From: Allan Kamau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 11:31 AM Subject: Re: [JBoss-user] Problems to install JDBC driver I am facing the same problem. I am trying to load a postgresql driver. I have copied the driver to the /lib/ext/ directory, configured the jboss.jcml file to include. !-- JDBC -- mbean code=org.jboss.jdbc.JdbcProvider name=DefaultDomain:service=JdbcProvider attribute name=Driversorg.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org. postgresql.Driver/attribute /mbean mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=postgresqlPool attribute name=PoolNamepostgresqlPool/attribute attribute name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name=Properties/attribute attribute name=URLjdbc:postgresql:diary1/attribute attribute name=JDBCUseralex/attribute attribute name=Password / /mbean I modified the jboss.properties to read. jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.po stgresql.Driver On starting JBoss-2.2.2 I got the following error. [postgresqlPool] Initializing [postgresqlPool] Initialized .. .. [postgresqlPool] Starting [postgresqlPool] XA Connection pool postgresqlPool bound to java:/postgresqlPool [postgresqlPool] Stopped [postgresqlPool] java.lang.NullPointerException [postgresqlPool]at org.opentools.mineva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource .java:165) .. --- Arnaud TAVARD [EMAIL PROTECTED] wrote: you need to put your jdbc driver in the jboss.properies file as well From: Marie Rajon [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Problems to install JDBC driver Date: Mon, 11 Jun 2001 15:28:54 +0200 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ATTACHMENT part 2 message/rfc822 From: Marie Rajon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Problems to install JDBC driver Reply-to: [EMAIL PROTECTED] Date: Mon, 11 Jun 2001 15:28:54 +0200 HR htmlDIVHi,/DIV DIVnbsp;/DIV DIVI am using JBOSS with Cloudscape and I have difficulties to install the JDBC Drivers. I copied the RmiJdbc.jar file in the lib/ext directory of JBOSS and I add COM.cloudscape.core.RmiJdbcDriver in the jboss.jcml configuration file, but jboss doesn't want to load it when it starts .../DIV DIVCould you help me and tell me what I did wrong?/DIV DIVnbsp;/DIV DIVThank you very much/DIV DIVnbsp;/DIV DIVMarie/DIVbr clear=allhrGet Your Private, Free E-mail from MSN Hotmail at a href=http://www.hotmail.com;http://www.hotmail.com/a.br/p/html ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Web Server
As well as being a servlet container, Jetty is also an HTTP1.1 web server. See jetty.mortbay.com. and the Jetty info on JBoss.org. Jules --- Kimpton,C (Chris) [EMAIL PROTECTED] wrote: Hi, There is a very simple control panel web interface to jboss - but not to be used for your applications - on port 8082, I think. To combine it with your own webapps, you need to use Tomcat or Jetty - see the JBoss site for more info. I don't think IIS supports servlets directly...assuming that is what you want to do... HTH, Chris -Original Message- From: Faisal Naveed [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 12 June 2001 10:10 To: [EMAIL PROTECTED] Subject: [JBoss-user] Web Server Hi, I am a new one to JBoss List. Can anyone tell me is there any web server with Jboss or we have to use the other one like IIS. Regards, Faisal Naveed This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK. The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery. == ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Shuting down JBoss
There is a shutdown class in the cvs of jboss that uses the JMX interface. Included below.. Mike On (12/06/01 10:51), Magnus Grimsell wrote: Hi. I'm trying to make a Java program for shuting down JBoss. The program calls the JMX service shutdown, which works fine from the HTMLAdaptor, but in this case the shutdown process hangs when it comes to the naming service. This in turn hangs the shutdown program. What am I doing wrong? Is there another recommended way of shutingdown JBoss? I want to be able to do it from a script. ** Magnus Grimsell [EMAIL PROTECTED] 013-37 35 24 /* * JBoss, the OpenSource EJB server * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss; import java.io.*; import java.net.*; import java.util.*; /** * Provides an OS-independent way of shutting down JBoss. This * works by accessing the JMX server and giving it the shutdown * command. The host to the JMX server can be passed in as well * as the port number. If neither is supplied, the defaults of * localhost and 8082 are used. * br * br * Usage: java org.jboss.Shutdown [host] [port] * br * br * * @author Dewayne McNair ([EMAIL PROTECTED]) * @version $Revision: 1.1 $ */ public class Shutdown { private static final String command = /InvokeAction//DefaultDomain%3Atype%3DShutdown/action=shutdown?action=shutdown; public static void main (String argv[]) { String host = localhost; String port = 8082; if (argv.length == 1) host = argv[0]; if (argv.length == 2) port = argv[1]; try { URL url = new URL (http://; + host + : + port + command); url.getContent(); } catch (Exception e) { // we do nothing because even if everything went // right, ie JBoss is shutdown, we'd get an exception } } } ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] The Award Goes To ...
This is an excerpt from an article by John D. Mitchell on IBM developerworks website (way to go Mark!): The Most Exciting Birds of a Feather Session goes to Marc Fleury and the JBoss.org group. Other than the slides being basically unreadable (hint: use a dark foreground on light background), it was great to attend a session with such a passionate speaker. For those of you who don't already know, JBoss is an open-source J2EE application server. JBoss is distributed under the LGPL (the so-called Lesser or Library version of the Gnu Public License), so it can be incorporated into commercial products without infecting the rights to the commercial software. JBoss is going right to the heart of the J2EE movement by building a pluggable, extensible server core using JMX and then bootstrapping all of the other server capabilities atop of the core. So, you can suck in as little or as much of the various services as are appropriate for your needs. Contrast this to the more monolithic approach that most, if not all, of the proprietary server vendors are taking. Fleury and crew are also trying to support themselves by forming a non-profit foundation (a la Apache) which can take tax-deductible donations and make money through branding and certification, licensing, and franchising. If you want to become an official, certified JBoss consultant, you will have to take the JBoss group's training. Then you'll get a franchise-like license and gigs in your area will be sent to you. (I presume the foundation gets a percentage of the revenue.) In terms of software, Fleury thinks that there is a market in which component/service developers can create software that extends the power of the JBoss services and then sell those components for say, $50. He wants to convince the developers to open-source the code once their component has brought in a certain amount of revenue. It will be an interesting experiment to watch. Good luck! The Best Comeback to the Threat of .Net also goes to Marc Fleury of the JBoss Group. In the JBoss BOF mentioned previously, Marc quoted an excerpt from a Wall Street Journal piece wherein BEA's Bill Coleman conceded the low end of the enterprise market to Microsoft's .Net. Marc proceeded to get hot and bothered; he swore that Java technology, through open-source projects such as JBoss (and JBoss specifically) will own the low-end enterprise market. Throughout the session, Marc kept coming back to this issue, reiterating that not only is JBoss a competitive J2EE server, but it also has the very best per-CPU fees (and so will eventually own the mid- and high-end markets too). ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Jetty] Classpath problem / jBoss 2.2.2
I have an existing web application that I'm trying to deploy. Previously, I ran Jetty in one JVM and jBoss in another. The application works fine. I want to run everything in a single JVM. That means chaning jboss.jcml to not only deploy my EJBs, but to start up and initialize Jetty and deploy my WAR. First pass: -- jboss.jcml: mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=PrimixVlib attribute name=PoolNamePrimixVlib/attribute attribute name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name=URLjdbc:idb:../conf/default/vlib.properties/attribute attribute name=JDBCUser/attribute attribute name=Password/ /mbean mbean code=org.jboss.jetty.JettyService name=DefaultDomain:service=Jetty attribute name=Configurationfile:C:/JBoss-2.2.2/conf/default/jetty-vlib.xml/attrib ute /mbean -- jetty-vlib.xml: ?xml version=1.0 encoding=ISO-8859-1? !-- $Id$ -- !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure 1.0//EN http://jetty.mortbay.com/configure_1_0.dtd; Configure class=com.mortbay.HTTP.HttpServer Call name=addListener Arg New class=com.mortbay.HTTP.SocketListener Set name=Port8080/Set Set name=MinThreads2/Set Set name=MaxThreads50/Set Set name=MaxIdleTimeMs5/Set /New /Arg /Call !-- This writes a log of each incoming request to the default output, which makes it easier to see what Tapestry and Jetty are up to. -- Set name=LogSink New class=com.mortbay.Util.WriterLogSink/ /Set Call name=addWebApplication Arg/vlib/*/Arg Arg../wars/Vlib.war/Arg Arg../conf/default/jetty-default-web.xml/Arg /Call Call name=addContext Arg/private-assets/*/Arg Set name=ResourceBase.build/private-assets/Set Set name=ServingResourcesTRUE/Set /Call /Configure I copied my existing Vlib.war to c:/jboss2.2.2/wars. First pass results: Static portions of my application worked correctly, but I got NoClassDefFound exceptions when I hit portions of the app that involved EJBs. -- Second pass: I changed my Vlib.war file, adding a manifest: Manifest-Version: 1.0 Class-Path: ./lib/VlibBeans.jar I also copied VlibBean.jar into WEB-INF/lib Results are similar, except now I get a class cast exception: Name: com.primix.tapestry.ApplicationRuntimeException Message: Object vlib/Operations is not type com.primix.vlib.ejb.IOperationsHome. Name: java.lang.ClassCastException Message: Trace: * com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemo teObject.java:296) * javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137) * com.primix.vlib.VirtualLibraryEngine.findNamedObject(src/com/primix/vlib/Vir tualLibraryEngine.java:354) Would things work better if I deployed as an EAR? (I haven't created Makefiles for EARs yet). Can you autodeploy EAR files, or do you have to use the J2EEDeployer MBean? Howard Ship Senior Consultant PRIMIX 311 Arsenal Street Watertown, MA 02472 www.primix.com [EMAIL PROTECTED] (617) 923-6639 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] javax.naming.NameNotFoundException: jdbc not bound
Based on some good suggestions, I've updated following files as shown (see below), now when I start JBoss it throws this exception: java.lang.reflect.InvocationTargetException: java.lang.StackOverflowError at com.sun.naming.internal.VersionHelper12$6.run(VersionHelper12.java:16 4) at java.security.AccessController.doPrivileged(Native Method) at com.sun.naming.internal.VersionHelper12.getContextClassLoader(Version Helper12.java:161) at com.sun.naming.internal.ResourceManager$FactoryKey.init(ResourceMan ager.java:524) at com.sun.naming.internal.ResourceManager.getFactory(ResourceManager.ja va:315) at javax.naming.spi.NamingManager.getURLObject(NamingManager.java:576) at javax.naming.spi.NamingManager.getURLContext(NamingManager.java:534) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.jav a:278) ...and loops through this about (100x) at javax.naming.InitialContext.lookup(InitialContext.java:350) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:421) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:457) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) at javax.naming.InitialContext.lookup(InitialContext.java:350) UTIL.WAR - WEB-INF/web.xml == resource-ref res-ref-namejdbc/atalk/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref WEB-INF/jboss-web.xml == jboss-web resource-ref res-ref-namejdbc/atalk/res-ref-name res-typejavax.sql.DataSource/res-type jndi-namejava:comp/env/jdbc/atalk/jndi-name /resource-ref /jboss-web Java Source --- DBImpl.java = private static final String DB_NAME = java:comp/env/jdbc/atalk; private static DataSource dataSrc = null; ... InitialContext ic = new InitialContext(); dataSrc = (DataSource)ic.lookup(DB_NAME); JBoss Config = jboss.jcml -- mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=jdbc/atalk attribute name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name=PoolNamejdbc/atalk/attribute attribute name=URLjdbc:inetdae7:localhost/attribute attribute name=Propertieshost=localhost; database=respond; sql7=true/attribute attribute name=JDBCUsersa/attribute attribute name=Passwordpassword/attribute attribute name=MinSize0/attribute attribute name=MaxSize10/attribute attribute name=GCEnabledfalse/attribute attribute name=GCMinIdleTime120/attribute attribute name=GCInterval12/attribute attribute name=InvalidateOnErrorfalse/attribute attribute name=TimestampUsedfalse/attribute attribute name=Blockingtrue/attribute attribute name=LoggingEnabledfalse/attribute attribute name=IdleTimeoutEnabledfalse/attribute attribute name=IdleTimeout180/attribute attribute name=MaxIdleTimeoutPercent1.0/attribute /mbean BEGIN:VCARD VERSION:2.1 N:Bermon;Scott FN:Scott Bermon ORG:Everypath Canada;Research and Development TITLE:Team Lead TEL;WORK;VOICE:416.366.6425 x328 TEL;CELL;VOICE:416.986.4685 TEL;PAGER;VOICE:416.235.8866 TEL;WORK;FAX:416.643.4832 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;Canada;49 Ontario St.=0D=0A6th Floor;Toronto;Ontario;M5A 4L5;Canada LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Canada=0D=0A49 Ontario St.=0D=0A6th Floor=0D=0AToronto, Ontario M5A 4L5=0D= =0ACanada URL: URL:http://www.everypath.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20010612T144349Z END:VCARD
[JBoss-user] Integrated tomcatSX
Integrated tomcat barfs when I run my snoop servlet. I have no security setup in the web.xml yet it insists on using security. Console output indicates that the user is null and then I eventually get this stack This exception happens when I call request.getUserName() It seems like tomcat is enabled with jboss security. java.lang.NullPointerException at org.jboss.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMg rRealm.java:113) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837 ) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.apache.tomcat.facade.HttpServletRequestFacade.getRemoteUser(HttpServletR equestFacade.java:251) at com.coremetrics.servlet.SnoopServeeServ.doGet(SnoopServeeServ.java:163) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Leslie Klein/London/CWB is out of the office.
I will be out of the office starting 12/06/2001 and will not return until 18/06/2001. I am away on a course for the rest of this week and will be back in the office on Monday the 18th. ** This e-mail has been prepared using information believed by the author to be reliable and accurate, but CWB makes no warranty as to accuracy or completeness. In particular CWB does not accept responsibility for changes made to this e-mail after it was sent. Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. They may be subject to change without notice. *** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Problems using DatabaseServerLoginModule
It's done and it works perfectly. It seems that you can't label the columns as I did in the query. The names of the table don't matter though. Alas: from: select rolename Role, 0 RoleGroup from rolemapper where username=? to : select role, rolegroup from rolemapper where username=? /Pelle Poluha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Pelle Poluha Sent: den 12 juni 2001 10:50 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Problems using DatabaseServerLoginModule I would at least have to change the column names in the table and change the entity bean dealing with that table. Regards, Pelle The roles query should be something like: select Role,RoleGroup from Roles where username=? You have: select rolename Role, 0 RoleGroup from rolemapper where username=? The rolename Role and 0 RoleGroup are prolly causing the problem. I'm not sure why this would cause a database structure change. Perhaps there is something wrong with the roles query as Grim Shieldsson suggested (but then I would have to change the structure of the table which I'd prefer not to). ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jBoss cannot handle char primitive type
This bug was fixed in the 1.3.1 release. - Original Message - From: Marko Strukelj [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 1:57 AM Subject: RE: [JBoss-user] jBoss cannot handle char primitive type This issue has come up several times already on this list. The problem is with JDK 1.3 (maybe 1.2 has it too?) that has a serialization bug (or is it a reflection bug?). I remember some people have mentioned it disappeared with JDK 1.4 beta (or was it JDK 1.3.1 ?). The solution is not to use char arguments (and return values?) in your beans. ( heh, it's not a very exact answer ? ;) ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Problems using DatabaseServerLoginModule
I would try using the column names you have. I have a sneaking suspicion that the databaseLoginModule is not looking at names, but rather position. I could be wrong.. it's worth a shot. --- Pelle Poluha [EMAIL PROTECTED] wrote: I would at least have to change the column names in the table and change the entity bean dealing with that table. Regards, Pelle The roles query should be something like: select Role,RoleGroup from Roles where username=? You have: select rolename Role, 0 RoleGroup from rolemapper where username=? The rolename Role and 0 RoleGroup are prolly causing the problem. I'm not sure why this would cause a database structure change. Perhaps there is something wrong with the roles query as Grim Shieldsson suggested (but then I would have to change the structure of the table which I'd prefer not to). ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user = Grim Shieldsson (James A Barrows) Acting Chieftain of Clan StormWolf Barbarian Freehold Alliance Oppurtunity doesn't knock. It only presents itself after you kick down the door. --Kyle Chandler __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Minerva DataSource Error
Hello everybody ! I'm trying to access an Oracle database with JBoss (excellent product by the way). I followed all the instructions for the minerva pools for Oracle : - I put the classes12.zip file from Oracle into lib/ext directory, - I modified the jboss.properties file to uncomment the right line for xidclass (and the class is present in classes12.zip), - I modified the jboss.cml file : mbean code=org.jboss.jdbc.JdbcProvider name=DefaultDomain:service=JdbcProvider attribute name=Driversorg.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,orac le.jdbc.driver.OracleDriver/attribute /mbean and mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=OracleDB attribute name=PoolNameOracleDB/attribute attribute name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name=URLjdbc:oracle:thin:spirou:1521:AGENCE/attribute attribute name=JDBCUserhidden/attribute attribute name=Passwordhidden/attribute /mbean But I got an error : [JDBC provider] Initializing [JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver [JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver [JDBC provider] Loaded JDBC-driver:oracle.jdbc.driver.OracleDriver [JDBC provider] Initialized . [DefaultDS] Started [OracleDB] Starting [OracleDB] XA Connection pool OracleDB bound to java:/OracleDB [OracleDB] Stopped [OracleDB] java.lang.NullPointerException [OracleDB] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSourc e.java:165) [OracleDB] at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330) [OracleDB] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93) [OracleDB] at java.lang.reflect.Method.invoke(Native Method) [OracleDB] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [OracleDB] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [OracleDB] at org.jboss.util.ServiceControl.start(ServiceControl.java:97) [OracleDB] at java.lang.reflect.Method.invoke(Native Method) [OracleDB] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [OracleDB] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [OracleDB] at org.jboss.Main.init(Main.java:217) [OracleDB] at org.jboss.Main$1.run(Main.java:121) [OracleDB] at java.security.AccessController.doPrivileged(Native Method) [OracleDB] at org.jboss.Main.main(Main.java:117) [Service Control] Could not start DefaultDomain:service=XADataSource,name=OracleDB [Service Control] java.lang.NullPointerException [Service Control] at org.opentools.minerva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSourc e.java:165) [Service Control] at org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:330) [Service Control] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93) [Service Control] at java.lang.reflect.Method.invoke(Native Method) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Service Control] at org.jboss.util.ServiceControl.start(ServiceControl.java:97) [Service Control] at java.lang.reflect.Method.invoke(Native Method) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Service Control] at org.jboss.Main.init(Main.java:217) [Service Control] at org.jboss.Main$1.run(Main.java:121) [Service Control] at java.security.AccessController.doPrivileged(Native Method) [Service Control] at org.jboss.Main.main(Main.java:117) Thanks for help. Etienne de Closmadeuc ([EMAIL PROTECTED]) Logica SA 183, route de Canéjan 33173 GRADIGNAN CEDEX Tél : 05.56.75.77.00 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Running ecperf on JBoss
i'm starting some benchmarking of app servers using sun's ecperf package, and am having a few problems figuring out just how to do so with jboss. just a couple of questions: 1) what use is the jboss patch file, and how should the specific files be used? 2) is there an xml file available with ecperf deployment rules for jboss? i'm not sure my xml skills are yet up to the task of writing my own. thanks for any help anyone can offer! db ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Integrated tomcatSX
There is always a security interceptor and tomcat decides when it should be called. I'll look into what is going on with this particular usage. - Original Message - From: Ferguson, Doug [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 7:49 AM Subject: [JBoss-user] Integrated tomcatSX Integrated tomcat barfs when I run my snoop servlet. I have no security setup in the web.xml yet it insists on using security. Console output indicates that the user is null and then I eventually get this stack This exception happens when I call request.getUserName() It seems like tomcat is enabled with jboss security. java.lang.NullPointerException at org.jboss.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMg rRealm.java:113) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837 ) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.apache.tomcat.facade.HttpServletRequestFacade.getRemoteUser(HttpServletR equestFacade.java:251) at com.coremetrics.servlet.SnoopServeeServ.doGet(SnoopServeeServ.java:163) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems using DatabaseServerLoginModule
That is correct. It expects a query that maps any existing schema onto the idealized Principal and Roles tables as described in the JBossSX docs and the DatabaseServerLoginModule javadoc. See http://www.jboss.org/documentation/HTML/ch09s17.html - Original Message - From: Grim Shieldsson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 8:39 AM Subject: RE: [JBoss-user] Problems using DatabaseServerLoginModule I would try using the column names you have. I have a sneaking suspicion that the databaseLoginModule is not looking at names, but rather position. I could be wrong.. it's worth a shot. --- Pelle Poluha [EMAIL PROTECTED] wrote: I would at least have to change the column names in the table and change the entity bean dealing with that table. Regards, Pelle The roles query should be something like: select Role,RoleGroup from Roles where username=? You have: select rolename Role, 0 RoleGroup from rolemapper where username=? The rolename Role and 0 RoleGroup are prolly causing the problem. I'm not sure why this would cause a database structure change. Perhaps there is something wrong with the roles query as Grim Shieldsson suggested (but then I would have to change the structure of the table which I'd prefer not to). ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user = Grim Shieldsson (James A Barrows) Acting Chieftain of Clan StormWolf Barbarian Freehold Alliance Oppurtunity doesn't knock. It only presents itself after you kick down the door. --Kyle Chandler __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] how do I access simple html pages in a war file
the problem is that´s already created. By that time JSP was not used. And it´s very light. At 09:20 11/06/01 -0700, you wrote: In all honesty, you are probably better off using Taglibs then you are trying to recreate this. --- Emerson [EMAIL PROTECTED] wrote: At 09:05 11/06/01 -0400, you wrote: ugh... not easily... but it could be done like so ServletContext sCtx = String realPath = sCtx.getRealPath(path of resource); then load the resource using whatever and do your thing. I would ask why do it this way, but im sure there must be some reason. in either case you are going to have to use a servlet or jsp as the controller in order to make the changes... I have a kind of old system made when there weren´t JSP pages, just servlets. So i want to reuse this functionality. Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Emerson Sent: Monday, June 11, 2001 8:08 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] how do I access simple html pages in a war file I´m not using JSP, instead I made a class that changes dinamic tags (like #dinTag) on static pages at run time. How do I access this static pages at run time? Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user = Grim Shieldsson (James A Barrows) Acting Chieftain of Clan StormWolf Barbarian Freehold Alliance Oppurtunity doesn't knock. It only presents itself after you kick down the door. --Kyle Chandler __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss-web.xml in JBoss2.2.2
Yes it is used and its purpose it to map the application jndi name references onto the actual deployment environment jndi name. In the 2.2.2 release the parsing the web descriptor jndi elements was cleaned up to better conform to the spec. The ejb-ref element in the web.xml descriptor: ejb-ref ejb-ref-nameContactSession/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homeorg.ogs.contact.session.ContactSessionHome/home remoteorg.ogs.contact.session.ContactSession/remote /ejb-ref does not have an ejb-link element to indicate which bean in the ear the ref is to. There should either be an ejb-link element in the web.xml descriptor, or an ejb-ref in a jboss-web.xml descriptor along with the deployed ejb's jndi-name. In the previous versions of JBoss there was an assumption that if this info was not supplied the jndi-name was the same as the ejb-ref-name. In order for this to work you have to go against the conventional use of binding ejb-ref under the ejb subcontext of the java:comp/env ENC namespace. - Original Message - From: Jm Seigneur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 6:19 AM Subject: [JBoss-user] jboss-web.xml in JBoss2.2.2 Hello, I'd like to know whether jboss-web.xml is still used in JBoss2.2.2 and what is its purpose. I have tried to run the application of http://www.oakgrovesoftware.com/~rbackhouse/ It is deployed but it doesn't work. In fact during the start of JBoss, I get the error below. What do you think of that? The author told me it could be a faulty congiguration of JBoss concerning the default datasource but I haven't changed any things related. Bye, Jm [Auto deploy] Linking ejb-ref: ContactSession to JNDI name: null [Auto deploy] javax.naming.NamingException: ejb-ref: ContactSession, expected jndi-name in jboss-web.xml [Auto deploy] at org.jboss.web.AbstractWebContainer.linkEjbRefs(AbstractWebContainer.java:359 ) [Auto deploy] at ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Differences in ejb methods called for BMP beans
I changed all the commit options in the standardjboss.xml file to C, results stayed the same for JBOSS -Original Message- From: danch [mailto:[EMAIL PROTECTED]] Sent: Monday, June 11, 2001 3:36 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Differences in ejb methods called for BMP beans I'd expect that output from JBoss if you are using commit option A (the default) and those beans had been accessed recently - since option A caches the bean's state aggressively, they need to ejbActivate to transition from the 'pooled' state to the 'ready' state, and need to ejbLoad prior to a business method call (option A means JBoss is the only thing touching that database, and can therefore assume that what it has from the last transaction is what's in the database) The Orion sequence is correct also. If my assumption that those beans had been accessed prior to the trace below is true (and if it isn't you'll see that you're getting the wrong (no) data), both servers are behaving according to the spec (with Orion using commit option C) and 'more correct' is not meaningful. Try setting JBoss to commit option C and see how that changes the calling sequence. Then try option B, just for fun 8^}) -danch Kaseman, Mark T wrote: I have a test BMP that reads data from a DB2 database and just returns a collection to a servlet. When I run this application under JBOSS and ORION, I get different ejb* methods called. I must admit I am not 100% familiar with the life cycle of a BMP entity in EJB, but I would expect them to be more similar than the results below. I am trying to find out why they are different and which product is more correct ?? Orion/1.5.2 initialized 1st request - returns 2 -rows MVSBase() MVSBean() setEntityContext() ejbFindByServerName() Begin Time: 2001.06.08 at 08:59:43.908 AM EDT End Time: 2001.06.08 at 08:59:44.459 AM EDT ejbActivate() ejbLoad() MVSBase() MVSBean() setEntityContext() ejbActivate() ejbLoad() ejbStore() ejbStore() 2nd request - returns 1 -row MVSBase() MVSBean() setEntityContext() ejbFindByServerName() Begin Time: 2001.06.08 at 09:00:13.440 AM EDT End Time: 2001.06.08 at 09:00:13.590 AM EDT ejbActivate() ejbLoad() ejbStore() [Default] JBoss 2.2.1 Started in 0m:8s [Jetty] JSP: init 1st request - returns 2 -rows [MVS_BMP] MVSBase() [MVS_BMP] MVSBean() [MVS_BMP] setEntityContext() [MVS_BMP] ejbFindByServerName() [MVS_BMP] Begin Time: 2001.06.08 at 09:02:48.323 AM EDT [MVS_BMP] End Time: 2001.06.08 at 09:02:48.473 AM EDT 2nd request - returns 1 -row [MVS_BMP] ejbFindByServerName() [MVS_BMP] Begin Time: 2001.06.08 at 09:02:54.692 AM EDT [MVS_BMP] End Time: 2001.06.08 at 09:02:54.832 AM EDT ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Problems installing Postgresql JDBC driver:
I had the same problem but is now fixed. Providing some password to the field fixed the problem. I provided hello as the password and postgres as the user. -Original Message- From: Allan Kamau [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 6:53 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Problems installing Postgresql JDBC driver: Hi, I have tried the steps below very carefully,followed all the instructions in the documentation. I am now suspecting my jdbc driver may be faulty . Kindly anyone send me an attachment of a postgresql 7.x JDBC. Thanks in advance. Allan. --- Burkhard Vogel [EMAIL PROTECTED] wrote: Hi, 1) make sure your Driver is loaded by serching a line like [JDBC provider] Loaded JDBC-driver:org.postgresql.Driver 2) provide a password, some Drivers don't work without one, or try making it a real empty one: attribute name=Password /attribute 3) tripple check your URL to the db. Burkhard - Original Message - From: Allan Kamau [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 11:31 AM Subject: Re: [JBoss-user] Problems to install JDBC driver I am facing the same problem. I am trying to load a postgresql driver. I have copied the driver to the /lib/ext/ directory, configured the jboss.jcml file to include. !-- JDBC -- mbean code=org.jboss.jdbc.JdbcProvider name=DefaultDomain:service=JdbcProvider attribute name=Driversorg.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org. postgresql.Driver/attribute /mbean mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=postgresqlPool attribute name=PoolNamepostgresqlPool/attribute attribute name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name=Properties/attribute attribute name=URLjdbc:postgresql:diary1/attribute attribute name=JDBCUseralex/attribute attribute name=Password / /mbean I modified the jboss.properties to read. jdbc.drivers=org.hsql.jdbcDriver,org.enhydra.instantdb.jdbc.idbDriver,org.po stgresql.Driver On starting JBoss-2.2.2 I got the following error. [postgresqlPool] Initializing [postgresqlPool] Initialized .. .. [postgresqlPool] Starting [postgresqlPool] XA Connection pool postgresqlPool bound to java:/postgresqlPool [postgresqlPool] Stopped [postgresqlPool] java.lang.NullPointerException [postgresqlPool]at org.opentools.mineva.jdbc.xa.XAPoolDataSource.getConnection(XAPoolDataSource .java:165) .. --- Arnaud TAVARD [EMAIL PROTECTED] wrote: you need to put your jdbc driver in the jboss.properies file as well From: Marie Rajon [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Problems to install JDBC driver Date: Mon, 11 Jun 2001 15:28:54 +0200 _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ATTACHMENT part 2 message/rfc822 From: Marie Rajon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] Problems to install JDBC driver Reply-to: [EMAIL PROTECTED] Date: Mon, 11 Jun 2001 15:28:54 +0200 HR htmlDIVHi,/DIV DIVnbsp;/DIV DIVI am using JBOSS with Cloudscape and I have difficulties to install the JDBC Drivers. I copied the RmiJdbc.jar file in the lib/ext directory of JBOSS and I add COM.cloudscape.core.RmiJdbcDriver in the jboss.jcml configuration file, but jboss doesn't want to load it when it starts .../DIV DIVCould you help me and tell me what I did wrong?/DIV DIVnbsp;/DIV DIVThank you very much/DIV DIVnbsp;/DIV DIVMarie/DIVbr clear=allhrGet Your Private, Free E-mail from MSN Hotmail at a href=http://www.hotmail.com;http://www.hotmail.com/a.br/p/html ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___
[JBoss-user] JBossUtilAutonumber bean
where can I find the Autonumber bean ? I could not find it in the downloaded package. Also are there any deployment instructions about it ? Thanks Tejaswi
[JBoss-user] Leslie Klein/London/CWB is out of the office.
I will be out of the office starting 12/06/2001 and will not return until 18/06/2001. I am away on a course for the rest of this week and will be back in the office on Monday the 18th. ** This e-mail has been prepared using information believed by the author to be reliable and accurate, but CWB makes no warranty as to accuracy or completeness. In particular CWB does not accept responsibility for changes made to this e-mail after it was sent. Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. They may be subject to change without notice. *** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] repackaging JbossUtilAutonumber
Hello Ole, Tuesday, June 12, 2001, 4:26:44 PM, you wrote: OH P.S: IMHO enterprise beans do _not_ have OH their right place in the JBoss core OH server. It would be better if this was in OH the contrib module. yeah, i agree. lgpl is a bit of a weird license for a bean that just increments a counter. :) OH ___ OH JBoss-user mailing list OH [EMAIL PROTECTED] OH http://lists.sourceforge.net/lists/listinfo/jboss-user -- Best regards, Christophmailto:[EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Leslie Klein/London/CWB is out of the office.
Can someone remove her from the list? She obviously setup and auto responder and it out of town... Hunter From: Leslie Klein [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 12 Jun 2001 18:05:38 +0100 To: [EMAIL PROTECTED] Subject: [JBoss-user] Leslie Klein/London/CWB is out of the office. I will be out of the office starting 12/06/2001 and will not return until 18/06/2001. I am away on a course for the rest of this week and will be back in the office on Monday the 18th. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Minerva DataSource Error
mbean code=org.jboss.jdbc.XADataSourceLoader name=DefaultDomain:service=XADataSource,name=OracleDB attribute name=PoolNameOracleDB/attribute attribute name=DataSourceClassorg.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name=URLjdbc:oracle:thin:spirou:1521:AGENCE/attribute attribute name=JDBCUserhidden/attribute attribute name=Passwordhidden/attribute /mbean It looks like you have a typo. The URL attribute should be jdbc:oracle:thin:@spirou:1521:AGENCE. HTH, Jonathan ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] javax.naming.NameNotFoundException: jdbc not bound
Java Source --- DBImpl.java = private static final String DB_NAME = java:comp/env/jdbc/atalk; I changed the DB_NAME string to: private static final String DB_NAME = java:/jdbc/atalk; And everybody is happy. Thanks -Scott ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] When do entity beans commit?
Hi Bryan, In the Never session bean methods, when exactly are my entity bean's transactions ENDED (committed)? As of the EJB spec 1.1 section 11.6.2 they are ended on return from the Entities method set to Requires. I crosschecked the code in org.jboss.ejb.plugins.TxInterceptorCMT and it behaves as specified. session1session2entityA entityB --- --- | I TX.begin | | | I--I | | I TX.commit | | I I | TX.begin | I-I I I | TX.commit | I I | | I I | TX.begin | I I--I I I | TX.commit | I I TX.begin | | I-I | I I TX.commit | | Thus you should see no deadlock caused. regards Georg ___ ___ | + | |__Georg Rehfeld Woltmanstr. 12 20097 Hamburg |_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10 - Original Message - From: Bryan Field-Elliot [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 11, 2001 11:06 PM Subject: [JBoss-user] When do entity beans commit? I am using jBoss 2.2.2. My clients access a stateful session bean, and my session bean's methods in turn access CMP entity beans. All my entity beans are marked as Requires transactions; in my session bean, some methods are marked as Never, while others are marked as Requires. In the Never session bean methods, when exactly are my entity bean's transactions ENDED (committed)? These are essentially read-only methods in my session bean. They use entity beans to gather data, but they aren't making any changes. Nonetheless, they are causing me some deadlock problems. Will these entity beans not be released until after my session bean method returns, even though my session bean method is not transactional? Help would be appreciated. Regards, Bryan ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] When do entity beans commit?
Thanks Georg, Your state charts of I's and dashes are awesome! Indeed I no longer saw deadlocks in that scenario, but I did see a performance slowdown, as every single "get" method resulted in the opening and closing of a transaction. What I've done is mark all my Entity beans as "Supports", rather than "Requires". Furthermore, at the session bean level, my read-only methods are marked as "Never", while my read/write methods are marked as "Requires". In this way I get good read-only performance for my read methods, and data integrity for my read/write methods. I am aware that marking my entity beans as "Supports" ventures into "unspecified" behavior, but in the above scenario, it appears to work in a good way. If I am making a poor assumption here then I would appreciate your further comments. Regards, Bryan Georg Rehfeld wrote: 024501c0f36d$c05a1d90$[EMAIL PROTECTED]">Hi Bryan, In the "Never" session bean methods, when exactly are my entity bean's transactions ENDED (committed)? As of the EJB spec 1.1 section 11.6.2 they are ended on returnfrom the Entities method set to Requires. I crosschecked the codein org.jboss.ejb.plugins.TxInterceptorCMT and it behaves as specified.session1session2entityA entityB--- ---| I TX.begin | || I--I || I TX.commit | |I I | TX.begin |I-II I | TX.commit |I I | |I I | TX.begin |I I--II I | TX.commit |I I TX.begin | |I-I |I I TX.commit | |Thus you should see no deadlock caused.regardsGeorg ___ ___| + | |__Georg Rehfeld Woltmanstr. 12 20097 Hamburg|_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10- Original Message - From: "Bryan Field-Elliot" [EMAIL PROTECTED]To: [EMAIL PROTECTED]Sent: Monday, June 11, 2001 11:06 PMSubject: [JBoss-user] When do entity beans commit? I am using jBoss 2.2.2.My clients access a stateful session bean, and my session bean's methods in turn access CMP entity beans.All my entity beans are marked as "Requires" transactions; in my session bean, some methods are marked as "Never", while others are marked as "Requires".In the "Never" session bean methods, when exactly are my entity bean's transactions ENDED (committed)? These are essentially read-only methods in my session bean. They use entity beans to gather data, but they aren't making any changes. Nonetheless, they are causing me some deadlock problems. Will these entity beans not be released until after my session bean method returns, even though my session bean method is not transactional?Help would be appreciated.Regards,Bryan___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user ___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user
More Re: [JBoss-user] When do entity beans commit?
In the scenario in which I describe below, I just got another deadlock error from within a "read-only" method. The transaction exception details are: Name: javax.transaction.TransactionRolledbackException Message: Transaction marked for rollback, possibly a timeout; nested exception is: (omitted...)I thought that in the below scenario, there are no transactions at work -- so how could it result in a deadlock, or be rolled back?Help would be appreciated,Bryan Bryan Field-Elliot wrote: [EMAIL PROTECTED]"> Thanks Georg, Your state charts of I's and dashes are awesome! Indeed I no longer saw deadlocks in that scenario, but I did see a performance slowdown, as every single "get" method resulted in the opening and closing of a transaction. What I've done is mark all my Entity beans as "Supports", rather than "Requires". Furthermore, at the session bean level, my read-only methods are marked as "Never", while my read/write methods are marked as "Requires". In this way I get good read-only performance for my read methods, and data integrity for my read/write methods. I am aware that marking my entity beans as "Supports" ventures into "unspecified" behavior, but in the above scenario, it appears to work in a good way. If I am making a poor assumption here then I would appreciate your further comments. Regards, Bryan Georg Rehfeld wrote: 024501c0f36d$c05a1d90$[EMAIL PROTECTED]">Hi Bryan, In the "Never" session bean methods, when exactly are my entity bean's transactions ENDED (committed)? As of the EJB spec 1.1 section 11.6.2 they are ended on returnfrom the Entities method set to Requires. I crosschecked the codein org.jboss.ejb.plugins.TxInterceptorCMT and it behaves as specified.session1session2entityA entityB--- ---| I TX.begin | || I--I || I TX.commit | |I I | TX.begin |I-II I | TX.commit |I I | |I I | TX.begin |I I--II I | TX.commit |I I TX.begin | |I-I |I I TX.commit | |Thus you should see no deadlock caused.regardsGeorg ___ ___| + | |__Georg Rehfeld Woltmanstr. 12 20097 Hamburg|_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10- Original Message - From: "Bryan Field-Elliot" [EMAIL PROTECTED]To: [EMAIL PROTECTED]Sent: Monday, June 11, 2001 11:06 PMSubject: [JBoss-user] When do entity beans commit? I am using jBoss 2.2.2.My clients access a stateful session bean, and my session bean's methods in turn access CMP entity beans.All my entity beans are marked as "Requires" transactions; in my session bean, some methods are marked as "Never", while others are marked as "Requires".In the "Never" session bean methods, when exactly are my entity bean's transactions ENDED (committed)? These are essentially read-only methods in my session bean. They use entity beans to gather data, but they aren't making any changes. Nonetheless, they are causing me some deadlock problems. Will these entity beans not be released until after my session bean method returns, even though my session bean method is not transactional?Help would be appreciated.Regards,Bryan___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user ___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Leslie Klein/London/CWB is out of the office.
I will be out of the office starting 12/06/2001 and will not return until 18/06/2001. I am away on a course for the rest of this week and will be back in the office on Monday the 18th. ** This e-mail has been prepared using information believed by the author to be reliable and accurate, but CWB makes no warranty as to accuracy or completeness. In particular CWB does not accept responsibility for changes made to this e-mail after it was sent. Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of the company or its affiliates. They may be subject to change without notice. *** ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Will JBoss work with IBMJava2-13
is there a manner to deploy my servlet out of a war archive??? like it was in the Jserv time At 16:39 12/06/01 -0300, you wrote: I have a linux with IBM JVM Java 2 1.3 will it work with JBoss 2.2.1??? At 19:08 12/06/01 +0200, you wrote: Hello Ole, Tuesday, June 12, 2001, 4:26:44 PM, you wrote: OH P.S: IMHO enterprise beans do _not_ have OH their right place in the JBoss core OH server. It would be better if this was in OH the contrib module. yeah, i agree. lgpl is a bit of a weird license for a bean that just increments a counter. :) OH ___ OH JBoss-user mailing list OH [EMAIL PROTECTED] OH http://lists.sourceforge.net/lists/listinfo/jboss-user -- Best regards, Christophmailto:[EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] TomCat and Apache
will version 3.2.2 of tomcat work with apache 1.3.12 Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] repackaging JbossUtilAutonumber
AutoNumberBean? What it is? Where can I find more info? TIA. Kar - Original Message - From: Christoph Sturm [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 6:27 PM Subject: [JBoss-user] repackaging JbossUtilAutonumber Hello jboss-userz, Is it legal to separately package the jboss.util.autonumber bean, or add its classes to my project? I use jboss, but I want to deploy with orion, and I so I need a pk-generator that doesnt depend on the app server. -- Best regards, Christoph mailto:[EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] TomCat and Apache
will version 3.2.2 of tomcat work with apache 1.3.12 have you tried why don't you try and let us know. Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jBoss cannot handle char primitive type
By the way I use JBoss-2.2.1 and JDK1.3. The codes is nothing fancy, as it happened to my 'real' code I wrote a tester to make sure that was the problem. Anyway, here is the codes: ___Bean___ public class EntityBeanimplements javax.ejb.EntityBean { private javax.ejb.EntityContext ctx; public String id; public String s; public char c; public void unsetEntityContext() { ctx = null; } public void setEntityContext(javax.ejb.EntityContext ctx) { this.ctx = ctx; } public String ejbCreate(String id) throws CreateException, RemoteException { this.id = id; return null; } public void ejbPostCreate(String id) throws CreateException { } public void setString(String s) { this.s = s; } public String getString() { return s; } public void setChar(char c) { this.c = c; } public char getChar() { return c; } public void ejbStore() { } public void ejbRemove() { } public void ejbPassivate() { } public void ejbLoad() { } public void ejbActivate() { }} ___Remote_ public interface Entity extends javax.ejb.EJBObject { public String getString() throws java.rmi.RemoteException; public void setString(String s) throws java.rmi.RemoteException; public void setChar(char c) throws java.rmi.RemoteException; public char getChar() throws java.rmi.RemoteException;} __Home_ public interface EntityHome extends javax.ejb.EJBHome { Entity create(String s) throws java.rmi.RemoteException, javax.ejb.CreateException; Entity findByPrimaryKey(String id) throws java.rmi.RemoteException, javax.ejb.FinderException; Collection findAll() throws java.rmi.RemoteException, javax.ejb.FinderException;}_Client___ au.com.apir.test.EntityHome home = (au.com.apir.test.EntityHome) look up here (I remove the code because I use a wrapper) au.com.apir.test.Entity entity = home.create("hello"); entity.setChar('c'); // -- i dies either here or System.out.println(entity.getChar()); // -- here - Original Message - From: Paul Austin To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 6:41 PM Subject: RE: [JBoss-user] jBoss cannot handle char primitive type Kar, Could you post the code for this, it looks as if it is looking for an Object of type Char not the primative type char. The object wrapper for char is the class java.lang.Character. Paul -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kar YEOWSent: 12 June 2001 01:13To: [EMAIL PROTECTED]Subject: [JBoss-user] jBoss cannot handle char primitive type I got and exception when calling an EJB with methods that uses char primitive type. May be I have done something wrong. I have attached theEJB code. Anyone? My work around is to use Integer but it would be nice if 'char' works. Kar --- java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: javax.transaction.TransactionRolledbackException: java/lang/Char; nested exception is: java.lang.NoClassDefFoundError: java/lang/Char javax.transaction.TransactionRolledbackException: java/lang/Char; nested exception is: java.lang.NoClassDefFoundError: java/lang/Char java.lang.NoClassDefFoundError: java/lang/Char at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unknown Source) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:248) at $Proxy0.create(Unknown Source) at au.com.apir.test.EJBTester.main(EJBTester.java:44) Exception in thread "main"
Re: More Re: [JBoss-user] When do entity beans commit?
Hello Bryan, In the scenario in which I describe below, I just got another deadlock error from within a read-only method. The transaction exception details are: Name: javax.transaction.TransactionRolledbackException Message: Transaction marked for rollback, possibly a timeout; nested exception is: (omitted...) I thought that in the below scenario, there are no transactions at work -- so how could it result in a deadlock, or be rolled back? Help would be appreciated, Difficult to guess from what you tell us. Do you use select for update, so that the DB causes deadlocks? Are there other resources you try to access concurrenty? Is it possible that some bean does lengthy operations (or hangs) while others try to access the same bean instance? With non reentrant beans (default) no two clients can enter the same instance concurrently even outside of a transaction. Are there any log messages before the TransactionRolledbackException in the server.log that might indicate whats going on? Your state charts of I's and dashes are awesome! Actually I tried to draw Sequence Diagrams, I find them helpful sometimes. What I've done is mark all my Entity beans as Supports, rather than Requires. Furthermore, at the session bean level, my read-only methods are marked as Never, while my read/write methods are marked as Requires. In this way I get good read-only performance for my read methods, and data integrity for my read/write methods. I am aware that marking my entity beans as Supports ventures into unspecified behavior, but in the above scenario, it appears to work in a good way. If I am making a poor assumption here then I would appreciate your further comments. I think, you do it, as I would have done it, as long as you are aware of the dirty/invalid data status and do not try to modify anything based on it. regards Georg ___ ___ | + | |__Georg Rehfeld Woltmanstr. 12 20097 Hamburg |_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] shared classes
If my web and ejb parts of j2ee application share some utility classes, where should I place those classes and what variables to set to point to them? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Deploying Multiple applications?
Please excuse the naive questions - I'm still pretty new to all this EJB stuff. Is it actually possible to deloy more than one application (or, to be more precise, more than one package), each with its own META-INF directory and xml files? The reason I am asking is that whenever I try to deploy a package, JBoss says it is deploying it, but it actually re-deploys an existing package. I'll try to be clearer. I deploy A.jar. No problems. Then I try to deploy B.jar. JBoss says deploying B.jar, but subsequent messages reveal that it is deploying all the EJBs from A.jar. Any ideas? Stephen Oakes senior developer - [EMAIL PROTECTED] - a t o m i c m e d i a Leading Partners Online Level 1 / 216 City Road Southbank, Melbourne, Vic 3006 Australia. +61 3 9695 5777 phone +61 3 9695 5700 fax - www.atomicmedia.com - ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Deploying Multiple applications?
Check to make sure you don't have any of your packages on your classpath. If you do, then JBoss finds the XML files from that package instead of from the one you are trying to deploy. Tom Stephen Oakes wrote: Please excuse the naive questions - I'm still pretty new to all this EJB stuff. Is it actually possible to deloy more than one application (or, to be more precise, more than one package), each with its own META-INF directory and xml files? The reason I am asking is that whenever I try to deploy a package, JBoss says it is deploying it, but it actually re-deploys an existing package. I'll try to be clearer. I deploy A.jar. No problems. Then I try to deploy B.jar. JBoss says deploying B.jar, but subsequent messages reveal that it is deploying all the EJBs from A.jar. Any ideas? Stephen Oakes senior developer - [EMAIL PROTECTED] - a t o m i c m e d i a Leading Partners Online Level 1 / 216 City Road Southbank, Melbourne, Vic 3006 Australia. +61 3 9695 5777 phone +61 3 9695 5700 fax - www.atomicmedia.com - ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Servlets in tomcat out of war file
create the war file, and assuming you are running jboss with tomcat or jetty, just drop it into the jboss/deploy directory. That will deploy the war file including any included servlets. Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Emerson Sent: Tuesday, June 12, 2001 6:07 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Servlets in tomcat out of war file is there a manner to deploy my servlet out of a war archive??? like it was in the Jserv time At 16:39 12/06/01 -0300, you wrote: I have a linux with IBM JVM Java 2 1.3 will it work with JBoss 2.2.1??? At 19:08 12/06/01 +0200, you wrote: Hello Ole, Tuesday, June 12, 2001, 4:26:44 PM, you wrote: OH P.S: IMHO enterprise beans do _not_ have OH their right place in the JBoss core OH server. It would be better if this was in OH the contrib module. yeah, i agree. lgpl is a bit of a weird license for a bean that just increments a counter. :) OH ___ OH JBoss-user mailing list OH [EMAIL PROTECTED] OH http://lists.sourceforge.net/lists/listinfo/jboss-user -- Best regards, Christophmailto:[EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Emerson Cargnin TRE-SC Setor de Desenvolvimento Tel: (48) 251-3700 - Ramal 3134 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Deploying Multiple applications?
Check to make sure you don't have any of your packages on your classpath. If you do, then JBoss finds the XML files from that package instead of from the one you are trying to deploy. Yes, that turned out to be the reason. It was a very annoying and puzzling problem. I don't understand why JBoss would search the classpath for deployment descriptors, when they can always be found at a particular location in a JAR file? -- Stephen Oakes ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] UnknownHostException when delopy tomcat-test
Dear All, I am having some strange exceptions when [auto deploy] tomcat-test.war. It's java.net.unknownhostexception java.sun.com, blablabla. Any idea? Thanks advanced I am running jboss2.2.2+tomcat3.2.2. Regards, Peng. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] (no subject)
In dire straits. Not much experience with Perl. I would like to read record IDs either in text (below) or a variable from ASP into a Perl script. Can anyone help me? ASP query result looks as so: 122736BR122733BR122740BR122742BR122743BR122770 (with html tags before) Pete Bastawros Technical Director MOYES CO., INC.
[JBoss-user] Read text or variable into Perl
In dire straits. Not much experience with Perl. I would like to read record IDs either in text (below) or a variable from ASP into a Perl script. Can anyone help me? ASP query result looks as so: 122736BR122733BR122740BR122742BR122743BR122770 (with html tags before) Pete Bastawros Technical Director MOYES CO., INC. 214-363-9020 Phone 214-373-7518 Fax http://www.moyesco.com
Re: [JBoss-user] Deploying Multiple applications?
JBoss should not be using the classpath as of JBoss2.2.1 unless you have changed the start script. What version are you using? - Original Message - From: Stephen Oakes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 5:39 PM Subject: RE: [JBoss-user] Deploying Multiple applications? Check to make sure you don't have any of your packages on your classpath. If you do, then JBoss finds the XML files from that package instead of from the one you are trying to deploy. Yes, that turned out to be the reason. It was a very annoying and puzzling problem. I don't understand why JBoss would search the classpath for deployment descriptors, when they can always be found at a particular location in a JAR file? -- Stephen Oakes ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] UnknownHostException when delopy tomcat-test
Update to the second 2.2.2 bundle release to get the dtd resolution fix. Your not able to connect to the url specified in the web.xml descriptor. - Original Message - From: Peng Peng [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 5:57 PM Subject: [JBoss-user] UnknownHostException when delopy tomcat-test Dear All, I am having some strange exceptions when [auto deploy] tomcat-test.war. It's java.net.unknownhostexception java.sun.com, blablabla. Any idea? Thanks advanced I am running jboss2.2.2+tomcat3.2.2. Regards, Peng. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to use JAWS ?!
Hello all, Can anyone enlighten me on how to properly use JAWS ? 1.Do I start JAWS by running 'java -jar ejx.jar' ? 2. After starting JAWS, can I open an existing ejb-jar.xml or jboss.xml or jaws.xml ? I keep getting error box saying 'Could not load file:null' when I try to open the above .xml files, even the sample source code I downloaded are giving the same problem. 3. If I want to create a new .xml file from JAWS. All I see are some dialogs which doesn't allow me to type in much things. Is there any detailed doco on JAWS online ? Really appreciated any help. Thanks! Regards, ChetHong Lau
[JBoss-user] I'm I tripping? Or does JBoss 2.2.1 call ejbStore() on my ejb way too often??
The JBoss container seems to call ejbStore() on my BMP-style entity bean very often. This results in multiple unecessary UPDATE's to my base table. When does JBoss decide it should call ejbStore()? I must be doing something wrong! Any ideas would be very much appreciated! ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] (no subject)
Dear Pete, Pete Bastawros, Technical Director, MOYES CO., INC. wrote: In dire straits. Not much experience with Perl. I would like to read record IDs either in text (below) or a variable from ASP into a Perl script. Can anyone help me? ASP query result looks as so: 122736BR122733BR122740BR122742BR122743BR122770 (with html tags before) cut off your HTML tags somehow until the string shown above is left in some variable, (i.e. $id_strings), then simply do: @ids = split(/\BR\/, $id_strings); and you have a list (array) of all your ids in @ids stripped from the BR and ready to be processed. Besides, you are on the wrong list, the 'jboss' mailing list is not meant to help out 'bosses' (or managers or directors) with their problems, whatever they are. But then you might find many 'boss' level developers and project managers around here, so you are welcome to check back and read one or the other. And it might be better for you and your company to switch from ASP to JSP and EJB, especially JBoss bundled with TomCat or Jetty, have a look at http://www.jboss.org/ and direct your 'staff' to it, maybe, they already told you about and you didn't know it? have a nice day Georg ___ ___ | + | |__Georg Rehfeld Woltmanstr. 12 20097 Hamburg |_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10 PS: If you continue to use Perl (not a bad decision) you really should consider reading 'Programming Perl' completely, it's ally fun! Authors: Larry Wall, Tom Christianson and Randal L. Schwartz O'Reilly Associates, Inc. ISBN: 1-56592-149-6 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Deploying Multiple applications?
JBoss should not be using the classpath as of JBoss2.2.1 unless you have changed the start script. What version are you using? I am using 2.2.2. It seems to be using the classpath. We're having a lot of trouble getting anything to work reliably and consistently. -- Stephen Oakes ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Deploying Multiple applications?
Yes you can do this. You should be able to deploy them by copying the jar file (or war or ear) to the jboss/deploy directory. Jboss will then autodeploy the application. Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Stephen Oakes Sent: Tuesday, June 12, 2001 7:30 PM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Deploying Multiple applications? Please excuse the naive questions - I'm still pretty new to all this EJB stuff. Is it actually possible to deloy more than one application (or, to be more precise, more than one package), each with its own META-INF directory and xml files? The reason I am asking is that whenever I try to deploy a package, JBoss says it is deploying it, but it actually re-deploys an existing package. I'll try to be clearer. I deploy A.jar. No problems. Then I try to deploy B.jar. JBoss says deploying B.jar, but subsequent messages reveal that it is deploying all the EJBs from A.jar. Any ideas? Stephen Oakes senior developer - [EMAIL PROTECTED] - a t o m i c m e d i a Leading Partners Online Level 1 / 216 City Road Southbank, Melbourne, Vic 3006 Australia. +61 3 9695 5777 phone +61 3 9695 5700 fax - www.atomicmedia.com - ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to use JAWS ?!
Hi, Lau Chet Hong wrote: 1. Do I start JAWS by running 'java -jar ejx.jar' ? No, with that command line you start a GUI tool that is able to edit some XML files related to J2EE/JBoss bean development, amoung them also the jaws.xml file, that contains the CONFIGURATION for your CMP beans. JAWS is integrated into JBoss and you haven't to start it separately, it does it's job silently as the JBoss CMP engine, looking at standard-jaws.xml for defaults and your deployed jaws.xml files for specifics. It isn't possible to start JAWS independently from JBoss. 2. After starting JAWS, can I open an existing ejb-jar.xml or jboss.xml or jaws.xml? I keep getting error box saying 'Could not load file:null' when I try to open the above .xml files, even the sample source code I downloaded are giving the same problem. 3. If I want to create a new .xml file from JAWS. All I see are some dialogs which doesn't allow me to type in much things. Replace 'JAWS' with 'EJX' and I confirm to have experienced this same behaviour. EJX for sure isn't user friendly at all, when it has problems! (And again, it is UNFRIENDLY SHOUTING by intention). Some day, and I'm really sorry beeing unable to tell you the reason, EJX suddenly worked for me, opening files nicely that I was unable to open before and creating new *.xml files, which didn't work before. Sorry again, but the behaviour was almost as if the coder of EJX had built in some counter: let that stupid users hit me 10 times and then I'll start to be usefull. I promise to look into that code and at least come up with more helpfull error messages. regards Georg ___ ___ | + | |__Georg Rehfeld Woltmanstr. 12 20097 Hamburg |_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] I'm I tripping? Or does JBoss 2.2.1 call ejbStore() on my ejb way too often??
Hi Robert, Robert Finneran wrote: The JBoss container seems to call ejbStore() on my BMP-style entity bean very often. This results in multiple unecessary UPDATE's to my base table. When does JBoss decide it should call ejbStore()? It stores at the end of every transaction and is required to do so by the EJB specification. RTFM http://www.jboss.org/documentation/HTML/ch06s08.html under the commit-option tag. Besides, interpret F as you want, but I meant FINE! regards Georg ___ ___ | + | |__Georg Rehfeld Woltmanstr. 12 20097 Hamburg |_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] shared classes
Put shared classes into the lib/ext directory. - Original Message - From: Boris Garbuzov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 7:09 PM Subject: [JBoss-user] shared classes If my web and ejb parts of j2ee application share some utility classes, where should I place those classes and what variables to set to point to them? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] client access of ejb's
Hi. Hopefully someone can help me. I successfully deploy a jar file in jboss 2.2.2 with tomcat 3.2 When I try to access a bean in the jar file i get the following errors on the client: Got context An exception occurred while obtaining a remote reference: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: com.atomicmedia.totalpromoter.reference.AgeGroupHome] Any suggesstions anyone? We are really struglling here; we think we might have our deployment wrong or not have the right classpath setting or whatever; anyhow, we're missing something; Thanks in advance Chris Tragas [EMAIL PROTECTED] +61 3 9695 5711 direct +61 3 0402 28 10 20 mobile www.atomicmedia.com - ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] When do entity beans commit?
Search the archives for isModified. You can perform a straightforward optimization that prevents the unnecessary updates. - Original Message - From: Bryan Field-Elliot To: [EMAIL PROTECTED] Sent: Tuesday, June 12, 2001 2:49 PM Subject: Re: [JBoss-user] When do entity beans commit? Thanks Georg,Your state charts of I's and dashes are awesome!Indeed I no longer saw deadlocks in that scenario, but I did see a performance slowdown, as every single "get" method resulted in the opening and closing of a transaction.What I've done is mark all my Entity beans as "Supports", rather than "Requires".Furthermore, at the session bean level, my read-only methods are marked as "Never", while my read/write methods are marked as "Requires".In this way I get good read-only performance for my read methods, and data integrity for my read/write methods.I am aware that marking my entity beans as "Supports" ventures into "unspecified" behavior, but in the above scenario, it appears to work in a good way.If I am making a poor assumption here then I would appreciate your further comments.Regards,BryanGeorg Rehfeld wrote: 024501c0f36d$c05a1d90$[EMAIL PROTECTED]" type="cite">Hi Bryan, In the "Never" session bean methods, when exactly are my entity bean's transactions ENDED (committed)?As of the EJB spec 1.1 section 11.6.2 they are ended on returnfrom the Entities method set to Requires. I crosschecked the codein org.jboss.ejb.plugins.TxInterceptorCMT and it behaves as specified.session1session2entityA entityB--- ---| I TX.begin | || I--I || I TX.commit | |I I | TX.begin |I-II I | TX.commit |I I | |I I | TX.begin |I I--II I | TX.commit |I I TX.begin | |I-I |I I TX.commit | |Thus you should see no deadlock caused.regardsGeorg ___ ___| + | |__Georg Rehfeld Woltmanstr. 12 20097 Hamburg|_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10- Original Message - From: "Bryan Field-Elliot" [EMAIL PROTECTED]To: [EMAIL PROTECTED]Sent: Monday, June 11, 2001 11:06 PMSubject: [JBoss-user] When do entity beans commit? I am using jBoss 2.2.2.My clients access a stateful session bean, and my session bean's methods in turn access CMP entity beans.All my entity beans are marked as "Requires" transactions; in my session bean, some methods are marked as "Never", while others are marked as "Requires".In the "Never" session bean methods, when exactly are my entity bean's transactions ENDED (committed)? These are essentially read-only methods in my session bean. They use entity beans to gather data, but they aren't making any changes. Nonetheless, they are causing me some deadlock problems. Will these entity beans not be released until after my session bean method returns, even though my session bean method is not transactional?Help would be appreciated.Regards,Bryan___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] client access of ejb's
Your client needs to have the interfaces for your ejbs in its classpath. Chris Tragas wrote: Hi. Hopefully someone can help me. I successfully deploy a jar file in jboss 2.2.2 with tomcat 3.2 When I try to access a bean in the jar file i get the following errors on the client: Got context An exception occurred while obtaining a remote reference: javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: com.atomicmedia.totalpromoter.reference.AgeGroupHome] Any suggesstions anyone? We are really struglling here; we think we might have our deployment wrong or not have the right classpath setting or whatever; anyhow, we're missing something; Thanks in advance Chris Tragas [EMAIL PROTECTED] +61 3 9695 5711 direct +61 3 0402 28 10 20 mobile www.atomicmedia.com - ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] PetStore 1.1.1 JBoss 2.2.2
Hi I'm trying run PetStore 1.1.1 with JBoss 2.2.2 I have JDK1.3 running on W2k, JBoss 2.2.2 from binary distribution, and PetStore 1.1.1 patched with JBoss patch. I replace jboss.jcml with file from JBoss patch for PetStore and add security to tomcat-users.xml. Cloudscape is running and has data imported. I'm successfully deploing application. When I access PetStore from browser, this errors occured :( What is wrong, can anyone help me ? [J2EE Deployer Default] Starting module petstore.war 2001-06-11 08:02:18 - ContextManager: Adding context Ctx( /estore ) [Auto deploy] Add env-entry serverType java.lang.String JBoss PRE 2.1 (www.jboss.org) no description [Auto deploy] Add env-entry securityAdapterClassName java.lang.String com.sun.j2ee.blueprints.petstore.util.JBossSecurityAdapter no description 2001-06-11 08:02:18 - Ctx( /estore ): FORM: WARNING, login page starts with context path /estore/control/formbasedloginscreen /estore 2001-06-11 08:02:18 - Ctx( /estore ): FORM: WARNING, error page starts with context path /estore/control/formbasedloginerrorscreen [J2EE Deployer Default] J2EE application: file:/E:/Java/JBoss-2.2.2_Tomcat-3.2.2/jboss/deploy/petstore.ear is deployed. 2001-06-11 08:02:48 - Ctx( /estore ): Exception in: R( /estore + /control + /language) - java.lang.RuntimeException: NamingException while looking up DB context : env not bound at com.sun.j2ee.blueprints.shoppingcart.catalog.model.CatalogModel.init(Catalog Model.java:42) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getCatalogModel(Mo delManager.java:84) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.init(ModelManager. java:60) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.j ava:56) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) --- --- Odchoz zprva neobsahuje viry. Zkontrolovno antivirovm systmem AVG (http://www.grisoft.cz). Verze: 6.0.261 / Virov bze: 131 - datum vydn: 6.6.2001 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user