Re: [JBoss-user] Log4J Problem!!! Please HELP ME
That works perfectly. Now I can leave the jboss/conf/tomcat/log4j.properties alone and encapsulate the app specific log properties cleanly. I didn't use this code I used what was mentioned in the log4 manual. >I usually do something like this... put a log4j properties file in your >application e/j/war file, and somewhere in the initialization of the >application do this: > >(sorry for the poor formatting) > >private void init(){ > ResourceBundle bundle = ResourceBundle.getBundle("com.kcp.sso.log4j"); > Properties props = new Properties(); > String tempKey = null; > for (Enumeration resourceKeys = bundle.getKeys(); >resourceKeys.hasMoreElements();) { > tempKey = (String)resourceKeys.nextElement(); > props.setProperty(tempKey, bundle.getString(tempKey)); > } // end of for () > bundle = null; > tempKey = null; > > PropertyConfigurator.configure(props); >} > > >That way, as long as log4j is in the classpath of the app server, the >application can configure itself. > >Tim > >On Mon, 2002-06-03 at 11:39, [EMAIL PROTECTED] >wrote: >> >> >> It seems like it would be easier, from a developer's point of view, >> to deploy your J2EE package without requiring the user to modify >> files outside of your ear, war or jar package. It would be nice for >> each app to include their own log4.properties files in their package. >> This way I should in theory just be able give my package to my >> customers and they just need to add it to their deploy directories. >> >> >> >> >hth, >> >danch >> > >> >[EMAIL PROTECTED] wrote: >> >>I have a problem in JBoss2-4.4. I have several bean that use log4j to log >> >>some aplication event. Thats beans work fine in JBoss-2.2, but when I try >> >>to use JBoss-2.4.4 I get an error: >> >>"java.rmi.ServerException: RemoteException occurred in server thread; >> >>nested exception is: >> >> java.rmi.ServerException: Transaction rolled >> >>back:org/apache/log4j/Category >> >>java.rmi.ServerException: Transaction rolled >> >>back:org/apache/log4j/Category" >> >>I try to enable and disable the Log4jService but nothing happen. >> >>I used my own category file. >> >> >> >>Operation System: HP-UX 11 >> >>JDK: 1.3 >> >> >> >>What can I do to solve my problem? I need to solve it quickly. >> >> >> >>Please Help. > > >>Regards. > > >>Alejandro > > >> > > >> > > >> > > >>___ > > >> > > >>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 >> >> >> > >> > >> > >> >-- >> > >> >= >> >Disclaimer: >> >All statements are my own, personal opinions and have nothing to do >> >with the opinions of employer, wife, or cat. They may not have anything >> >to do with objective reality, as a matter of fact. Your Milage May >> >Vary, Excludes Delivery Charges, etc. >> >= >> > >> > >> >___ >> > >> >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 >> >-- >Timothy Freund >IT System Engineer >Honeywell Federal Manufacturing & Technologies > > >___ > >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
[JBoss-user] Re: [JBoss-dev] JBoss 3.0.0 Release Available
On Tue, 4 Jun 2002, Adam Heath wrote: > On Fri, 31 May 2002, Scott M Stark wrote: > > > JBoss Source Tar/GZip Archive: > > http://prdownloads.sourceforge.net/jboss/jboss-3.0.0-src.tgz?download > > The source download includes a non-cleaned catalina output directory. > > adam@gradall:~/brainfood/jboss/jboss-3.0.0-src$ du catalina/* -sc > 4 catalina/build.bat > 4 catalina/build.log > 4 catalina/build.sh > 16 catalina/build.xml > 4 catalina/local.properties > 46948 catalina/output > 4 catalina/readme > 212 catalina/src > 47196 total > > This increses the size of the download considerably. I just tested, and it's a very big difference. adam@gradall:~/brainfood/jboss$ wc -c test.tar.gz jboss-3.0.0-src.tgz 19498930 test.tar.gz 46777499 jboss-3.0.0-src.tgz Could the file be regenerated? ___ 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
[JBoss-user] Re: [JBoss-dev] JBoss 3.0.0 Release Available
On Fri, 31 May 2002, Scott M Stark wrote: > JBoss Source Tar/GZip Archive: > http://prdownloads.sourceforge.net/jboss/jboss-3.0.0-src.tgz?download The source download includes a non-cleaned catalina output directory. adam@gradall:~/brainfood/jboss/jboss-3.0.0-src$ du catalina/* -sc 4 catalina/build.bat 4 catalina/build.log 4 catalina/build.sh 16 catalina/build.xml 4 catalina/local.properties 46948 catalina/output 4 catalina/readme 212 catalina/src 47196 total This increses the size of the download considerably. ___ 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
[JBoss-user] ThreadLocal variable in custom MBean
Title: ThreadLocal variable in custom MBean Hi, Imagine that I want to create a new custom MBean, which keeps track of some kind of session information of a specific thread. (For data distribution purposes, but that's not important for now I guess) Is it possible to use a ThreadLocal instance to achieve this? What will happen with the transaction information of that thread (ThreadInfo inside the TxManager)? Thanks in advance for any tips -Wonne Keysers
[JBoss-user] CMP 2.0 With JBoss 3.0 Beta Tutorial
CMP 2.0 With JBoss 3.0 Beta Tutorial: http://iris.cs.byu.edu/tim/462/tutorial/tutorial.html I hope you will find this link helpful... Ricardo Argüello [EMAIL PROTECTED] ___ 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
[JBoss-user] Running standalone applications with 3.0
RE: [JBoss-user] jndi questionI have a factory class that does jndi lookups and creates a session bean. Using 3.0RC1, things work great if I do these lookups within the jboss context, but if I do it from a stand-alone application, I get the exception below. I assume it is a classpath thing, but I have been unable to figure out what is wrong. Anyone have any clues? I see no signs of a file called security.properties. Is this leftover from some previous install? Here is the exception: java.io.FileNotFoundException: /usr/local/jboss/config/security.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:64) at java.io.FileInputStream.(FileInputStream.java:95) at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:56) at com.sun.enterprise.iiop.POAEJBORB.(POAEJBORB.java:83) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:195) at org.omg.CORBA.ORB.create_impl(ORB.java:284) at org.omg.CORBA.ORB.init(ORB.java:328) at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:140) at com.sun.enterprise.util.ORBManager.init(ORBManager.java:69) at com.sun.enterprise.naming.SerialInitContextFactory.(SerialInitContextF actory.java:35) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) at javax.naming.InitialContext.init(InitialContext.java:222) at javax.naming.InitialContext.(InitialContext.java:178) at com.base2inc.bean.util.Factory.getNoteValue(Factory.java:126) at com.base2inc.test.query.QueryTestClient.(QueryTestClient.java:44) at com.base2inc.test.query.QueryTestClient.main(QueryTestClient.java:17) java.io.FileNotFoundException: /usr/local/jboss/config/ejb.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:64) at java.io.FileInputStream.(FileInputStream.java:95) at com.sun.enterprise.util.Utility.getPropertiesFromFile(Utility.java:56) at com.sun.enterprise.iiop.J2EEInitializer.(J2EEInitializer.java:57) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at com.sun.corba.ee.internal.Interceptors.PIORB.registerORBInitializers(PIORB.j ava:373) at com.sun.corba.ee.internal.Interceptors.PIORB.parseProperties(PIORB.java:343) at com.sun.corba.ee.internal.TxPOA.TxPIORB.parseProperties(TxPIORB.java:116) at com.sun.corba.ee.internal.corba.ORB.set_parameters(ORB.java:449) at com.sun.corba.ee.internal.POA.POAORB.set_parameters(POAORB.java:152) at com.sun.corba.ee.internal.Interceptors.PIORB.set_parameters(PIORB.java:332) at org.omg.CORBA.ORB.init(ORB.java:329) at com.sun.enterprise.util.ORBManager.createORB(ORBManager.java:140) at com.sun.enterprise.util.ORBManager.init(ORBManager.java:69) at com.sun.enterprise.naming.SerialInitContextFactory.(SerialInitContextF actory.java:35) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:237) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:652) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) at javax.naming.InitialContext.init(InitialContext.java:222) at javax.naming.InitialContext.(InitialContext.java:178) at com.base2inc.bean.util.Factory.getNoteValue(Factory.java:126) at com.base2inc.test.query.QueryTestClient.(QueryTestClient.java:44) at com.base2inc.test.query.QueryTestClient.main(QueryTestClient.java:17) ___ 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
Re: [JBoss-user] connection pools, connecting to database.
Title: RE: [JBoss-user] jndi question Here is all you need: Connection connection = ((DataSource)new InitialContext().lookup("java:comp/env/jdbc/MySqlDS")).getConnection(); Note the first part of that. Don't use java:/MySqlDS. That binds you directly to a datasource, limiting portability. Instead, you lookup a "logical" representation, then map the logical to a physical in the deployment desriptors. See the documentation for a complete example. - Original Message - From: Jim To: [EMAIL PROTECTED] Sent: Monday, June 03, 2002 7:11 PM Subject: [JBoss-user] connection pools, connecting to database. Alright, after much searching I still haven't been able to get database access working correctly. I am trying to access a database from a stateless session bean. For performance, I would like the connections to be pooled. In JBoss2.4.4, this involved setting up a few mbeans in the jboss.jcml file. This is my old code, that does not work. Casting exceptino on the (ConnectionPoolDataSource). What should I cast it as? Is my entire approach wrong? Any tips or pointers to documentation I may have missed would be very much appreciated. try{ InitialContext ctx = new InitialContext(); System.out.println(ctx.lookup("java:/MySqlDS").toString()); ConnectionPoolDataSource cpds = (ConnectionPoolDataSource)ctx.lookup("java:/MySqlDS"); PooledConnection pc = cpds.getPooledConnection(); conn = pc.getConnection(); }catch(Exception e){ System.out.println("Exception occured in Auth.ejbCreate()"); System.out.println(e.toString()); } Thanks, Jim
RE: [JBoss-user] JBoss 2.4.6 JMS Socket Leak
Title: RE: [JBoss-user] JBoss 2.4.6 JMS Socket Leak This is just a wild guess (and maybe it really is a bug in JBoss...), but how about also closing the JNDI context? It could *theoretically* be possible that the JNDI contexts accumulate too fast for the garbage collector to keep up...? -Original Message- From: Neal Sanche [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 6:50 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss 2.4.6 JMS Socket Leak Hi All, I've been encountering socket leaks in JBoss 2.4.6 when running code similar to the following to send JMS messages to topics on which Message Driven Beans are listening. public static void sendLogItem(int type, String message) { TopicPublisher publisher = null; TopicConnection connection = null; TopicSession session = null; try { InitialContext jndiContext = new InitialContext(); Topic topic = (Topic)jndiContext.lookup("topic/logEventTopic"); TopicConnectionFactory factory = (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory"); connection = factory.createTopicConnection(); session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); publisher = session.createPublisher(topic); LogData evt = new LogData(); evt.setMessage(message); evt.setType(type); ObjectMessage msg = session.createObjectMessage(evt); publisher.publish(msg); } catch (Throwable ex) { } finally { if (publisher != null) { try { publisher.close(); } catch (Throwable discard) {} } if (session != null) { try { session.close(); } catch (Throwable discard) {} } if (connection != null) { try { connection.close(); } catch (Throwable discard) {} } } } As shown, I've tried to be careful to close anything that might need closing, but I'm probably missing something here, since after numerous calls to this method, a number of unclosed sockets will accumulate until no more sockets can be allocated by my program. What am I doing wrong here? Thanks in advance. -Neal ___ 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 DISCLAIMER: The information in this message is confidential and may be legally privileged. It is intended solely for the addressee. Access to this message by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, or distribution of the message, or any action or omission taken by you in reliance on it, is prohibited and may be unlawful. Please immediately contact the sender if you have received this message in error. Thank you.
[JBoss-user] JBoss 2.4.6 JMS Socket Leak
Hi All, I've been encountering socket leaks in JBoss 2.4.6 when running code similar to the following to send JMS messages to topics on which Message Driven Beans are listening. public static void sendLogItem(int type, String message) { TopicPublisher publisher = null; TopicConnection connection = null; TopicSession session = null; try { InitialContext jndiContext = new InitialContext(); Topic topic = (Topic)jndiContext.lookup("topic/logEventTopic"); TopicConnectionFactory factory = (TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory"); connection = factory.createTopicConnection(); session = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE); publisher = session.createPublisher(topic); LogData evt = new LogData(); evt.setMessage(message); evt.setType(type); ObjectMessage msg = session.createObjectMessage(evt); publisher.publish(msg); } catch (Throwable ex) { } finally { if (publisher != null) { try { publisher.close(); } catch (Throwable discard) {} } if (session != null) { try { session.close(); } catch (Throwable discard) {} } if (connection != null) { try { connection.close(); } catch (Throwable discard) {} } } } As shown, I've tried to be careful to close anything that might need closing, but I'm probably missing something here, since after numerous calls to this method, a number of unclosed sockets will accumulate until no more sockets can be allocated by my program. What am I doing wrong here? Thanks in advance. -Neal ___ 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
[JBoss-user] 3.0 checkout/build
All, I'm attempting to checkout and build the 3.0 release. I been through the Chapter 1 instructions in the Admin/Dev book and they seem obsolete now. I'm getting a build.xml that doesn't have a "do-cvs" task. My ant and jdk are ok. Can someone provide me with the appropriate cvs commands to pull down everything and do the build? TIA. John Hogan -- ___ Get your premium email from http://www.ireland.com/email ___ 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
[JBoss-user] Deploy an EJB *without* a jar, war, or ear?
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, -- -bk ___ 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
Re: [JBoss-user] connection pools, connecting to database.
Title: RE: [JBoss-user] jndi question If you're referring to the usual JBoss datasource, cast it to javax.sql.DataSource. hth dim - Original Message - From: Jim To: [EMAIL PROTECTED] Sent: Tuesday, June 04, 2002 9:11 AM Subject: [JBoss-user] connection pools, connecting to database. Alright, after much searching I still haven't been able to get database access working correctly. I am trying to access a database from a stateless session bean. For performance, I would like the connections to be pooled. In JBoss2.4.4, this involved setting up a few mbeans in the jboss.jcml file. This is my old code, that does not work. Casting exceptino on the (ConnectionPoolDataSource). What should I cast it as? Is my entire approach wrong? Any tips or pointers to documentation I may have missed would be very much appreciated. try{ InitialContext ctx = new InitialContext(); System.out.println(ctx.lookup("java:/MySqlDS").toString()); ConnectionPoolDataSource cpds = (ConnectionPoolDataSource)ctx.lookup("java:/MySqlDS"); PooledConnection pc = cpds.getPooledConnection(); conn = pc.getConnection(); }catch(Exception e){ System.out.println("Exception occured in Auth.ejbCreate()"); System.out.println(e.toString()); } Thanks, Jim
[JBoss-user] jboss 3.0 build on win2k
Title: RE: [JBoss-user] jndi question Hi, sorry I’m new to jboss 3. I had tried to build the jboss 3 final source package on my win2k machine. I get 6 build errors. Is that interesting for someone, may be for something like a bug tracking tool? Or is it normal and some set-up is required? Thanks Stefan
RE: [JBoss-user] jndi question
Title: RE: [JBoss-user] jndi question oh. i did not think my posts were going through. yes, i'm using initialContext. the jndi.properties always points to my own machine. the problem presents itself when i do a rebind("object", "newvalue"); whichever jvm does the rebind gets the new value but the other jvm keeps its original value. other than that, if i'm just doing lookup() all the time and that's it, everything is ok. of course, that's not what i'm doing all the time, hence the problem. -Original Message- From: Lucas McGregor [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 2:12 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] jndi question do they both have the same ctx? Are you using IntialContext? Does one method have a different jndi.properties higher in the classpath than the other? -l -Original Message- From: Starsinic, Frank [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 1:42 PM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] jndi question why does ctx.lookup("something") give me one result from within the JBoss JVM and a different result outside the JBoss JMV. thanks, frank ___ 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
Re: [JBoss-user] jndi question
Well, it depends on what context the code inside the JBoss JVM is executing in and on what the 'something' is. If it's in a J2EE component (servlet, JSP, EJB) JBoss will give it an Environment Naming Context (ENC) which contains JNDI entries that are mapped into the components environment by way of a deployment descriptor. These will be things like 'env-entry' entries and resource-ref entries from the deployment descriptors. These will all be accessed within the JNDI context whose name begins with 'java:comp/env'. These aren't accessable at all outside of the JBoss process, or by other components (unless they've been mapped identically for both components). Additionally (and here we leave the comfy confines of specdom, for the daredevil rush of implementation dependence), any name beginning with 'java:' is also available only within the JBoss process. Lastly, this also depends on how you create the InitialContext within and without JBoss. Within JBoss (or any other app. server), you should always use the empty constructor ('new InitialContext()') This will always give you the proper naming context for whatever application server you're running in. Within J2EE components you should never pass overriding properties to the InitialContext constructor (unless you're using something like LDAP for data storage). Outside of an application server, you can either specify a jndi.properties file to set up the default JNDI settings (suggested), or you can build a Properties object containing the right settings and pass that it (not suggested). Depending on how you've got things set up, your external code (outside the JBoss JVM) might be connecting to another JBoss instance than you think it is, or it might be connecting to another JNDI implementation. That's probably more information than you really needed, but ask a vague question and you'll get either a vague answer or a page from a textbook 8^}). hth, danch Starsinic, Frank wrote: > why does ctx.lookup("something") give me one result from within the > JBoss JVM and a different result outside the JBoss JMV. > > thanks, > > frank > ___ 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
RE: [JBoss-user] jndi question
do they both have the same ctx? Are you using IntialContext? Does one method have a different jndi.properties higher in the classpath than the other? -l -Original Message- From: Starsinic, Frank [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 1:42 PM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] jndi question why does ctx.lookup("something") give me one result from within the JBoss JVM and a different result outside the JBoss JMV. thanks, frank ___ 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
[JBoss-user] (no subject)
When checking out the source of jboss 3.0.0 I found a test page in the following path : jboss-all\testsuite\src\resources\web\html\jbosstest\index.html how i deploy this tests to server? (i tried ant test-suite but it didn't work) Emerson Cargnin - MSASICREDI - Ramal 3358-4860
[JBoss-user] jndi question
Title: jndi question why does ctx.lookup("something") give me one result from within the JBoss JVM and a different result outside the JBoss JMV. thanks, frank
Re: [JBoss-user] Problem with Interest example
that's usually the way it goes - as soon as you ask for help, you realize what's going wrong. When you try to call from the other machine, do you remember to copy the jndi.properties to the classpath of that machine? Also, beware of changing the jndi.properties in the JBoss config directory - that will also break things. hth -danch Jim wrote: > I found the marshalling error problem-- my JBOSS_DIST variable was set to an > older version of jboss. I can now communicate with the bean from the > hosting computer, but I still cannot access it remotely. Sorry to clutter > up the mail list like that, but I was at it for a while before I found that > error. > > Thanks, > > Jim > > > > ___ > > 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 > -- = Disclaimer: All statements are my own, personal opinions and have nothing to do with the opinions of employer, wife, or cat. They may not have anything to do with objective reality, as a matter of fact. Your Milage May Vary, Excludes Delivery Charges, etc. = ___ 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
[JBoss-user] JBoss 3.0.0 open ports
Hi, I'm reading the the JBoss Open Ports list: http://www.jboss.org/online-manual/HTML/ch11s03.html Are there more open ports in JBoss 3.0.0 final ('all' and 'default' configuration) than those listed there? I'm deploying JBoss in SME Server 5.1.2 (www.e-smith.org - RedHat based dist) which is the firewall (I, know, I know, not a good idea...) and need to close access to JBoss services for the outside interface. Maybe in the future I'll open 8080. Thanks in advance, Ricardo Argüello - Original Message - From: "Jim" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 03, 2002 2:32 PM Subject: [JBoss-user] Problem with Interest example > Hi, > > I'm new to JBoss and I'm having some problems with the Interest example. > > I am able to deploy the bean, but the client does not work. Run from the > same machine as JBoss I get: >[ > javax.naming.CommunicationException [Root exception is > java.rmi.UnmarshalException: error unmarshalling return; nested exception > is: > [java] java.lang.ClassNotFoundException: > org.jnp.interfaces.MarshalledValuePair (no security manager: RMI class > loader disabled)] > > I also can't access the bean from a remote machine, where I get: > [java] Got context > [java]javax.naming.CommunicationException [Root exception is > java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested > exception is: > [java]java.net.ConnectionException: Connection refused: connect] > > > On both machines, I have modified jndi.properties so that > java.naming.provider.url=diamond:1099 > > (diamond is the name of the machine where jboss is running. diamond has an > entry in the hosts file on both the remote client and the hosting machine) > > Why is the ConnectException saying something about 127.0.0.1, since nowhere > am I telling it to connect to the localhost? I am using ant > intro-interest-client to compile/run the client. > > > - Original Message - > From: "Michael Klem" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, June 03, 2002 12:43 PM > Subject: Re: [JBoss-user] Log4J Problem!!! Please HELP ME > > > > Oops! I meant JBoss 2.4.2 > > > > >>I believe one of the changes from 2.2 to 2.4 was that 2.4 includes > > >>log4j. What you're seeing is probably from a ClassCastException > > >>where there are two copies of org.apache.log4j.Category - one in > > >>your application and one in JBoss' lib/ext directory. > > > > > >Does this mean that we are forced to use the version of log4j that > > >JBoss 3.2.3 uses? > > > > > >>Try taking all log4j classes out of your application. You'll also > > >>want to set up your categories in the log4j.properties in the JBoss > > >>conf subdirectory that corresponds to the configuration you're > > >>running. > > > > > > > > >It seems like it would be easier, from a developer's point of view, > > >to deploy your J2EE package without requiring the user to modify > > >files outside of your ear, war or jar package. It would be nice for > > >each app to include their own log4.properties files in their > > >package. This way I should in theory just be able give my package to > > >my customers and they just need to add it to their deploy > > >directories. > > > > > > > > >>hth, > > >>danch > > >> > > >>[EMAIL PROTECTED] wrote: > > >>>I have a problem in JBoss2-4.4. I have several bean that use log4j to > log > > >>>some aplication event. Thats beans work fine in JBoss-2.2, but when I > try > > >>>to use JBoss-2.4.4 I get an error: > > >>>"java.rmi.ServerException: RemoteException occurred in server thread; > > >>>nested exception is: > > >>> java.rmi.ServerException: Transaction rolled > > >>>back:org/apache/log4j/Category > > >>>java.rmi.ServerException: Transaction rolled > > >>>back:org/apache/log4j/Category" > > >>>I try to enable and disable the Log4jService but nothing happen. > > >>>I used my own category file. > > >>> > > >>>Operation System: HP-UX 11 > > >>>JDK: 1.3 > > >>> > > >>>What can I do to solve my problem? I need to solve it quickly. > > >>> > > >>>Please Help. > > >>>Regards. > > >>>Alejandro > > >>> > > >>> > > >>> > > >>>___ > > >>> > > >>>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 > > >>> > > >> > > >> > > >> > > >>-- > > >> > > > >>= > > >>Disclaimer: > > >>All statements are my own, personal opinions and have nothing to do > > >>with the opinions of employer, wife, or cat. They may not have anything > > >>to do with objective reality, as a matter of fact. Your Milage May > > >>Vary, Excludes Delivery Charges, etc. > > > >>==
Re: [JBoss-user] Error when attempting a hello world example
Nevermind. I just realized that my build system was putting the classes in a directory under teh root fo the war file instead of under the WEB-INF directory. Sorry for the trouble. On Mon, 2002-06-03 at 15:06, Eric Anderson wrote: > Hi, I am new to J2EE and JBoss. I am attempting to write a simple hello > world example to try and get thing up an running. The problem I am > getting is that I get a message back that says that it can't find the > servlet that I am trying to load. > > I have a simple servlet class that prints out "Hello World". The source > to it is as follows: > > package net.cordata.HelloWorld.web; > > import java.io.IOException; > import javax.servlet.ServletOutputStream; > import javax.servlet.ServletException; > import javax.servlet.http.HttpServlet; > import javax.servlet.http.HttpServletRequest; > import javax.servlet.http.HttpServletResponse; > > public class HelloWorld extends HttpServlet > { > public void doGet(HttpServletRequest req, HttpServletResponse res) > throws IOException, ServletException > { > res.setContentType("text/plain"); > ServletOutputStream out = res.getOutputStream(); > out.println("Hello World!"); > } > } > > I have this place in a WAR file under > /WEB-INF/classes/net/cordata/HelloWorld/web, and have the following > web.xml file in my /WEB-INF directory: > > > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd";> > > > > Hello World > > Testing using hello world to get servlets working, > and to get directory strucuture setup, and to get > template build system. > > > > webmaster > [EMAIL PROTECTED] > > The webmaster of the app > > > > > HelloWorld > net.cordata.HelloWorld.web.HelloWorld > > > > HelloWorld > /helloworld > > > > 30 > > > > > Finally I have the WAR file placed in a EAR file which has a > application.xml file in META-INF as follows: > > > Hello World > An example application > > > HelloWorld.war > /helloworld > > > > > The when I load up http://:8080/helloworld/helloworld I get a > message stating that it could not find class: > > net.cordata.HelloWorld.web.HelloWorld > > I have searched everywhere I can think of and tried all sorts of > variations, but no luck. If I am doing something stupid because I am new > at this I would greatly appreciate someone pointing out to me what. > Thanks, > > -- > Eric Anderson > CorData Inc. > > ___ > > 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 > -- Eric Anderson CorData Inc. M: 404-293-6124 ___ 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
Re: [JBoss-user] Problem with Interest example
I found the marshalling error problem-- my JBOSS_DIST variable was set to an older version of jboss. I can now communicate with the bean from the hosting computer, but I still cannot access it remotely. Sorry to clutter up the mail list like that, but I was at it for a while before I found that error. Thanks, Jim ___ 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
Re: [JBoss-user] Log4J Problem!!! Please HELP ME
Good point. H... Just a quick thought - what about writing your own org.apache.log4.jspi.Filter that can somehow differentiate between application deployements? That would give you a programatic hook that is easily used from the log4j config file, however how the Filter could differentiate I'm not sure - until I have more time to think about it. After about 30 seconds of thought, maybe you could propogate an appliaction-instance-specific name down the entire thread using java.lang.ThreadLocal in the same way JBoss propogates security information from web tier to ejb tier. You could use some sort of interceptor (appserver specific or generic front-end-controller) as close to the start of a request as possible before you log anything to log4j. Then, your log4j Filter would be able to get() that value from the ThreadLocal variable to make it's decision. Again, not very well thought out - but it might give you a place to start poking around. David -- Michael Klem wrote: >> >> 2) IMHO, what level gets logged and to where (file, rolling file, >> email, etc.) is very much a concern of the administrator of a site, >> moreso than the developer at that point. >> As an administrator with multiple apps to worry about, I would want >> centralized control over all logging of all deployed apps, which is >> what you get with how JBoss uses log4j. >> Why would you want to put log4j config'ing deep in an .*ar file where >> an admin can't reach it without cracking it open? > > > OK, if I use the single log4j.properties file in jboss/conf/tomcat how > do you specify which app logs to which log file? I am able to filter > messages from specific packages to specific log files but that won't > help when the same packages are used in multiple apps. > > For example: > > # This filters everything from foo.bar into the myLog file. > # How do you specify everything from App1 to be logged to App1.log? > log4j.category.foo.bar=ALL,A3 > log4j.appender.A3=org.apache.log4j.FileAppender > log4j.appender.A3.File=../log/myLog.log > log4j.appender.A3.Append=false > log4j.appender.A3.layout=org.apache.log4j.PatternLayout > log4j.appender.A3.layout.ConversionPattern=%5r %-5p [%t] %c{2} - %m%n > > >> Michael Klem wrote: >> >>> Oops! I meant JBoss 2.4.2 >>> > I believe one of the changes from 2.2 to 2.4 was that 2.4 includes > log4j. What you're seeing is probably from a ClassCastException > where there are two copies of org.apache.log4j.Category - one in > your application and one in JBoss' lib/ext directory. Does this mean that we are forced to use the version of log4j that JBoss 3.2.3 uses? > Try taking all log4j classes out of your application. You'll also > want to set up your categories in the log4j.properties in the JBoss > conf subdirectory that corresponds to the configuration you're > running. It seems like it would be easier, from a developer's point of view, to deploy your J2EE package without requiring the user to modify files outside of your ear, war or jar package. It would be nice for each app to include their own log4.properties files in their package. This way I should in theory just be able give my package to my customers and they just need to add it to their deploy directories. > hth, > danch > > [EMAIL PROTECTED] wrote: > >> I have a problem in JBoss2-4.4. I have several bean that use log4j >> to log >> some aplication event. Thats beans work fine in JBoss-2.2, but >> when I try >> to use JBoss-2.4.4 I get an error: >> "java.rmi.ServerException: RemoteException occurred in server thread; >> nested exception is: >> java.rmi.ServerException: Transaction rolled >> back:org/apache/log4j/Category >> java.rmi.ServerException: Transaction rolled >> back:org/apache/log4j/Category" >> I try to enable and disable the Log4jService but nothing happen. >> I used my own category file. >> >> Operation System: HP-UX 11 >> JDK: 1.3 >> >> What can I do to solve my problem? I need to solve it quickly. >> >> Please Help. >> Regards. >> Alejandro ___ 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
[JBoss-user] Problem with Interest example
Hi, I'm new to JBoss and I'm having some problems with the Interest example. I am able to deploy the bean, but the client does not work. Run from the same machine as JBoss I get: [ javax.naming.CommunicationException [Root exception is java.rmi.UnmarshalException: error unmarshalling return; nested exception is: [java] java.lang.ClassNotFoundException: org.jnp.interfaces.MarshalledValuePair (no security manager: RMI class loader disabled)] I also can't access the bean from a remote machine, where I get: [java] Got context [java]javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: [java]java.net.ConnectionException: Connection refused: connect] On both machines, I have modified jndi.properties so that java.naming.provider.url=diamond:1099 (diamond is the name of the machine where jboss is running. diamond has an entry in the hosts file on both the remote client and the hosting machine) Why is the ConnectException saying something about 127.0.0.1, since nowhere am I telling it to connect to the localhost? I am using ant intro-interest-client to compile/run the client. - Original Message - From: "Michael Klem" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 03, 2002 12:43 PM Subject: Re: [JBoss-user] Log4J Problem!!! Please HELP ME > Oops! I meant JBoss 2.4.2 > > >>I believe one of the changes from 2.2 to 2.4 was that 2.4 includes > >>log4j. What you're seeing is probably from a ClassCastException > >>where there are two copies of org.apache.log4j.Category - one in > >>your application and one in JBoss' lib/ext directory. > > > >Does this mean that we are forced to use the version of log4j that > >JBoss 3.2.3 uses? > > > >>Try taking all log4j classes out of your application. You'll also > >>want to set up your categories in the log4j.properties in the JBoss > >>conf subdirectory that corresponds to the configuration you're > >>running. > > > > > >It seems like it would be easier, from a developer's point of view, > >to deploy your J2EE package without requiring the user to modify > >files outside of your ear, war or jar package. It would be nice for > >each app to include their own log4.properties files in their > >package. This way I should in theory just be able give my package to > >my customers and they just need to add it to their deploy > >directories. > > > > > >>hth, > >>danch > >> > >>[EMAIL PROTECTED] wrote: > >>>I have a problem in JBoss2-4.4. I have several bean that use log4j to log > >>>some aplication event. Thats beans work fine in JBoss-2.2, but when I try > >>>to use JBoss-2.4.4 I get an error: > >>>"java.rmi.ServerException: RemoteException occurred in server thread; > >>>nested exception is: > >>> java.rmi.ServerException: Transaction rolled > >>>back:org/apache/log4j/Category > >>>java.rmi.ServerException: Transaction rolled > >>>back:org/apache/log4j/Category" > >>>I try to enable and disable the Log4jService but nothing happen. > >>>I used my own category file. > >>> > >>>Operation System: HP-UX 11 > >>>JDK: 1.3 > >>> > >>>What can I do to solve my problem? I need to solve it quickly. > >>> > >>>Please Help. > >>>Regards. > >>>Alejandro > >>> > >>> > >>> > >>>___ > >>> > >>>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 > >>> > >> > >> > >> > >>-- > >> > >>= > >>Disclaimer: > >>All statements are my own, personal opinions and have nothing to do > >>with the opinions of employer, wife, or cat. They may not have anything > >>to do with objective reality, as a matter of fact. Your Milage May > >>Vary, Excludes Delivery Charges, etc. > >>= > >> > >> > >>___ > >> > >>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 > > > ___ > > Don't
[JBoss-user] Error when attempting a hello world example
Hi, I am new to J2EE and JBoss. I am attempting to write a simple hello world example to try and get thing up an running. The problem I am getting is that I get a message back that says that it can't find the servlet that I am trying to load. I have a simple servlet class that prints out "Hello World". The source to it is as follows: package net.cordata.HelloWorld.web; import java.io.IOException; import javax.servlet.ServletOutputStream; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { res.setContentType("text/plain"); ServletOutputStream out = res.getOutputStream(); out.println("Hello World!"); } } I have this place in a WAR file under /WEB-INF/classes/net/cordata/HelloWorld/web, and have the following web.xml file in my /WEB-INF directory: http://java.sun.com/dtd/web-app_2_3.dtd";> Hello World Testing using hello world to get servlets working, and to get directory strucuture setup, and to get template build system. webmaster [EMAIL PROTECTED] The webmaster of the app HelloWorld net.cordata.HelloWorld.web.HelloWorld HelloWorld /helloworld 30 Finally I have the WAR file placed in a EAR file which has a application.xml file in META-INF as follows: Hello World An example application HelloWorld.war /helloworld The when I load up http://:8080/helloworld/helloworld I get a message stating that it could not find class: net.cordata.HelloWorld.web.HelloWorld I have searched everywhere I can think of and tried all sorts of variations, but no luck. If I am doing something stupid because I am new at this I would greatly appreciate someone pointing out to me what. Thanks, -- Eric Anderson CorData Inc. ___ 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
[JBoss-user] JBoss 3.0 javadoc available?
Hello, Is the api doc for JBoss 3.0 available anywhere? It isn't part of the download package. I got the source from cvs and tried to do a build (after setting docs-javadocs.disable=false in local.properties), but I get an error in the iiop module and the build stops. Is there a build target that will just do javadoc? Thanks, Leila mailto:[EMAIL PROTECTED] ___ 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
Re: [JBoss-user] jmx4odp
Cool. I will try to look at this soon. You might also be interested in the xdoclet stuff I wrote to generate xmbean descriptors from marked up code. I think the subtask is jbossxmbeandescriptor. It's not dynamic, but might be related and/or interesting to look at. Thanks david jencks On 2002.06.03 12:21:25 -0400 lucas mcgregor wrote: > I have been working on making open source tools that use JMX to create > open > distributed processing systems. I have just released a simple package > that > dynamically creates Model MBeans for objects, remote objects, and EJB's. > It > has an example server which will make MBeans for the entire contents of a > > JNDI tree. I have found this helpful in testing EJB's that I am > developing > under JBoss. > > It is available for download from sourceforge: > > http://sourceforge.net/project/showfiles.php?group_id=53232 > > I hope that someone out there can find it useful. > > Lucas McGregor (JMX4ODP Project) > > _ > Send and receive Hotmail on your mobile device: http://mobile.msn.com > > > ___ > > 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
Re: [JBoss-user] Log4J Problem!!! Please HELP ME
I usually do something like this... put a log4j properties file in your application e/j/war file, and somewhere in the initialization of the application do this: (sorry for the poor formatting) private void init(){ ResourceBundle bundle = ResourceBundle.getBundle("com.kcp.sso.log4j"); Properties props = new Properties(); String tempKey = null; for (Enumeration resourceKeys = bundle.getKeys(); resourceKeys.hasMoreElements();) { tempKey = (String)resourceKeys.nextElement(); props.setProperty(tempKey, bundle.getString(tempKey)); } // end of for () bundle = null; tempKey = null; PropertyConfigurator.configure(props); } That way, as long as log4j is in the classpath of the app server, the application can configure itself. Tim On Mon, 2002-06-03 at 11:39, [EMAIL PROTECTED] wrote: > > > It seems like it would be easier, from a developer's point of view, > to deploy your J2EE package without requiring the user to modify > files outside of your ear, war or jar package. It would be nice for > each app to include their own log4.properties files in their package. > This way I should in theory just be able give my package to my > customers and they just need to add it to their deploy directories. > > > > >hth, > >danch > > > >[EMAIL PROTECTED] wrote: > >>I have a problem in JBoss2-4.4. I have several bean that use log4j to log > >>some aplication event. Thats beans work fine in JBoss-2.2, but when I try > >>to use JBoss-2.4.4 I get an error: > >>"java.rmi.ServerException: RemoteException occurred in server thread; > >>nested exception is: > >> java.rmi.ServerException: Transaction rolled > >>back:org/apache/log4j/Category > >>java.rmi.ServerException: Transaction rolled > >>back:org/apache/log4j/Category" > >>I try to enable and disable the Log4jService but nothing happen. > >>I used my own category file. > >> > >>Operation System: HP-UX 11 > >>JDK: 1.3 > >> > >>What can I do to solve my problem? I need to solve it quickly. > >> > >>Please Help. > >>Regards. > >>Alejandro > >> > >> > >> > >>___ > >> > >>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 > >> > > > > > > > >-- > > > >= > >Disclaimer: > >All statements are my own, personal opinions and have nothing to do > >with the opinions of employer, wife, or cat. They may not have anything > >to do with objective reality, as a matter of fact. Your Milage May > >Vary, Excludes Delivery Charges, etc. > >= > > > > > >___ > > > >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 > -- Timothy Freund IT System Engineer Honeywell Federal Manufacturing & Technologies ___ 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
RE: [JBoss-user] How to configure mySQL with JBoss 2.4.4
Title: RE: [JBoss-user] How to configure mySQL with JBoss 2.4.4 Put the driver in your class path. /lib/ext should work. We use the mm.mysql-2.0.13 driver. Here's what I had to change in the jboss.jcml file for MySQL: org.hsqldb.jdbcDriver,org.gjt.mm.mysql.Driver org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl MySQLPool jdbc:mysql://mysql1/test ajay ajay I also modified standardjaws.xml (lines 3 and 4) to make MySQLPool the default datasource (instead of Hypersonic) and changed the type mapping to MySQL as well: java:/MySQLPool mySQL -Original Message- From: madhu [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 12:57 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] How to configure How to configure the mySQL with the jboss 2.4.4 ___ 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
Re: [JBoss-user] Log4J Problem!!! Please HELP ME
> >2) IMHO, what level gets logged and to where (file, rolling file, >email, etc.) is very much a concern of the administrator of a site, >moreso than the developer at that point. >As an administrator with multiple apps to worry about, I would want >centralized control over all logging of all deployed apps, which is >what you get with how JBoss uses log4j. >Why would you want to put log4j config'ing deep in an .*ar file >where an admin can't reach it without cracking it open? OK, if I use the single log4j.properties file in jboss/conf/tomcat how do you specify which app logs to which log file? I am able to filter messages from specific packages to specific log files but that won't help when the same packages are used in multiple apps. For example: # This filters everything from foo.bar into the myLog file. # How do you specify everything from App1 to be logged to App1.log? log4j.category.foo.bar=ALL,A3 log4j.appender.A3=org.apache.log4j.FileAppender log4j.appender.A3.File=../log/myLog.log log4j.appender.A3.Append=false log4j.appender.A3.layout=org.apache.log4j.PatternLayout log4j.appender.A3.layout.ConversionPattern=%5r %-5p [%t] %c{2} - %m%n >Michael Klem wrote: >>Oops! I meant JBoss 2.4.2 >> I believe one of the changes from 2.2 to 2.4 was that 2.4 includes log4j. What you're seeing is probably from a ClassCastException where there are two copies of org.apache.log4j.Category - one in your application and one in JBoss' lib/ext directory. >>> >>> >>>Does this mean that we are forced to use the version of log4j that >>>JBoss 3.2.3 uses? >>> Try taking all log4j classes out of your application. You'll also want to set up your categories in the log4j.properties in the JBoss conf subdirectory that corresponds to the configuration you're running. >>> >>> >>> >>>It seems like it would be easier, from a developer's point of >>>view, to deploy your J2EE package without requiring the user to >>>modify files outside of your ear, war or jar package. It would be >>>nice for each app to include their own log4.properties files in >>>their package. This way I should in theory just be able give my >>>package to my customers and they just need to add it to their >>>deploy directories. >>> hth, danch [EMAIL PROTECTED] wrote: >I have a problem in JBoss2-4.4. I have several bean that use log4j to log >some aplication event. Thats beans work fine in JBoss-2.2, but when I try >to use JBoss-2.4.4 I get an error: >"java.rmi.ServerException: RemoteException occurred in server thread; >nested exception is: > java.rmi.ServerException: Transaction rolled >back:org/apache/log4j/Category >java.rmi.ServerException: Transaction rolled >back:org/apache/log4j/Category" >I try to enable and disable the Log4jService but nothing happen. >I used my own category file. > >Operation System: HP-UX 11 >JDK: 1.3 > >What can I do to solve my problem? I need to solve it quickly. > >Please Help. >Regards. >Alejandro > > > >___ > >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 > -- = Disclaimer: All statements are my own, personal opinions and have nothing to do with the opinions of employer, wife, or cat. They may not have anything to do with objective reality, as a matter of fact. Your Milage May Vary, Excludes Delivery Charges, etc. = ___ 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 >> >> >> >>___ >> >>Don't miss the 2002 Sprint PCS Application Developer's Conference >>August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm >> >>
RE: [JBoss-user] MBeans location for J2EE Deployment
Title: RE: [JBoss-user] MBeans location for J2EE Deployment You create a .sar file and deploy that in the JBoss deploy directory. I know you can put a .sar inside an EJB jar. I would guess you can put a .sar inside an .ear also, but I haven't actually tried this. JD -Original Message- From: Michael Klem [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 3:53 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] MBeans location for J2EE Deployment I am new to JMX and after running some JMX sample apps wondered where is the correct location for deploying MBeans with my J2EE app. I get the impression from reading some documentation that they need to reside on the server side. Can I add MBeans to my ear files? ___ 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
Re: [JBoss-user] Log4J Problem!!! Please HELP ME
1) Man, I can't wait till JBoss 3.2.3 comes out. It's going to kick some serious butt. 2) IMHO, what level gets logged and to where (file, rolling file, email, etc.) is very much a concern of the administrator of a site, moreso than the developer at that point. As an administrator with multiple apps to worry about, I would want centralized control over all logging of all deployed apps, which is what you get with how JBoss uses log4j. Why would you want to put log4j config'ing deep in an .*ar file where an admin can't reach it without cracking it open? David -- Michael Klem wrote: > Oops! I meant JBoss 2.4.2 > >>> I believe one of the changes from 2.2 to 2.4 was that 2.4 includes >>> log4j. What you're seeing is probably from a ClassCastException where >>> there are two copies of org.apache.log4j.Category - one in your >>> application and one in JBoss' lib/ext directory. >> >> >> Does this mean that we are forced to use the version of log4j that >> JBoss 3.2.3 uses? >> >>> Try taking all log4j classes out of your application. You'll also >>> want to set up your categories in the log4j.properties in the JBoss >>> conf subdirectory that corresponds to the configuration you're running. >> >> >> >> It seems like it would be easier, from a developer's point of view, to >> deploy your J2EE package without requiring the user to modify files >> outside of your ear, war or jar package. It would be nice for each app >> to include their own log4.properties files in their package. This way >> I should in theory just be able give my package to my customers and >> they just need to add it to their deploy directories. >> >> >>> hth, >>> danch >>> >>> [EMAIL PROTECTED] wrote: >>> I have a problem in JBoss2-4.4. I have several bean that use log4j to log some aplication event. Thats beans work fine in JBoss-2.2, but when I try to use JBoss-2.4.4 I get an error: "java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: Transaction rolled back:org/apache/log4j/Category java.rmi.ServerException: Transaction rolled back:org/apache/log4j/Category" I try to enable and disable the Log4jService but nothing happen. I used my own category file. Operation System: HP-UX 11 JDK: 1.3 What can I do to solve my problem? I need to solve it quickly. Please Help. Regards. Alejandro ___ 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 >>> >>> >>> >>> -- >>> >>> = >>> >>> Disclaimer: >>> All statements are my own, personal opinions and have nothing to do >>> with the opinions of employer, wife, or cat. They may not have anything >>> to do with objective reality, as a matter of fact. Your Milage May >>> Vary, Excludes Delivery Charges, etc. >>> = >>> >>> >>> >>> ___ >>> >>> 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 > > > > ___ > > 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 -- - David Ward [EMAIL PROTECTED] http://www.dotech.com ___ 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
[JBoss-user] Manifest classloading behaviour
Hi, I'm using manifests to extend the classpath of my EJBs. I have a duplicated class due to a bug in the implementation of a thirdparty library, and in the manifest, the jar with my patch appears before the thirdparty buggy jar. I've noticed that the class that is loaded is the buggy one, and inspecting jboss source code I've seen that it's due to the way classes are loaded (Use of Hashsets) so no order in classloading can be supposed. My question is: Is this a design decision in the classloading or an unexpected issue? I know that having duplicated classes in the classpath is nasty, but I thought that the manifest would preserve the order of the classes. Thanks in advance. Ferran. PS: I'm using jboss3.0.0-tomcat4.0.3 ___ 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
RE: [JBoss-user] session timeout
Title: RE: [JBoss-user] session timeout Another possible solution is to change the UI on your web app that queries the db to tell the user to wait for the query or provide some animated progress bar to occupy them so they don't realize it's taking a long time. JD -Original Message- From: Tia Haenni [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 8:27 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] session timeout My network admin wants to set an Oracle timeout for all users because web users tend to try a query over and over again when it is slow. Of course, closing the browser and going right back in doesn't stop the query from running, so then Oracle has a bunch of queries running that cause high CPU usage. I think the best solution here is to set the timeout for web users only (the app using JBoss is not a web app). Where do you set the pool timeout value? Thanks for the reply. From: "Guy Rouillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] session timeout Date: Sat, 1 Jun 2002 01:23:38 -0400 Reply-To: [EMAIL PROTECTED] What are you trying to accomplish? If you use regular pooled connections, you should issue a close() on the connection at the end of each EJB method. This will return the connection to the pool, but will NOT close the underlying connection. Then set your pool timeout value to something less than your connection timeout value set by your Oracle DBA. That will close the underlying connection, and open up a new one. We have used this standard configuration for a year now, first under 8.1.6 and now under 9 with no issues. Why do you want to force the underlying connection closed after each method? That negates the purpose of pooled connections, and I don't see what it buys you. - Original Message - From: "Tia Haenni" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 31, 2002 3:08 PM Subject: [JBoss-user] session timeout >> Does anyone know of a way to configure JBoss 2.4.3 to close it's >> database connection between EJB invocations? I am dealing with Oracle >> 8.1.5. Tx > ___ 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
Re: [JBoss-user] Log4J Problem!!! Please HELP ME
Oops! I meant JBoss 2.4.2 >>I believe one of the changes from 2.2 to 2.4 was that 2.4 includes >>log4j. What you're seeing is probably from a ClassCastException >>where there are two copies of org.apache.log4j.Category - one in >>your application and one in JBoss' lib/ext directory. > >Does this mean that we are forced to use the version of log4j that >JBoss 3.2.3 uses? > >>Try taking all log4j classes out of your application. You'll also >>want to set up your categories in the log4j.properties in the JBoss >>conf subdirectory that corresponds to the configuration you're >>running. > > >It seems like it would be easier, from a developer's point of view, >to deploy your J2EE package without requiring the user to modify >files outside of your ear, war or jar package. It would be nice for >each app to include their own log4.properties files in their >package. This way I should in theory just be able give my package to >my customers and they just need to add it to their deploy >directories. > > >>hth, >>danch >> >>[EMAIL PROTECTED] wrote: >>>I have a problem in JBoss2-4.4. I have several bean that use log4j to log >>>some aplication event. Thats beans work fine in JBoss-2.2, but when I try >>>to use JBoss-2.4.4 I get an error: >>>"java.rmi.ServerException: RemoteException occurred in server thread; >>>nested exception is: >>> java.rmi.ServerException: Transaction rolled >>>back:org/apache/log4j/Category >>>java.rmi.ServerException: Transaction rolled >>>back:org/apache/log4j/Category" >>>I try to enable and disable the Log4jService but nothing happen. >>>I used my own category file. >>> >>>Operation System: HP-UX 11 >>>JDK: 1.3 >>> >>>What can I do to solve my problem? I need to solve it quickly. >>> >>>Please Help. >>>Regards. >>>Alejandro >>> >>> >>> >>>___ >>> >>>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 >>> >> >> >> >>-- >> >>= >>Disclaimer: >>All statements are my own, personal opinions and have nothing to do >>with the opinions of employer, wife, or cat. They may not have anything >>to do with objective reality, as a matter of fact. Your Milage May >>Vary, Excludes Delivery Charges, etc. >>= >> >> >>___ >> >>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 ___ 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
Re: [JBoss-user] Log4J Problem!!! Please HELP ME
>I believe one of the changes from 2.2 to 2.4 was that 2.4 includes >log4j. What you're seeing is probably from a ClassCastException >where there are two copies of org.apache.log4j.Category - one in >your application and one in JBoss' lib/ext directory. Does this mean that we are forced to use the version of log4j that JBoss 3.2.3 uses? >Try taking all log4j classes out of your application. You'll also >want to set up your categories in the log4j.properties in the JBoss >conf subdirectory that corresponds to the configuration you're >running. It seems like it would be easier, from a developer's point of view, to deploy your J2EE package without requiring the user to modify files outside of your ear, war or jar package. It would be nice for each app to include their own log4.properties files in their package. This way I should in theory just be able give my package to my customers and they just need to add it to their deploy directories. >hth, >danch > >[EMAIL PROTECTED] wrote: >>I have a problem in JBoss2-4.4. I have several bean that use log4j to log >>some aplication event. Thats beans work fine in JBoss-2.2, but when I try >>to use JBoss-2.4.4 I get an error: >>"java.rmi.ServerException: RemoteException occurred in server thread; >>nested exception is: >> java.rmi.ServerException: Transaction rolled >>back:org/apache/log4j/Category >>java.rmi.ServerException: Transaction rolled >>back:org/apache/log4j/Category" >>I try to enable and disable the Log4jService but nothing happen. >>I used my own category file. >> >>Operation System: HP-UX 11 >>JDK: 1.3 >> >>What can I do to solve my problem? I need to solve it quickly. >> >>Please Help. >>Regards. >>Alejandro >> >> >> >>___ >> >>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 >> > > > >-- > >= >Disclaimer: >All statements are my own, personal opinions and have nothing to do >with the opinions of employer, wife, or cat. They may not have anything >to do with objective reality, as a matter of fact. Your Milage May >Vary, Excludes Delivery Charges, etc. >= > > >___ > >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
[JBoss-user] jmx4odp
I have been working on making open source tools that use JMX to create open distributed processing systems. I have just released a simple package that dynamically creates Model MBeans for objects, remote objects, and EJB's. It has an example server which will make MBeans for the entire contents of a JNDI tree. I have found this helpful in testing EJB's that I am developing under JBoss. It is available for download from sourceforge: http://sourceforge.net/project/showfiles.php?group_id=53232 I hope that someone out there can find it useful. Lucas McGregor (JMX4ODP Project) _ Send and receive Hotmail on your mobile device: http://mobile.msn.com ___ 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
Re: [JBoss-user] Log4J Problem!!! Please HELP ME
I believe one of the changes from 2.2 to 2.4 was that 2.4 includes log4j. What you're seeing is probably from a ClassCastException where there are two copies of org.apache.log4j.Category - one in your application and one in JBoss' lib/ext directory. Try taking all log4j classes out of your application. You'll also want to set up your categories in the log4j.properties in the JBoss conf subdirectory that corresponds to the configuration you're running. hth, danch [EMAIL PROTECTED] wrote: > I have a problem in JBoss2-4.4. I have several bean that use log4j to log > some aplication event. Thats beans work fine in JBoss-2.2, but when I try > to use JBoss-2.4.4 I get an error: > "java.rmi.ServerException: RemoteException occurred in server thread; > nested exception is: > java.rmi.ServerException: Transaction rolled > back:org/apache/log4j/Category > java.rmi.ServerException: Transaction rolled > back:org/apache/log4j/Category" > I try to enable and disable the Log4jService but nothing happen. > I used my own category file. > > Operation System: HP-UX 11 > JDK: 1.3 > > What can I do to solve my problem? I need to solve it quickly. > > Please Help. > Regards. > Alejandro > > > > ___ > > 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 > -- = Disclaimer: All statements are my own, personal opinions and have nothing to do with the opinions of employer, wife, or cat. They may not have anything to do with objective reality, as a matter of fact. Your Milage May Vary, Excludes Delivery Charges, etc. = ___ 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
RE: [JBoss-user] dynamic queue's
I am not sure if you meant actually creating a service, like a XA JMX socket, or if you meant creating a new Topic/Queue. If you mean that later, yes you can. Here is the link to the JBoss Manual page that tells you how to connect to the JMS service and create a new topic or queue programmatically. http://www.jboss.org/online-manual/HTML/ch08s07.html hope that helps, lucas mcgregor -Original Message- From: Marius Kotsbak [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 02, 2002 1:51 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] dynamic queue's It is possible by talking with the JMS-MBeans. Check host:8082 On søn, 2002-06-02 at 00:07, G.L. Grobe wrote: > Anyone know if it's possible to create Queue's on-the-fly w/o having to administer them into the jboss.jcml files. Problem is, I won't know the queue names or how many I'll need till run-time and havn't found a way to do this yet w/o touching the jboss conf files. > > Any help much appreciated. ___ 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
[JBoss-user] Log4J Problem!!! Please HELP ME
I have a problem in JBoss2-4.4. I have several bean that use log4j to log some aplication event. Thats beans work fine in JBoss-2.2, but when I try to use JBoss-2.4.4 I get an error: "java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: java.rmi.ServerException: Transaction rolled back:org/apache/log4j/Category java.rmi.ServerException: Transaction rolled back:org/apache/log4j/Category" I try to enable and disable the Log4jService but nothing happen. I used my own category file. Operation System: HP-UX 11 JDK: 1.3 What can I do to solve my problem? I need to solve it quickly. Please Help. Regards. Alejandro ___ 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
[JBoss-user] Problem binding on Name Server using RMI/IIOP
Helo, Still trying to use RMI/IIOP with JBoss, and still not working. I've forced my client app to use jacorb by setting properties this way: Properties p = new Properties(); p.put ("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB"); p.put( "org.omg.CORBA.ORBSingletonClass", "org.jacorb.orb.ORBSingleton"); _orb = ORB.init( new String[0], p); Then, when I try to bind to JNDI with the folowing code: public void run () { InitialContext ic = null; java.util.Hashtable p = new java.util.Hashtable(); p.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory"); p.put(Context.PROVIDER_URL, _config.getRootContext()); // IOR from JBoss p.put("java.naming.corba.orb", _orb); while (true) { Runtime.getRuntime().gc(); try { synchronized (this) { this.wait(5000); } if (ic == null) { ic = new InitialContext(p); } ic.rebind( _name, _publisher); } catch (InterruptedException e) { if (ic != null) { try { ic.close(); } catch (Exception ex) {} } try { PortableRemoteObject.unexportObject(_publisher); } catch (Exception ex) {} return; } catch (Exception e) { e.printStackTrace(); } } } I do this to this way so that if JBoss server shuts down, I'll register again when it will be up. But doing this, an exception i thrown: java.lang.ClassCastException: com.sun.corba.se.internal.corba.TypeCodeImpl at org.jacorb.orb.CDROutputStream.write_value(CDROutputStream.java:1465) at org.jacorb.orb.Any.read_value(Any.java:802) at org.omg.CosNaming.NameHelper.insert(NameHelper.java:49) at org.omg.CosNaming._NamingContextStub.rebind(_NamingContextStub.java:99) at com.sun.jndi.cosnaming.CNCtx.callBindOrRebind(CNCtx.java:475) at com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:567) at com.sun.jndi.cosnaming.CNCtx.rebind(CNCtx.java:584) at javax.naming.InitialContext.rebind(InitialContext.java:366) at com.ftrd.cti.server.CTIServerImpl.run(CTIServerImpl.java:2495) at java.lang.Thread.run(Thread.java:484) Any Idea where the problem is ? When I did the same, but without forcing the use of jacorb, I had another Exeption -- [EMAIL PROTECTED] - Atlantide - http://www.ago.fr/atlantide/ Technopole Brest Iroise BP 80802 - Site du Vernis - 29608 Brest cedex - France Tel. : +33 2 98 05 43 21 - Fax. : +33 2 98 05 20 34 e-mail: [EMAIL PROTECTED] Centre Affaires Oberthur - 74D, rue de Paris - 35700 Rennes - France Tel. : +33 2 99 84 15 84 - Fax : +33 2 99 84 15 85 e-mail: [EMAIL PROTECTED] ___ 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
[JBoss-user] URGENT-- pls help, FailedLoginException in UsersRolesLoginModulein JBoss
Hello All, I am trying to implement UsersRolesLoginModule for my EJBs and i have done the following to my application. 1. In the jboss.xml file of my EJB i have added a tag, java:/jaas/print 2. In the C:\JBoss-2.4.4_Tomcat-3.2.3\jboss\conf\tomcat\auth.conf file i have included the following entry: print { org.jboss.security.auth.spi.UsersRolesLoginModule required ; }; 3. In the C:\JBoss-2.4.4_Tomcat-3.2.3\jboss\client\auth.conf file i have included the following entry: print { org.jboss.security.auth.spi.UsersRolesLoginModule required ; }; 4. In the C:\JBoss-2.4.4_Tomcat-3.2.3\jboss\conf\tomcat\jboss.jcml file, i have uncommented the entry: org.jboss.security.plugins.JaasSecurityManag er 5. I have added 2 properties file, users.properties and roles.properties and included them in the jar file i am deploying. The users.properties file has the username and the password in oneline like below: appuser=4colorprint The roles.properties file has the username and the role in oneline like below: appuser=administrator 6. I have implemented the CallHandler as below: public class CallHandler implements CallbackHandler { String userName = PropertyReader.getValue ("WEBLOGIC_APPUSER"); String pass = PropertyReader.getValue ("WEBLOGIC_APPUSER_PASSWORD"); PasswordCallback passwd = null; TextInputCallback text = null; public void handle(Callback[] callback) { System.out.println("USERNAME is " + userName + "..."); System.out.println("PASSWORD is " + pass + ""); try { for(int i=0; ihttp://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Can't access JMS-queue from external app
I'm trying to access a queue defined in jboss from an external java-application. I thought that with the default-security-config I just had to insert user/password in jbossmq-state.xml and securityconf in the queue-mbean. I get this error: WARN [OILServerILService] Client request resulted in a server exception: javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: SMSUt at org.jboss.mq.security.ServerSecurityInterceptor.subscribe(ServerSecurityInterceptor.java:141) at org.jboss.mq.server.TracingInterceptor.subscribe(TracingInterceptor.java:599) at org.jboss.mq.server.JMSServerInvoker.subscribe(JMSServerInvoker.java:298) at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:287) at java.lang.Thread.run(Thread.java:498) Definition of the queue: jboss.mq:service=DestinationManager jboss.mq:service=SecurityManager Default in login-config.xml: guest jboss.mq:service=StateManager In jbossmq-state.xml: boost password Lookup-code: Object o = ictxt.lookup("ConnectionFactory"); connFactory = (QueueConnectionFactory) o; queueConnection = connFactory.createQueueConnection("boost","***password*"); I can't find any doc on security and JMS, just for database in the quickstart-pdf. Is there any somewhere? Marius K Boostcom ___ 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
Re: [JBoss-user] Deployment Descriptor tools
XDoclet on Sourceforge.net. The JBoss project uses it extensively and are, even as we speak adding deployment descriptors for JBoss.net. Fred. At 10:00 AM 6/3/2002, you wrote: >Hi, > Can anyone know any tools for creating deployment >descriptors for JBoss. > >__ >Do You Yahoo!? >Yahoo! - Official partner of 2002 FIFA World Cup >http://fifaworldcup.yahoo.com > >___ > >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
Re: [JBoss-user] Deployment Descriptor tools
XDoclet. http://sourceforge.net/projects/xdoclet/ Not just dd's. Also web tier dd's, ejb interfaces, dto's, other app servers, etc. Requires Ant, which I would strongly suggest anyways. http://jakarta.apache.org/ant/ Have fun, David -- Faisal Naveed wrote: > Hi, > Can anyone know any tools for creating deployment > descriptors for JBoss. > > __ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com > > ___ > > 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 -- - David Ward [EMAIL PROTECTED] http://www.dotech.com ___ 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
[JBoss-user] (no subject)
hey folks, I don't really think it's a real bug in the site, but try to http://www.jboss.org/developers/ (it was in my browser history) you can see the names of the jsp pages... Emerson Cargnin - MSASICREDI - Ramal 3358-4860
[JBoss-user] Deployment Descriptor tools
Hi, Can anyone know any tools for creating deployment descriptors for JBoss. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com ___ 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
[JBoss-user] JBoss in a shared environment
Hi all, I'm planning to provide to all my users support to JBoss. Today they are in a shared environment, using Tomcat 4.0 with a lot of security constraints. In order to provide this support, I'm planning to deploy an application server where I will run dedicated JVMs and shared JVMs depending on the level of the service my users decide to choose. The most important requirement is security, specially in the shared environment. Could someone give me some guidelines on how I could setup JBoss in a shared environment ? I want to constraint the EJBs, so just some predefined host could access it. Any general hint where should I start looking at ? Thanks Renato - Brazil. PS. Maybe this is a FAQ, but I could not find anything very conclusive.Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup
[JBoss-user] Security question
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
[JBoss-user] Runtime Exceptions & Session Invalidation
Hi, every time a runtime exception in our (stateful session) beans occurs, jboss invalidates the session of the user. Specially when using setRollbackOnly() on a transaction this is a problem for us because it invalidates the facade of the current user session so a relogin is neccessary (we only have one SessionBean covering all user actions). Is there any parameter like "InvalidateOnError" as in the DataSource config to disable this behavior? Thanks -- Alexander Sparkowsky, Berlin, Germany ___ 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
Re: [JBoss-user] Windows DLL
now, it is IMHO a bad idea to mixup the platform independend gpa with at last deeply platform dependend jni structures. it would be helpful to draw a visible obvious line between both. have a look at: SWT: The Standard Widget Toolkit PART 1: Implementation Strategy for JavaT Natives Portable and Native - It Can't Be Done! at http://www.eclipse.org/articles/Article-SWT-Design-1/SWT-Design-1.html for an architectural approach for solving this problem and think about implementing this platform dependend layer outside your app as a jmx component at best as a model mbean. mind the gap! especially in win is a mechanism of holding the dll's in a, per os version unequal implemented, system cache after use. there is no standard way of getting rid of the momentarily not used native dynamic libraries. which falls under the 'not appropriate' finding of native methods in the jni specs. hth bax - Original Message - From: "SM Muk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 03, 2002 5:28 AM Subject: [JBoss-user] Windows DLL > Hi, > > I have an application that uses Bridge2Java to access > a VB environment. I need to deploy a Windows DLL file > in order to run Bridge2Java but I have absolutely no > idea where to put it. Can anyone let me know how to > deploy the Windows DLL file? I've tried numerous > methods but none works so far. > > Thanks in advance. > > Best Regards, > Smeng > > __ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > ___ > > 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
RE: [JBoss-user] 3.0QuickStart example/template
On Mon, 2002-06-03 at 10:12, Torsten Terp wrote: > Hi, > > May I ask where you found it? Where you (we) should look at first, CVS. Just take a look at: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/manual/src/guide/ And then chekout the code. Regards, Thelmo ___ 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
RE: [JBoss-user] 3.0QuickStart example/template
Hi, May I ask where you found it? Thanks... ^torsten -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Thelmo Loisio Sent: 3. juni 2002 09:41 To: [EMAIL PROTECTED] Subject: [JBoss-user] 3.0QuickStart example/template I've found the example project from the chapter 3. I'm sorry for my hurry in asking for answer. Regards and thanks for your effort. Thelmo ___ 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
[JBoss-user] 3.0QuickStart example/template
I've found the example project from the chapter 3. I'm sorry for my hurry in asking for answer. Regards and thanks for your effort. Thelmo ___ 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