Re: [JBoss-user] JBoss3.2.3 - AOP or javassist
U can't use AOP with 3.2.3 but u can use Interceptors. With AOP u can perform a complite aspect oriented programmation, with Jboss3.2.3 Intercetor u can intercept calls only to ur ejbs' methods. I think this is enough for you... Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Heinz-Dieter Conradi Inviato: venerdi 20 febbraio 2004 13.59 A: [EMAIL PROTECTED] Oggetto: [JBoss-user] JBoss3.2.3 - AOP or javassist i would like to perform some general operations for most of the calls coming to my facade session beans. instead of coding this for every method in every facade, i would like to use aop like techniques. as far as i know, one cannot use JBossAOP with JBoss-3.2.3 (i guess because of Classloader problems). is this true? And what about using javassist (or similar libraries as CGLib)? at least a simple approach cannot work, since the EJB container itself provides proxy classes for the classes i am interested in. are there ways around this? tia, heinz-dieter conradi --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] customizing JBoss config. and footprint (newbie question)
-Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Nick Faiz Inviato: mercoledì 18 febbraio 2004 3.11 A: '[EMAIL PROTECTED]' Oggetto: [JBoss-user] customizing JBoss config. and footprint (newbie question) Hi, Can someone point me to a starting place for learning about how to configure JBoss modules? As I understand it, I can strip out whatever Here some point to start with JBoss: http://www.madplanet.com/jboss-docu-wiki/Wiki.jsp?page=JBoss.Docu.Home http://www.huihoo.org/jboss/jboss.html http://www.madplanet.com/jboss.tea http://webdev.apl.jhu.edu/~jcs/corej2ee.spring03/deploy/doc/book/public/02_J 2EE_Application_Components.pdf functionality I don't want within the JBoss server; for example, I may want JMS without a Servlet Container? U can with hot deploy (and undeploy too) delete services or applications from within the server\default\deploy; u must simply delete the .sar, .ear, .war or .jar file or directory. Gio --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Webservice deployment in ear
Hi, i can give u some link to JBoss.Net resources, some of this to create web-service.xml via XDoclet (I found this great!): http://www.jboss.org/developers/guides/jboss.net/xdoclet http://www.csd.abdn.ac.uk/~bscharla/teaching/mtp_software/jboss/jboss-net-He lloWorld.shtml http://www.csd.abdn.ac.uk/~bscharla/teaching/mtp_software/jboss/jboss-net-EJ B-example.shtml http://www.nsdev.org/jboss/stories/jboss-net.html http://www.tusc.com.au./tutorial/html/chap9.html Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Johannes Plachy Inviato: mercoledi 11 febbraio 2004 11.37 A: [EMAIL PROTECTED] Oggetto: [JBoss-user] Webservice deployment in ear Hi, I want to deploy a webservice under JBoss 3.2.2 based on a stateless session bean. This webservice should be packaged inside a wsr and packaged together with the ejb.jar and a war as app.ear. what do I need to package inside the wsr beside the client-side EJB jar and the axis deploymentdescriptor ( web-service.xml) what do I have to specify in the ear deployment descriptor ? any help would be greatly appreciated Johannes --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] log4j DEBUG
Hi! To log only my classes activity on the console at DEBUG level I put in the conf/log4j.xml: appender name=MYLOG class=org.apache.log4j.ConsoleAppender param name=Target value=System.out/ param name=Threshold value=DEBUG/ layout class=org.apache.log4j.PatternLayout param name=ConversionPattern value=%d{ABSOLUTE} %-5p [%c{1}] %m%n/ /layout /appender and category name=it.mycompany additivity=false appender-ref ref=MYLOG/ /category Finally in the classes that I need to log: final static Logger log = Logger.getLogger(myclass.class); So i can log it.mycompany package and its sub-package... I hope this can help you... Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Scott M Stark Inviato: martedi 10 febbraio 2004 16.18 A: [EMAIL PROTECTED] Oggetto: RE: [JBoss-user] log4j DEBUG That is the correct way to enable debug for a category. You have to remove any INFO threshold on the category in order for these messages to show up. Scott Stark Chief Technology Officer JBoss Group, LLC From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric J Kaplan Sent: Tuesday, February 10, 2004 6:50 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] log4j DEBUG Any ideas? I've trolled the forums with no answers. I can turn on DEBUG for everything on the CONSOLE appender (and I see the debug messages for the bean below), but how do I do for a single class. We use the log4j.properties file for our client and it works like a charm. I figured the xml configuration would be similar, and I'm surprised what I have below doesn't work. It's hard for us to support our users without being able to individually turn on logging. I'm sure I'm doing something silly. --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [JBoss.NET SOAP] - JBossNET: method with argument
Yes... all the setup of WS is right... I deployed the EAR in a default.net server (a default server with the jboss-net.sar) because i don't want to load all the services of all server. Today I try the deploy in the all directory and it seems to work... maybe i need to put some JAR to the default.net/lib directoy. Any idea about the missing JARs? Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Bruce Scharlau Inviato: venerdi 6 febbraio 2004 10.48 A: [EMAIL PROTECTED] Oggetto: Re: [JBoss-user] [JBoss.NET SOAP] - JBossNET: method with argument formenti wrote: View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3820343#3820343 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3820343 Hallo! I write a session bean exposed as a web service with JBoss.NET and XDoclet... If i try to call a test() method (it return a String) all is right! But if I try to call a method with a String parameter like test2(String test) it doesn't work! :( The error is: java.lang.NoClassDefFoundError --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss.Net
Hallo! I write a session bean exposed as a web service with JBoss.NET and XDoclet... If i try to call a test() method (it return a String) all is right! But if I try to call a method with a String parameter like test2(String test) it doesn't work! :( The error is: java.lang.NoClassDefFoundError at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:326) at org.apache.axis.encoding.DeserializationContextImpl.startElement(Deserializa tionContextImpl.java:963) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java: 722) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233) Any idea?! Gio --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Interceptor!
Hi, thanks to your help now I can work with EJB-Intercetors in JBoss 3.2.3... But I have one more question... it's possible to get the target object from within the interceptor like targetObject in JBoss4's AOP?! Just like this: public Object invoke(Invocation arg0) throws Exception { Object lRet; //Here I want to manipulate the target object!! lRet=getNext().invoke(arg0); return lRet; } Any idea?! Thanx Gio --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
R: [JBoss-user] Tips for development environment with JBoss
We are using Lomboz (from Objectlearn), an Eclipse's plugin. It seems very good for deploy and env management... I'm also interested to some JBoss dev tips! Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Francisco Figueiredo Jr. Inviato: giovedi 15 gennaio 2004 16.53 A: [EMAIL PROTECTED] Oggetto: [JBoss-user] Tips for development environment with JBoss Hi all. I'd like to know some tips you have to development with JBOSS. Here at my job, we are using Eclipse as IDE and JBOSS IDE to help in debugging. I'd like to know what else I could use to help in the development with JBoss. I mean, we are having to do a full deploy of ear to update code as sometimes the hot code replace can't be done by jboss ide. We would like to have some configuratio tip or procedure which could allow us to be able to update the code without have to do a full deploy. Something like the Tomcat plugin which allows me to update the code and already handle the reload of classes. Could you share your experiences and development environment setups so I could get some ideas to use here at my job? We are using JBOSS 3.2.3 and Eclipse 2.1.2. Thanks in advance. Regards, Francisco Figueiredo Jr. --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
R: [JBoss-user] Where to put an Interceptor class?
Duplicating the whole container-interceptors it works!! thanks! But there isn't a way to simply adding an interceptor to the chain? This because if there is some standardjboss.xml change it will be not reflected for the session bean intercepted... Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Jae Gangemi Inviato: venerdi 9 gennaio 2004 15.04 A: [EMAIL PROTECTED] Oggetto: RE: [JBoss-user] Where to put an Interceptor class? have you tried duplicating the entire Standard Stateful SessionBean configuration all over again in the standardjboss.xml file instead of extending it in your jboss.xml file, adding the interceptor to the stack and changing the configuration name? i have successfully created interceptors and had them invoked using this method. i'm pretty sure that you can't extend the interceptor stack like that, and you actually need to recreate all the entries. try adding this to your standardjboss.xml file: container-configuration container-nameTry/container-name call-loggingfalse/call-logging invoker-proxy-binding-namestateful-rmi-invoker/invoker-proxy-binding- name container-interceptors interceptororg.jboss.ejb.plugins.ProxyFactoryFinderInterceptor/interc eptor interceptororg.jboss.ejb.plugins.LogInterceptor/interceptor !-- your interceptor, altho you may want to shift it's location if you care about when it's invoked in the chain -- interceptorcom.xxx.TryInterceptor/interceptor !-- CMT -- interceptor transaction=Containerorg.jboss.ejb.plugins.TxInterceptorCMT/intercep tor interceptor transaction=Container metricsEnabled=trueorg.jboss.ejb.plugins.MetricsInterceptor/intercep tor interceptor transaction=Containerorg.jboss.ejb.plugins.StatefulSessionInstanceInt erceptor/interceptor !-- BMT -- interceptor transaction=Beanorg.jboss.ejb.plugins.StatefulSessionInstanceIntercep tor/interceptor interceptor transaction=Beanorg.jboss.ejb.plugins.TxInterceptorBMT/interceptor interceptor transaction=Bean metricsEnabled=trueorg.jboss.ejb.plugins.MetricsInterceptor/intercep tor interceptororg.jboss.resource.connectionmanager.CachedConnectionInterc eptor/interceptor interceptororg.jboss.ejb.plugins.SecurityInterceptor/interceptor /container-interceptors instance-cacheorg.jboss.ejb.plugins.StatefulSessionInstanceCache/inst ance-cache persistence-managerorg.jboss.ejb.plugins.StatefulSessionFilePersistenc eManager/persistence-manager container-cache-conf cache-policyorg.jboss.ejb.plugins.LRUStatefulContextCachePolicy/cache -policy cache-policy-conf min-capacity50/min-capacity max-capacity100/max-capacity remover-period1800/remover-period max-bean-life1800/max-bean-life overager-period300/overager-period max-bean-age600/max-bean-age resizer-period400/resizer-period max-cache-miss-period60/max-cache-miss-period min-cache-miss-period1/min-cache-miss-period cache-load-factor0.75/cache-load-factor /cache-policy-conf /container-cache-conf container-pool-conf MaximumSize100/MaximumSize /container-pool-conf /container-configuration and then just specify the container configuration name in your jboss.xml file, and get rid of the inteceptor definitions. ie: just have this line: configuration-nameTry/configuration-name i have a very simple working prototype of both a client and server side interceptor working w/ a stateless session bean (the idea is the same for a stateful) that i could send you if you're still unable to get things working. -jae -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Giovanni Formenti Sent: Friday, January 09, 2004 4:50 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Where to put an Interceptor class? I readed this doc but I can't understand clearly how to do! I made the following steps: 1) Write a class that extends AbstractInterceptor and implements the invoke method: public Object invoke(Invocation invocation) throws Exception { Object lRet; System.out.println(LOG!!); lRet=getNext().invoke(invocation); return lRet; } 2) Modify jboss.xml with a configuration: container-configurations container-configuration extends=Standard Stateful SessionBean container-nameTry/container-name container-interceptors interceptorcom.xxx.TryInterceptor/interceptor /container-interceptors /container-configuration /container-configurations
R: [JBoss-user] Where to put an Interceptor class?
I send to u an old answer to this question: 1) Put a foobar-aop.xml file within the /deploy directory. By foobar, I mean any filename 2) Modify conf/base-aop.xml and add stuff there 3) Or, create a foobar.aop archive. An AOP archive is a JAR, but in the META-INF directory there should be a jboss-aop.xml file. http://www.jboss.org/index.html?module=htmlop=userdisplayid=deve lopers/projects/jboss/aop#packaging I hope this help u! Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Jonathan.O'[EMAIL PROTECTED] Inviato: mercoledi 7 gennaio 2004 17.18 A: [EMAIL PROTECTED] Oggetto: [JBoss-user] Where to put an Interceptor class? Hi, We're just about to write our first interceptor (to retry deadlocked methods), and we can't find the docs where to have the class loaded. The best would be to have it in a jar in our EAR. Is that possible? Also, can we keep delare our own interceptor stack for our beans in this EAR too? Thanks, Jonathan O'Connor XCOM Dublin --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
R: [JBoss-user] Where to put an Interceptor class?
Sorry... but JBoss 3.2 can use interceptor? How?! I'm very interesting about this! Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Bill Burke Inviato: mercoledi 7 gennaio 2004 17.28 A: [EMAIL PROTECTED] Oggetto: Re: [JBoss-user] Where to put an Interceptor class? JBoss 3.2 already retries ApplicationDeadlockExceptions. I am currently expanding the transaction interceptor to except a list of exception handlers that can decide whether or not to retry a transaction. You can define your own container configurations within a jboss.xml so your EAR requirement will work. Look in conf/standardjboss.xml for examples. Bill Jonathan.O'[EMAIL PROTECTED] wrote: Hi, We're just about to write our first interceptor (to retry deadlocked methods), and we can't find the docs where to have the class loaded. The best would be to have it in a jar in our EAR. Is that possible? Also, can we keep delare our own interceptor stack for our beans in this EAR too? Thanks, Jonathan O'Connor XCOM Dublin --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Bill Burke Chief Architect JBoss Group LLC. --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
R: [JBoss-user] Tell Jboss to create INNODB tables (was: Session/Entity Bean Transaction Rollback)
Hallo, u can put the line: default-table-type=innodb in the [mysqld] section of ur mysql configuration file. In this way every CREATE TABLE statement creates an InnoDB table by default. Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di [EMAIL PROTECTED] Inviato: martedì 23 dicembre 2003 8.42 A: [EMAIL PROTECTED] Oggetto: [JBoss-user] Tell Jboss to create INNODB tables (was: Session/Entity Bean Transaction Rollback) Adrian, thanks for the link, this was exactly what I needed. Sometimes you dont need many words to explain something :-) One more question: Where can I tell Jboss to create tables with TYPE=INNODB ? btw: I bought the JBoss dokumentation, but this mailing list is far more helpfull for Jboss users. Here comes a big thank you to all people here helping out others ! Regards, Stefan http://www.mysql.com/doc/en/InnoDB.html Regards, Adrian On Mon, 2003-12-22 at 15:22, [EMAIL PROTECTED] wrote: Hi, I forgot something, I am not shure if this is important: Im am using mySQL as RDBMS. The Datasource is configured as follows: datasources local-tx-datasource jndi-namemySQL_partnerMgmt/jndi-name connection-urljdbc:mysql://localhost/partnerMgmt/connection-url driver-classorg.gjt.mm.mysql.Driver/driver-class user-nameroot/user-name password/password /local-tx-datasource /datasources Hi, I have a sessionbean (stateless), that provides a method to create some entitys. If the creation of one Entity fails, I want do rollback all creations, there should be one or all entitys in the DB. I tried to set transaction type=required on the method and I throw EJB Exceptions if something goes wrong, but after the method fails, there are still some entitys left. Is there a way to tell JBoss to delete all entitys created in the method if the creation of one fails ? The method looks like this (not actual code :-) createXXX(){ entityHome.create(1); entityHome.create(2); entityHome.create(3); return; } If create(3) failes, I dont want to have 1 and 2 in my database. Thanks a lot in advance, Stefan --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss3 and AOP
Hallo! It's possible to use AOP framework in JBoss 3.2.3? How?! Thanx for any answer! Gio --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 3.2.2 SSL
Hallo, I use JBoss4+JBossWeb (Tomcat) with: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 enableLookups=true scheme=https secure=true debug=0 useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory keystoreFile=c:\server.jks keystorePass=changeit clientAuth=false protocol=TLS/ /Connector I hope it can help you... Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Hugh O'Donnell Inviato: venerd 12 dicembre 2003 16.16 A: [EMAIL PROTECTED] Oggetto: [JBoss-user] JBoss 3.2.2 SSL Hi All, Trying to implement SSL in JBoss3.2.2 (Tomcat 41 on Win2K) with the following exception being thrown during startup: Error loading SSL Implementation org.apache.tomcat.util.net.puretls.PureTLSImplementation My jboss-service.xml contains: Connector className = org.apache.coyote.tomcat4.CoyoteConnector address=${jboss.bind.address} port = 8443 scheme = https secure = true Factory className = org.apache.coyote.tomcat4.CoyoteServerSocketFactory keystoreFile=${jboss.server.home.dir}/conf/blueDAIS.jks keystorePass=rmi+ssl clientAuth=false protocol = TLS/ /Connector Help would be greatly appreciated!! (;) Kind Regards, Hugh O'Donnell Director www.blueTanso.com tel: 01475 806827 fax: 01475 807107 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003 --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
R: [JBoss-user] JBoss 3.2.2 SSL
Can help you this? http://www.nsdev.org/jboss/stories/jboss-ssl.html Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Hugh O'Donnell Inviato: venerd 12 dicembre 2003 17.46 A: [EMAIL PROTECTED] Oggetto: RE: [JBoss-user] JBoss 3.2.2 SSL Hi No. I have roughly the same config as you do. I note from a related posting to the jboss 'mail archive' that one user is told to ignore the exceptions. Fine. However, neither HTTPS or HTTP works once JBoss starts!! Please advise!? (;) Kind Regards, Hugh O'Donnell Director www.blueTanso.com tel: 01475 806827 fax: 01475 807107 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Giovanni Formenti Sent: 12 December 2003 15:18 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JBoss 3.2.2 SSL Hallo, I use JBoss4+JBossWeb (Tomcat) with: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8443 enableLookups=true scheme=https secure=true debug=0 useURIValidationHack=false disableUploadTimeout=true Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory keystoreFile=c:\server.jks keystorePass=changeit clientAuth=false protocol=TLS/ /Connector I hope it can help you... Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Hugh O'Donnell Inviato: venerd 12 dicembre 2003 16.16 A: [EMAIL PROTECTED] Oggetto: [JBoss-user] JBoss 3.2.2 SSL Hi All, Trying to implement SSL in JBoss3.2.2 (Tomcat 41 on Win2K) with the following exception being thrown during startup: Error loading SSL Implementation org.apache.tomcat.util.net.puretls.PureTLSImplementation My jboss-service.xml contains: Connector className = org.apache.coyote.tomcat4.CoyoteConnector address=${jboss.bind.address} port = 8443 scheme = https secure = true Factory className = org.apache.coyote.tomcat4.CoyoteServerSocketFactory keystoreFile=${jboss.server.home.dir}/conf/blueDAIS.jks keystorePass=rmi+ssl clientAuth=false protocol = TLS/ /Connector Help would be greatly appreciated!! (;) Kind Regards, Hugh O'Donnell Director www.blueTanso.com tel: 01475 806827 fax: 01475 807107 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003 --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.547 / Virus Database: 340 - Release Date: 02/12/2003 --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
R: [JBoss-user] Web security 403
Yes... the problem was this!!! :) Thanx a lot! Gio -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Adrian Brock Inviato: venerdì 5 dicembre 2003 12.49 A: [EMAIL PROTECTED] Oggetto: Re: [JBoss-user] Web security 403 It is impossible to tell without your data, which I doubt you want to post. Most likely, the value of ROLEGROUP in the db is not Roles. If you are not interested in other types of roles, you can just write your query: SELECT ROLE, 'Roles' FROM ROLES WHERE PRINCIPAL_ID=? Regards, Adrian --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Redeploy a WAR
Hallo, I fix my web security but I have one more problem! :( With JBoss4DR2 i delpoy an EAR with JAR,WAR and WSR inside. When I redeploy it I receive a addChild: Child name '/aaa' is not unique message; it seems that JBoss can't stop the webapp context! If I restart Jboss, all are right! Any idea?! Can you make a WAR redeploy while JBoss is running? How can I stop or remove a context? Gio --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Web security 403
Hi! I'd like to create a war with some security constraints! I modify login-config.xml and I create the database's tables: application-policy name = dafne authentication login-module code = org.jboss.security.auth.spi.DatabaseServerLoginModule flag = required module-option name = dsJndiNamejava:/MySqlDS/module-option module-option name = principalsQuerySELECT PASSWORD FROM PRINCIPALS WHERE PRINCIPAL_ID=?/module-option module-option name = rolesQuerySELECT ROLE,ROLEGROUP FROM ROLES WHERE PRINCIPAL_ID=?/module-option /login-module /authentication /application-policy I create jboss-web.xml: jboss-web security-domainjava:/jaas/dafne/security-domain /jboss-web And finally I put the web constraints: security-constraint web-resource-collection web-resource-nameProtected/web-resource-name url-pattern/index.jsp/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint user-data-constraint transport-guaranteeNONE/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-namedefault/realm-name /login-config security-role role-nameadmin/role-name /security-role The authantication works good: xxx.xxx.xxx.xxx - admin [04/Dec/2003:18:28:16 1000] GET /aaa/index.jsp HTTP/1.1 403 839 but a 403 will appear: Access to the specified resource (Access to the requested resource has been denied) has been forbidden Maybe JBoss can't bound username with role... Why this don't work!? What I miss?! Help me please!!! Gio --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Taglib!
Hallo! I put a war that i used in tomcat under the deploy directory of tomcat and i get an error: Exception initializing TldLocationsCache: Illegal class loader binding And then: 12:01:20,484 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.ServletException at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.jboss.web.catalina.security.JBossSecurityMgrRealm.invoke(JBossSecurityMg rRealm.java:236) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.jboss.web.catalina.statistics.ContainerStatsValve.invoke(ContainerStatsV alve.java:75) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:619) at java.lang.Thread.run(Thread.java:536) 12:01:20,484 ERROR [Engine] - Root Cause - java.lang.OutOfMemoryError I try also with the application-example of Apache JSTL but it happens the same!! How can I use taglibs under JBoss? Where I mistake? Thanx for any help! Giovanni --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Application configuration
Hallo! I'm developing an application that have a Session Bean that execute some operations on a db. I'd like to write some configuration elements in a xml files and load them at startup (when JBoss is started) and put them in a storage class (simply a javabean). The Session EJB must access this class and read the config infos. Can someone give me some idea who to do this?! Thanx Gio --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] WSR delpoy
Hallo! I developed an EAR with a WSR. The web services are only interfaces to my session bean... all it work good! But when i modify and redeploy the ear JBoss says to me something like: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Tried to invoke method public java.util.Map [...].resolve(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.; nested exception is: java.lang.IllegalArgumentException: object is not an instance of declaring class faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Tried to invoke method public java.util.Map [...].resolve(java.lang.String) with arguments java.lang.String. The arguments do not match the signature.; nested exception is: java.lang.IllegalArgumentException: object is not an instance of declaring class faultActor: faultNode: faultDetail: Maybe object is not an instance of declaring class i said... but i restart jboss and all works great! :) And this every redeploy... Any idea? Gio --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Looking for article on JBoss/Web Services/Axis
Just some links: http://www.csd.abdn.ac.uk/~bscharla/teaching/mtp_software/jboss/jboss-net-He lloWorld.shtml http://www.csd.abdn.ac.uk/~bscharla/teaching/mtp_software/jboss/jboss-net-EJ B-example.shtml http://www.nsdev.org/jboss/stories/jboss-net.html I'm searching too something about Web service XDoclet in JBoss... if u find something can u tell me? Thanx Gio - Original Message - From: Sasidharan, Manoj [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, October 27, 2003 10:32 PM Subject: [JBoss-user] Looking for article on JBoss/Web Services/Axis Hello All, I am looking for some write-up on developing/using web services with JBoss 3.2.x or JBoss 4.x with Axis. Thanks in advance. rgds MS --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Define a new context
I use JBoss 4+Tomcat. How can i create a new context?! Like add Context in the tomcat-standalone's server.xml file! This because i want to add a webapp that is in c:\mywebapp\. Can anyone help me? Thanx Gio --- This SF.net email sponsored by: Enterprise Linux Forum Conference Expo The Event For Linux Datacenter Solutions Strategies in The Enterprise Linux in the Boardroom; in the Front Office; in the Server Room http://www.enterpriselinuxforum.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user