Re: [JBoss-user] problems with template project
Enrico Donelli wrote: I downloaded the JBoss.3.0Template.Project.zip from sourceforge, but when i run ant (after setting the .ant.properties) i get errors about missing files. Any idea? Thanks a lot! Enrico xdoclet-generate: [ejbdoclet] Generating Javadoc [ejbdoclet] Javadoc execution [ejbdoclet] Loading source file /data/download/java/template/src/main/ejb/test/entity/TestEntityBean.java... [ejbdoclet] Loading source file /data/download/java/template/src/main/ejb/test/message/TestMessageDrivenBean.java... [ejbdoclet] Loading source file /data/download/java/template/src/main/ejb/test/session/SequenceGeneratorBean.java... [ejbdoclet] Loading source file /data/download/java/template/src/main/ejb/test/session/TestSessionBean.java... [ejbdoclet] Constructing Javadoc information... [ejbdoclet] /data/download/java/template/src/main/ejb/test/entity/TestEntityBean.java:10: cannot resolve symbol [ejbdoclet] symbol : class TestEntity [ejbdoclet] location: package interfaces [ejbdoclet] import test.interfaces.TestEntity; [ejbdoclet]^ [ejbdoclet] /data/download/java/template/src/main/ejb/test/entity/TestEntityBean.java:11: cannot resolve symbol [ejbdoclet] symbol : class TestEntityData [ejbdoclet] location: package interfaces [ejbdoclet] import test.interfaces.TestEntityData; ... and do on solved! the problem was reported later in the output, and was due to missing ant jar files in classpath! Bye bye Enrico Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error running a war inside JBoss.
Hello. I really thought I am not a newbie, but alas it seems so. Stupid question: If I deploy a WAR within JBoss+Catalina version JBoss (MX MicroKernel) [3.0.0 Date:200205311035] /version Downloaded from the jboss.org site. I get: snips !-- (...) means stripped text for clarity -- Starting deployment of package: file:(...)/MyWar.war WebappLoader[/WebInterface]: Deploying class repositories to work directory(...) ContextConfig[/WebInterface]: Missing application web.xml, using defaults only ContextConfig[/WebInterface]: Added certificates - request attribute Valve Using Java2 parent classloader delegation: true StandardWrapper[/WebInterface:default]: Loading container servlet default default: init StandardWrapper[/WebInterface:invoker]: Loading container servlet invoker invoker: init jsp: init Internal Error: File /WEB-INF/web.xml not found Successfully completed deployment of package: file:(...)/MyWar.war /snips To clarify more: MyWar.war |- META-INF | |- MANIFEST.MF | |- WEB-INF | |-web.xml | |-classes | |- com.mycomp.servlets.* | |- com.mycomp.util.* | |- index.jsp I have the web.xml, I have the WEB-INF, and IO have classes directory in the war. However, when I try to access my index.jsp: web-snip HTTP Status 500 - Internal Server Error exception: org.apache.jasper.JasperException: Unable to compile class for JSP index$jsp.java:4: Package com.mycomp.util not found in import. import com.mycomp.util.*; /web-snip What else should I look at? Is this a known FAQ question, or am I doing something wrong? additional-info WinDoze 2K java version 1.3.1-rc1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-rc1-b21) Java HotSpot(TM) Client VM (build 1.3.1-rc1-b21, mixed mode) /additional-info Lachezar. P.S. Orion deploys A_OK. Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] removing bean lock and it has tx set!
I ran into similar problem, when a NPE happened inside a transaction. On the next try the removing bean lock and it has tx set! exception occurred. The simple solution in my case was to restart JBoss. It seems that the bean lock had not been removed due to the NPE. I'm not sure whether this is the correct behaviour. Cheers Georg Bill Burke wrote: - What is your primary key class? If it is a custom key class (not Integer, String, etc.) then, did you implement equals and hashCode correctly? Does your primary key class serialize correctly? Post the PK class. - Are you using custom container configurations? Make sure that you have the correct interceptor chain. If you have a custom config, please post it. - Did you change the locking-policy? What did you change it to? Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Uithol Sent: Monday, June 17, 2002 9:06 PM To: jboss-user (E-mail) Subject: [JBoss-user] removing bean lock and it has tx set! Hello all, I'm stumped. Any ideas what might be causing this ? Any clues at all will help ! Thanks in advance. java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: removing bean lock and it has tx set!; nested exception is: java.lang.IllegalStateException: removing bean lock and it has tx set! Embedded Exception removing bean lock and it has tx set!; nested exception is: java.lang.IllegalStateException: removing bean lock and it has tx set!; nested exception is: javax.ejb.TransactionRolledbackLocalException: removing bean lock and it has tx set!; nested exception is: java.lang.IllegalStateException: removing bean lock and it has tx set! Embedded Exception removing bean lock and it has tx set!; nested exception is: java.lang.IllegalStateException: removing bean lock and it has tx set! java.rmi.ServerException: removing bean lock and it has tx set!; nested exception is: java.lang.IllegalStateException: removing bean lock and it has tx set! Embedded Exception removing bean lock and it has tx set!; nested exception is: java.lang.IllegalStateException: removing bean lock and it has tx set!; nested exception is: javax.ejb.TransactionRolledbackLocalException: removing bean lock and it has tx set!; nested exception is: java.lang.IllegalStateException: removing bean lock and it has tx set! Embedded Exception removing bean lock and it has tx set!; nested exception is: java.lang.IllegalStateException: removing bean lock and it has tx set! javax.ejb.TransactionRolledbackLocalException: removing bean lock and it has tx set!; nested exception is: java.lang.IllegalStateException: removing bean lock and it has tx set! Embedded Exception removing bean lock and it has tx set!; nested exception is: java.lang.IllegalStateException: removing bean lock and it has tx set! at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Str eamRemoteC all.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPI nvokerProx y.java:128) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor. java:108) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionIntercept or.java:73 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:76) at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSess ionInterce ptor.java:117) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy1.login(Unknown Source) at com.datacodex.pluggins.security.cocoon.action.UserLoginAction.atte mptLogin(U serLoginAction.java:64) at com.datacodex.pluggins.security.cocoon.action.UserLoginAction.act( UserLoginA ction.java:46) at com.datacodex.cocoon.action.AbstractBLAction.act(AbstractBLAction.java:78) at org.apache.cocoon.www.content.sitemap_xmap.matchN10245(sitemap_xma p.java:186 1) at org.apache.cocoon.www.content.sitemap_xmap.process(sitemap_xmap.java:1401) at org.apache.cocoon.www.content.sitemap_xmap.process(sitemap_xmap.java:1315) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.www.sitemap_xmap.matchN101FF(sitemap_xmap.java:1444) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1383) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1327) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at
Re: [JBoss-user] web.xml vs web-app.xml vs web-app tag
At the top of the web.xml add after the ?xml ...?: !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; Lachezar. Hi, I've created a .war file in order to be able to use the JavaWebStart utility. As describe in the JWS doc, i've created a web.xml like this : snip ?xml version=1.0 encoding=UTF-8? web-app servlet servlet-nameJnlpDownloadServlet/servlet-name servlet-classcom.sun.javaws.servlet.JnlpDownloadServlet/servlet-class /servlet servlet-mapping servlet-nameJnlpDownloadServlet/servlet-name url-pattern*.jnlp/url-pattern /servlet-mapping /web-app /snip the problem is that when i deploy the war file under JBoss3.0.0 final w/ Tomcat i get the following error : snip 16:53:46,981 INFO [STDOUT] PARSE error at line 3 column -1 16:53:46,982 INFO [STDOUT] org.xml.sax.SAXParseException: Element type web-app is not declared. 16:53:46,983 ERROR [Engine] ContextConfig[/annuaire] Parse error in application web.xml org.xml.sax.SAXParseException: Element type web-app is not declared. at org.apache.crimson.parser.Parser2.error(Parser2.java:3160) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1322) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:314) at javax.xml.parsers.SAXParser.parse(SAXParser.java:89) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:275) at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.ja va:256) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:824) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java: 224) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:155) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3345) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454) at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.createWebContext(EmbeddedCa talinaServiceSX.java:321) at org.jboss.web.catalina.EmbeddedCatalinaServiceSX.performDeploy(EmbeddedCatal inaServiceSX.java:238) at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300) at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491) at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174) at $Proxy4.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne r.java:405) at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymen tScanner.java:586) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner. java:465) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab stractDeploymentScanner.java:202) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs tractDeploymentScanner.java:191) 16:53:47,029 INFO [Engine] ContextConfig[/annuaire]: Occurred at line 3 column -1 16:53:47,032 INFO [Engine] ContextConfig[/annuaire]: Marking this application unavailable due to previous error(s) 16:53:47,249 INFO [EmbeddedCatalinaServiceSX] Using Java2 parent classloader delegation: true 16:53:47,250 INFO [Engine] StandardContext[/annuaire]: Context startup failed due to previous errors 16:53:47,260 INFO [MainDeployer] Successfully completed deployment of package: file:/users/vol1/gardais/app-serv/jboss-3.0.0_tomcat-4.0.3/server/default/de ploy/annuaire.war /snip The deployer does not find the web-app tag. when i try to connect to the server via http://localhost:8080/annuaire it fails. when i rename the web.xml file into web-app.xml, I get this error : snip 17:05:08,410 INFO
Re: [JBoss-user] Server Hard Crash Problem
Hi Jon Swinth, have you installed the jdk rpm for redhat or the tar file ? If you do not use the rpm, try this. If this do not help, disable the hotspot option best regards Ingo Bruell --- [EMAIL PROTECTED] [EMAIL PROTECTED] ICQ# 40377720 OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C 953C 8FE7 C648 169E E5FC Germany PGP-Public-Key available at pgpkeys.mit.edu Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Trouble with CMP datasource
I have it like datasourcejava:/PenningDB/datasource type-mappingPostgreSQL/type-mapping Maarten Dirkse wrote: Hi, I have a very simple cmp bean with the following defined in both jaws.xml and jbosscmp-jdbc.xml: datasourcePenningDB/datasource type-mappingPostgreSQL/type-mapping PenningDB is a datasource that exists and works (I checked) and PostgreSQL is a mapping that is present in standardjaws.xml. However, when I try to deploy the bean I get the following error message: org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : datasource-mapping PostgreSQL not found What am I doing wrong? Is there something I haven't defined? The online documentation didn't help, and a search of the 3.0 quickstart guide for the word 'type-mapping' turned up nothing. I'm using Jboss 3.0.0. Thanks in advance, Maarten. ___ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Who can send me a copy of JBoss3.0 CMP2.0 documents
Hello,Sir: I do want to buy jboss documents. I can afford it. But I have no credit card such as VISA etc. I'm still a student in computer science. I 'm deeply attracted by the technics based on J2EE ,especially the open source JBoss. I hope someone can send me a copy of jboss 3.0 cmp documents. I will appreciate you for ever. My email is: [EMAIL PROTECTED] Best regards. ¸§)àʦ¢éݲÜi÷ÞvyØèÊm§ÿí)äç¤r¿±òA¢Ë.±êæj)b b²ÒA¢Ë.±êåËl²«qç讧zØm¶?þX¬¶Ë(º·~àzwþX¬¶ÏåËbú?º,²ë
Re: [JBoss-user] web.xml vs web-app.xml vs web-app tag [SOLVED]
hum hum ... it works, thanks, ionel Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Finding DataSource using jboss.xml aliasing
You can have in jboss.xml like and keep ejb-jar.xml as you have jboss .. resource-managers resource-manager res-namejdbc/SISDS/res-name res-jndi-namejava:/OracleDS/res-jndi-name /resource-manager /resource-managers .. /jboss and keep ejb-jar.xml as you have Emerson Cargnin - MSA wrote: We're making an app to be deployable either in Jboss or Oracle. As the jndi string to lookup woul'd differ between them, we used jboss.xml to make the translation from what we are looking up inside the code and what jboss can find. When I use java:OracleDS directly inside the code it works, but not when using jboss.xml translation. JBoss gives jdbc not bound error. By the way, in oracle-services.xml the Oracle driver is registered as OracleDS jboss.xml jboss enterprise-beans session ejb-namePesquisarCorrentistaSession/ejb-name jndi-namePesquisarCorrentistaSession/jndi-name resource-ref res-ref-namejdbc/SISDS/res-ref-name res-typejavax.sql.DataSource/res-type jndi-namejava:OracleDS/jndi-name /resource-ref /session /enterprise-beans resource-managers /resource-managers /jboss ejb-jar.xml : resource-ref res-ref-namejdbc/SISDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref Code of bean trying to lookup the DS: private Connection conecta() throws NamingException, SQLException { Connection conn = null; InitialContext ic = new InitialContext(); DataSource ds = (DataSource)ic.lookup(jdbc/SISDS); conn = ds.getConnection(); return conn; } ___ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Who can send me a copy of JBoss3.0 CMP2.0 documents
You make a mistake, man... Do you think you are the only one student here? If you are so brave to write such a letter, you'd better write to the authors and not to the list. But I'd not recommend that either. There is a start guide on sourceforge. It should be enough to get you started. And you can write your questions to the list at last. Developers and users will almost always help you. Tuesday, June 18, 2002, 11:58:51 AM, you wrote: DC Hello,Sir: DC I do want to buy jboss documents. I can afford it. But I have no credit card such as VISA etc. I'm still a student in computer science. I 'm deeply attracted by the technics based on J2EE DC ,especially the open source JBoss. I hope someone can send me a copy of jboss 3.0 cmp documents. I will appreciate you for ever. My email is: [EMAIL PROTECTED] Best regards. DC z -- Best regards, Alex Loubyansky Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Who can send me a copy of JBoss3.0 CMP2.0 documents
Can't read your email because I'm not set up to handle the encoding, but Flashline will sell you the CMP2 docs for $10. Failing that, the Quickstart PDF (available for free from the JBoss site) contains enough info to (umm...) get you started. Apologies if that's not the sort of answer you were after. On Tue, Jun 18, 2002 at 04:58:51PM +0800, Diken Chen wrote: SGVsbG8sU2lyOg0KICAgIA0KICAgIEkgIGRvIHdhbnQgdG8gYnV5IGpib3NzIGRvY3VtZW50cy4g SSBjYW4gYWZmb3JkIGl0LiBCdXQgSSBoYXZlIG5vIGNyZWRpdCBjYXJkIHN1Y2ggYXMgVklTQSBl dGMuIEknbSBzdGlsbCBhIHN0dWRlbnQgaW4gY29tcHV0ZXIgc2NpZW5jZS4gSSAnbSBkZWVwbHkg YXR0cmFjdGVkIGJ5IHRoZSB0ZWNobmljcyBiYXNlZCBvbiBKMkVFICxlc3BlY2lhbGx5IHRoZSBv cGVuIHNvdXJjZSBKQm9zcy4gSSAgaG9wZSBzb21lb25lIGNhbiBzZW5kIG1lIGEgY29weSBvZiBq Ym9zcyAzLjAgY21wICBkb2N1bWVudHMuIEkgd2lsbCBhcHByZWNpYXRlIHlvdSBmb3IgZXZlci4g IE15IGVtYWlsIGlzOiBkaWtlbi5jaGVuQDE2My5jb20gICBCZXN0ICByZWdhcmRzLg0K Cheers, Simon -- etc/cron.daily/logrotate: error: file /var/log/wtmp last rotated in the future -- rotation forced Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] webserver at port 8083
You can't, port 8083 is to serve up classes for rmi. david jencks On 2002.06.18 04:13:08 -0400 Ionel Gardais wrote: Hi, I've downloaded the Jboss version bundled with tomcat I can get the application deployed as .war files via the localhost:8080/war_project_name but when viewing the JNDITree via localhost:8082, I can see a webserver binding at port 8083 how to make html files available throught this port ? thanks, ionel Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Who can send me a copy of JBoss3.0 CMP2.0 documents
Or you could switch to completly free App Server Jonas, see discussion at: http://www.theserverside.com/reviews/thread.jsp?thread_id=12811 Their site http://www.objectweb.org/jonas/ contains fairly more free docs that JBoss pay for are together. sincerely Olek - Original Message - From: Diken Chen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 10:58 AM Subject: [JBoss-user] Who can send me a copy of JBoss3.0 CMP2.0 documents Hello,Sir: I do want to buy jboss documents. I can afford it. But I have no credit card such as VISA etc. I'm still a student in computer science. I 'm deeply attracted by the technics based on J2EE ,especially the open source JBoss. I hope someone can send me a copy of jboss 3.0 cmp documents. I will appreciate you for ever. My email is: [EMAIL PROTECTED] Best regards. ¸§)àʦ¢éݲÜi÷ÞvyØèÊm§ÿí)äç¤r¿±òA¢Ë.±êæj)b b²ÒA¢Ë.±êåËl²«qç讧zØm¶?þX¬¶Ë(º·~àzwþX¬¶ÏåËbú?º,²ë Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Who can send me a copy of JBoss3.0 CMP2.0 documents
how cheap can we all possibly get... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Aleksander Grzebyta Sent: Tuesday, June 18, 2002 7:44 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Who can send me a copy of JBoss3.0 CMP2.0 documents Or you could switch to completly free App Server Jonas, see discussion at: http://www.theserverside.com/reviews/thread.jsp?thread_id=12811 Their site http://www.objectweb.org/jonas/ contains fairly more free docs that JBoss pay for are together. sincerely Olek - Original Message - From: Diken Chen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 10:58 AM Subject: [JBoss-user] Who can send me a copy of JBoss3.0 CMP2.0 documents Hello,Sir: I do want to buy jboss documents. I can afford it. But I have no credit card such as VISA etc. I'm still a student in computer science. I 'm deeply attracted by the technics based on J2EE ,especially the open source JBoss. I hope someone can send me a copy of jboss 3.0 cmp documents. I will appreciate you for ever. My email is: [EMAIL PROTECTED] Best regards. ¸§)àʦ¢éݲÜi÷ÞvyØèÊm§ÿí)äç¤r¿±òA¢Ë.±êæj)b b²ÒA¢Ë.±êåËl²«qç讧zØm¶?þX¬¶Ë(º·~àzwþX¬¶ÏåËbú?º,²ë Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Security question
I guess jboss makes a container for every jar/war which is decided by jboss.xml/jboss-web.xml and its standard ones, each container manages its own security business. regards, Cloudor 在 2002-06-03 一 的 12:40, Ferran Puig 写道: I'm using jboss3.0.0-tomcat4.0.3 to test my j2ee application, and I have the following problem: I have an EAR deployed with a couple of web-apps. In both web-apps I have security constraints, so I have the jboss-web.xml descriptor for each of the web-apps, pointing to the security domain I use. Both web-apps expect the same roles for the security constraints. The problem is that one web-app redirects to the other, and although I have logged in the first one, the second web-app asks me to log in again. I expected that the second web-app would notice that the user is already in that role but it doesn't. I don't know if this a specification issue or a bug. Can anyone tell me? Thanks. Ferran ___ Copa del Mundo de la FIFA 2002 El único lugar de Internet con vídeos de los 64 partidos. ¡Apúntante ya! en http://fifaworldcup.yahoo.com/fc/es/ ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] (no subject)
Can it be possible to define some other class in prim-key-class other than defining it as Wrapper Class. If yes how can it be possible to define ? __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] java.lang.ClassCircularityError
If you are constantly getting it within the same block of code you can make that section mono threaded and that will solve the problem as well. On Mon, 2002-06-17 at 14:50, Bordet, Simone wrote: Hi, Its a race condition in the new class loader. You may be able to get around it if you're lucky. N, it's a bug in HotSpot: http://developer.java.sun.com/developer/bugParade/bugs/4699981.html Simon ___ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Re: NullpointerException and JCA
I'm not sure, if I understand what you mean with deploy by hand; I copied the rar file and the xxx-service.xml file into the deploy directory. What I can see is: ... 13:58:31,128 INFO [Server] JBoss (MX MicroKernel) [3.1.0alpha Date:200206121638] Started in 0m:39s:62ms 14:54:27,222 INFO [MainDeployer] Starting deployment of package: file:/C:/compo nentModel/ejb/jboss/jboss-3.1.0alpha/server/default/deploy/TaminoJCA_localTx .rar 14:54:27,331 WARN [ServiceController] jboss.jca:service=RARDeployment,name=Tami no Resource Adapter for local transactions does not implement any Service method s 14:54:27,347 INFO [MainDeployer] Successfully completed deployment of package: file:/C:/componentModel/ejb/jboss/jboss-3.1.0alpha/server/default/deploy/Tam inoJ CA_localTx.rar 14:54:57,378 INFO [MainDeployer] Starting deployment of package: file:/C:/compo nentModel/ejb/jboss/jboss-3.1.0alpha/server/default/deploy/tamino-service.xm l 14:54:57,675 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=MyTamino LocalTxConnector does not implement any Service methods 14:54:57,675 INFO [JBossManagedConnectionPool] Creating 14:54:57,675 INFO [JBossManagedConnectionPool] Created 14:54:57,675 INFO [JBossManagedConnectionPool] Starting 14:54:57,675 INFO [JBossManagedConnectionPool] Started 14:54:57,675 INFO [MainDeployer] Successfully completed deployment of package: file:/C:/componentModel/ejb/jboss/jboss-3.1.0alpha/server/default/deploy/tam ino- service.xml Is this what you've expected? thanks, Waltraud -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Monday, June 17, 2002 2:50 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Re: NullpointerException and JCA The .rar and the xxx-service.xml file are all you need. I'm very surprised that there is a difference between 3.0.0 and 3.1. Can you turn logging up to trace and show the log output just from deploying the .rar and the xxx-service.xml file? (I find this easiest to do by deploying them by hand after the server has started). (Careful of any passwords you might have in xxx-service.xml) Thanks david jencks On 2002.06.17 03:51:56 -0400 Buettner, Waltraud wrote: My ra.xml entries look like example-tagcom.blah.mcf/example-tag I downloaded jboss310alpha and the Nullpointerexception was gone. Unfortunately it still does not work, but this seems to be another problem. My Resource adapter is not registered in JNDI, although I have this entry in my tamino-service.xml file: mbean code=org.jboss.resource.connectionmanager.RARDeployment name=jboss.jca:service=LocalTxDS,name=MyTaminoLocalTxConnector attribute name=JndiNameMyTaminoLocalTxConnector/attribute Is there additionally a general JBoss configuration file, where I have to add my resource adapter? (like previously jboss.jcml?) Or is it enough to have the rar file in the deploy directory and to have these xxx-service.xml files? thanks, Waltraud -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 16, 2002 11:00 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Re: NullpointerException and JCA I lost the beginning of this thread... some of our xml interpretation is not very good about ignoring leading/trailing whitespace. Do your ra.xml entries look like example-tagcom.blah.mcf/example-tag rather than the more readable but possibly non-functional example-tag com.blah.mcf /example-tag ? Thanks david jencks On 2002.06.11 11:55:54 -0400 Buettner, Waltraud wrote: David, my ra.xml file should be ok, because my Resource Adapter runs successfully in a WebLogic environment. And I can see with http://localhost:8082, that the ManagedConnectionFactory class is the right one. I appreciate any other hint. thanks, Waltraud Date: Tue, 11 Jun 2002 11:09:02 -0400 From: David Jencks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] NullpointerException and JCA Reply-To: [EMAIL PROTECTED] My first (wild) guess is that you didn't supply any ManagedConnectionFactory class in your ra.xml. david jencks ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Sponsored by: ThinkGeek at
[JBoss-user] Forums still down
I start feeling a bit lonely without the forums ;-) Any ideas, when they will be up again? Cheers Georg Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Deploy an EJB *without* a jar, war, or ear?
Someone in this list had posted that we could make a directory with the same name as the jar/war/ear filename and put the files in it under proper architecture. regards, Cloudor ÔÚ 2002-06-04 ¶þ µÄ 19:18£¬ Brandon Knitter дµÀ£º Cool, now...how do I point JBoss to my directory? :) I come from a Resin (Caucho) background, so I know how to configure that, but the only thing I can see to configure is the deploy directory. Just to be clear, *exactly* which config file(s) do I need to modify to point the web/ejb container to my directory structure, under, say, /home/knitterb/projects, assuming that I have WEB-INF and META-INF dirs under the projects dir. Thanks in advance. I wish this were documented in the book I paid good $$ for, but it seems that the documentation is lacking, and I can't find any newbie docs. -- -bk Quoting Jules Gosnell [EMAIL PROTECTED]: I'm only really clued up on the web-container side of things, but I think everything else works the same way, Build your app into a directory structure that mirrors the war,ejb-jar or ear structure that you want, within the deploy directory. Each time you rebuild e.g. classes within the war, touch the WEB-INF/web.xml - This will cause JBoss to reload this module. I assume that touching the META-INF/application.xml will reload the whole J2EEApp - but haven't tried it. Jules Brandon Knitter wrote: How can I make jboss look into a directory structure and allow me to deploy my ejbs without building out a jar, war, or ear? Also, does JBoss automagically reload the classes when they change (i.e. I make a change to my EJB), I want to be able to develop in place without a) redeploying a couple hundred times, and b) without having to bounce the server a couple hundred times. I am using JBoss 2.4.6, and am willing to go to 3.0 if necessary. I bought the documentation and still find that it doesn't walk you through the configuration of JBoss in this manner. Thanks, ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
More: [JBoss-user] Error running a war inside JBoss.
More info. I created an EAR file with just my WAR inside, and it all ran smoothly. Any guesses? Anyone? Lachezar Hello. I really thought I am not a newbie, but alas it seems so. Stupid question: If I deploy a WAR within JBoss+Catalina version JBoss (MX MicroKernel) [3.0.0 Date:200205311035] /version Downloaded from the jboss.org site. I get: snips !-- (...) means stripped text for clarity -- Starting deployment of package: file:(...)/MyWar.war WebappLoader[/WebInterface]: Deploying class repositories to work directory(...) ContextConfig[/WebInterface]: Missing application web.xml, using defaults only ContextConfig[/WebInterface]: Added certificates - request attribute Valve Using Java2 parent classloader delegation: true StandardWrapper[/WebInterface:default]: Loading container servlet default default: init StandardWrapper[/WebInterface:invoker]: Loading container servlet invoker invoker: init jsp: init Internal Error: File /WEB-INF/web.xml not found Successfully completed deployment of package: file:(...)/MyWar.war /snips To clarify more: MyWar.war |- META-INF | |- MANIFEST.MF | |- WEB-INF | |-web.xml | |-classes | |- com.mycomp.servlets.* | |- com.mycomp.util.* | |- index.jsp I have the web.xml, I have the WEB-INF, and IO have classes directory in the war. However, when I try to access my index.jsp: web-snip HTTP Status 500 - Internal Server Error exception: org.apache.jasper.JasperException: Unable to compile class for JSP index$jsp.java:4: Package com.mycomp.util not found in import. import com.mycomp.util.*; /web-snip What else should I look at? Is this a known FAQ question, or am I doing something wrong? additional-info WinDoze 2K java version 1.3.1-rc1 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-rc1-b21) Java HotSpot(TM) Client VM (build 1.3.1-rc1-b21, mixed mode) /additional-info Lachezar. P.S. Orion deploys A_OK. -- -- Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: NullpointerException and JCA
That's appropriate deployment order, it's what I meant by by hand, but you didn't turn the logging up to trace, so we can't really see what's going on. Only one of the 3 mbeans in the xxx-service.xml file is getting started. If you have jboss 3.0.1 from cvs, you can try the ServiceDeployer.listIncompletelyDeployed jmx operation to get more hints about what is missing. The trace level log output will show more details. Thanks david jencks On 2002.06.18 08:59:18 -0400 Buettner, Waltraud wrote: I'm not sure, if I understand what you mean with deploy by hand; I copied the rar file and the xxx-service.xml file into the deploy directory. What I can see is: ... 13:58:31,128 INFO [Server] JBoss (MX MicroKernel) [3.1.0alpha Date:200206121638] Started in 0m:39s:62ms 14:54:27,222 INFO [MainDeployer] Starting deployment of package: file:/C:/compo nentModel/ejb/jboss/jboss-3.1.0alpha/server/default/deploy/TaminoJCA_localTx .rar 14:54:27,331 WARN [ServiceController] jboss.jca:service=RARDeployment,name=Tami no Resource Adapter for local transactions does not implement any Service method s 14:54:27,347 INFO [MainDeployer] Successfully completed deployment of package: file:/C:/componentModel/ejb/jboss/jboss-3.1.0alpha/server/default/deploy/Tam inoJ CA_localTx.rar 14:54:57,378 INFO [MainDeployer] Starting deployment of package: file:/C:/compo nentModel/ejb/jboss/jboss-3.1.0alpha/server/default/deploy/tamino-service.xm l 14:54:57,675 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=MyTamino LocalTxConnector does not implement any Service methods 14:54:57,675 INFO [JBossManagedConnectionPool] Creating 14:54:57,675 INFO [JBossManagedConnectionPool] Created 14:54:57,675 INFO [JBossManagedConnectionPool] Starting 14:54:57,675 INFO [JBossManagedConnectionPool] Started 14:54:57,675 INFO [MainDeployer] Successfully completed deployment of package: file:/C:/componentModel/ejb/jboss/jboss-3.1.0alpha/server/default/deploy/tam ino- service.xml Is this what you've expected? thanks, Waltraud -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Monday, June 17, 2002 2:50 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Re: NullpointerException and JCA The .rar and the xxx-service.xml file are all you need. I'm very surprised that there is a difference between 3.0.0 and 3.1. Can you turn logging up to trace and show the log output just from deploying the .rar and the xxx-service.xml file? (I find this easiest to do by deploying them by hand after the server has started). (Careful of any passwords you might have in xxx-service.xml) Thanks david jencks On 2002.06.17 03:51:56 -0400 Buettner, Waltraud wrote: My ra.xml entries look like example-tagcom.blah.mcf/example-tag I downloaded jboss310alpha and the Nullpointerexception was gone. Unfortunately it still does not work, but this seems to be another problem. My Resource adapter is not registered in JNDI, although I have this entry in my tamino-service.xml file: mbean code=org.jboss.resource.connectionmanager.RARDeployment name=jboss.jca:service=LocalTxDS,name=MyTaminoLocalTxConnector attribute name=JndiNameMyTaminoLocalTxConnector/attribute Is there additionally a general JBoss configuration file, where I have to add my resource adapter? (like previously jboss.jcml?) Or is it enough to have the rar file in the deploy directory and to have these xxx-service.xml files? thanks, Waltraud -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 16, 2002 11:00 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Re: NullpointerException and JCA I lost the beginning of this thread... some of our xml interpretation is not very good about ignoring leading/trailing whitespace. Do your ra.xml entries look like example-tagcom.blah.mcf/example-tag rather than the more readable but possibly non-functional example-tag com.blah.mcf /example-tag ? Thanks david jencks On 2002.06.11 11:55:54 -0400 Buettner, Waltraud wrote: David, my ra.xml file should be ok, because my Resource Adapter runs successfully in a WebLogic environment. And I can see with http://localhost:8082, that the ManagedConnectionFactory class is the right one. I appreciate any other hint. thanks, Waltraud Date: Tue, 11 Jun 2002 11:09:02 -0400 From: David Jencks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] NullpointerException and JCA Reply-To: [EMAIL PROTECTED] My first (wild) guess is that you didn't supply any ManagedConnectionFactory class in your ra.xml. david jencks ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in
[JBoss-user] Subject: JBoss 3.0 jConnect Chained issue
com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed within multi-statement transaction I am getting a SET CHAINED exception when running JBoss 3.0 and Sybase's jConnect 5.5. JBoss 2.4.4 and jConnect works fine. I am assuming that the pool JBoss uses is not setting the connections Chaining or Autocommit to the proper setting. Is there some way of making jConnect default to chained or unchained connections? JBoss will not allow me to set the connections autocommit in code which out giving me an exception. Thanks Rodney __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] here's an XA config file for MS SQL Server
Here's a mssql-xa-server.xml, for using Microsoft SQL Server 2000 with Microsoft's JDBC driver. ?xml version=1.0 encoding=UTF-8? !-- = -- !-- -- !-- JBoss Server Configuration -- !-- -- !-- = -- server !-- -- !-- ConnectionManager setup for xa Microsoft SQL Server 2000, using -- !-- Microsoft's JDBC driver. -- !-- -- mbean code=org.jboss.resource.connectionmanager.XATxConnectionManager name=jboss.jca:service=XATxCM,name=MSSQLXaDS !--make the rar deploy! hack till better deployment-- dependsjboss.jca:service=RARDeployer/depends depends optional-attribute-name=ManagedConnectionFactoryName !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.RARDeployment name=jboss.jca:service=XATxDS,name=MSSQLXaDS !--hack-- depends optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployme nt,name=Minerva JDBC XATransaction ResourceAdapter/depends !--real attributes-- attribute name=ManagedConnectionFactoryProperties properties config-property config-property-nameXADataSourceClass/config-property-name config-property-typejava.lang.String/config-property-type config-property-valuecom.microsoft.jdbcx.sqlserver.SQLServerDataSource /config-property-value /config-property config-property config-property-nameXADataSourceProperties/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueServerName=yourserver;DatabaseName=yourdatabasena me;SelectMethod=cursor/config-property-value /config-property /properties /attribute attribute name=JndiNameMSSQLXaDS/attribute /mbean /depends depends optional-attribute-name=ManagedConnectionPool !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.JBossManagedConnectionPool name=jboss.jca:service=XATxPool,name=MSSQLXaDS attribute name=MinSize0/attribute attribute name=MaxSize50/attribute attribute name=BlockingTimeoutMillis5000/attribute attribute name=IdleTimeoutMinutes15/attribute !--criteria indicates if Subject (from security domain) or app supplied parameters (such as from getConnection(user, pw)) are used to distinguish connections in the pool. Choices are ByContainerAndApplication (use both), ByContainer (use Subject), ByApplication (use app supplied params only), ByNothing (all connections are equivalent, usually if adapter supports reauthentication)-- attribute name=CriteriaByContainer/attribute /mbean /depends depends optional-attribute-name=CachedConnectionManagerjboss.jca:service=Cach edConnectionManager/depends !-- Include a login module configuration named MSSQLXaDbRealm. Update your login-conf.xml, here is an example for a ConfiguredIdentityLoginModule: application-policy name = MSSQLXaDbRealm authentication login-module code = org.jboss.resource.security.ConfiguredIdentityLoginModule flag = required module-option name = principalyourprincipal/module-option module-option name = userNameyourusername/module-option module-option name = passwordyourpassword/module-option module-option name = managedConnectionFactoryNamejboss.jca:service=XATxCM,name=MSSQLXaDS/ module-option /login-module /authentication /application-policy NOTE: the application-policy name attribute must match SecurityDomainJndiName, and the module-option name = managedConnectionFactoryName must match the object name of the ConnectionManager you are configuring here. -- !--uncomment out this line if you are using the MSSQLXaDbRealm above attribute name=SecurityDomainJndiNameMSSQLXaDbRealm/attribute -- depends optional-attribute-name=JaasSecurityManagerServicejboss.security:name =JaasSecurityManager/depends attribute name=TransactionManagerjava:/TransactionManager/attribute /mbean /server Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] servlet context error in Jetty
I'm having problems trying to deploy a .war file in 3.0/Jetty. Has anybody seen this before and know what I can do to resolve it. I don't understand what its complaining about. Thanks, Gray Jones 09:13:16,663 WARN [Jetty] javax.servlet.ServletException: Error configuring the loader: java.io.IOException: Choked while trying to find out servlet context from container, original exception: java.lang.Exception: Was expecting to find jndi:/localhost/ in string from getServletContext.getResource(/) Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Subject: JBoss 3.0 jConnect Chained issue
Can you check again with the cvs version of Branch_3_0? I fixed some problems with this over the weekend. You are required still to, if you set autocommit false, to commit any work you may have done before closing a connection handle. If you still have problems please post the exact code that is failing with stack trace and indication of where the failure occurs. david jencks On 2002.06.18 09:31:35 -0400 Rodney Kite wrote: com.sybase.jdbc2.jdbc.SybSQLException: SET CHAINED command not allowed within multi-statement transaction I am getting a SET CHAINED exception when running JBoss 3.0 and Sybase's jConnect 5.5. JBoss 2.4.4 and jConnect works fine. I am assuming that the pool JBoss uses is not setting the connections Chaining or Autocommit to the proper setting. Is there some way of making jConnect default to chained or unchained connections? JBoss will not allow me to set the connections autocommit in code which out giving me an exception. Thanks Rodney __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Stateful Session Instance Pool
So I have a question to the instance pool for stateful session beans. I found in the ejb specification, that instance pools should be used for stateless and entity beans, but not for stateful session beans. The JBoss EJB Container uses a stateful session instance pool. May somebody explain me, how this works? Thanks a lot! -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss On Different Computers
Dear Peers, Forgive my ignorant questions, I'm pretty new to Jboss. I am trying to set up two instances of the JBoss/Tomcat edition, one on each of two different computers. So far I am: On Computer A 1. Deploying and ear with a simple war containing two test servlets and a jar containing one simple ejb which only returns a String when called. A hello world simple bean. On Computer B 1. Deploying the above jar file containing the ejb. Only the ejb is deployed on this computer. What I want now: My ejb(remember it is deployed on both A and B) prints to the console window when it is called. I want the first servlet on computer A to create and InitialContext the normal way (a.k.a., the default constructor with no properties or hashtable object), and call the ejb that was deployed on Computer A in the ear file. I want the second servlet to call the ejb residing on computer B. In the second servlet I have tried creating a hashtable or properties object and put in the Context.PROVIDER_URL, etc., to make it contact the second server. The Problem: It always calls the local server on computer A. It is like I cannot seem to override the jndi.properties file by creating a Context in the second servlet with the Hashtable. I would be most happy to post code as a next stage in the process if it would help. I am hoping there is an obvious solution someone knows though. I have done no other server configuration, so if I am missing what you think is obvious do not be blunt! Remember, I'm new! Thanks so much! Jason Stortz E-mail: [EMAIL PROTECTED] Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Forums still down
We're waiting for Marc to get back from Canada. His flight got rerouted, delayed and canceled. He should be back today. -dain Georg Schmid wrote: I start feeling a bit lonely without the forums ;-) Any ideas, when they will be up again? Cheers Georg Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Dain Sundstrom Chief Architect JBossCMP JBoss Group, LLC Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Auto increment primary key
Hi, How can we use auto increment for primary key field in CMP bean. I am using Jboss - 2.4.4, SQL server 2000 Windows 2000 I am having an CMP entity bean(Item) which contains the field itemID and is a primary key. I want to make this itemID field as auto increment. How can I do this? What are the steps to take? Thanks in advance regards Rajakumar.
[JBoss-user] client throws an AccessControlException
Hi, there are two weeks that i am facing a problem and I can't find any solution. When running a client against my EJB server, the cilent throws a : snip java.security.AccessControlException: access denied (java.lang.RuntimePermission org.jboss.security.SecurityAssociation.getPrincipalInfo) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) ... /snip Can someone help me, thanks, ionel Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Auto increment primary key
Check chapter 5 on EJB Design Patterns. You can get the pdf for free on www.theserverside.com Regards, Rubén Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] SQL error while using CMP1.x in JBOss3.0
Hi, I am using CMP 1.x on JBoss 3.0. I have problem mapping the names of the persistent fields. I am using Firebird (Interbase) db which has some reserved words and those are being used in my beans. I have tried to map the field-name with the column name in jaws.xml file like this, cmp-field field-nameType/field-name column-nameTtype/column-name /cmp-field But still the queries generated by JBoss are using the same name (which I have already mapped). So is there any other configuration I have to make.??? BR, Faisal. -- Faisal Mahmood Eneris Solutions Oy7 Torikatu,90100,Oulu. Email: [EMAIL PROTECTED]GSM:0503845573 Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Finding DataSource using jboss.xml aliasing
Hi, try using the admin on your server:8082 to check wether your resource mapping really worked, under naming look for JNDI-View hth, Burkhard - Original Message - From: Emerson Cargnin - MSA [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 17, 2002 2:05 PM Subject: Re: [JBoss-user] Finding DataSource using jboss.xml aliasing Hey dan, it didn't worked, message : jdb not bound by the way, in jboss console, it gives me the following message during startup : 15:51:44,462 INFO [OracleDS] Bound connection factory for resource adapter 'JBoss LocalTransaction JDBC Wrapper' to JNDI name 'java:/OracleDS' It didn't work either. Dan Christopherson wrote: Emerson Cargnin - MSA wrote: Code of bean trying to lookup the DS: private Connection conecta() throws NamingException, SQLException { Connection conn = null; InitialContext ic = new InitialContext(); DataSource ds = (DataSource)ic.lookup(jdbc/SISDS); should be 'ic.lookup(java:comp/env/jdbc/SISDS)' conn = ds.getConnection(); return conn; } ___ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP in JBoss!
Hi : Is there a way to store the state of an EB in more than one relational table using CMP in JBoss. Our entity model requires such a persistence model , is this possible in JBoss-CMP. Thanks in advance. Regards, muthu __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Auto increment primary key
Hi, you will need BMP and it will in no way be portable to other databases. Regards, Burkhard - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 10:06 AM Subject: Re: [JBoss-user] Auto increment primary key Check chapter 5 on EJB Design Patterns. You can get the pdf for free on www.theserverside.com Regards, Rubén Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] client throws an AccessControlException
You need to setup the security permission required to use JAAS as described in this tutorial: http://java.sun.com/j2se/1.4/docs/guide/security/jaas/tutorials/GeneralAcnOn ly.html Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Ionel Gardais [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 8:00 AM Subject: [JBoss-user] client throws an AccessControlException Hi, there are two weeks that i am facing a problem and I can't find any solution. When running a client against my EJB server, the cilent throws a : snip java.security.AccessControlException: access denied (java.lang.RuntimePermission org.jboss.security.SecurityAssociation.getPrincipalInfo) at java.security.AccessControlContext.checkPermission(AccessControlContext.java :270) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) ... /snip Can someone help me, thanks, ionel -- -- Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss 3 with Ingres JDBC
Please show your ingres-service.xml file, the login-config.xml snippet you use (if you use container managed signon) and the log of deployment of ingres-service.xml AFTER you set logging priority to trace. You can try ServiceController.listIncompletelyDeployed in the jmx viewer on port 8982 to try to figure out what is going wrong also. thanks david jencks On 2002.06.18 11:32:12 -0400 Susan Deaves wrote: I have had jboss 2.4 running with Ingres using Caribou Lakes JDBC driver for Ingres but I am having difficulty configuring a ingres-service.xml file for the latest jboss3. Can anyone help me with this? I have set up a file based on the oracle-service.xml file but and this file seems to load (no problems with drivers or classes and an IngresDS starts.. but when I depoy apps which worked on an earlier jboss I am getting unbound memberdb errors. I cannot see any way to configure this using the new ingres-service.xml file. Surely my exisiting apps should run on the latest jboss? Susie Deaves 01935 443000 ext 5055 Aerosystems International This Internet E-mail is intended solely for the person to whom it is addressed. It may contain confidential or privileged information. If you have received it in error please notify us immediately by telephone and destroy the transmission. You must not copy, distribute or take any action in reliance on it. Aerosystems International Phone: +44 (0)1935 443000 Fax : +44 (0)1935 443111 Web : www.aeroint.com Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problems with security Roles under JBoss 3.0
Hi everyone, I've recently moved my app to JBoss 3.0 from Orion but am having trouble with the request.isUserInRole() call. I've set up a db security policy in login-config.xml which works fine from the authorization point of view, but the roles detected in the request.isUserInRole call aren't related to what's in the db. Switching from Jetty to Tomcat as the web container made no difference, and neither did using the UsersRolesLoginModule. Every time I check if a principle making a request is in a role it returns true! Even if I check for a role like frustrated_developer which is never defined anywhere. Did I miss something fundamental? Do I need to switch off a default allow role inclusion parameter? I'm suffering badly, please help! Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] RE: JBoss 3.0 and Transaction attribute RequiresNew
Bill, Thanks for the help. My responses to your questions are below: - What is your primary key class? public class UserPK implements java.io.Serializable { public Integer id = null; public int hashCode() { return (this.getClass().getName()+ id=+id+ ).hashCode(); } public boolean equals(Object t_UserPK) { if(! (t_UserPK instanceof UserPK)) return false; UserPK t_CompareUserPK = (UserPK)t_UserPK; if(t_CompareUserPK.id == null) { if(id != null) return false; } else if(!t_CompareUserPK.id.equals(id)) return false; return true; } } - Are you using custom container configurations? Make sure that you have the correct interceptor chain. If you have a custom config, please post it. I haven't made any changes to standardjboss.xml. Using the one that ships with JBoss 3.0 - Did you change the locking-policy? What did you change it to? No changes to this either. Thanks, Todd -Original Message- From: EMAIL: PROTECTED [mailto:EMAIL: PROTECTED]On Behalf Of Todd Huss Sent: Monday, June 17, 2002 8:53 PM To: EMAIL: PROTECTED Subject: [JBoss-user] JBoss 3.0 and Transaction attribute RequiresNew I have a stateful session bean (with all methods having transaction attributes set to Required) making calls into an entity bean with transaction attribute RequiresNew. When the stateful session bean calls the method on the entity bean I get the exception: java.lang.IllegalStateException: removing bean lock and it has tx set! at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(Queu edPessimisticEJBLock.java:469) at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:7 8) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInter ceptor.java:124) ... .. . Does anyone have a suggestion why I'm getting this error message or how to troubleshoot it? I'm upgrading to 3.0 from JBoss 2.4.4 and this error did not occur in 2.4.4. Thanks for any suggestions, Todd Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] RE: JBoss 3.0 and Transaction attribute RequiresNew (fwd)
One other thing I forgot to mention is that if I set the transaction attribute to Required, instead of RequiresNew on the bean, it works fine. -Todd -- Forwarded message -- Date: Tue, 18 Jun 2002 09:22:23 -0700 (PDT) From: Todd Huss [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: JBoss 3.0 and Transaction attribute RequiresNew Bill, Thanks for the help. My responses to your questions are below: - What is your primary key class? public class UserPK implements java.io.Serializable { public Integer id = null; public int hashCode() { return (this.getClass().getName()+ id=+id+ ).hashCode(); } public boolean equals(Object t_UserPK) { if(! (t_UserPK instanceof UserPK)) return false; UserPK t_CompareUserPK = (UserPK)t_UserPK; if(t_CompareUserPK.id == null) { if(id != null) return false; } else if(!t_CompareUserPK.id.equals(id)) return false; return true; } } - Are you using custom container configurations? Make sure that you have the correct interceptor chain. If you have a custom config, please post it. I haven't made any changes to standardjboss.xml. Using the one that ships with JBoss 3.0 - Did you change the locking-policy? What did you change it to? No changes to this either. Thanks, Todd -Original Message- From: EMAIL: PROTECTED [mailto:EMAIL: PROTECTED]On Behalf Of Todd Huss Sent: Monday, June 17, 2002 8:53 PM To: EMAIL: PROTECTED Subject: [JBoss-user] JBoss 3.0 and Transaction attribute RequiresNew I have a stateful session bean (with all methods having transaction attributes set to Required) making calls into an entity bean with transaction attribute RequiresNew. When the stateful session bean calls the method on the entity bean I get the exception: java.lang.IllegalStateException: removing bean lock and it has tx set! at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(Queu edPessimisticEJBLock.java:469) at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:7 8) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInter ceptor.java:124) ... .. . Does anyone have a suggestion why I'm getting this error message or how to troubleshoot it? I'm upgrading to 3.0 from JBoss 2.4.4 and this error did not occur in 2.4.4. Thanks for any suggestions, Todd Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problems with security Roles under JBoss 3.0
You need to define the security-domain to use in the web layer using a WEB-INF/jboss-web.xml descriptor: jboss-web security-domainjava:/jaas/your-domain-here/security-domain /jboss-web Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Simon Peter Nicholls [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 11:42 AM Subject: [JBoss-user] Problems with security Roles under JBoss 3.0 Hi everyone, I've recently moved my app to JBoss 3.0 from Orion but am having trouble with the request.isUserInRole() call. I've set up a db security policy in login-config.xml which works fine from the authorization point of view, but the roles detected in the request.isUserInRole call aren't related to what's in the db. Switching from Jetty to Tomcat as the web container made no difference, and neither did using the UsersRolesLoginModule. Every time I check if a principle making a request is in a role it returns true! Even if I check for a role like frustrated_developer which is never defined anywhere. Did I miss something fundamental? Do I need to switch off a default allow role inclusion parameter? I'm suffering badly, please help! Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMP Type Mapping
Hi, We are using JBoss 3.0 and are having a problem with type mapping. We have added the following block to our standardjbosscmp-jdbc.xml file: mapping java-typeCPT4Code/java-type jdbc-typeVARCHAR/jdbc-type sql-typeTEXT/sql-type/mapping When we look at what gets put in the database for CPT4Code, it's just the serialized version of the object. We were expecting that it would call toString() to properly map the type. Are we missing something? Thanks, -Greg
[JBoss-user] CMP Type Mapping
Hi, I apologize if this got posted twice but I'm not sure I was properly configured the first time. We are using JBoss 3.0 and are having a problem with type mapping. We have added the following block to our standardjbosscmp-jdbc.xml file: mapping java-typeCPT4Code/java-type jdbc-typeVARCHAR/jdbc-type sql-typeTEXT/sql-type/mapping When we look at what gets put in the database for CPT4Code, it's just the serialized version of the object. We were expecting that it would call toString() to properly map the type. Are we missing something? Thanks, -Greg
[JBoss-user] Re: JBoss-user digest, Vol 1 #2456 - 9 msgs
I tried to install jboss as application server on IRIX SGI machine but failed IRIX Release 6.5 IP27. Can someone help me with this? Bruce Ling Original Message On 6/18/02, 6:32:23 AM, [EMAIL PROTECTED] wrote regarding JBoss-user digest, Vol 1 #2456 - 9 msgs: Send JBoss-user mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/jboss-user or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of JBoss-user digest... Today's Topics: 1. Re: Security question (Cloudor Pu) 2. (no subject) (vishal mehta) 3. RE: java.lang.ClassCircularityError (Dave Smith) 4. RE: Re: NullpointerException and JCA (Buettner, Waltraud) 5. Re: Deploy an EJB *without* a jar, war, or ear? (Cloudor Pu) 6. More: [JBoss-user] Error running a war inside JBoss. (Lachezar Dobrev) 7. Forums still down (Georg Schmid) 8. Re: Re: NullpointerException and JCA (David Jencks) 9. Subject: JBoss 3.0 jConnect Chained issue (Rodney Kite) --__--__-- Message: 1 Subject: Re: [JBoss-user] Security question From: Cloudor Pu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: 18 Jun 2002 20:19:47 + Reply-To: [EMAIL PROTECTED] I guess jboss makes a container for every jar/war which is decided by jboss.xml/jboss-web.xml and its standard ones, each container manages its own security business. regards, Cloudor =E5=9C=A8 2002-06-03 =E4=B8=80 =E7=9A=84 12:40=EF=BC=8C Ferran Puig =E5=86= =99=E9=81=93=EF=BC=9A =20 I'm using jboss3.0.0-tomcat4.0.3 to test my j2ee application, and I have= the following problem: =20 I have an EAR deployed with a couple of web-apps. In both web-apps I hav= e security constraints, so I have the jboss-web.xml descriptor for each of = the web-apps, pointing to the security domain I use. Both web-apps expect the= same roles for the security constraints. =20 The problem is that one web-app redirects to the other, and although I h= ave logged in the first one, the second web-app asks me to log in again. I ex= pected that the second web-app would notice that the user is already in that rol= e but it doesn't. =20 I don't know if this a specification issue or a bug. Can anyone tell me? =20 Thanks. Ferran =20 ___ Copa del Mundo de la FIFA 2002 El =C3=BAnico lugar de Internet con v=C3=ADdeos de los 64 partidos.=20 =C2=A1Ap=C3=BAntante ya! en http://fifaworldcup.yahoo.com/fc/es/ =20 ___ =20 Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm =20 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --__--__-- Message: 2 Date: Tue, 18 Jun 2002 05:32:21 -0700 (PDT) From: vishal mehta [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] (no subject) Reply-To: [EMAIL PROTECTED] Can it be possible to define some other class in prim-key-class other than defining it as Wrapper Class. If yes how can it be possible to define ? __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com --__--__-- Message: 3 Subject: RE: [JBoss-user] java.lang.ClassCircularityError From: Dave Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: 18 Jun 2002 08:35:38 -0400 Reply-To: [EMAIL PROTECTED] If you are constantly getting it within the same block of code you can make that section mono threaded and that will solve the problem as well. On Mon, 2002-06-17 at 14:50, Bordet, Simone wrote: Hi, Its a race condition in the new class loader. You may be able to get around it if you're lucky. N, it's a bug in HotSpot: http://developer.java.sun.com/developer/bugParade/bugs/4699981.html Simon ___ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --__--__-- Message: 4 From: Buettner, Waltraud [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: [JBoss-user] Re: NullpointerException and JCA Date: Tue, 18 Jun 2002 14:59:18 +0200 Reply-To: [EMAIL PROTECTED] I'm not sure, if I understand what you mean with deploy by hand; I copied the rar file and the xxx-service.xml file into the deploy directory. What I can see is: ...
[JBoss-user] Re: JBoss-user digest, Vol 1 #2451 - 8 msgs
Hi Todd, I have run into this same issue when trying to control transactions. Although this is not what some would like me to say, my experience is that Entity beans in JBoss only work properly with Required. In fact, you are better off not setting any container-transaction attributes for Entity beans and let them default. Any time I try to set container-transaction attributes for Entity beans, JBoss becomes really slow. Even when I am setting them to the default of Required. You can achieve the results you want by creating a method(s) in a session bean and setting it to RequiresNew. It can even be in the save session bean that you already have as long as you access the method through the local interface rather than calling it directly: ((YourBeanLocal)sessionContext.getEJBLocalObject()).yourMethod() ; This will insure that JBoss starts a new transaction for the method call. It is also very useful when there are multiple attributes on the Entity bean that need to be changed. This is hard won knowledge of trial, error, and head banging. I still get the occasional message, You are not getting the semantics you expect! in the log, but everything works properly. Good luck, Jon On Monday 17 June 2002 06:10 pm, [EMAIL PROTECTED] wrote: Date: Mon, 17 Jun 2002 17:52:46 -0700 (PDT) From: Todd Huss [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss 3.0 and Transaction attribute RequiresNew Reply-To: [EMAIL PROTECTED] I have a stateful session bean (with all methods having transaction attributes set to Required) making calls into an entity bean with transaction attribute RequiresNew. When the stateful session bean calls the method on the entity bean I get the exception: java.lang.IllegalStateException: removing bean lock and it has tx set! at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimi sticEJBLock.java:469) at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:78) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.ja va:124) ... .. . Does anyone have a suggestion why I'm getting this error message or how to troubleshoot it? I'm upgrading to 3.0 from JBoss 2.4.4 and this error did not occur in 2.4.4. Thanks for any suggestions, Todd Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBOss-BEA comparison
Title: JBOss-BEA comparison Couple of weeks ago somebody thrown a link on this forum with results of comparison JBoss and BEA. It was part of his investigation and included all characteristics of each app server. May anyone still has this link? I can't find it. Thanks in advance Boris
[JBoss-user] problem retrieving objects from Oracle 8 using CMP 2.0
Well I have 2 objects to store into an Oracle 8 database, the one giving me the headaches right now is an object (TestTask) that is extended from an object called Task... Task is really an abstract class that implements the Serializable interface... TestTask extends Task implementing some of the methods and it as well implements the Serializable interface... Obviously TestTask is treated as a Task by the CMP bean... There is no problem storing the Task(TestTask) into the database but when you go to modify any of the other fields in a record you will get the following error: 13:30:28,966 ERROR [STDERR] Caused by: java.rmi.ServerException: Internal error getting results for field member task Embedded Exception Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header; nested exception is: javax.ejb.EJBException: Internal error getting results for field member task Embedded Exception Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header 13:30:28,990 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:119) 13:30:28,992 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:242) 13:30:28,994 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) 13:30:28,996 ERROR [STDERR] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) 13:30:28,998 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166) 13:30:29,000 ERROR [STDERR] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) 13:30:29,002 ERROR [STDERR] at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:296) 13:30:29,004 ERROR [STDERR] at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) 13:30:29,006 ERROR [STDERR] ... 24 more 13:30:29,010 ERROR [STDERR] Caused by: javax.ejb.EJBException: Internal error getting results for field member task Embedded Exception Unable to load to deserialize result: java.io.StreamCorruptedException: invalid stream header 13:30:29,012 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadArgumentResults(JDBCAbstractCMPFieldBridge.java:360) 13:30:29,014 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCAbstractCMPFieldBridge.loadInstanceResults(JDBCAbstractCMPFieldBridge.java:304) 13:30:29,015 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:142) 13:30:29,018 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntityCommand.java:62) 13:30:29,019 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadEntity(JDBCStoreManager.java:495) 13:30:29,021 ERROR [STDERR] at org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager.java:410) 13:30:29,023 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.loadEntity(CachedConnectionInterceptor.java:353) 13:30:29,025 ERROR [STDERR] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchronizationInterceptor.java:310) 13:30:29,029 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) 13:30:29,035 ERROR [STDERR] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:193) 13:30:29,037 ERROR [STDERR] at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:107) 13:30:29,039 ERROR [STDERR] at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) 13:30:29,041 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96) 13:30:29,042 ERROR [STDERR] ... 31 more 13:30:29,069 WARN [LocalTxConnectionManager$LocalConnectionEventListener] prepare called on a local tx. You are not getting the semantics you expect! Does the CMP 2.0 in jboss retrieve the entire record to modify one field??? Well if anyone has any ideas I would be greatly appreciative Thanks, Alex Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] 3.0 a moving target?
David I see what you mean, and I took the example and modified it by changing the jndi name, putting in my user id and password and db url. I get ABPDevPool not bound, which is the jndi name I'm using. I really would like to upgrade from 3.0.0RC to 3.0.0, any light you could shed would be key. Thanks My jboss.xml says: resource-managers resource-manager res-class=org.jboss.ejb.deployment.JDBCResource res-namejdbc/dmfiDB/res-name res-jndi-namejava:/ABPDevPool/res-jndi-name /resource-manager /resource-managers My oracle-service.xml says: ?xml version=1.0 encoding=UTF-8? !-- = -- !-- - - !-- JBoss Server -- !-- - - !-- = -- server !-- -- !-- ConnectionManager setup for Oracle -- !-- Build jmx-api (build/build.sh all) and view for config documentation -- !-- Thanks to Steven -- !-- -- mbean code=org.jboss.resource.connectionmanager.LocalTxConnectionManager name=jboss.jca:service=LocalTxCM,name=OracleDS !--make the rar deploy! hack till better deployment-- dependsjboss.jca:service=RARDeployer/depends depends optional-attribute-name=ManagedConnectionFactoryName !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.RARDeployment name=jboss.jca:service=LocalTxDS,name=OracleDS !--hack-- depends optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployment,n ame=Minerva JDBC LocalTransaction ResourceAdapter/depends !--real attributes-- attribute name=ManagedConnectionFactoryProperties properties config-property config-property-nameConnectionURL/config-property-name config-property-typejava.lang.String/config-property-type config-property-valuejdbc:oracle:thin:@localhost:1521:dev/config-property -value /config-property config-property config-property-nameDriverClass/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueoracle.jdbc.driver.OracleDriver/config-property-valu e /config-property !--It is recommended that you use the JAAS security facilities instead of exposing your security info here-- config-property config-property-nameUserName/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueabpdev/config-property-value /config-property config-property config-property-namePassword/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueabpdev/config-property-value /config-property /properties /attribute attribute name=JndiNameABPDevPool/attribute /mbean /depends depends optional-attribute-name=ManagedConnectionPool !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.JBossManagedConnectionPool name=jboss.jca:service=LocalTxPool,name=OracleDS attribute name=MinSize0/attribute attribute name=MaxSize50/attribute attribute name=BlockingTimeoutMillis5000/attribute attribute name=IdleTimeoutMinutes15/attribute !--criteria indicates if Subject (from security domain) or app supplied parameters (such as from getConnection(user, pw)) are used to distinguish connections in the pool. Choices are ByContainerAndApplication (use both), ByContainer (use Subject), ByApplication (use app supplied params only), ByNothing (all connections are equivalent, usually if adapter supports reauthentication)-- attribute name=CriteriaByContainer/attribute /mbean /depends depends optional-attribute-name=CachedConnectionManagerjboss.jca:service=CachedCo nnectionManager/depends !-- Include a login module configuration named OracleDbRealm. Update your login-conf.xml, here is an example for a ConfiguredIdentityLoginModule: application-policy name = OracleDbRealm authentication login-module code = org.jboss.resource.security.ConfiguredIdentityLoginModule flag = required module-option name = principalyourprincipal/module-option module-option name = userNameyourusername/module-option module-option name = passwordyourpassword/module-option module-option name =
[JBoss-user] jar deployment dependencies
Hi there, I have two jars with a dependency between them: domain.jar depends on sequenceGenerator.jar when i deploy manually in the right order, everything works fine. Deployment on startup of jboss 3.0.0 results in errors. Maybe this is a bug/not yet supported. Regards, Erik Konijnenburg snippets of deployment descriptors and errors below. 2002-06-18 16:53:55,977 ERROR [org.jboss.ejb.EjbModule] Starting failedorg.jboss.deployment.DeploymentException: cannot locate deployment info: file:/C:/jboss/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/SequenceGenerator.jarat org.jboss.ejb.EjbModule.locateContainerByPath(EjbModule.java:1119)at org.jboss.ejb.EjbModule.findContainer(EjbModule.java:278)at org.jboss.ejb.Container.setupEnvironment(Container.java:981)at org.jboss.ejb.Container.start(Container.java:564)at org.jboss.ejb.EntityContainer.start(EntityContainer.java:366)at org.jboss.ejb.Container.invoke(Container.java:793)at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)at $Proxy6.start(Unknown Source)at org.jboss.system.ServiceController.start(ServiceController.java:340)at java.lang.reflect.Method.invoke(Native Method)at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)at $Proxy11.start(Unknown Source)at org.jboss.ejb.EjbModule.startService(EjbModule.java:440)at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)at java.lang.reflect.Method.invoke(Native Method)at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)at $Proxy6.start(Unknown Source)at org.jboss.system.ServiceController.start(ServiceController.java:340)at java.lang.reflect.Method.invoke(Native Method)at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)at $Proxy5.start(Unknown Source)at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:398)at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)at java.lang.reflect.Method.invoke(Native Method)at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)at $Proxy4.deploy(Unknown Source)at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:405)at org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymentScanner.java:586)at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:465)at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:237)at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:162)at java.lang.reflect.Method.invoke(Native Method)at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:894)at $Proxy0.start(Unknown Source)at org.jboss.system.ServiceController.start(ServiceController.java:340)at java.lang.reflect.Method.invoke(Native Method)at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)at $Proxy3.start(Unknown Source)at org.jboss.deployment.SARDeployer.start(SARDeployer.java:243)at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:481)at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:465)at java.lang.reflect.Method.invoke(Native Method)at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:314)at org.jboss.system.server.ServerImpl.start(ServerImpl.java:216)at org.jboss.Main.boot(Main.java:142)at org.jboss.Main$1.run(Main.java:375)at
[JBoss-user] Two Hot Deploy Questions
Using release version 3.0, I have a file, 40-user-service.xml, which contains deployment instructions for a series of MBeans. I declare its dependency on a jar file like so: classpath codebase=deploy archives=allocations.jar/ If I roll out a new version of allocations.jar in my build process, it shuts down all of the dependent MBeans, but it will not restart them. (On the other hand, if I touch 40-user-service.xml, it successfully stops and restarts all of the MBeans) Question #1: Why won't my MBeans restart when a new version of allocations.jar is rolled out? I also have a file called 30-Allocation.ear. It contains a set of EJBs that use the classes in allocations.jar. If I touch or replace the .ear file, it inexplicably attempts to reploy all of my (already started) MBeans, resulting in exceptions like this: 13:11:59,691 INFO [ServiceController] Exception when trying to deploy waiting mbeanmbean name=Allocations:service=AllocationRequestCache code =com.duke.realtime.model.flowinggas.AllocationRequestCacheattribute name=ExpirationMinutes0/attribute/mbean org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: Allocations:service=AllocationRequestCache Everything ends up redeploying correctly, it's just that these ugly exceptions end up all over my log. Question #2: Why would redeploying the .ear file by itself cause a re-deploy of my MBeans, when I have not declared any explicit relationship between my EJB's and my MBeans? Thanks, Corby Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] CMP in JBoss!
I would try the following: define 1 entity bean foo. reference it twice in xml files like this: in ejb-jar.xml !-- define 2 entity beans based on same class -- entity display-nameFoo One/display-name ejb-nameFoo1/ejb-name homecom.FooHome/home remotecom.FooRemote/remote ejb-classcom.Foo/ejb-class /entity entity display-nameFoo Two/display-name ejb-nameFoo2/ejb-name homecom.FooHome/home remotecom.FooRemote/remote ejb-classcom.Foo/ejb-class /entity jbosscmp-jdbc.xml !-- map 2 entity beans to 2 table names -- entity ejb-nameFoo1/ejb-name table-nameFooOne/table-name /entity entity ejb-nameFoo2/ejb-name table-nameFooTwo/table-name /entity Muthumuaran A wrote: Hi : Is there a way to store the state of an EB in more than one relational table using CMP in JBoss. Our entity model requires such a persistence model , is this possible in JBoss-CMP. Thanks in advance. Regards, muthu __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Greg Turner Tiburon Enterprise Systems http://www.tiburon-e-systems.com Box 1171 Tiburon, CA 94920 415-332-3363 Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Two Hot Deploy Questions
I would try deploying MBeans with a sar file, instead. Corby Page wrote: Using release version 3.0, I have a file, 40-user-service.xml, which contains deployment instructions for a series of MBeans. I declare its dependency on a jar file like so: classpath codebase=deploy archives=allocations.jar/ If I roll out a new version of allocations.jar in my build process, it shuts down all of the dependent MBeans, but it will not restart them. (On the other hand, if I touch 40-user-service.xml, it successfully stops and restarts all of the MBeans) Question #1: Why won't my MBeans restart when a new version of allocations.jar is rolled out? I also have a file called 30-Allocation.ear. It contains a set of EJBs that use the classes in allocations.jar. If I touch or replace the .ear file, it inexplicably attempts to reploy all of my (already started) MBeans, resulting in exceptions like this: 13:11:59,691 INFO [ServiceController] Exception when trying to deploy waiting mbeanmbean name=Allocations:service=AllocationRequestCache code =com.duke.realtime.model.flowinggas.AllocationRequestCacheattribute name=ExpirationMinutes0/attribute/mbean org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: Allocations:service=AllocationRequestCache Everything ends up redeploying correctly, it's just that these ugly exceptions end up all over my log. Question #2: Why would redeploying the .ear file by itself cause a re-deploy of my MBeans, when I have not declared any explicit relationship between my EJB's and my MBeans? Thanks, Corby Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Greg Turner Tiburon Enterprise Systems http://www.tiburon-e-systems.com Box 1171 Tiburon, CA 94920 415-332-3363 Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Another security question
I'm pretty new to EJB, but I managed to deploy a set of CMP entity beans to JBoss 3 and access them from a client running outside the server VM. I had to create a SecurityManager instance and define a policy file in my client code before things started working. What I want to know is if I can set things up so that my client doesn't need to create a SecurityManager and define a policy file before it can access the EJBs running in the server. Any help appreciated. Grant __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Another security question
Running a security manager is not neccessary, what errors did it resolve for you? If it was to enable RMI classloading your client classpath is incorrect. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: GL [EMAIL PROTECTED] To: jboss [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 11:54 AM Subject: [JBoss-user] Another security question I'm pretty new to EJB, but I managed to deploy a set of CMP entity beans to JBoss 3 and access them from a client running outside the server VM. I had to create a SecurityManager instance and define a policy file in my client code before things started working. What I want to know is if I can set things up so that my client doesn't need to create a SecurityManager and define a policy file before it can access the EJBs running in the server. Any help appreciated. Grant Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Rmi 2.4 ok, 3.0 not
Well I narrowed things down. My app in 2.4 can connect to an rmi external server (not jboss, just a 1.3 rmi app). But 3.0 it can't. Does anyone know what changed between versions that may lead me in the right direction? Rick Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Another security question
You are right. My classpath was screwed up in my run configuration. I included all the jars from the client directory of the distribution and I was able to remove the SecurityManager. Grant --- Scott M Stark [EMAIL PROTECTED] wrote: Running a security manager is not neccessary, what errors did it resolve for you? If it was to enable RMI classloading your client classpath is incorrect. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: GL [EMAIL PROTECTED] To: jboss [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 11:54 AM Subject: [JBoss-user] Another security question I'm pretty new to EJB, but I managed to deploy a set of CMP entity beans to JBoss 3 and access them from a client running outside the server VM. I had to create a SecurityManager instance and define a policy file in my client code before things started working. What I want to know is if I can set things up so that my client doesn't need to create a SecurityManager and define a policy file before it can access the EJBs running in the server. Any help appreciated. Grant Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] XATxConnectionManager with Oracle?
Hi Igor- Could you tell me which files were added/modified in the patch, because we're having some real problems getting the cvs version to run, and we really need the xa transactions? Thanks - Original Message - From: Igor Fedorenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 17, 2002 3:51 PM Subject: Re: [JBoss-user] XATxConnectionManager with Oracle? David, I checked Branch_3_0 and it seemed to work. I completely agree that XidFactory is more elegant and flexible solution then hardcoded change to XidImpl. One suggestion though -- I would add comment about XidFactory mbean and its Pad attribute into sample oracle-xa-services.xml, otherwise it is not obvious how to configure this thing and invalid transaction id exception thrown during conn.close() does not add clarity ;-) David Jencks wrote: Many many thanks. I checked in the config file and applied the XAManagedConnection patch. Instead of applying the changes to Xid handling I changed Xid creation to be done through a factory mbean. You can configure the factory with the pad boolean property to specify if the xid's are of maximum size. In jboss 3, this mbean config is in the main jboss-service.xml file. In 3.1 it will be in a separate tm-service.xml file. Can you please check whether or not my reinterpretation of the patches still works? If so I will clean up the XidFactory interface a bit and port the changes to 3.1 as well. Thanks! david jencks On 2002.06.14 17:03:56 -0400 Igor Fedorenko wrote: Attached, please fine a patch which fixes problems with Oracle XA driver I have described earlier and example configuration file. The patch is against JBoss_3_0_0 cvs tag (branch?). Hope this helps. PS: sorry for html posting -Original Message- From: Igor Fedorenko [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 4:06 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] XATxConnectionManager with Oracle? Thanks for a helpful hint, David. As you correctly guessed my test ssb was leaking sql connections. I'll post my patch and config files here shortly. -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 2:01 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] XATxConnectionManager with Oracle? Thanks for your work on this. Please post the results when you are satisfied. IMO the entire xa wrapper needs replacing which I unfortunately won't have time for soon. I'm not sure if associateConnection can be implemented easily. You can avoid it being called if you always close connection handles before calling other ejb methods (through home or remote interfaces) (and do not hold connections over method boundaries). So, try this: Connection c = myds.getConnection(); //do something c.close() myotherRemoteInterface.doSomethingElse(); c = myds.getConnection(); //do the rest of your work c.close(); david jencks On 2002.06.14 13:35:16 -0400 Igor Fedorenko wrote: I spent last two days trying to make this work and it looks like there are number of issues with both oracle xa datasource and jboss itself. I am getting close to have this configuration work (it's oracle 8.1.7.3 in my case but this should not make big difference). Problems that I've seen/fixed so far 1. Oracle xa driver returns difference XAResource for each call to XAConnection.getXAResource (see specs jdbc 2.0, section 7.2.2 why it should not). This problem causes xaRes not enlisted. Fixed XAManagedConnection to cache XAResource, this fix should not break anything else. 2. Although oracle xa driver accepts non-oracle Xid object, it seems to require that both getGlobalTransactionId and getBranchQualifier always return byte[64], otherwise it throws invalid transaction id during XAResource.end. Fixed XidImpl to return such arrays, not sure if it will work with all resource managers. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=iso-8859-1 META NAME=Generator CONTENT=MS Exchange Server version 5.5.2654.45 TITLERE: [JBoss-user] XATxConnectionManager with Oracle?/TITLE /HEAD BODY PFONT SIZE=2Attached, please fine a patch which fixes problems with Oracle XA driver I have described earlier and example configuration file. The patch is against JBoss_3_0_0 cvs tag (branch?). Hope this helps./FONT/P PFONT SIZE=2PS: sorry for html posting/FONT /P PFONT SIZE=2-Original Message-/FONT BRFONT SIZE=2From: Igor Fedorenko [A HREF=mailto:[EMAIL PROTECTED];mailto:ifedorenko@thinkdynamics .com/A]/FONT BRFONT SIZE=2Sent: Friday, June 14, 2002 4:06 PM/FONT BRFONT SIZE=2To: '[EMAIL PROTECTED]'/FONT BRFONT SIZE=2Subject: RE: [JBoss-user] XATxConnectionManager with Oracle?/FONT /P BR PFONT SIZE=2Thanks for a helpful hint, David. As you correctly guessed my test ssb was
Re: [JBoss-user] 3.0 a moving target?
I don't think you started with the oracle-service.xml from docs/examples/jca, since yours references the minerva jdbc wrapper which is no longer present. optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployment,n ame=Minerva JDBC LocalTransaction ResourceAdapter/depends is wrong. There are other changes as well, please get an updated starting point. david jencks On 2002.06.18 13:39:20 -0400 Eric Kaplan wrote: David I see what you mean, and I took the example and modified it by changing the jndi name, putting in my user id and password and db url. I get ABPDevPool not bound, which is the jndi name I'm using. I really would like to upgrade from 3.0.0RC to 3.0.0, any light you could shed would be key. Thanks My jboss.xml says: resource-managers resource-manager res-class=org.jboss.ejb.deployment.JDBCResource res-namejdbc/dmfiDB/res-name res-jndi-namejava:/ABPDevPool/res-jndi-name /resource-manager /resource-managers My oracle-service.xml says: ?xml version=1.0 encoding=UTF-8? !-- = -- !-- - - !-- JBoss Server -- !-- - - !-- = -- server !-- -- !-- ConnectionManager setup for Oracle -- !-- Build jmx-api (build/build.sh all) and view for config documentation -- !-- Thanks to Steven -- !-- -- mbean code=org.jboss.resource.connectionmanager.LocalTxConnectionManager name=jboss.jca:service=LocalTxCM,name=OracleDS !--make the rar deploy! hack till better deployment-- dependsjboss.jca:service=RARDeployer/depends depends optional-attribute-name=ManagedConnectionFactoryName !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.RARDeployment name=jboss.jca:service=LocalTxDS,name=OracleDS !--hack-- depends optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployment,n ame=Minerva JDBC LocalTransaction ResourceAdapter/depends !--real attributes-- attribute name=ManagedConnectionFactoryProperties properties config-property config-property-nameConnectionURL/config-property-name config-property-typejava.lang.String/config-property-type config-property-valuejdbc:oracle:thin:@localhost:1521:dev/config-property -value /config-property config-property config-property-nameDriverClass/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueoracle.jdbc.driver.OracleDriver/config-property-valu e /config-property !--It is recommended that you use the JAAS security facilities instead of exposing your security info here-- config-property config-property-nameUserName/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueabpdev/config-property-value /config-property config-property config-property-namePassword/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueabpdev/config-property-value /config-property /properties /attribute attribute name=JndiNameABPDevPool/attribute /mbean /depends depends optional-attribute-name=ManagedConnectionPool !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.JBossManagedConnectionPool name=jboss.jca:service=LocalTxPool,name=OracleDS attribute name=MinSize0/attribute attribute name=MaxSize50/attribute attribute name=BlockingTimeoutMillis5000/attribute attribute name=IdleTimeoutMinutes15/attribute !--criteria indicates if Subject (from security domain) or app supplied parameters (such as from getConnection(user, pw)) are used to distinguish connections in the pool. Choices are ByContainerAndApplication (use both), ByContainer (use Subject), ByApplication (use app supplied params only), ByNothing (all connections are equivalent, usually if adapter supports reauthentication)-- attribute name=CriteriaByContainer/attribute /mbean /depends depends optional-attribute-name=CachedConnectionManagerjboss.jca:service=CachedCo nnectionManager/depends !-- Include a login module
Re: [JBoss-user] Two Hot Deploy Questions
Any chance you can provide a simple example I can look at? For the first problem you should be able to leave out the classpath... element, what happens if you do and redeploy? MBeans wait for their classes, maybe the 2 dependency mechanisms are conflicting. No idea about the other problem. david jencks On 2002.06.18 14:16:37 -0400 Corby Page wrote: Using release version 3.0, I have a file, 40-user-service.xml, which contains deployment instructions for a series of MBeans. I declare its dependency on a jar file like so: classpath codebase=deploy archives=allocations.jar/ If I roll out a new version of allocations.jar in my build process, it shuts down all of the dependent MBeans, but it will not restart them. (On the other hand, if I touch 40-user-service.xml, it successfully stops and restarts all of the MBeans) Question #1: Why won't my MBeans restart when a new version of allocations.jar is rolled out? I also have a file called 30-Allocation.ear. It contains a set of EJBs that use the classes in allocations.jar. If I touch or replace the .ear file, it inexplicably attempts to reploy all of my (already started) MBeans, resulting in exceptions like this: 13:11:59,691 INFO [ServiceController] Exception when trying to deploy waiting mbeanmbean name=Allocations:service=AllocationRequestCache code =com.duke.realtime.model.flowinggas.AllocationRequestCacheattribute name=ExpirationMinutes0/attribute/mbean org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: Allocations:service=AllocationRequestCache Everything ends up redeploying correctly, it's just that these ugly exceptions end up all over my log. Question #2: Why would redeploying the .ear file by itself cause a re-deploy of my MBeans, when I have not declared any explicit relationship between my EJB's and my MBeans? Thanks, Corby Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Question about B2B and ejb-ref
Hello! On the project I'm working on, we have several EJBs that constitute the main application (core from now one). We also have other EJBs that contain business logic (add-ons from now on). We are using JBoss2.4.6_Tomcat-4.0.3. One of the EJBs on the core has code to dinamically call EJBs on the add-ons. The core EJB reads from a XML file the name of the add-on class, the method and necessary parameters and calls it. The purpose of the application includes adding new add-on EJBs and call them just by adding entries to the configuration XML file (that is not deployed, it resides on the $JBOSS_DIS/conf/project-name directory). Now we have a problem. We are packing the core EJBs and add-on EJBs on the same .ear. We want to break up this in to applications and deploy them separatly. So that more add-on EJBs can be deployed without having to redeploy the core. But we are facing a problem... The descriptor of the core EJB that makes the dynamic invocations seems to need the ejb-ref tag for each one of the add-on EJBs. So, adding a new EJB to the add-on group would always force us to redeploy the core module with the new descriptor. Is this really necessary? Is there any way we can deploy core with no ejb-refs and make core know about the new EJBs as we deploy them? I thank you for reading my question. Hope to hear from you. Duarte Loreto Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] XATxConnectionManager with Oracle?
rm server/src/main/org/jboss/tm/TransactionManagerServiceMBean.java rm server/src/main/org/jboss/jms/asf/ServerSessionPoolLoaderMBean.java Mconnector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnection.java M server/build.xml M server/src/etc/conf/default/jboss-service.xml M server/src/etc/deploy/jms-service.xml M server/src/main/org/jboss/jms/asf/ServerSessionPoolFactory.java M server/src/main/org/jboss/jms/asf/ServerSessionPoolLoader.java M server/src/main/org/jboss/jms/asf/StdServerSession.java M server/src/main/org/jboss/jms/asf/StdServerSessionPool.java M server/src/main/org/jboss/jms/asf/StdServerSessionPoolFactory.java M server/src/main/org/jboss/tm/GlobalId.java M server/src/main/org/jboss/tm/TransactionImpl.java M server/src/main/org/jboss/tm/TransactionManagerService.java M server/src/main/org/jboss/tm/TxCapsule.java M server/src/main/org/jboss/tm/TxManager.java M server/src/main/org/jboss/tm/XidImpl.java I think thats everything david jencks On 2002.06.18 15:35:21 -0400 Tim wrote: Hi Igor- Could you tell me which files were added/modified in the patch, because we're having some real problems getting the cvs version to run, and we really need the xa transactions? Thanks - Original Message - From: Igor Fedorenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 17, 2002 3:51 PM Subject: Re: [JBoss-user] XATxConnectionManager with Oracle? David, I checked Branch_3_0 and it seemed to work. I completely agree that XidFactory is more elegant and flexible solution then hardcoded change to XidImpl. One suggestion though -- I would add comment about XidFactory mbean and its Pad attribute into sample oracle-xa-services.xml, otherwise it is not obvious how to configure this thing and invalid transaction id exception thrown during conn.close() does not add clarity ;-) David Jencks wrote: Many many thanks. I checked in the config file and applied the XAManagedConnection patch. Instead of applying the changes to Xid handling I changed Xid creation to be done through a factory mbean. You can configure the factory with the pad boolean property to specify if the xid's are of maximum size. In jboss 3, this mbean config is in the main jboss-service.xml file. In 3.1 it will be in a separate tm-service.xml file. Can you please check whether or not my reinterpretation of the patches still works? If so I will clean up the XidFactory interface a bit and port the changes to 3.1 as well. Thanks! david jencks On 2002.06.14 17:03:56 -0400 Igor Fedorenko wrote: Attached, please fine a patch which fixes problems with Oracle XA driver I have described earlier and example configuration file. The patch is against JBoss_3_0_0 cvs tag (branch?). Hope this helps. PS: sorry for html posting -Original Message- From: Igor Fedorenko [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 4:06 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] XATxConnectionManager with Oracle? Thanks for a helpful hint, David. As you correctly guessed my test ssb was leaking sql connections. I'll post my patch and config files here shortly. -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 2:01 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] XATxConnectionManager with Oracle? Thanks for your work on this. Please post the results when you are satisfied. IMO the entire xa wrapper needs replacing which I unfortunately won't have time for soon. I'm not sure if associateConnection can be implemented easily. You can avoid it being called if you always close connection handles before calling other ejb methods (through home or remote interfaces) (and do not hold connections over method boundaries). So, try this: Connection c = myds.getConnection(); //do something c.close() myotherRemoteInterface.doSomethingElse(); c = myds.getConnection(); //do the rest of your work c.close(); david jencks On 2002.06.14 13:35:16 -0400 Igor Fedorenko wrote: I spent last two days trying to make this work and it looks like there are number of issues with both oracle xa datasource and jboss itself. I am getting close to have this configuration work (it's oracle 8.1.7.3 in my case but this should not make big difference). Problems that I've seen/fixed so far 1. Oracle xa driver returns difference XAResource for each call to XAConnection.getXAResource (see specs jdbc 2.0, section 7.2.2 why it should not). This problem causes xaRes not enlisted. Fixed XAManagedConnection to cache XAResource, this fix should not break anything else. 2. Although oracle xa driver accepts non-oracle Xid object, it seems to require that both getGlobalTransactionId and getBranchQualifier always
Re: [JBoss-user] XATxConnectionManager with Oracle?
Tim, Basically, I did two things (see attached diff) 1. In connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnection.java I added caching of XAResource 2. In server/src/main/org/jboss/tm/XidImpl.java I changed getGlobalTransactionId() and getBranchQualifier() to always return 64-byte arrays. Devid reinterpreted this change slightly, he added xid factory which can be configured to create correct xids (I mean, correct from oracle's point of view). You should be able to apply the diff to JBoss_3_0_0 (cvs -z3 co -rJBoss_3_0_0) which I assume corresponds to jboss 3.0. Btw, what are these real problems you are talking about? Are they related to setting oracle xa driver or Branch_3_0 has some other issues? Tim wrote: Hi Igor- Could you tell me which files were added/modified in the patch, because we're having some real problems getting the cvs version to run, and we really need the xa transactions? Thanks - Original Message - From: Igor Fedorenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 17, 2002 3:51 PM Subject: Re: [JBoss-user] XATxConnectionManager with Oracle? David, I checked Branch_3_0 and it seemed to work. I completely agree that XidFactory is more elegant and flexible solution then hardcoded change to XidImpl. One suggestion though -- I would add comment about XidFactory mbean and its Pad attribute into sample oracle-xa-services.xml, otherwise it is not obvious how to configure this thing and invalid transaction id exception thrown during conn.close() does not add clarity ;-) David Jencks wrote: Many many thanks. I checked in the config file and applied the XAManagedConnection patch. Instead of applying the changes to Xid handling I changed Xid creation to be done through a factory mbean. You can configure the factory with the pad boolean property to specify if the xid's are of maximum size. In jboss 3, this mbean config is in the main jboss-service.xml file. In 3.1 it will be in a separate tm-service.xml file. Can you please check whether or not my reinterpretation of the patches still works? If so I will clean up the XidFactory interface a bit and port the changes to 3.1 as well. Thanks! david jencks On 2002.06.14 17:03:56 -0400 Igor Fedorenko wrote: Attached, please fine a patch which fixes problems with Oracle XA driver I have described earlier and example configuration file. The patch is against JBoss_3_0_0 cvs tag (branch?). Hope this helps. PS: sorry for html posting -Original Message- From: Igor Fedorenko [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 4:06 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] XATxConnectionManager with Oracle? Thanks for a helpful hint, David. As you correctly guessed my test ssb was leaking sql connections. I'll post my patch and config files here shortly. -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 2:01 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] XATxConnectionManager with Oracle? Thanks for your work on this. Please post the results when you are satisfied. IMO the entire xa wrapper needs replacing which I unfortunately won't have time for soon. I'm not sure if associateConnection can be implemented easily. You can avoid it being called if you always close connection handles before calling other ejb methods (through home or remote interfaces) (and do not hold connections over method boundaries). So, try this: Connection c = myds.getConnection(); //do something c.close() myotherRemoteInterface.doSomethingElse(); c = myds.getConnection(); //do the rest of your work c.close(); david jencks On 2002.06.14 13:35:16 -0400 Igor Fedorenko wrote: I spent last two days trying to make this work and it looks like there are number of issues with both oracle xa datasource and jboss itself. I am getting close to have this configuration work (it's oracle 8.1.7.3 in my case but this should not make big difference). Problems that I've seen/fixed so far 1. Oracle xa driver returns difference XAResource for each call to XAConnection.getXAResource (see specs jdbc 2.0, section 7.2.2 why it should not). This problem causes xaRes not enlisted. Fixed XAManagedConnection to cache XAResource, this fix should not break anything else. 2. Although oracle xa driver accepts non-oracle Xid object, it seems to require that both getGlobalTransactionId and getBranchQualifier always return byte[64], otherwise it throws invalid transaction id during XAResource.end. Fixed XidImpl to return such arrays, not sure if it will work with all resource managers. !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=iso-8859-1 META NAME=Generator CONTENT=MS Exchange Server version 5.5.2654.45 TITLERE: [JBoss-user] XATxConnectionManager with Oracle?/TITLE /HEAD BODY PFONT SIZE=2Attached, please fine a patch which fixes problems with
RE: [JBoss-user] 3.0 a moving target?
David As you had originally suggested, I got the jboss-all nightly snapshot from the jboss Source Code and CVS page. The oracle-service.xml I got was from jboss-all/connector/src/etc/example-config, though below you suggest a slightly different directory. The problem I'm having here is I can't figure out the right download. Where would docs/examples/jca be, I feel like I've searched everywhere. Sorry about this. Regards Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks Sent: Tuesday, June 18, 2002 3:49 PM To: Eric Kaplan Cc: Jboss-User Subject: Re: [JBoss-user] 3.0 a moving target? I don't think you started with the oracle-service.xml from docs/examples/jca, since yours references the minerva jdbc wrapper which is no longer present. optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployment,n ame=Minerva JDBC LocalTransaction ResourceAdapter/depends is wrong. There are other changes as well, please get an updated starting point. david jencks On 2002.06.18 13:39:20 -0400 Eric Kaplan wrote: David I see what you mean, and I took the example and modified it by changing the jndi name, putting in my user id and password and db url. I get ABPDevPool not bound, which is the jndi name I'm using. I really would like to upgrade from 3.0.0RC to 3.0.0, any light you could shed would be key. Thanks My jboss.xml says: resource-managers resource-manager res-class=org.jboss.ejb.deployment.JDBCResource res-namejdbc/dmfiDB/res-name res-jndi-namejava:/ABPDevPool/res-jndi-name /resource-manager /resource-managers My oracle-service.xml says: ?xml version=1.0 encoding=UTF-8? !-- = -- !-- - - !-- JBoss Server -- !-- - - !-- = -- server !-- -- !-- ConnectionManager setup for Oracle -- !-- Build jmx-api (build/build.sh all) and view for config documentation -- !-- Thanks to Steven -- !-- -- mbean code=org.jboss.resource.connectionmanager.LocalTxConnectionManager name=jboss.jca:service=LocalTxCM,name=OracleDS !--make the rar deploy! hack till better deployment-- dependsjboss.jca:service=RARDeployer/depends depends optional-attribute-name=ManagedConnectionFactoryName !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.RARDeployment name=jboss.jca:service=LocalTxDS,name=OracleDS !--hack-- depends optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployment,n ame=Minerva JDBC LocalTransaction ResourceAdapter/depends !--real attributes-- attribute name=ManagedConnectionFactoryProperties properties config-property config-property-nameConnectionURL/config-property-name config-property-typejava.lang.String/config-property-type config-property-valuejdbc:oracle:thin:@localhost:1521:dev/config-property -value /config-property config-property config-property-nameDriverClass/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueoracle.jdbc.driver.OracleDriver/config-property-valu e /config-property !--It is recommended that you use the JAAS security facilities instead of exposing your security info here-- config-property config-property-nameUserName/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueabpdev/config-property-value /config-property config-property config-property-namePassword/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueabpdev/config-property-value /config-property /properties /attribute attribute name=JndiNameABPDevPool/attribute /mbean /depends depends optional-attribute-name=ManagedConnectionPool !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.JBossManagedConnectionPool name=jboss.jca:service=LocalTxPool,name=OracleDS attribute name=MinSize0/attribute attribute name=MaxSize50/attribute attribute name=BlockingTimeoutMillis5000/attribute attribute name=IdleTimeoutMinutes15/attribute !--criteria indicates if Subject (from security domain) or app supplied parameters (such as from getConnection(user, pw)) are used to distinguish connections in the pool. Choices are ByContainerAndApplication (use both),
[JBoss-user] CMP and JBoss 3
Got an EJB 2.0 Entity bean using CMP 2.0. Server is JBoss 3 and Oracle 8i (8.1.7). Everything deploys fine. When I do a findByPrimaryKey()(see descriptions below) I get the following error: javax.ejb.FinderException: Find failed: java.sql.SQLException: ORA-00904: invalid column name By setting debugtrue/debug in jbosscmp-jdbc.xml, I see that the SQL being run is: [org.jboss.ejb.plugins.cmp.jdbc.JDBCFindByPrimaryKeyQuery.Permit.findByPrimaryKey] Executing SQL: SELECT permitNbr FROM PERMIT WHERE permitNbr=? Of course, permitNbr represents the Primary Key. I've set a mapping in jbosscmp-jdbc.xml for that field. The actual Database column name is PERMIT_NBR. Here is my jbosscmp-jdbc.xml: jbosscmp-jdbc enterprise-beans entity ejb-namePermit/ejb-name table-namePERMIT/table-name datasourcejava:/OracleDS/datasource type-mappingOracle8/type-mapping debugtrue/debug create-tablefalse/create-table remove-tablefalse/remove-table read-onlyfalse/read-only time-out300/time-out select-for-updatefalse/select-for-update pk-constrainttrue/pk-constraint read-aheadtrue/read-ahead cmp-field field-namepermitNbr/field-name column-namePERMIT_NBR/column-name /cmp-field /entity /enterprise-beans /jbosscmp-jdbc From looking at the SQL Statement being run, it appears that the cmp-field mapping is being ignored. I'm pretty sure that JBoss is reading the file, as I've set debug = true, which is not the default, and its spitting out debug info. Any input would be greatly appreciated. Here's some more info: [ejb-jar.xml exerpt ] entity display-namePermit/display-name ejb-namePermit/ejb-name local-homecom.cdplusonline.permitting.LocalPermitHome/local-home localcom.cdplusonline.permitting.LocalPermit/local ejb-classcom.cdplusonline.permitting.PermitBean/ejb-class persistence-typeContainer/persistence-type prim-key-classjava.math.BigDecimal/prim-key-class reentrantFalse/reentrant abstract-schema-namePermit/abstract-schema-name cmp-field field-namepermitNbr/field-name /cmp-field cmp-field field-namealtKey/field-name /cmp-field cmp-field field-nametype/field-name /cmp-field cmp-field field-namestatus/field-name /cmp-field cmp-field field-namedba/field-name /cmp-field primkey-fieldpermitNbr/primkey-field /entity -- Bryce Fischer [EMAIL PROTECTED] Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 3.0 a moving target?
Both directories have the same contents, the one you found is copied to the one I mention in the build. I just checked cvs and both HEAD and Branch_3_0 have a different version of oracle-service.xml. I suspect the nightly snapshot is updated once every few months;-) Try getting it directly from cvs. Thanks david jencks On 2002.06.18 16:22:48 -0400 Eric Kaplan wrote: David As you had originally suggested, I got the jboss-all nightly snapshot from the jboss Source Code and CVS page. The oracle-service.xml I got was from jboss-all/connector/src/etc/example-config, though below you suggest a slightly different directory. The problem I'm having here is I can't figure out the right download. Where would docs/examples/jca be, I feel like I've searched everywhere. Sorry about this. Regards Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks Sent: Tuesday, June 18, 2002 3:49 PM To: Eric Kaplan Cc: Jboss-User Subject: Re: [JBoss-user] 3.0 a moving target? I don't think you started with the oracle-service.xml from docs/examples/jca, since yours references the minerva jdbc wrapper which is no longer present. optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployment,n ame=Minerva JDBC LocalTransaction ResourceAdapter/depends is wrong. There are other changes as well, please get an updated starting point. david jencks On 2002.06.18 13:39:20 -0400 Eric Kaplan wrote: David I see what you mean, and I took the example and modified it by changing the jndi name, putting in my user id and password and db url. I get ABPDevPool not bound, which is the jndi name I'm using. I really would like to upgrade from 3.0.0RC to 3.0.0, any light you could shed would be key. Thanks My jboss.xml says: resource-managers resource-manager res-class=org.jboss.ejb.deployment.JDBCResource res-namejdbc/dmfiDB/res-name res-jndi-namejava:/ABPDevPool/res-jndi-name /resource-manager /resource-managers My oracle-service.xml says: ?xml version=1.0 encoding=UTF-8? !-- = -- !-- - - !-- JBoss Server -- !-- - - !-- = -- server !-- -- !-- ConnectionManager setup for Oracle -- !-- Build jmx-api (build/build.sh all) and view for config documentation -- !-- Thanks to Steven -- !-- -- mbean code=org.jboss.resource.connectionmanager.LocalTxConnectionManager name=jboss.jca:service=LocalTxCM,name=OracleDS !--make the rar deploy! hack till better deployment-- dependsjboss.jca:service=RARDeployer/depends depends optional-attribute-name=ManagedConnectionFactoryName !--embedded mbean-- mbean code=org.jboss.resource.connectionmanager.RARDeployment name=jboss.jca:service=LocalTxDS,name=OracleDS !--hack-- depends optional-attribute-name=OldRarDeploymentjboss.jca:service=RARDeployment,n ame=Minerva JDBC LocalTransaction ResourceAdapter/depends !--real attributes-- attribute name=ManagedConnectionFactoryProperties properties config-property config-property-nameConnectionURL/config-property-name config-property-typejava.lang.String/config-property-type config-property-valuejdbc:oracle:thin:@localhost:1521:dev/config-property -value /config-property config-property config-property-nameDriverClass/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueoracle.jdbc.driver.OracleDriver/config-property-valu e /config-property !--It is recommended that you use the JAAS security facilities instead of exposing your security info here-- config-property config-property-nameUserName/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueabpdev/config-property-value /config-property config-property config-property-namePassword/config-property-name config-property-typejava.lang.String/config-property-type config-property-valueabpdev/config-property-value /config-property /properties /attribute attribute name=JndiNameABPDevPool/attribute /mbean /depends depends optional-attribute-name=ManagedConnectionPool !--embedded mbean-- mbean
Re: [JBoss-user] Question about B2B and ejb-ref
Ejb-ref is bound to java:comp/env so getting an ejbHome is ctx.lookup(java:comp/env/ + name); where name is enclosed in ejb-ref-name tag. But you can retrieve an ejbHome from global jndi without prefixing with java:comp/env/ in your caller : home = ctx.lookup(name); for the called in jboss.xml session ... jndi-namenamejndi-name ... /session therefore you don't have to redeploy you caller each time. - Original Message - From: Duarte Nuno Loreto [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 4:10 PM Subject: [JBoss-user] Question about B2B and ejb-ref Hello! On the project I'm working on, we have several EJBs that constitute the main application (core from now one). We also have other EJBs that contain business logic (add-ons from now on). We are using JBoss2.4.6_Tomcat-4.0.3. One of the EJBs on the core has code to dinamically call EJBs on the add-ons. The core EJB reads from a XML file the name of the add-on class, the method and necessary parameters and calls it. The purpose of the application includes adding new add-on EJBs and call them just by adding entries to the configuration XML file (that is not deployed, it resides on the $JBOSS_DIS/conf/project-name directory). Now we have a problem. We are packing the core EJBs and add-on EJBs on the same .ear. We want to break up this in to applications and deploy them separatly. So that more add-on EJBs can be deployed without having to redeploy the core. But we are facing a problem... The descriptor of the core EJB that makes the dynamic invocations seems to need the ejb-ref tag for each one of the add-on EJBs. So, adding a new EJB to the add-on group would always force us to redeploy the core module with the new descriptor. Is this really necessary? Is there any way we can deploy core with no ejb-refs and make core know about the new EJBs as we deploy them? I thank you for reading my question. Hope to hear from you. Duarte Loreto -- -- Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss3.0.0 ClassNotFoundException
jboss-jca.jar. What are you doing to get this exception propagated back to a client? david jencks On 2002.06.18 17:17:16 -0400 Eric Kaplan wrote: I've verified that I replaced all the old jboss client libraries with the new ones from jboss/client. When I run I get the following ClassNotFoundException, and indeed I can't seem to locate org.jboss.resource.ResourceException. Does anyone know what jar this is in? Thanks Eric java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.lang.ClassNotFoundException: org.jboss.resource.ResourceException (no security manager: RMI class loader disabled) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProx y.java:128) Eric Kaplan Armanta, Inc. 55 Madison Ave. Morristown, NJ 07960 Phone: (973) 326-9600 Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] servlet context error in Jetty
It really doesn't look like one of our messages - could it be one of yours ? It looks like a piece of user code, but the warning is rather rambling. Try having a look at your code. Jules Gray Jones wrote: I'm having problems trying to deploy a .war file in 3.0/Jetty. Has anybody seen this before and know what I can do to resolve it. I don't understand what its complaining about. Thanks, Gray Jones 09:13:16,663 WARN [Jetty] javax.servlet.ServletException: Error configuring the loader: java.io.IOException: Choked while trying to find out servlet context from container, original exception: java.lang.Exception: Was expecting to find jndi:/localhost/ in string from getServletContext.getResource(/) Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Transactions question
On Mon, Jun 17, 2002 at 11:07:37PM -0400, David Jencks wrote: You are using a local transaction adapter, probably a non xa database, in a transaction with more than one resource adapter (jms message + database work most likely). This does not give you ACID transactions. If something crashes in the middle of commit you will have unrecoverable state. To avoid this use xa resource adapters only (probably an xa driver to your db). Does someone know if such driver exists for Postgresql database? Mysql? david jencks On 2002.06.17 20:02:33 -0400 Daniel Santos wrote: Hello all! I have the following scenario : - have an MDB that dequeues messages and calls a session bean through a remote interface - have a session bean that creates an entity bean that has relations to other existing entities. The session bean is exposed trough a remote interface to the MDB. The session bean creates and manipulates the entities through local interfaces. On each call to the session bean from the MDB I get the following message : WARN [LocalTxConnectionManager$LocalConnectionEventListener] prepare called on a local tx. You are not getting the semantics you expect! Forgive me for my ignorance, but can anyone tell me what I'm doing wrong ? I'm running Jboss 3.0.0 on a win 2000 machine with sun's JDK 1.3.1 Many thanks Daniel Santos Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- MVH Marius Kotsbak Boost communications AS Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] jboss3.0.0 ClassNotFoundException
Nothing much. Just calling a session bean that talks to another session bean that calls a finder on a bmp ejb and returns a collection of Maps. Perhaps all is not right with my revised oracle-service.xml? At least I'm not getting ABPDevPool not found. thanks for your help david. it's people like you that make open source work. Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks Sent: Tuesday, June 18, 2002 5:38 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] jboss3.0.0 ClassNotFoundException jboss-jca.jar. What are you doing to get this exception propagated back to a client? david jencks On 2002.06.18 17:17:16 -0400 Eric Kaplan wrote: I've verified that I replaced all the old jboss client libraries with the new ones from jboss/client. When I run I get the following ClassNotFoundException, and indeed I can't seem to locate org.jboss.resource.ResourceException. Does anyone know what jar this is in? Thanks Eric java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.lang.ClassNotFoundException: org.jboss.resource.ResourceException (no security manager: RMI class loader disabled) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProx y.java:128) Eric Kaplan Armanta, Inc. 55 Madison Ave. Morristown, NJ 07960 Phone: (973) 326-9600 Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] XATxConnectionManager with Oracle?
Thanks for that. Basically I checked out the 3_0_0 branch, and built it, and couldn't even get my non xa application (which works on 3.0.0 final release) working - I was getting NoSuchMethodErrors from the ear deployer. I guess I was doing something wrong and it was late and I was in a rush so I'd thought it might just be easier to patch the files directly onto our working codebase, hence the question. I shall try again tomorrow with a clearer head and see if I get the same effect - Original Message - From: Igor Fedorenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 18, 2002 9:18 PM Subject: Re: [JBoss-user] XATxConnectionManager with Oracle? Tim, Basically, I did two things (see attached diff) 1. In connector/src/main/org/jboss/resource/adapter/jdbc/xa/XAManagedConnection.ja va I added caching of XAResource 2. In server/src/main/org/jboss/tm/XidImpl.java I changed getGlobalTransactionId() and getBranchQualifier() to always return 64-byte arrays. Devid reinterpreted this change slightly, he added xid factory which can be configured to create correct xids (I mean, correct from oracle's point of view). You should be able to apply the diff to JBoss_3_0_0 (cvs -z3 co -rJBoss_3_0_0) which I assume corresponds to jboss 3.0. Btw, what are these real problems you are talking about? Are they related to setting oracle xa driver or Branch_3_0 has some other issues? Tim wrote: Hi Igor- Could you tell me which files were added/modified in the patch, because we're having some real problems getting the cvs version to run, and we really need the xa transactions? Thanks - Original Message - From: Igor Fedorenko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 17, 2002 3:51 PM Subject: Re: [JBoss-user] XATxConnectionManager with Oracle? David, I checked Branch_3_0 and it seemed to work. I completely agree that XidFactory is more elegant and flexible solution then hardcoded change to XidImpl. One suggestion though -- I would add comment about XidFactory mbean and its Pad attribute into sample oracle-xa-services.xml, otherwise it is not obvious how to configure this thing and invalid transaction id exception thrown during conn.close() does not add clarity ;-) David Jencks wrote: Many many thanks. I checked in the config file and applied the XAManagedConnection patch. Instead of applying the changes to Xid handling I changed Xid creation to be done through a factory mbean. You can configure the factory with the pad boolean property to specify if the xid's are of maximum size. In jboss 3, this mbean config is in the main jboss-service.xml file. In 3.1 it will be in a separate tm-service.xml file. Can you please check whether or not my reinterpretation of the patches still works? If so I will clean up the XidFactory interface a bit and port the changes to 3.1 as well. Thanks! david jencks On 2002.06.14 17:03:56 -0400 Igor Fedorenko wrote: Attached, please fine a patch which fixes problems with Oracle XA driver I have described earlier and example configuration file. The patch is against JBoss_3_0_0 cvs tag (branch?). Hope this helps. PS: sorry for html posting -Original Message- From: Igor Fedorenko [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 4:06 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] XATxConnectionManager with Oracle? Thanks for a helpful hint, David. As you correctly guessed my test ssb was leaking sql connections. I'll post my patch and config files here shortly. -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Friday, June 14, 2002 2:01 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] XATxConnectionManager with Oracle? Thanks for your work on this. Please post the results when you are satisfied. IMO the entire xa wrapper needs replacing which I unfortunately won't have time for soon. I'm not sure if associateConnection can be implemented easily. You can avoid it being called if you always close connection handles before calling other ejb methods (through home or remote interfaces) (and do not hold connections over method boundaries). So, try this: Connection c = myds.getConnection(); //do something c.close() myotherRemoteInterface.doSomethingElse(); c = myds.getConnection(); //do the rest of your work c.close(); david jencks On 2002.06.14 13:35:16 -0400 Igor Fedorenko wrote: I spent last two days trying to make this work and it looks like there are number of issues with both oracle xa datasource and jboss itself. I am getting close to have this configuration work (it's oracle 8.1.7.3 in my case but this should not make big difference). Problems that I've seen/fixed so far 1. Oracle xa driver returns difference XAResource for each call to XAConnection.getXAResource (see specs jdbc 2.0, section
RE: [JBoss-user] Deployment and testing
Title: RE: [JBoss-user] Deployment and testing I think you're right. In JBoss 3.0 you call a method on the deployer MBean. There was a message about making an ant target for that a while back in the mailing list. I don't recall the details - might check the mailing list archive at http://www.mail-archive.com/jboss-user%40lists.sourceforge.net/ JD -Original Message- From: Jim Crossley [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 18, 2002 2:54 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Deployment and testing Hi jboss-users. As cool as putting a file in a directory to deploy it is, it doesn't work well for unit testing. I find it very convenient to have a test target in my build file like so: target name=test depends=deploy... But that doesn't work well when the deploy target merely copies a jar file to a jboss-watched directory. Because it takes a few seconds for jboss to actually deploy the file, the test target commences before the file has been deployed. With jboss 2.4, I solved this problem using the very cool org.jboss.jmx.client.Deployer (shown below). This guaranteed that my deployed file was actually deployed by the time the test target ran, because the class' main method didn't return until the app was successfully deployed. It made my build/test/debug cycle a breeze! But alas, the magical class has disappeared in jboss 3.0. :-( It seems to have been renamed org.jboss.jmx.service.Deployer and it doesn't seem to be included in the binary distribution. I think it's now part of the testsuite. I really think the new Template Project would benefit from a synchronous deploy target. It sure makes testing easier. Can we include a Deployer class in the distro? Or am I missing a more obvious JMX-ish way of accomplishing the same thing? Here's what I do in 2.4: property name=deploy.args value=file:${dist.home}/ejb-test.jar/ target name=deploy depends=jar java classname=org.jboss.jmx.service.Deployer classpath fileset dir=${jboss.lib} includes=*.jar/ /classpath arg line=${deploy.args}/ sysproperty key=java.naming.factory.initial value=org.jnp.interfaces.NamingContextFactory/ sysproperty key=java.naming.provider.url value=localhost:1099/ sysproperty key=java.naming.factory.url.pkgs value=org.jboss.naming:org.jnp.interfaces/ /java /target target name=undeploy antcall target=deploy param name=deploy.args value=-undeploy ${deploy.args}/ /antcall /target Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss3.0.0 ClassNotFoundException
May I make a suggestion? Finding jars that hold the classes is always a big pain. I solved that problem by writing a simple program. Just tell the program what directory to look into and what class you want and it will do the work. Attached is the program. Eric Kaplan wrote: I've verified that I replaced all the old jboss client libraries with the new ones from jboss/client. When I run I get the following ClassNotFoundException, and indeed I can't seem to locate org.jboss.resource.ResourceException. Does anyone know what jar this is in? Thanks Eric java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.lang.ClassNotFoundException: org.jboss.resource.ResourceException (no security manager: RMI class loader disabled) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProx y.java:128) Eric Kaplan Armanta, Inc. 55 Madison Ave. Morristown, NJ 07960 Phone: (973) 326-9600 Name: winmail.dat winmail.datType: application/x-unknown-content-type-dat_auto_file Encoding: base64 -- Greg Turner Tiburon Enterprise Systems http://www.tiburon-e-systems.com Box 1171 Tiburon, CA 94920 415-332-3363 Find.java Description: application/unknown-content-type-java_auto_file
Re: [JBoss-user] jboss3.0.0 ClassNotFoundException
Hmmm... I thought everything was wrapped up enough so no ResourceExceptions could escape. Can you figure out where it is getting thrown? thanks david jencks On 2002.06.18 17:56:15 -0400 Eric Kaplan wrote: Nothing much. Just calling a session bean that talks to another session bean that calls a finder on a bmp ejb and returns a collection of Maps. Perhaps all is not right with my revised oracle-service.xml? At least I'm not getting ABPDevPool not found. thanks for your help david. it's people like you that make open source work. Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Jencks Sent: Tuesday, June 18, 2002 5:38 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] jboss3.0.0 ClassNotFoundException jboss-jca.jar. What are you doing to get this exception propagated back to a client? david jencks On 2002.06.18 17:17:16 -0400 Eric Kaplan wrote: I've verified that I replaced all the old jboss client libraries with the new ones from jboss/client. When I run I get the following ClassNotFoundException, and indeed I can't seem to locate org.jboss.resource.ResourceException. Does anyone know what jar this is in? Thanks Eric java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: java.lang.ClassNotFoundException: org.jboss.resource.ResourceException (no security manager: RMI class loader disabled) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:217) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source) at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProx y.java:128) Eric Kaplan Armanta, Inc. 55 Madison Ave. Morristown, NJ 07960 Phone: (973) 326-9600 Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Deployment and testing
If you are running junit tests I recommend using the code from the jboss testsuite, mostly in JBossTestServices. If you want to deploy and leave it there, I've written a jmx task for ant that you can use to call any mbean method, in particular MainDeployer.deploy. I asked for advice on where to put it and haven't gotten any feedback. I guess I'll put it in 3.1 in with jason's console module unless I hear any different. david jencks On 2002.06.18 17:53:35 -0400 Jim Crossley wrote: Hi jboss-users. As cool as putting a file in a directory to deploy it is, it doesn't work well for unit testing. I find it very convenient to have a test target in my build file like so: target name=test depends=deploy... But that doesn't work well when the deploy target merely copies a jar file to a jboss-watched directory. Because it takes a few seconds for jboss to actually deploy the file, the test target commences before the file has been deployed. With jboss 2.4, I solved this problem using the very cool org.jboss.jmx.client.Deployer (shown below). This guaranteed that my deployed file was actually deployed by the time the test target ran, because the class' main method didn't return until the app was successfully deployed. It made my build/test/debug cycle a breeze! But alas, the magical class has disappeared in jboss 3.0. :-( It seems to have been renamed org.jboss.jmx.service.Deployer and it doesn't seem to be included in the binary distribution. I think it's now part of the testsuite. I really think the new Template Project would benefit from a synchronous deploy target. It sure makes testing easier. Can we include a Deployer class in the distro? Or am I missing a more obvious JMX-ish way of accomplishing the same thing? Here's what I do in 2.4: property name=deploy.args value=file:${dist.home}/ejb-test.jar/ target name=deploy depends=jar java classname=org.jboss.jmx.service.Deployer classpath fileset dir=${jboss.lib} includes=*.jar/ /classpath arg line=${deploy.args}/ sysproperty key=java.naming.factory.initial value=org.jnp.interfaces.NamingContextFactory/ sysproperty key=java.naming.provider.url value=localhost:1099/ sysproperty key=java.naming.factory.url.pkgs value=org.jboss.naming:org.jnp.interfaces/ /java /target target name=undeploy antcall target=deploy param name=deploy.args value=-undeploy ${deploy.args}/ /antcall /target Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Transactions question
On 2002.06.18 17:57:18 -0400 [EMAIL PROTECTED] wrote: On Mon, Jun 17, 2002 at 11:07:37PM -0400, David Jencks wrote: You are using a local transaction adapter, probably a non xa database, in a transaction with more than one resource adapter (jms message + database work most likely). This does not give you ACID transactions. If something crashes in the middle of commit you will have unrecoverable state. To avoid this use xa resource adapters only (probably an xa driver to your db). Does someone know if such driver exists for Postgresql database? Mysql? beware, at least some of these drivers provide an XADataSource wrapper that has no real xa functionality. I think this was mysql that I saw this in. As I recall I haven't looked at Postgres. Firebird and the jca-jdbc driver does have real xa functionality, it is the only free open source db I know of that does. david jencks david jencks On 2002.06.17 20:02:33 -0400 Daniel Santos wrote: Hello all! I have the following scenario : - have an MDB that dequeues messages and calls a session bean through a remote interface - have a session bean that creates an entity bean that has relations to other existing entities. The session bean is exposed trough a remote interface to the MDB. The session bean creates and manipulates the entities through local interfaces. On each call to the session bean from the MDB I get the following message : WARN [LocalTxConnectionManager$LocalConnectionEventListener] prepare called on a local tx. You are not getting the semantics you expect! Forgive me for my ignorance, but can anyone tell me what I'm doing wrong ? I'm running Jboss 3.0.0 on a win 2000 machine with sun's JDK 1.3.1 Many thanks Daniel Santos Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- MVH Marius Kotsbak Boost communications AS Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss-3.0.0 - javax.naming.NoInitialContextException
When I run the client for the template jboss project (found at:) I get the following output (and error). {ryan}-{deathstar}-{/home/ryan/Projects/hacking/template/build/bin}-$ ./run-client.sh /usr/java/j2sdk1.4.0/jre/bin/java -classpath ..long classpath test.client.TestClient javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280) at javax.naming.InitialContext.lookup(InitialContext.java:347) at test.client.TestClient.main(TestClient.java:21) What is causing this? -- Humans are the unfortunate result of a local maximum in the fitness landscape. www.ryanmarsh.com Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: Two Hot Deploy Questions
David Jencks wrote: Any chance you can provide a simple example I can look at? You bet. I have stripped down the files and I will post them as an attachment in a Sourceforge bug report. The two files are 40-user-service.xml and allocations.jar. Touch the xml file, and the MBean will stop and restart. Touch the .jar file, and the MBean will stop, but never restart. For the first problem you should be able to leave out the classpath... element, what happens if you do and redeploy? MBeans wait for their classes, maybe the 2 dependency mechanisms are conflicting. I have commented out the classpath declaration, but the behavior is unchanged. I have replicated this behavior on the 3.0.0 default server. Thanks, Corby Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: [JBoss-user] Any experience with TAO(a corba orb)?
Hi, My problem is: I use rmic to generate IDL from my EJB, in the generated IDL files, there exist syntax just like abstract interface which is not supported by tao_idl now. Do you have any idea to evade the problem? My EJB is very simple: package tstejb; import java.rmi.*; import javax.ejb.*; import java.util.Vector; public interface WellDayDataRemote extends EJBObject { public Vector getData(int type, String dydm, String rq1, String rq2) throws RemoteException; } Thank you. Lee Schier, Darius [EMAIL PROTECTED] 2002-06-17 20:56 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject:AW: [JBoss-user] Any experience with TAO(a corba orb)? Hi Lee, we are using TAO together with jboss. We don't have any real EJBs yet (MBeans only), but the communication works fine. You should be able to bootstrap the naming service (dependent on the jboss version you use, it might be a different string). Regards Darius -Ursprüngliche Nachricht- Von: Lee [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 17. Juni 2002 14:20 An: [EMAIL PROTECTED] Betreff: [JBoss-user] Any experience with TAO(a corba orb)? Hi, Does anyone has successful experiences on corba client which use TAO orb comunicate with EJBs? Lee ___ Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. For more information, connect to http://www.F-Secure.com/ ¸§)àʦ¢éݲÜi÷ÞvyØèÊm§ÿí)äç¤r¿±òA¢Ë.±êæj)b b²ÒA¢Ë.±êåËl²«qç讧zØm¶?þX¬¶Ë(º·~àzwþX¬¶ÏåËbú?º,²ë
Re: [JBoss-user] CMP Type Mapping
CPT codes :) (I used to work for McKesson HBOC) Anyway, you should get a copy of my documentation. What you want to do is define a dependent value class for the CPT4Code not a type mapping (type mappings are for basic types). The problem with the current implementation of DVCs is it needs both a getter and setter method, so it may not work for you. If current version of DVC mapping doesn't work for you, I suggest you write a wrapper getter and setter method, which calls toString and sets the real field. -dain Greg Greaves wrote: Hi, I apologize if this got posted twice but I'm not sure I was properly configured the first time. We are using JBoss 3.0 and are having a problem with type mapping. We have added the following block to our standardjbosscmp-jdbc.xml file: mapping java-typeCPT4Code/java-type jdbc-typeVARCHAR/jdbc-type sql-typeTEXT/sql-type /mapping When we look at what gets put in the database for CPT4Code, it's just the serialized version of the object. We were expecting that it would call toString() to properly map the type. Are we missing something? Thanks, -Greg -- Dain Sundstrom Chief Architect JBossCMP JBoss Group, LLC Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:119)
I'm getting this on HEAD and Branch_3_0 when I try to call a method (not a CMP accessor) on a simple CMP bean I have (enclosed) deployed with no problems. The Bean is meant to be a simple example of how to plug a persistent layer into my new pluggable HttpSessionManager for Jetty/JBoss. The trouble is, because of this, it does not work ! Is this a JBoss problem, or is my bean rubbish - If my bean is rubbish could we have a more helpful exception? Cheers, Jules P.S. All dds are generated by xdoclet from the Bean's src. I run xdoclet from Ant thus: ejbdoclet sourcepath=${top.dir}/src destdir=${top.dir}/output/ejb/src ejbspec=2.0 excludedtags=@version,@author classpath=./src:./output/ejb:./lib/jboss-j2ee.jar:./lib/xdoclet.jar:lib/ant.jar:lib/log4j.jar fileset dir=${top.dir}/src include name=**/session/ejb/*Bean.java / /fileset packageSubstitution packages=ejb substituteWith=interfaces/ !-- dataobject/ -- remoteinterface/ localinterface/ homeinterface/ localhomeinterface/ entitypk/ entitycmp/ session/ deploymentdescriptor xmlencoding =UTF-8 destdir=${top.dir}/output/ejb/META-INF / jboss version=3.0 xmlencoding=UTF-8 typemapping=Hypersonic SQL datasource=java:/DefaultDS destdir=${top.dir}/output/ejb/META-INF / /ejbdoclet !-- build ejb classes -- javac srcdir=${top.dir}/src;${top.dir}/output/ejb/src destdir=${top.dir}/output/ejb/ debug=${debug} classpath refid=ejb-classpath / include name=**/session/ejb/*.java / include name=**/session/interfaces/*.java / /javac /target P.P.S. Feel free to abuse me - I know very little about EJBs java.rmi.ServerException: null; CausedByException is: null; nested exception is: javax.ejb.EJBException: null; CausedByException is: null at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:119) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:176) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:129) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:183) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:156) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:482) at org.jboss.ejb.Container.invoke(Container.java:687) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1024) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:100) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:88) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:51) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:48) at org.jboss.proxy.ejb.EntityInterceptor.invoke(EntityInterceptor.java:112) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:82) at $Proxy29.setAttribute(Unknown Source) at org.jboss.jetty.session.StateInterceptor.setAttribute(Manager.java:162) at org.jboss.jetty.session.NotificationInterceptor.setAttribute(Manager.java:219) at org.jboss.jetty.session.StateInterceptor.setAttribute(Manager.java:162) at org.jboss.jetty.session.AttributeCheckingInterceptor.setAttribute(Manager.java:465) at org.jboss.jetty.session.StateAdaptor.setAttribute(StateAdaptor.java:227) at org.jboss.jetty.session.test.Servlet.testSession(Servlet.java:98) at org.jboss.jetty.session.test.Servlet.service(Servlet.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:371) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:613) at org.mortbay.http.HttpContext.handle(HttpContext.java:1387) at org.mortbay.http.HttpContext.handle(HttpContext.java:1326) at org.mortbay.http.HttpServer.service(HttpServer.java:757) at org.jboss.jetty.Jetty.service(Jetty.java:527) at org.mortbay.http.HttpConnection.service(HttpConnection.java:748) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:921) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:763) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:151) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
[JBoss-user] where condition SQL.
Hi How can we achieve an where condition in SQL in container managed persistance Bean. Thanks and regards Tejesh
[JBoss-user] Depends Question
This question pertains to JBoss-3.0.0 I have a sar file which contains libraries for my database and the xml file for the data source config. I have a jar file which contains some EJBs that access the database I have multiple war files that contain servlets that access the EJBs. How do I set it up so that the war files don't get deployed until after the EJB jar file and that the EJB jar file does not get deployed before the sar file? Thanks Greg Turner Tiburon Enterprise Systems http://www.tiburon-e-systems.com Box 1171 Tiburon, CA 94920 415-332-3363 Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] MBean on RemoteMBean Server
Hi Everybody, I am working with JBoss 3.0 Tomcat 4.0. How to access a MBean deployed in a RemoteMBean Server ? I guess it should be done using RMI Connector Client. Please let me know the procedures. Thanks, Shreedhar Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Depends Question
easy way: rename your files 10-dbserver.sar 20-ejbsandsuch.jar 30-mybeautifulwebpages.war single-package way (requires Branch_3_0 from cvs) myapp.ear dbserver.sar ejbsandshuch.jar web.war META-INF/ application.xml jboss-app.xml In jboss-app.xml, put the dbserver.sar reference. jboss-app module servicedbserver.sar/dbserver /module /jboss-app david jencks On 2002.06.19 01:07:57 -0400 Greg Turner wrote: This question pertains to JBoss-3.0.0 I have a sar file which contains libraries for my database and the xml file for the data source config. I have a jar file which contains some EJBs that access the database I have multiple war files that contain servlets that access the EJBs. How do I set it up so that the war files don't get deployed until after the EJB jar file and that the EJB jar file does not get deployed before the sar file? Thanks Greg Turner Tiburon Enterprise Systems http://www.tiburon-e-systems.com Box 1171 Tiburon, CA 94920 415-332-3363 Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Bringing you mounds of caffeinated joy http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Troubleshooting Classloader -- transitive closure issue
Hi all, I'm trying to fix a problem in my code with a missing library, but having a lot of problem understanding exactly which library is missing. The exception that is getting thrown is incorrect. The class is being loaded by a servlet running under Tomcat, so I suppose that Tomcat is using the UCL from 3.0. So that's why I'm posting it here. BASELINE: * Win2KSP2 * Jboss 3.0-Tomcat4.0.3 binary release * Struts CVS from about a week ago * Xdoclet CVS from about four days ago (but i'm not sure this matters) The problem I am looking at is a somewhat familiar one, the exception returned by the classloader is very vague with regard to the missing library. I'm just trying to chase down the missing library. The servlet is doing a classLoader.loadClass(fooClass). The classloader is a org.apache.catalina.loader.WebappClassLoader, fooClass is on the classpath. REGRESSION: 1) To start, fooClass is loadable and loads properly with classLoader.loadClass(fooClass). 2) I add calls to fooClass. 3) The transitive closure on fooClass is no longer complete. 4) I try to figure out what I am missing. The trace from the exception thrown from classLoader.loadClass(fooClass) is at the end. It would imply that org.apache.struts.action.Action was missing, but it's not. 'fooClass' is a subclass of Action, fooClass is the class that I added more code to, and fooClass is still in the classpath (remember, it worked before I added the new code). I made sure that the classes that are imported directly by fooClass are in the webapp classpath. So the implication is that something in the deeper transitive closure is missing. The new code I added, by the way, were EJB client calls. And yes, I added the entire contents of the jboss/client directory to the WEB-INF/lib of the WAR. Any ideas on how I could get something more informative than that the superclass of fooClass can't load? I'm trying to find the exact class that is missing on the classpath. Ack! This keeps coming up every time I make a change and forget a library and it's really hard to debug. I don't presume I know where the problem is, so if it's outside of JBoss, if I can get some clues how to figure that out, i'd be eternally grateful. If it's in JBoss, learning how to figure it out there would be super awesome as well! thanks! Brian 23:18:08,673 ERROR [RequestProcessor] No action instance for path /editRegistration could be created java.lang.NoClassDefFoundError: org/apache/struts/action/Action at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:493) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.jboss.mx.loading.UnifiedClassLoader.findClass(UnifiedClassLoader.java:227 ) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at org.jboss.mx.loading.UnifiedClassLoader.loadClassLocally(UnifiedClassLoader.j ava:235) at org.jboss.mx.loading.UnifiedLoaderRepository.loadClassFromRepository(UnifiedL oaderRepository.java:387) at org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderRepositor y.java:146) at org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.java:285 ) at java.lang.ClassLoader.loadClass(ClassLoader.java:292) at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:553) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java :1343) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java :1243) at org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:190) at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:216 ) at org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcesso r.java:314) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:258) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1161) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:453) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationF ilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCha in.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.jav