RE: [JBoss-user] welcome
hi jim, thank you very much for your effort to help me. really appreciate it. went throught the site already and so far everything that i need is there. will go throught it in more detail. There is really no need to apologize. you guys will really hear a lot from me here. so every little help is greatly appreciated cheers, jerome "satoy" satorre -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Archer Sent: Wednesday, April 18, 2001 12:04 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] welcome Hi Jerome... Upon reading my note to you, I can see that it might appear short. I didn't intend it to be, so I apologize. In general, all of the docs available are on the site. Much of them are outdated, but there is currently a huge effort underway to correct that and improvements are made daily. Also, the mail list archives are an excellant resource. They are linked to from the site as well. You can quickly find many answers there. If you don't find what you need, the mail list is always available. Most people on the list will help if they can. I also like to follow the dev list. I don't develope jBoss itself, but I have found that one excellant way to keep on top of what problems and fixes exist and what new features are being worked is to follow this list, particulary the CVS checkin notices that are sent on the dev list. I wish you the best of luck and success. Jim --On Wednesday, April 18, 2001 11:54 AM +0800 "Jerome A. Satorre" [EMAIL PROTECTED] wrote: thanks jim. -Original Message- From: Jim Archer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 10:35 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] welcome Check out: http://www.jboss.org --On Wednesday, April 18, 2001 10:28 AM +0800 "Jerome A. Satorre" [EMAIL PROTECTED] wrote: hi everybody, our company has just decided to implement our system using jboss. im completely new to this. hope somebody can help me get started. anybody can point out nice tutorials or docs? thanks a lot. satoy ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user I shall be telling this with a sigh Somewhere ages and ages hence: Two roads diverged in a wood, and I - I took the one less traveled by, And that has made all the difference. - Robert Frost, 1916 I shall be telling this with a sigh Somewhere ages and ages hence: Two roads diverged in a wood, and I - I took the one less traveled by, And that has made all the difference. - Robert Frost, 1916 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Connection Pools in JBoss
Hi, 1. How can I add a connection pool to a new database at runtime ? 2. I saw in the "Howto - Using MS SQL Server with JBoss" (http://www.jboss.org/documentation/HTML/ch10s17.html) that one of the vendors they author recommended was "i-net OPTA 2000", supports connection pool. Does JBoss rely on this driver feature ? Can I use "i-net Sprinta 2000" which does not support connection pools instead ? Thanks, Avi. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] deploying mbeans, load balancing message driven beans
Hi I've two questions: 1. I wrote a simple mbean and it works fine. Can I add a mbean to jboss by deploying a package or is it possible with modifying the jboss.jcml only ? 2. Is it possible to load balance message driven beans amongst several machines? So I put a large amount of messages into a queue and the application server starts several instances of a message driven bean in several VMs. Gabor ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] BindException when starting Jboss-tomcat2.2
when i start jboss using run.sh im getting this error [EmbeddedTomcat] Starting [EmbeddedTomcat] Starting EmbeddedTomcat 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /examples ) 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /admin ) [EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error messages 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( ) 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /test ) [EmbeddedTomcat] java.net.BindException: Address already in use finally JBoss is started... Is there any problem thanx Arun ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss and Log4j
Ok, this one is for me... I was changing jboss.conf in the default dir and I use the jboss-tomcat integration. I did the change in the conf/tomcat rep and it worked fine. I had also to remove the jboss-auto to remove the double logging... So now, it works... Thanks for the help franois - Original Message - From: "Scott M Stark" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 6:33 PM Subject: Re: [JBoss-user] Jboss and Log4j The Log4jService works fine for me with this jboss.conf entry: MLET CODE = "org.jboss.logging.Log4jService" ARCHIVE="jboss.jar,log4j.jar" CODEBASE="../../lib/ext/" /MLET Send the exception stack trace you are seeing if this is not working. - Original Message - From: "Franois Charoy" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 8:02 AM Subject: Re: [JBoss-user] Jboss and Log4j You are true but the Log4j initialisation is done when jboss is started. So I'm not sure that the property file would be useful. I tried to use the Log4jService but I have never been able to start the service. With this service you can configure the place of your log4j.properties file and changes are checked periodically. I uncomment the lines in jboss.conf but it did not change anything. Thus I tried to start it manually but I got a preRegister exception and that's all... Did somebody succeed in starting the log4j service ? what should I do ? thanks in advance franois - Original Message - From: "Filip Hanik" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 16, 2001 7:05 PM Subject: RE: [JBoss-user] Jboss and Log4j you can easily load a property file using the class loader. this means that you don't have to know the location of your property file, you will simply load it from the class path Thread.currentThread().getContextClassLoader().getResourceAsStream("yourprop ertyfile.properties"); will do the trick for you Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Simphoukham, Southin Sent: Monday, April 16, 2001 9:47 AM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Jboss and Log4j With Log4j you have several options: a properties file, a xml file, or java properties. The first two, you must open up a FileInputStream, therefore you must provide the location of the file. That works great if you are using Windows but with Unix the structure is a bit different plus I wanted to have everything in a war file. I tried jarring it up and using java.io via jarinputstream to read the file, etc. Major headache. The easiest way was to place the info into a constants file, obviously not the best way since you have to hard code. For me if I have to hard code something it sits in a constants file. import org.apache.log4j.PropertyConfigurator; import org.apache.log4j.*; import org.apache.log4j.Category.*; eg: this.serviceProperties = new Properties(); this.serviceProperties.setProperty("log4j.rootCategory",com.Consta nts.ROOT_C ATEGORY); this.serviceProperties.setProperty("log4j.appender.A1",com.Constan ts.PowerCo nstants.A1); //this class from log4j does all the work involved in setting up the file PropertyConfigurator.configure(this.serviceProperties); My constants file looks like this. public final static String ROOT_CATEGORY = ", A1, A2"; public final static String A1 = "org.apache.log4j.FileAppender"; public final static String A1_FILE = "System.out"; Southin -Original Message- From: Miranda Carlos [mailto:[EMAIL PROTECTED]] Sent: Monday, April 16, 2001 11:13 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Jboss and Log4j How ? Thanks .- -Original Message- From: Simphoukham, Southin [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Viernes, 13 de Abril de 2001 06:12 p.m. To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Jboss and Log4j I solved the problem. Put everything into properties, hard code it to a constants file. -Original Message- From: Simphoukham, Southin [ mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Friday, April 13, 2001 11:04 AM To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Jboss and Log4j Does JBoss 2.2 integrate Log4J? Has anyone tried using it with JBoss? I remember seeing a thread on it. I am working on the logging portion of my application. It works great in Windows NT and 2000. Once I port it over to Unix,
RE: [JBoss-user] BindException when starting Jboss-tomcat2.2
Hey, when i start jboss using run.sh im getting this error [EmbeddedTomcat] Starting [EmbeddedTomcat] Starting EmbeddedTomcat 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /examples ) 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /admin ) [EmbeddedTomcat] Starting tomcat. Check logs/tomcat.log for error messages 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( ) 2001-04-18 01:14:47 - ContextManager: Adding context Ctx( /test ) [EmbeddedTomcat] java.net.BindException: Address already in use finally JBoss is started... Is there any problem Yes, probably one of the ports on which Tomcat is listening is already in use (default are 8080, 8007 or 8009). Check this with 'netstat -a' after having shut down Tomcat and JBoss. Simon ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem acceding to Ejb
Hi all, Im using tomcat embedded in jboss. I`m testing Interest emxample. When I try to access to Interest EJB from the command line I havent any problems.But when I try to access it from a servlet I obtain the following error. javax.naming.CommunicationException. Root exception is [EmbeddedTomcat] java.lang.ClassNotFoundException: com.web_tomorrow.interest.InterestHome Can anybody helps me? Thanks Antonio ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jboss server on Linux and jboss client on windows
Hi, I have problem to connect on a linux jboss server with a windows 2000 jboss client ( This problem doesn't occur when I use a windows 2000 jboss server ). The client try to connect on the linux server because tcpdump receive informations from the client. The client have the following exeception: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: no further information] The jvm of the linux server is: java version "1.3.0_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02) Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode) and the jvm of the windows client is: java version "1.3.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C) Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode) Is anyone has already have this problem or know how to resolve this problem? Thanks Templ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Missing or invalid Instance Pool
I got the following error when trying to deploy my bean into Jboss 2.2 (with Tomcat). I'm using the default value/configuration of Jboss/Tomcat. [Container factory] org.jboss.ejb.DeploymentException: Missing or invalid Instan ce Pool (in jboss.xml or standardjboss.xml) [Container factory] at org.jboss.ejb.ContainerFactory.createInstancePool(Con tainerFactory.java:734) [Container factory] at org.jboss.ejb.ContainerFactory.createStatelessSession Container(ContainerFactory.java:565) [Container factory] at org.jboss.ejb.ContainerFactory.createContainer(Contai nerFactory.java:523) [Container factory] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactor y.java:438) [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Container factory] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435) [Container factory] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178) [Container factory] at java.lang.reflect.Method.invoke(Native Method) [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Container factory] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Container factory] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358) [Container factory] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)[Container factory] at java.lang.Thread.run(Thread.java:484) [J2EE Deployer Default] Starting user.jar failed! [J2EE Deployer Default] Module user.jar is not running My jboss.xml is ?xml version="1.0" encoding="Cp1252"? jboss enterprise-beans entity ejb-nameAddressBean/ejb-name jndi-namesdc/smart/user/AddressHome/jndi-name configuration-nameStandard CMP EntityBean/configuration-name /entity entity ejb-nameAdministratorBean/ejb-name jndi-namesdc/smart/user/AdministratorHome/jndi-name configuration-nameStandard CMP EntityBean/configuration-name /entity entity ejb-nameSystemUserBean/ejb-name jndi-namesdc/smart/user/SystemUserHome/jndi-name configuration-nameStandard CMP EntityBean/configuration-name /entity entity ejb-nameCustomerBean/ejb-name jndi-namesdc/smart/user/CustomerHome/jndi-name configuration-nameStandard CMP EntityBean/configuration-name /entity entity ejb-nameReceiverBean/ejb-name jndi-namesdc/smart/user/ReceiverHome/jndi-name configuration-nameStandard CMP EntityBean/configuration-name /entity session ejb-nameUserManagerBean/ejb-name jndi-namesdc/smart/user/UserManagerHome/jndi-name configuration-nameStandard Stateful SessionBean/configuration-name /session securefalse/secure /enterprise-beans /jboss What else I have to do to configure the InstancePool. Any example is very much appreciated. Thanks. Nguyen Thanh Phong Tel: 84-8-837 25 06/837 25 07 Saigon Software Development Company (SDC)Fax: 84-8-837 25 11 10 Co Giang Street, Dist I, HCMC Email: [EMAIL PROTECTED] Vietnam ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB calls Java client
It looks like JMS is the way to go. For the moment I may still use RMI while digesting JMS asap. Thanks Ralph - Original Message - From: Ken Jenks [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 11:02 AM Subject: Re: [JBoss-user] EJB calls Java client At 10:27 AM 4/18/01 +0800, you wrote: Not exactly jBoss but may be it's an easy one: If I have several Java clients cooperating on the same data and I want to inform all participants that some new information arrived or send the information to all - how do I do that using EJB? Can I make a call on a remote object ( implementing java.rmi.Remote ) from within a bean? There is a lot of information on RMI-IIOP, but that talks mainly about cooperation with CORBA objects and exclusively about calling bean methods from a client. Yes, you can, but it's probably a much better architecture to have your bean send out a JMS message, to which your client(s) can subscribe. Partly, the benefit is that your JMS-enabled EJB doesn't need to know anything about the client(s) that might receive its messages, while an RMI-enabled EJB would need to be compiled against each client's RMI stub class. For example: public String ejbCreate (String _id) { id = _id; PublishTextMessage(null, null, "beanTopic", "create", null); return null; } public void ejbRemove() { PublishTextMessage(null, null, "beanTopic", "remove", null); } where PublishTextMessage( String java_naming_factory_initial, String java_naming_provider_url, String topicName, String textMessage, Properties beanProp) will just publish a JMS TextMessage on an appropriate topic name. You can even send out a mirror-image of the bean as an ObjectMessage. -- Ken Jenks, http://abiblion.com/ Tools for reading. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] XAQueueConnectionFactory not found
Hi, I'm trying to deploy a Message Driven Bean but the auto deployer fails with a javax.naming.NameNotFoundException: XAQueueConnectionFactory not bound. The only place where I see this name is in jbossmq.xml in the InvocationLayer element. What am I missing? thanks, Alexander Jerusalem ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss server on Linux and jboss client on windows
At 12:13 PM 4/18/01 +0200, you wrote: Hi, I have problem to connect on a linux jboss server with a windows 2000 jboss client ( This problem doesn't occur when I use a windows 2000 jboss server ). The client try to connect on the linux server because tcpdump receive informations from the client. The client have the following exeception: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: no further information] I can tell from the "127.0.0.1" that your client is trying to connect with itself, not with the server. You need to specify a property, java.naming.provider.url=your_server_address:1099 You can do this on the command line like this: java -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.provider.url=localhost:1099 -classpath eb;..\..\client\jboss-client.jar;..\..\client\jbosssx-client.jar;..\..\lib\ext\ejb.jar;..\..\lib\ext\jms.jar;..\..\lib\ext\jbossmq.jar com.web_tomorrow.cd.SwingGUIApp -- Ken Jenks, http://abiblion.com/ Tools for reading. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] sql output
Hi Is it possible to get JBoss to show the generated SQL when I use a CMP method ?? i.e. cdhome.create ("flemmin"); would cause something like insert into cd values ("flemmin",..) /flemming ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] No resource manager found
Hi all , I am using RedHat6.1 , postgresql7.0.1 ,jboss2.1 and jdk.1.3. Do i need to worry if where start the jboss , i have the error below : [Container-Factory]No resource manager found for jdbc/PostgresDS However , when i called ejb create , the records is inserted in my table and did not give me any error. Are this jboss bugs ? Thanks wt. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Tomcat jBoss security
Thanks for the help. Changing the order so that JbossRealm followed JDBCRealm did the trick. Thanks again Dug -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Scott M Stark Sent: 17 April 2001 20:17 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Tomcat jBoss security The JavaPetStore example uses JDBCRealm and JbossRealm successfully. The order of JDBCRealm and JbossRealm in the server.xml is significant and JbossRealm must follow JDBCRealm. - Original Message - From: "Dug" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 9:34 AM Subject: RE: [JBoss-user] Tomcat jBoss security Have you actually managed to get the servlet -- bean security working? Dug ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Rép. : Re: [JBoss-user] Jboss server on Linux and jboss client on windows
Hello, Thanks for your answer. I don't really the exception because I know that the client try to connect on the remote server because I do a tcpdump and I see trafic from the client... I try too your command line. Thanks Templ [EMAIL PROTECTED] 18/ 4 13h15 At 12:13 PM 4/18/01 +0200, you wrote: Hi, I have problem to connect on a linux jboss server with a windows 2000 jboss client ( This problem doesn't occur when I use a windows 2000 jboss server ). The client try to connect on the linux server because tcpdump receive informations from the client. The client have the following exeception: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: no further information] I can tell from the "127.0.0.1" that your client is trying to connect with itself, not with the server. You need to specify a property, java.naming.provider.url=your_server_address:1099 You can do this on the command line like this: java -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.provider.url=localhost:1099 -classpath eb;..\..\client\jboss-client.jar;..\..\client\jbosssx-client.jar;..\..\lib\ext\ejb.jar;..\..\lib\ext\jms.jar;..\..\lib\ext\jbossmq.jar com.web_tomorrow.cd.SwingGUIApp -- Ken Jenks, http://abiblion.com/ Tools for reading. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Tomcat authentication problem
Hi, I have successfully installed jBoss2.2+Tomcat and have deployed an application. I have secured my EJB beans with JAAS. When I access my beans with a Java client, I can use my ejb beans without any problem after logging in. If I try to access my beans from within a jsp (through a bean), I get the following error: [PersonBean] javax.security.auth.login.LoginException: java.lang.NullPointerException at org.jboss.security.auth.SecurityAssociationHandler.getPassword(SecurityAssociationHandler.java:125) at org.jboss.security.auth.SecurityAssociationHandler.handle(SecurityAssociationHandler.java:83) at javax.security.auth.login.LoginContext$4.run(LoginContext.java:731) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext.java:727) at org.jboss.security.plugins.samples.UsernamePasswordLoginModule.getUsernameAndPassword(UsernamePasswordLoginModule.java:133) at org.jboss.security.plugins.samples.UsernamePasswordLoginModule.login(UsernamePasswordLoginModule.java:76) at org.jboss.security.plugins.samples.JaasServerLoginModule.login(JaasServerLoginModule.java:105) at java.lang.reflect.Method.invoke(Native Method) at javax.security.auth.login.LoginContext.invoke(LoginContext.java:595) at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125) at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528) at javax.security.auth.login.LoginContext.login(LoginContext.java:449) at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:332) at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:301) at org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:193) at org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:209) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:144) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106) at org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java:316) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:436) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:212) at $Proxy62.findByPrimaryKey(Unknown Source) at be.idewe.planning.bean.PersonBean.processRequest(PersonBean.java:68) at planning._0002fplanning_0002fperson_0002ejspperson_jsp_1._jspService(_0002fplanning_0002fperson_0002ejspperson_jsp_1.java:102) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) [PersonBean]at javax.security.auth.login.LoginContext.invoke(LoginContext.java:650) [PersonBean]at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125) [PersonBean]at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531) [PersonBean]at java.security.AccessController.doPrivileged(Native Method) [PersonBean]at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528) [PersonBean]at javax.security.auth.login.LoginContext.login(LoginContext.java:449) [PersonBean]at org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:332) [PersonBean]at org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:301) [PersonBean]at
Re: [JBoss-user] SAXParse Excpetion
Hi Scott, First of all the reason I needed the xerces parser was to be able to use some DOM2 features like importNode as well as some features of XALAN 2.0.1 To specify the xerces parser rather than the crimson I simply changed the run.bat to specify the new JAXP information: set CLASSPATH=%CLASSPATH%;../lib/ext/xerces.jar set JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl set JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl I then put the xerces.jar, and xalan.jar into the lib/ext directory. Andrew Edgar Scott M Stark wrote: Then how are you specifying the JAXP properties to use xerces rather than crimson? - Original Message - From: "Andrew Edgar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 11:44 AM Subject: Re: [JBoss-user] SAXParse Excpetion I tried that. It came back with exactly the same error. Trying really invalid values like "BADENCODING" returned saying that "BADENCODING" not supported but when specifying either Cp1252 or UTF-8 I got the same error saying Cp1252 was not supported. Thanks, Andrew ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user S/MIME Cryptographic Signature
Re: [JBoss-user] non embedded Tomcat vs. embedded Tomcat
see inline - Original Message - From: "John Menke" [EMAIL PROTECTED] What is the main reason for using embedded Tomcat? Embedded Tomcat will enable your servlets/jsp to access the ejb container within the same VM. This means that the invocation of methods will be intra-VM and extremely fast. Running tour jsp/servlets and your ejb container in spearate VMs will cause a remote method call which is a magnitude or more slower. Embedded Tomcat also gives you the ability to deploy an ear file that contains *both* ejbs and web apps. With Tomcat in separate VMs, webapps are deployed separately from the ejbs. IMHO, embedded Tomcat does not represent a "robust" environment. (Some ppl would argue that Tomcat itself does not represent a robust environment.) For a scalable architecture on a typical web site (static and dynamic targets), I would place Apache at the door and set up one or more tomcat engines to handle the servlet/jsp load. I would then deploy one or more ejb containers. As the load increases you can determine where the bottleneck is and deploy more VMs/Machines to address the need. Currently, Tomcat can be set up to load balance multiple containers against apache. I do not believe the jBoss can be effectively load balanced in the same manner. For example, to communicate to a jBoss server, you get access to the naming service. To do this, you have to hardcode the address of the naming service. Now jBoss will allow multiple containers to share the same naming service, however the service does not allow multiple beans to be deployed to this naming service. When the team addresses this deficiency, jBoss will have taken a huge step forward in failover/clustering support. If there are reasons for the integration, can I achieve the same results with an already existing Tomcat installation and, if so, how do I configure this? As I mentioned, I think running Tomcat in a separate VM makes more sense for any reasonably active web site. There is nothing really to configure. Obviously you need to provide the appropriate jndi properties to allow your servlet/jsp to contact the JNDI service of the ejb container. I would like to run the Java PetStore application and debug JBoss from inside JBuilder, does running a non-embedded version of Tomcat have any implications on either of these areas? When running Embedded Tomcat, you should be able to debug *both* your webapp *and* your ejbs simultaneously. When you separate Tomcat, you can still debug servlet/jsp code *and* ejbs, just not at the same time. Debug can occur remotely or not...your choice. jim ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EjbStudio
I've already mooted this once and it was widely ignored except for one pooh-pooh. The open source version of "show me the money" is "show me the code" so I've built a working prototype of my idea. It isn't ready to use as an IDE, but only for want of some templates and a bit more work on the deployment descriptor generator (which I hope to poach from ejbdoclet). This is intended to be more than another make tool. It attempts to be a complete (if currently rudimentary) IDE, with the steps from code to deployable JAR compressed to FileGenerate. Oh yeah. GUI tools are for wimps, right? Hands up everyone who'd like to know how to compile in-process, without using Runtime.exec to shell javac.exe? There are also some pretty neat file system tools and a class equivalent to jar.exe but in-process and without its more endearing quirks (eg it forces META-INF to upper case). Using GUI tools might be for wimps but writing them isn't. (Oddly, compiling in-process was much easier than shelling javac. The difficulty lay in getting details of the undocumented compiler libraries.) I realise that none of you particularly wants a GUI tool. But I have some news for you. You are outnumbered 100 to 1 by pointy-clicky wimps, and between them they have a lot of budget. Frankly I'd rather they gave it to us than to Microsloth. To test this software you will need JDK122 or JDK13 correctly configured with tools.jar on the system classpath. I'm willing to bet that every last subscriber to this list meets that requirement. So, are you all too thrilled with your make scripts to even consider an alternative, or can I have some constructive feedback from alpha testers? I'm flame-proof, so feel free to address both abuse and offers of review or assistance to [EMAIL PROTECTED] This is not (yet) in CVS so don't bother looking there for it. Peter Routtier-Wone -- May the source be with you. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EjbStudio
A genuine (if naive) question: Apart from the GUI, why is this better than (or different to) Ant? Jim - Original Message - From: "Peter Routtier-Wone" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 2:37 PM Subject: [JBoss-user] EjbStudio I've already mooted this once and it was widely ignored except for one pooh-pooh. The open source version of "show me the money" is "show me the code" so I've built a working prototype of my idea. It isn't ready to use as an IDE, but only for want of some templates and a bit more work on the deployment descriptor generator (which I hope to poach from ejbdoclet). This is intended to be more than another make tool. It attempts to be a complete (if currently rudimentary) IDE, with the steps from code to deployable JAR compressed to FileGenerate. Oh yeah. GUI tools are for wimps, right? Hands up everyone who'd like to know how to compile in-process, without using Runtime.exec to shell javac.exe? There are also some pretty neat file system tools and a class equivalent to jar.exe but in-process and without its more endearing quirks (eg it forces META-INF to upper case). Using GUI tools might be for wimps but writing them isn't. (Oddly, compiling in-process was much easier than shelling javac. The difficulty lay in getting details of the undocumented compiler libraries.) I realise that none of you particularly wants a GUI tool. But I have some news for you. You are outnumbered 100 to 1 by pointy-clicky wimps, and between them they have a lot of budget. Frankly I'd rather they gave it to us than to Microsloth. To test this software you will need JDK122 or JDK13 correctly configured with tools.jar on the system classpath. I'm willing to bet that every last subscriber to this list meets that requirement. So, are you all too thrilled with your make scripts to even consider an alternative, or can I have some constructive feedback from alpha testers? I'm flame-proof, so feel free to address both abuse and offers of review or assistance to [EMAIL PROTECTED] This is not (yet) in CVS so don't bother looking there for it. Peter Routtier-Wone -- May the source be with you. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] non embedded Tomcat vs. embedded Tomcat
Thanks Jim, That clears up allot of questions. The Petstore application uses an .ear file. Maybe if I break this file down into it's ejb and web components I can make it work with a separate Tomcat. As for JNDI, If I had a servlet or JSP page running in a separate Tomcat the call to instantiate the JNDI context would have to be changed in what way? The current examples for a JNDI inside a client show code like this: Object obj = jndiContext.lookup("java:comp/env/ejb/CabinHome"); How would the code in my servlet or JSP do this? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of James Cook Sent: Wednesday, April 18, 2001 9:17 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] "non" embedded Tomcat vs. embedded Tomcat see inline - Original Message - From: "John Menke" [EMAIL PROTECTED] What is the main reason for using embedded Tomcat? Embedded Tomcat will enable your servlets/jsp to access the ejb container within the same VM. This means that the invocation of methods will be intra-VM and extremely fast. Running tour jsp/servlets and your ejb container in spearate VMs will cause a remote method call which is a magnitude or more slower. Embedded Tomcat also gives you the ability to deploy an ear file that contains *both* ejbs and web apps. With Tomcat in separate VMs, webapps are deployed separately from the ejbs. IMHO, embedded Tomcat does not represent a "robust" environment. (Some ppl would argue that Tomcat itself does not represent a robust environment.) For a scalable architecture on a typical web site (static and dynamic targets), I would place Apache at the door and set up one or more tomcat engines to handle the servlet/jsp load. I would then deploy one or more ejb containers. As the load increases you can determine where the bottleneck is and deploy more VMs/Machines to address the need. Currently, Tomcat can be set up to load balance multiple containers against apache. I do not believe the jBoss can be effectively load balanced in the same manner. For example, to communicate to a jBoss server, you get access to the naming service. To do this, you have to hardcode the address of the naming service. Now jBoss will allow multiple containers to share the same naming service, however the service does not allow multiple beans to be deployed to this naming service. When the team addresses this deficiency, jBoss will have taken a huge step forward in failover/clustering support. If there are reasons for the integration, can I achieve the same results with an already existing Tomcat installation and, if so, how do I configure this? As I mentioned, I think running Tomcat in a separate VM makes more sense for any reasonably active web site. There is nothing really to configure. Obviously you need to provide the appropriate jndi properties to allow your servlet/jsp to contact the JNDI service of the ejb container. I would like to run the Java PetStore application and debug JBoss from inside JBuilder, does running a non-embedded version of Tomcat have any implications on either of these areas? When running Embedded Tomcat, you should be able to debug *both* your webapp *and* your ejbs simultaneously. When you separate Tomcat, you can still debug servlet/jsp code *and* ejbs, just not at the same time. Debug can occur remotely or not...your choice. jim ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBossMQ MessageIDs
Hi, can you help me? Does JBossMQ maintains unique JMSMessage IDs for queues? It looks that queue is persistent but JMSMessageIDs aren't unique between different JBoss runs. Sequence is following under JDK1.3 on empty queue (dat file not exists): 1. Start JBossMQ server 2. Post message in existing JMS queue with property name='test' 3. restart JBossMQ server 4. Post another message in existing JMS queue with property name ='another_test' 5. Reguest posted message by known name property using queue browser created with message selector like: "name='another_test''" 6. Retrieved message will have JMSMessageID by which later this message should be acknowledged 7. When message retrieved for acknowledgement using JMSMessageID obtained in 6 it will be message with property name='test' instead of 'another_test' as expected Is it possible to workaround this problem? Looking for your help Max ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Connection Pools in JBoss
Ya, Sprinta2000 doesnt support the XADataSource... I had the same problem and following changes in .jcml file can help u to rock-n-roll... mbean code="org.jboss.jdbc.XADataSourceLoader" name="DefaultDomain:service=XADataSource,name=MSSQL_Sprinta2000" attribute name="DataSourceClass"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImp l/attribute attribute name="PoolName"MSSQL_Sprinta2000/attribute attribute name="URL"jdbc:inetdae7:IPADDRESS:1433?database=DATABASENAME/attribute attribute name="Properties"sql7=true/attribute attribute name="JDBCUser"sa/attribute attribute name="Password"sa/attribute attribute name="MinSize"0/attribute attribute name="MaxSize"10/attribute attribute name="GCEnabled"true/attribute attribute name="GCMinIdleTime"120/attribute attribute name="GCInterval"12/attribute attribute name="InvalidateOnError"false/attribute attribute name="TimestampUsed"false/attribute attribute name="Blocking"true/attribute attribute name="LoggingEnabled"false/attribute attribute name="IdleTimeoutEnabled"false/attribute attribute name="IdleTimeout"180/attribute attribute name="MaxIdleTimeoutPercent"1.0/attribute /mbean HTH -Ashesh. -Original Message- From: Avi Kavas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 1:07 AM To: '[EMAIL PROTECTED]' Cc: Shachar Weis Subject: [JBoss-user] Connection Pools in JBoss Hi, 1. How can I add a connection pool to a new database at runtime ? 2. I saw in the "Howto - Using MS SQL Server with JBoss" (http://www.jboss.org/documentation/HTML/ch10s17.html) that one of the vendors they author recommended was "i-net OPTA 2000", supports connection pool. Does JBoss rely on this driver feature ? Can I use "i-net Sprinta 2000" which does not support connection pools instead ? Thanks, Avi. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Turning on Information Logging
How can I get the jBoss server to log "information" events? jim ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] non embedded Tomcat vs. embedded Tomcat
- Original Message - From: "John Menke" [EMAIL PROTECTED] As for JNDI, If I had a servlet or JSP page running in a separate Tomcat the call to instantiate the JNDI context would have to be changed in what way? You have to get the jndi poperties for jBoss into the Tomcat server. This can be done a number of ways. The easiest is to add: -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.nam ing.provider.url=localhost:1099 to the startup call for Tomcat. You could also put these properties in a jndi.properties file and locate it anywhere in your classpath. Also you can hardcode System.setProperty() calls in your servlet code before you call new InitialContext(). The current examples for a JNDI inside a client show code like this: Object obj = jndiContext.lookup("java:comp/env/ejb/CabinHome"); How would the code in my servlet or JSP do this? This wouldn't change a bit. jim ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] dynamically creating queues
I'm trying to dynamically register queues on the server from my java code. I know you can create temoprary queues with queueSession.createTemporaryQueue. However you have no control over the name of the temporary queue and it cannot be used by any other sender/receiver. queueSession.createQueue(qName) says it dynamically creates a queue, but it doesn't seem to unless the queue is already registered on the server. Is there any way to create and register a queue on the server dynamically in the java code? Are there any administration tools for creating them on the command line? Or do they always have to be created in an XML file? Thanks for any info you may have. Zoa Buske ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Not so much JBoss, but XSL/XSLT
We have run it under Optimize It and the objects appear to be cleaning up properly - in fact, the profiling tool showed us that there was a HUGE number of objects being used just to do a single transformation (as per the XSLT implementation)!! We've thought about the idea of clustering more, smaller sized VM's, but figured that would take a bit more programming to pull off. We had tried running a test case in multiple VM's, but that didn't help too much because the added overhead of the additional VM's killed us (which may be due to how we had tuned the vm settings.) Anyways, back to the drawing board... Robert Robert Schulz [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 04/17/2001 07:22 PM Please respond to jboss-user To:'[EMAIL PROTECTED]' [EMAIL PROTECTED] cc: Subject:RE: [JBoss-user] Not so much JBoss, but XSL/XSLT Don't know about XSL but this sounds like a VM garbage collection problem. What seems to happen with large heap sizes is that it keeps allocating without collecting and then gets tangled up when trying to collect ... try clustering over a number of smaller heap size virtual machines. Also, use some profileing tool (optimize it) to see what's happening and whether you are hanging on to no longer needed objects. R. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 18 April 2001 8:29 To: [EMAIL PROTECTED] Subject: [JBoss-user] Not so much JBoss, but XSL/XSLT Sorry to post this here, but I know more eyes will see it. We've looked at a number of different XSL/XSLT Processors and found one that is documented fairly well, runs fast, but apparently doesn't scale very well. For example, at up to loads of about 300 users it performs very well. But, go beyond that, say to 500 users and it just crawls like a dog - running on a 4-CPU (700MHz each) box with 4G ram!! The cpus are running at about 80% capacity and our memory usage is over 1G (for whatever reason, we can't set the heap size any larger than that). So - anyone have any experiences with XSL transformations and scalability?? I'd love to know. Robert
RE: [JBoss-user] Not so much JBoss, but XSL/XSLT
not that this will solve your problem, it may help you fix it. http://www-106.ibm.com/developerworks/xml/library/x-xslt2/index.html?openl= bigx-2,t=gr,p=x.saxon I know that we used to cache the parsed XSL sheet, this way we increased our performance dramatically, otherwise, the XSLT parser has to parse the XSL everytime you use it. Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED] www.filip.net -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sent: Wednesday, April 18, 2001 7:55 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Not so much JBoss, but XSL/XSLT We have run it under Optimize It and the objects appear to be cleaning up properly - in fact, the profiling tool showed us that there was a HUGE number of objects being used just to do a single transformation (as per the XSLT implementation)!! We've thought about the idea of clustering more, smaller sized VM's, but figured that would take a bit more programming to pull off. We had tried running a test case in multiple VM's, but that didn't help too much because the added overhead of the additional VM's killed us (which may be due to how we had tuned the vm settings.) Anyways, back to the drawing board... Robert Robert Schulz [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 04/17/2001 07:22 PM Please respond to jboss-user To:"'[EMAIL PROTECTED]'" [EMAIL PROTECTED] cc: Subject:RE: [JBoss-user] Not so much JBoss, but XSL/XSLT Don't know about XSL but this sounds like a VM garbage collection problem. What seems to happen with large heap sizes is that it keeps allocating without collecting and then gets tangled up when trying to collect ... try clustering over a number of smaller heap size virtual machines. Also, use some profileing tool (optimize it) to see what's happening and whether you are hanging on to no longer needed objects. R. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 18 April 2001 8:29 To: [EMAIL PROTECTED] Subject: [JBoss-user] Not so much JBoss, but XSL/XSLT Sorry to post this here, but I know more eyes will see it. We've looked at a number of different XSL/XSLT Processors and found one that is documented fairly well, runs fast, but apparently doesn't scale very well. For example, at up to loads of about 300 users it performs very well. But, go beyond that, say to 500 users and it just crawls like a dog - running on a 4-CPU (700MHz each) box with 4G ram!! The cpus are running at about 80% capacity and our memory usage is over 1G (for whatever reason, we can't set the heap size any larger than that). So - anyone have any experiences with XSL transformations and scalability?? I'd love to know. Robert ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Access a bean without using security
Thierry, make sure that jndi.properties on the client has "correct" java.naming.provider.url pointing to the server host. Thierry Templier wrote: Hello, I try to use jBoss on a remote server but I don't want to use security to work with my beans. When my server is started and when I try to make a lookup on a bean, I have this exception on the client: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: no further information] Is anyone has already have this problem? Thanks Templ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user -- __ Alexander Kogan PTC www.ptc.com [EMAIL PROTECTED]140 Kendrick St. Needham MA 02494 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Rép. : Re: [JBoss-user] Jboss server on Linux and jboss client on windows
Thierry Templier wrote: Hello, Thanks for your answer. I don't really the exception because I know that the client try to connect on the remote server Nope, it does NOT. And the exception clearly states that java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested because I do a tcpdump and I see trafic from the client... it can be something different. I try too your command line. Thanks Templ [EMAIL PROTECTED] 18/ 4 13h15 At 12:13 PM 4/18/01 +0200, you wrote: Hi, I have problem to connect on a linux jboss server with a windows 2000 jboss client ( This problem doesn't occur when I use a windows 2000 jboss server ). The client try to connect on the linux server because tcpdump receive informations from the client. The client have the following exeception: javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: no further information] I can tell from the "127.0.0.1" that your client is trying to connect with itself, not with the server. You need to specify a property, java.naming.provider.url=your_server_address:1099 You can do this on the command line like this: java -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.provider.url=localhost:1099 -classpath eb;..\..\client\jboss-client.jar;..\..\client\jbosssx-client.jar;..\..\lib\ext\ejb.jar;..\..\lib\ext\jms.jar;..\..\lib\ext\jbossmq.jar com.web_tomorrow.cd.SwingGUIApp -- Ken Jenks, http://abiblion.com/ Tools for reading. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user -- __ Alexander Kogan PTC www.ptc.com [EMAIL PROTECTED]140 Kendrick St. Needham MA 02494 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Container-Managed Transactions in JBoss
I'm trying to use SQLServer 2000 with the i-net OPTA 2000 driver on JBoss pre-2.1 and am getting "javax.transaction.xa.XAException: The XID is not valid" when I first try to select a row from SQL Server. I've attached more details from the log below, in case it's useful. The support people at I-Net are sayiog that there doesn't seem to be a transaction open when the statement is executed. However, I am using Container-managed transaction handling, with the following entries in the deployment descriptor: - assembly-descriptor container-transaction method ejb-nameSecurity/ejb-name method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor Any help very much appreciated. Regards Dave --- [driveDS] Starting [driveDS] XA Connection pool driveDS bound to java:/driveDS [driveDS] [TDS Driver]getXAConnection( drive, drive ) [driveDS] SQL Server 7 unicode mode [driveDS] Test License with 2 Connections [driveDS] Driver: i-net OPTA 2000 4.00 [driveDS] Statement.close [driveDS] select count(*) from master.dbo.sysprocesses where program_name = 'i-net OPTA 2000' [driveDS] Number of connections :1 [driveDS] Statement.close [driveDS] select value from master..sysoptions where id=101 [driveDS] Statement.close [driveDS] create table master..sysoptions(id int,value numeric(18,0)) insert into master..sysoptions(id,value) values(101,1003136367349) [driveDS] No transaction right now. [driveDS] Pool driveDS [0/0/10] gave out new object: com.inet.tds.k@4b42cf [driveDS] [TDS Driver]XA_CONNECTION_GET [driveDS] [TDS Driver]XA_CONNECTION_FREE [driveDS] Pool driveDS [0/1/10] returned object com.inet.tds.k@4b42cf to the pool. [driveDS] Started [Service Control] Started 25 services [Default] JBoss 2.1-BETA-Mar-26-2001 Started in 0m:11s [driveDS] Connection.close [Security] LOGLEVEL IS 2 [Security] 18/04/2001:10:01:42,DEBUG,executing SELECT * FROM USERDETAIL WHERE USERNAME = 'richarddrew',ve.ejb.classes.SQLManager.executeQuery [Security] LOOKING UP DATASOURCE java:/driveDS [driveDS] Resource 'com.inet.tds.k@4b42cf' enlisted for 'com.inet.tds.k@4b42cf'. [driveDS] Pool driveDS [1/1/10] gave out pooled object: com.inet.tds.k@4b42cf [driveDS] [TDS Driver]XA_CONNECTION_GET [driveDS] SQL Server 7 unicode mode [driveDS] Test License with 2 Connections [driveDS] Driver: i-net OPTA 2000 4.00 [driveDS] Statement.close [driveDS] select count(*) from master.dbo.sysprocesses where program_name ='i-net OPTA 2000' [driveDS] Number of connections :1 [driveDS] Statement.close [driveDS] select value from master..sysoptions where id=101 [driveDS] Statement.close [driveDS] create table master..sysoptions(id int,value numeric(18,0)) insert into master..sysoptions(id,value) values(101,1003136502083) [driveDS] Statement.close [driveDS] SELECT * FROM USERDETAIL WHERE USERNAME = 'richarddrew' [driveDS] javax.transaction.xa.XAException: The XID is not valid. [Security] XAException: tx=XidImpl [FormatId=257, GlobalId=VWSWS6//1, BranchQual=] errorCode=XAER_NOTA [Security] javax.transaction.xa.XAException: The XID is not valid. [Security] at com.inet.tds.k.if(Unknown Source) [Security] at com.inet.tds.k.for(Unknown Source) [Security] at com.inet.tds.k.rollback(Unknown Source) [Security] at org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.java:1552) [Security] at org.jboss.tm.TxCapsule.rollback(TxCapsule.java:408) [Security] at org.jboss.tm.TransactionImpl.rollback(TransactionImpl.java:88) [Security] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptor CMT . java:307) [Security] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99) [Security] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.jav a:1 9 0) [Security] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195) [Security] at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer .ja v a:271) [Security] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPConta iner I nvoker.java:392) [Security] at java.lang.reflect.Method.invoke(Native Method) [Security] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) [Security] at sun.rmi.transport.Transport$1.run(Unknown Source) [Security] at java.security.AccessController.doPrivileged(Native Method) [Security] at sun.rmi.transport.Transport.serviceCall(Unknown Source) [Security] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) [Security] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source) [Security] at java.lang.Thread.run(Unknown Source) [driveDS] javax.transaction.xa.XAException: The XID is not valid. Dave Horner Symularity Limited Leeds Innovation
Re: [JBoss-user] Turning on Information Logging
Nevermind. I see now that Information logging *is* turned on by default. jim - Original Message - From: "James Cook" [EMAIL PROTECTED] To: "jBoss User" [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 10:31 AM Subject: [JBoss-user] Turning on Information Logging How can I get the jBoss server to log "information" events? jim ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] security question (network encryption)
Hi, I haven't used JBoss much recently but did play around with JAAS and wrote a class for authentication and access control using an RDB in version 2.0 (it of course still works in 2.2). I'm now about to look into PKI (Public Key Infrastructure) and its usage with JBoss and have seen some references to SRP (Secure Remote Passwords) but my question is this: What about all the network traffic between the client and the server (over RMI). Is there any implementation at present to encrypt this (per session keys)? And if not could anyone point me in the direction to look into it and do some coding? Thanks in advance, Sean ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] diff in behavior between server-side and client-side
Folks, I just noticed the following behavior and wonder if there are preferred patterns for dealing with it. I've got an entity bean which can presumably be accessed by remote client-side code (e.g. in another VM) or by session beans running in the jboss server VM. Let's say the entity bean has some code like so: private Money moola; /** * @remote-method */ Money getMoney() { return moola; } I noticed that the remote client code gets a copy of moola but the server-side session bean gets a reference to the member itself (and can thus change it). This makes sense but it does mean that the behavior is different for in-VM client code and remote client code. Is this "standard" EJB behavior? One approach to trade some efficiency for safety would be as follows: Money getMoney() { return new Money( moola); } This way the clients would be unable to modify the private member even if they were running in the same VM. Are there other approaches? TIA, Toby Cabot ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] re: jboss 2.2 hangs
This could be due to the new glibc 2.2 in Red Hat 7.x, which is known to not behave according to the assumptions the jdk makes. I just installed Red Hat 7.1 (from 6.2), and it reccommends installing glibc 2.1 compatibility libs and executing the following 2 lines before running java: export LD_ASSUME_KERNEL=2.2.5 . /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh Scott M Stark wrote: Any crash of the VM is a bug in the VM. These are usually bugs in hotspot. If its reproducible report the problem to JavaSoft. - Original Message - From: Yasir To: [EMAIL PROTECTED] Sent: Monday, April 09, 2001 10:47 AM Subject: [JBoss-user] re: jboss 2.2 hangs Im on RedHat linux 7 and using jre/jdk 3.0_02 YSK ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] OracleXADataSource, OracleXid, minerva...XADataSourceImpl
I using MinervaXADataSourceImpl and happy with it. (i was working on Oracle 816 and 815 ) When i started to work with JBoss I was trying Oracle data sources but i was getting errors when i was using BLOB fields and Forein Keys. DD Darius Davidavicius Living-Source http://www.living-source.com/team_employee.php3?e_id=9e_nextid=2 ICQ: 18325334 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to generate the sequence number in Hypersonic
Hi, This may be a very stupid question. I use Auto Increment condition on my ID column and got the error message. Is there any function such as nextval in hypersonic to generate the sequence number? CREATE TABLE sometable ( name VARCHAR(20) NULL, IDINT AUTO INCREMENT NOT NULL, TypeVARCHAR(20) NULL, PRIMARY KEY (ID)); Thanks Pifen Ellwood ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Manual database update lost
Seems like you're fighting the system a bit. My understanding may be incorrect but with CMP, you're telling the system that whatever you have in your EJBs needs to be persisted somehow. When it sees the DB out of sync with the bean, it updates the DB. That's my guess but I'm sure the EJB luminaries will give you more info. Isn't there a flag to tell Jboss that the datasource is shared (i.e. may be updated externally)? Hunter From: "D I Macdonald" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 18 Apr 2001 16:49:14 +0100 To: [EMAIL PROTECTED] Subject: [JBoss-user] Manual database update lost Hi there - I have only recently started coding EJBs and have come across the following problem: I have an entity bean, Customer, which has been set to use CMP based on an existing table structure (using jaws.xml and an Oracle DS). Everything works fine - my client app can retrieve and set data exactly as it should. If I run my client and list all the customers (with a certain findBy criteria), I get FIRSTNAME SURNAMEIDENTIFIER ADDRESS --- --- -- - Jack Vinegar61 The Hill Jill Vinegar62 The Hill (All this does is use a findByX method - no writes to the db are performed.) I then, via sqlplus, change Jill's surname to be "Brown", commit the change, and do a select statement to confirm that it has actually changed. Finally, I run the client again only to see the same result as that given above. I thought it might simply be a caching issue, but sqlplus shows the data in the DB has actually been altered. So my questions are: a) Is it permissable to have more than one agent altering a table which a CMP Bean uses to store its persistent state ? b) If it is, how can I prevent the bean changing data in the DB (except where a set method is deliberately called) ? I see there is a "read-only" tag that can be set, but ideally I would like to have my bean write data as well (when I *ask* it to). Regards D I Macdonald ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] diff in behavior between server-side and client-side
toby cabot wrote: Folks, I just noticed the following behavior and wonder if there are preferred patterns for dealing with it. I've got an entity bean which can presumably be accessed by remote client-side code (e.g. in another VM) or by session beans running in the jboss server VM. Let's say the entity bean has some code like so: private Money moola; /** * @remote-method */ Money getMoney() { return moola; } I noticed that the remote client code gets a copy of moola but the server-side session bean gets a reference to the member itself (and can thus change it). Turn off optimized invocations in jboss.xml The EJB spec mandates that the semantics of calls be as you observe for remote calls, even in-VM. Naturally, all this copying of parameters and return values takes time, so most (if not all) containers have a parameter to disable this. To get spec-compliant behavior, set OptimizedFalse/Optimized in your bean's container-invoker-conf in jboss.xml. -danch Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Manual database update lost
The behavior you observe is because JBoss defaults to 'Commit option A' (see the EJB 1.1 spec for a detailed discussion of this). If you have external (to JBoss) updaters of your database, change your commit-option to B or C in jboss.xml (or standardjboss.xml to change it globally). -danch D I Macdonald wrote: Hi there - I have only recently started coding EJBs and have come across the following problem: I have an entity bean, Customer, which has been set to use CMP based on an existing table structure (using jaws.xml and an Oracle DS). Everything works fine - my client app can retrieve and set data exactly as it should. If I run my client and list all the customers (with a certain findBy criteria), I get FIRSTNAME SURNAMEIDENTIFIER ADDRESS --- --- -- - Jack Vinegar61 The Hill Jill Vinegar62 The Hill (All this does is use a findByX method - no writes to the db are performed.) I then, via sqlplus, change Jill's surname to be "Brown", commit the change, and do a select statement to confirm that it has actually changed. Finally, I run the client again only to see the same result as that given above. I thought it might simply be a caching issue, but sqlplus shows the data in the DB has actually been altered. So my questions are: a) Is it permissable to have more than one agent altering a table which a CMP Bean uses to store its persistent state ? b) If it is, how can I prevent the bean changing data in the DB (except where a set method is deliberately called) ? I see there is a "read-only" tag that can be set, but ideally I would like to have my bean write data as well (when I *ask* it to). Regards D I Macdonald ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] (no subject)
Hi, Good to see the new release of JBoss. I downloaded both the JBoss only package, and the JBoss + Jetty package. On unzipping, I found that JBOss only zip file contains JBoss2.2 folder, while the JBoss+Jetty version has got the old folders (Jboss-pre-2.1) (I downloaded both from http://www.jboss.org/business/binary.html). a) JBoss-2.2(4.30M) [APR-08-2001] b) JBoss-2.2 + Jetty-3.1.RC2 (7.62M) [APR-08-2001] Is it the new JBoss in the jboss-pre-2.1 folders, or is it still the old version? Regards, Sujith. __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Jboss server on Linux and jboss client on windows
Ken Jenks wrote: You can do this on the command line like this: java -Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory -Djava.naming.provider.url=localhost:1099 -classpath or give the client a jndi.properties containing the proper URL in the root of its classpath. Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] porting code...(new2jboss-question)
Is it possible to implement a ejbFindBySQLWhere(java.lang.String) in jboss ? this is finder method is one of the methods that are implemented in Persistance Powertier, and I am working on porting some code from there. Well the Wrapers that powertier generates uses this method. The following lines I found in the ejb 1.1 spec. : The finder methods are generated at the entity bean deployment time using the container provider's tools. The tools can, for example, create a subclass of the entity bean class that implements the ejbFindMETHOD() methods, or the tools can generate the implementation of the finder methods directly in the class that implements the entity bean's home interface. so according to this if it hasnt been built into Jboss its not possible, or what ? thanx, r ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EjbStudio
A very good question and one I'm glad you asked. Make tools assume you've already correctly prepped all of your beans and descriptors. ejbDoclet goes some way to taking the drudge work out of constructing the accompanying paraphernalia like various interface classes and the descriptor. However, it leaves the onus on the user to know about all the info it's going to need (beyond what can be inferred from the implementation bean) and manually include it in javadoc comments in the bean. What I am trying to do is get all this bumph into templates, so if you point and click to create a bean, and you select the bean in the editor, there's a property sheet giving you a fill-in-the-blanks way of not missing anything. This has the pleasant side effect of allowing one to manage all the info describing a bean as though it were part of the bean. For example, the JNDI name and the transaction enlistment are both conceptually attributes of a bean. With the tool I've created, that's the way they are presented - in the property sheet of the bean in question. Likewise for methods. Being template based, if you ask for a new method on a bean, you get a sample signature that includes "throws RemoteException". This stuff is presented in a tree beside a property sheet. There is an Application node with its own properties. Due to the way this tool works, it will be possible to do version control down to the method - it doesn't use files until compile time. Internally it's a DOM, and some types of node cause what amounts to a stream include. Currently that stream is sourced from the file system, but it makes no difference to the rest of the program if the stream comes out of a database blob. A startling but welcome bonus was very much reduced compile time. javac.exe is actually written in java, and when you run it a JVM has to be started. That cost has already been paid by the time you click FileGenerate, and compile times (for trivial beans like Interest) are down by a factor of forty (~100ms on my system). Earlier versions used to shell java.exe and figures were ~4000ms. In fact the difference is more like a factor of 100, because those figures were reported by the compiler in an already loaded JVM, and the current version doesn't have to load a JVM. The jar is automatically constructed. At the moment, DeploymentDescriptorGenerator.generate() is little more than a stub, but based on the time it takes to generate the source files I expect this to make little difference. There'll be more DOM manipulation but less I/O. The time from click to jar is 2-3 seconds on a Celeron 600. Presently I intend to turn the handling for the Generate menu event into an EJB and generate the JAR directly into the deploy folder. - Original Message - From: Jim Downing To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 11:55 PM Subject: Re: [JBoss-user] EjbStudio A genuine (if naive) question: Apart from the GUI, why is this better than (or different to) Ant? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
SV: [JBoss-user] Manual database update lost
Hi, This must be the no. 1 question on the list! :-) jBoss defaults to commit-option A in standardjboss.xml. Basically this means that jBoss is supposed to be the only one fooling around with the datasource. Look in the spec to determine if commit-option B or C is your preferred choise... ^terp -Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Pa vegne af Hunter Hillegas Sendt: 18. april 2001 18:10 Til: JBoss 2 Emne: Re: [JBoss-user] Manual database update lost Seems like you're fighting the system a bit. My understanding may be incorrect but with CMP, you're telling the system that whatever you have in your EJBs needs to be persisted somehow. When it sees the DB out of sync with the bean, it updates the DB. That's my guess but I'm sure the EJB luminaries will give you more info. Isn't there a flag to tell Jboss that the datasource is shared (i.e. may be updated externally)? Hunter From: "D I Macdonald" [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 18 Apr 2001 16:49:14 +0100 To: [EMAIL PROTECTED] Subject: [JBoss-user] Manual database update lost Hi there - I have only recently started coding EJBs and have come across the following problem: I have an entity bean, Customer, which has been set to use CMP based on an existing table structure (using jaws.xml and an Oracle DS). Everything works fine - my client app can retrieve and set data exactly as it should. If I run my client and list all the customers (with a certain findBy criteria), I get FIRSTNAME SURNAMEIDENTIFIER ADDRESS --- --- -- - Jack Vinegar61 The Hill Jill Vinegar62 The Hill (All this does is use a findByX method - no writes to the db are performed.) I then, via sqlplus, change Jill's surname to be "Brown", commit the change, and do a select statement to confirm that it has actually changed. Finally, I run the client again only to see the same result as that given above. I thought it might simply be a caching issue, but sqlplus shows the data in the DB has actually been altered. So my questions are: a) Is it permissable to have more than one agent altering a table which a CMP Bean uses to store its persistent state ? b) If it is, how can I prevent the bean changing data in the DB (except where a set method is deliberately called) ? I see there is a "read-only" tag that can be set, but ideally I would like to have my bean write data as well (when I *ask* it to). Regards D I Macdonald ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] sql output
set the debug option in jaws.xml or standardjaws.xml. Flemming Schmidt Boller wrote: Hi Is it possible to get JBoss to show the generated SQL when I use a CMP method ?? i.e. cdhome.create ("flemmin"); would cause something like insert into cd values ("flemmin",..) /flemming ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user Confidential e-mail for addressee only. Access to this e-mail by anyone else is unauthorized. If you have received this message in error, please notify the sender immediately by reply e-mail and destroy the original communication. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] diff in behavior between server-side and client-side
I'm not sure this is valid behavior, but I can't find anything that applies explicitly to the method return values. This EJB 1.1 spec section on argument values clearly states that passing method arguments by reference is not allowed so I don't know why returning a reference should be valid: quote 18.2.3 Argument passing semantics The enterprise bean's home and remote interfaces are remote interfaces for Java RMI. The Container must ensure the semantics for passing arguments conform to Java RMI. Non-remote objects must be passed by value. Specifically, the EJB Container is not allowed to pass non-remote objects by reference on inter-EJB invocations when the calling and called enterprise beans are collocated in the same JVM. Doing so could result in the multiple beans sharing the state of a Java object, which would break the enterprise. /quote - Original Message - From: "toby cabot" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 8:31 AM Subject: [JBoss-user] diff in behavior between server-side and client-side Folks, I just noticed the following behavior and wonder if there are preferred patterns for dealing with it. I've got an entity bean which can presumably be accessed by remote client-side code (e.g. in another VM) or by session beans running in the jboss server VM. Let's say the entity bean has some code like so: private Money moola; /** * @remote-method */ Money getMoney() { return moola; } I noticed that the remote client code gets a copy of moola but the server-side session bean gets a reference to the member itself (and can thus change it). This makes sense but it does mean that the behavior is different for in-VM client code and remote client code. Is this "standard" EJB behavior? One approach to trade some efficiency for safety would be as follows: Money getMoney() { return new Money( moola); } This way the clients would be unable to modify the private member even if they were running in the same VM. Are there other approaches? TIA, Toby Cabot ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Can't find hypersonic documentation from it web site
I have searched the hypersonic web site http://sourceforge.net/projects/hsql/ and found no documentation at all. Can anyone tell me where to find the hypserson documentation regarding what kind the data type and functions it supports? Thanks Pifen Ellwood ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Download EjbStudio
You can get it from http://wamoz.com/EjbStudio.asp Or at least you will be able to once the evil thing lets me upload the file. It keeps unexpectedly closing the connection during transfer. Peter Routtier-Wone -- May the source be with you. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Book: Enterprise Java with UML, C.T. Arrington
Hi! Has someone already purchase this book ? That's a good book ? Thanks Joel ___ Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, Yahoo! Messenger : http://fr.messenger.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] problem deploying on Solaris
Hi, it's a bug in the JDK, should be fixed in 1.3.1 see http://developer.java.sun.com/developer/bugParade/bugs/4346224.html in the meantime, avoid using char in your bean code -- Juha At 10:24 18.4.2001 -0400, you wrote: Hi, I have a jar I'm trying to deploy on Solaris 8, jdk 1.3.0. It works using Solaris_JDK_1.2.2_06, native threads, sunwjit. I'd like to get it working with 1.3 though. When using jBoss-2.0_FINAL, I get the following error: [J2EE Deployer] javax.management.RuntimeErrorException: Error thrown in operation deploy [J2EE Deployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1642) [J2EE Deployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [J2EE Deployer] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:645) [J2EE Deployer] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:137) [J2EE Deployer] at java.lang.reflect.Method.invoke(Native Method) [J2EE Deployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [J2EE Deployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [J2EE Deployer] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:332) [J2EE Deployer] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:268) [J2EE Deployer] at java.lang.Thread.run(Thread.java:484) I tried upgrading to jboss 2.2 and the error changed a bit: [J2EE Deployer Default] Starting gas.jar failed! [Auto deploy] java.lang.NoClassDefFoundError: java/lang/Char [Auto deploy] at $Proxy40.clinit(Unknown Source) [Auto deploy] at java.lang.reflect.Constructor.newInstance(Native Method) [Auto deploy] at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:562) [Auto deploy] at org.jboss.ejb.plugins.jrmp13.server.JRMPContainerInvoker.init(JRMPContainer Invok er.java:71) [Auto deploy] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.init(JRMPContainerIn voker .java:255) [Auto deploy] at org.jboss.ejb.EntityContainer.init(EntityContainer.java:192) [Auto deploy] at org.jboss.ejb.Application.init(Application.java:183) [Auto deploy] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:337) [Auto deploy] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:275) [Auto deploy] at java.lang.reflect.Method.invoke(Native Method) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Auto deploy] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:435) [Auto deploy] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178) [Auto deploy] at java.lang.reflect.Method.invoke(Native Method) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628) [Auto deploy] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523) [Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358) [Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221) [Auto deploy] at java.lang.Thread.run(Thread.java:484) I checked the code and there is no reference to any "java.lang.Char" or any "Char" class. The closest I use is "java.lang.Character". Any clues? Thanks, Brian ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
On Wed, Apr 18, 2001 at 08:19:31PM +0800, Russell wrote: Hi all , I am using RedHat6.1 , postgresql7.0.1 ,jboss2.1 and jdk.1.3. Do i need to worry if where start the jboss , i have the error below : [Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. However , when i called ejb create , the records is inserted in my table and did not give me any error. I think you'll find that they haven't been inserted in your table, but in someone else's. JBoss defaults to java:/DefaultDS in this situation, which is the bundled HypersonicSQL database by default. You need to check your jboss.xml to make sure the mapping is set up correctly. Are this jboss bugs ? It's not the clearest error message in the world. You might like to log a feature request at SourceForge for it to be improved. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SQLJ in EJB connecting to Oracle
On Wed, Apr 18, 2001 at 09:40:51AM +0200, Jose Ramon Diaz wrote: Hi Toby! Thanks a lot! You were right... Excellent. I'm responsible for adding some SQLJ to the product at work, so I'm glad to see it working for other people. If anybody is interested the code looks like: DataSource ds = (DataSource) ctx.lookup("java:/OraclePool"); c = ds.getConnection(); DefaultContext cc = new DefaultContext(c); #sql [cc] { begin... select... } In this way the connections are not shared beetweten calls to the EJB. I'm still concerned about this variable "c". It's not declared in that bit of code, so it looks like it's a member field of the bean class. I'd make it a local variable unless you have a really good reason. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tomcat jBoss security
FWIW, this is not the way it is set up in the preconfigured JBoss 2.2/Tomcat 3.2.1 distro. Probably worth sticking in bugzilla. Darrin "Scott M Stark" [EMAIL PROTECTED] writes: The JavaPetStore example uses JDBCRealm and JbossRealm successfully. The order of JDBCRealm and JbossRealm in the server.xml is significant and JbossRealm must follow JDBCRealm. - Original Message - From: "Dug" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 9:34 AM Subject: RE: [JBoss-user] Tomcat jBoss security Have you actually managed to get the servlet -- bean security working? Dug ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] porting code...(new2jboss-question)
Hi, I think you could do this by writing a new descendant of org.jboss.ejb.plugins.jaws.jdbc.JDBCFinderCommand. You would need to override getSQL to return the SQL with the modified where clause and setParameters to do nothing. ( I assume if you want to set the where clause dynamically you don't also want to have some variable number of parameters used in the where clause.) I'm less sure how much of jaws.dtd (which seems to exist only conceptually) you would need to modify in order to get your new finder class used. Are you sure doing this is a good idea? Unless you figure out some way to actually use dynamic parameter lists, you are going to be generating lots of possibly uncontrolled (where does the where clause come from?) queries each one of which has to be parsed individually by the db. This adds a LOT of performance overhead, not to mention you may not be able to predict which indexes would be useful. Hope this helps David Jencks On 2001.04.18 12:17:49 -0400 Reynir Hbner wrote: Is it possible to implement a ejbFindBySQLWhere(java.lang.String) in jboss ? this is finder method is one of the methods that are implemented in Persistance Powertier, and I am working on porting some code from there. Well the Wrapers that powertier generates uses this method. The following lines I found in the ejb 1.1 spec. : The finder methods are generated at the entity bean deployment time using the container provider's tools. The tools can, for example, create a subclass of the entity bean class that implements the ejbFindMETHOD() methods, or the tools can generate the implementation of the finder methods directly in the class that implements the entity bean's home interface. so according to this if it hasnt been built into Jboss its not possible, or what ? thanx, r ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Tomcat jBoss security
The bundled config uses the org.apache.tomcat.request.SimpleRealm as there is no meaningful default setup for the org.apache.tomcat.request.JDBCRealm - Original Message - From: "root" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 12:16 PM Subject: Re: [JBoss-user] Tomcat jBoss security FWIW, this is not the way it is set up in the preconfigured JBoss 2.2/Tomcat 3.2.1 distro. Probably worth sticking in bugzilla. Darrin "Scott M Stark" [EMAIL PROTECTED] writes: The JavaPetStore example uses JDBCRealm and JbossRealm successfully. The order of JDBCRealm and JbossRealm in the server.xml is significant and JbossRealm must follow JDBCRealm. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] dynamically creating queues
I thought this was provider specific... but then again I have not really tried to do this (yet). Here is a snippet from the J2EE javadocs on JMS (read the last paragraph): snip public Queue createQueue(java.lang.String queueName) throws JMSException Create a queue identity given a Queue name. This facility is provided for the rare cases where clients need to dynamically manipulate queue identity. This allows the creation of a queue identity with a provider specific name. Clients that depend on this ability are not portable. Note that this method is not for creating the physical topic. The physical creation of topics is an administration task and not to be initiated by the JMS interface. The one exception is the creation of temporary topics is done using the createTemporaryTopic method. /snip I think that they mean 'queue' instead of 'topic' in the above. I still don't know why they had to seperate the two... the two domain interfaces are 95% identical. --jason On Wed, 18 Apr 2001, Buske, Zoa wrote: I'm trying to dynamically register queues on the server from my java code. I know you can create temoprary queues with queueSession.createTemporaryQueue. However you have no control over the name of the temporary queue and it cannot be used by any other sender/receiver. queueSession.createQueue(qName) says it dynamically creates a queue, but it doesn't seem to unless the queue is already registered on the server. Is there any way to create and register a queue on the server dynamically in the java code? Are there any administration tools for creating them on the command line? Or do they always have to be created in an XML file? Thanks for any info you may have. Zoa Buske ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] env-entry JDNI name
Mike Hoolehan [EMAIL PROTECTED] writes: I'm attempting to use the env-entry tag in my web.xml descriptor of a j2ee app to define some constants. Like this: env-entry descriptionHex code for highlight color/description env-entry-namehtmlHighlightColor/env-entry-name env-entry-value#FF/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry As the app is deployed, I see this in the log: ... 2001-04-11 09:39:23 - ContextManager: Adding context Ctx( /mbz-test ) [Auto deploy] Add env-entry htmlHighlightColor java.lang.String #FF Hex code for highlight color ... Looks good.. But under what JDNI name is this? java:/comp/env/htmlHighlightColor doesn't work, plain htmlHighlightColor doesn't work, using application.getAttribute("htmlHighlightColor") doesn't work in jsp. I don't see the entry with the JNDIView mbean... This file needs to be read by jBoss as well as Tomcat for some reason. It won't happen unless there is also at least an "empty" jboss-web.xml file in your WEB-INF directory. I think this will work: ?xml version"1.0"? jboss-web/ Darrin ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Flushing Cache (For Simone ?)
Hi, We have the following problem : The problem is that we have to deal with direct access to the underlying database. We absolutely cannot make all accesses go through the EJB layer (for now that is). While this is the case, we have to find ways to make JBoss refresh the data from the physical database when it is changed. So we thought it would be simple to add a SSB to offer cache management services to our "old" application to call. ie. make changes through VB/ADO/OleDB application and "inform" the JBoss server that those tables need to be "flushed". But we do want to keep the cache, because it is more efficient. So we created our own LRUEnterpriseContextCachePolicy class to be able to passivate beans with JMS messages. We actually call the ageOut method with the beans key we want to flush by going through the LRUList obtains from getList() method. But there is still a problem, the beans that are in a transaction don't get passivated. How can we ensure that all the beans we want to be passivate get passivated and that, wathever is the age of the bean ? Thanks Francois Archambault ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Using JMS resources (or other resources)
For binding a subcontext from a remote server you should be able to use the Context.PROVIDER_URL to specify the subcontext and so the SubContext attribute should not be necessary. To create a local alias I would rather create a new NamingAlias mbean that created LinkRefs: mbean code="org.jboss.naming.NamingAlias" name=":service=NamingAlias,fromName=java:jms/topic" attribute name="FromName"java:jms/topic/attribute attribute name="ToName"topic/attribute /mbean That would be great. I guess this started because I was unable to lookup a QueueConnection (which I still have not had time to figure out based on the given suggestions). I just ran into another issues, where a deployed servlet needs to access a SSB and EB on a different VM. I installed a ExternalContext (very nice), then modified my code to use an InitialContext(), then get the mapped sub-context and use it for Home lookups. Sounds fine... until I start working with EJB handles... which will just use the InitialContext(), not a sub-context there of. If there was a nice way to create an alias to the default names (from the imported external context), then I would not have to perform an *magic* to restore a handle. Anyways, it sounds like a NamingAlias MBean would be a helpful feature. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] No resource manager found
[Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. ... You need to check your jboss.xml to make sure the mapping is set up correctly. Can you point to an example of where/how this is done in jboss.xml? -Original Message- From: Toby Allsopp [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 2:56 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] No resource manager found On Wed, Apr 18, 2001 at 08:19:31PM +0800, Russell wrote: Hi all , I am using RedHat6.1 , postgresql7.0.1 ,jboss2.1 and jdk.1.3. Do i need to worry if where start the jboss , i have the error below : [Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. However , when i called ejb create , the records is inserted in my table and did not give me any error. I think you'll find that they haven't been inserted in your table, but in someone else's. JBoss defaults to java:/DefaultDS in this situation, which is the bundled HypersonicSQL database by default. You need to check your jboss.xml to make sure the mapping is set up correctly. Are this jboss bugs ? It's not the clearest error message in the world. You might like to log a feature request at SourceForge for it to be improved. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
On Wed, Apr 18, 2001 at 04:49:14PM -0400, Deadman, Hal wrote: [Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. ... You need to check your jboss.xml to make sure the mapping is set up correctly. Can you point to an example of where/how this is done in jboss.xml? There a meeeleeeons of examples in the list archives. Most of them are broken (which is why they're posted to the list), but you should be able to figure it out from there. Also, the manual has the jboss.xml DTD, but no actual description of how to map resource managers. The source code is, as always, the definitive reference. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] env-entry JDNI name
Thanks for the help everyone. Darrin pinpointed the problem. The comp/env namespace seemed to work for for env-entries declared in my ejb-jar.xml file, but i could not access the comp/env entries declared in my web.xml unless that "empty" jboss-web was also there. Thanks. Mike On Wed, Apr 18, 2001 at 03:16:38PM -0500, root wrote: Mike Hoolehan [EMAIL PROTECTED] writes: I'm attempting to use the env-entry tag in my web.xml descriptor of a j2ee app to define some constants. Like this: env-entry descriptionHex code for highlight color/description env-entry-namehtmlHighlightColor/env-entry-name env-entry-value#FF/env-entry-value env-entry-typejava.lang.String/env-entry-type /env-entry As the app is deployed, I see this in the log: ... 2001-04-11 09:39:23 - ContextManager: Adding context Ctx( /mbz-test ) [Auto deploy] Add env-entry htmlHighlightColor java.lang.String #FF Hex code for highlight color ... Looks good.. But under what JDNI name is this? java:/comp/env/htmlHighlightColor doesn't work, plain htmlHighlightColor doesn't work, using application.getAttribute("htmlHighlightColor") doesn't work in jsp. I don't see the entry with the JNDIView mbean... This file needs to be read by jBoss as well as Tomcat for some reason. It won't happen unless there is also at least an "empty" jboss-web.xml file in your WEB-INF directory. I think this will work: ?xml version"1.0"? jboss-web/ Darrin ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user -- Mike Hoolehan Sycamore Associates, Inc. [EMAIL PROTECTED] 301.668.4681x103 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Error getting InitialContext when running Tomcat separate from JBoss
We are having problems connecting to a JBoss EJB from a servlet when running Tomcat in its own JVM. The error occurs when we try to get an InitialContext, and we get a org.jnp.interfaces.NamingContextFactory class not found exception. I believe we have put all the necessary Jboss libraries in the "webapps/myapp/lib" directory. This error does not occur when we try to access the EJB from a regular test client (JUnit test) or when we run Tomcat embedded with JBoss. The following is an output of our error. Any suggestions would be greatly appreciated. Thanks, Brett 28491 [Thread-7] INFO- get new ContainerContext() 28521 [Thread-7] INFO ContainerContext - ContainerContext - Getting TheUserSesion 28541 [Thread-7] ERROR ContainerContext - ContainerContext - Error with connect() javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interfaces.NamingContextFactory. Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) _ _ Get your FREE download of MSN Explorer at http://explorer.msn.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Using JMS resources (or other resources)
I'll look at adding support for the resource-env-ref when I fix an existing namespace issue. If you get time that would be nice. I would rather not have to manage accessing two different contexts. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
R: [JBoss-user] Flushing Cache (For Simone ?)
Hey, Hi, We have the following problem : The problem is that we have to deal with direct access to the underlying database. We absolutely cannot make all accesses go through the EJB layer (for now that is). While this is the case, we have to find ways to make JBoss refresh the data from the physical database when it is changed. So we thought it would be simple to add a SSB to offer cache management services to our "old" application to call. ie. make changes through VB/ADO/OleDB application and "inform" the JBoss server that those tables need to be "flushed". But we do want to keep the cache, because it is more efficient. So we created our own LRUEnterpriseContextCachePolicy class to be able to passivate beans with JMS messages. We actually call the ageOut method with the beans key we want to flush by going through the LRUList obtains from getList() method. But there is still a problem, the beans that are in a transaction don't get passivated. How can we ensure that all the beans we want to be passivate get passivated and that, wathever is the age of the bean ? Well, you coded the new cache, so you can enforce that also bean with an active tx will be passivated, even if I would not recommend it, since it could lead to problems when the tx will be committed. Anyway, what you really need is not a passivation IMHO, but a complete reload of the beans that are in the cache from the underlying DB. Normally you can do this using commit options B or C, but you still want to have A and only sometimes (upon JMS message) a behavior like B or C. IMHO best solution will be mark all the cached beans for reload, instead of passivating them, and this can be done by a custom TimerTask simply extending LRUEnterpriseContextCachePolicy with your cache. Check the EntitySynchronizationInterceptor for informations about the flag that marks a bean for reload. HTH, Simon ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Help with Exception: java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation
Hello, everyone; Any insight would be greatly appreciated. I'm porting an existing application from jBoss 2.0 FINAL to jBoss 2.2. FINAL. Here's the exception I'm getting: Starting tomcat. Check logs/tomcat.log for error messages No webapps/ directory C:\local\forte4j\temp\tomcat\webapps 2001-04-18 07:36:00 - Ctx( ): Exception in: R( + /public_html/EmployeeViewPage.jsp + null) - javax.servlet.ServletException: org/jboss/security/SecurityAssociation at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:390) at org.netbeans.modules.web.core.execution.JspServlet.service(JspServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387) at org.apache.tomcat.core.Handler.service(Handler.java:263) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Unknown Source) Root cause: java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231) at $Proxy0.create(Unknown Source) at gov.ssa.util.JNDIManagerAbstract.getEmployeeManager(JNDIManagerAbstract.java:34) at p_00025blic_0005fhtml._0002fpublic_0005fhtml_0002fEmployeeViewPage_0002ejspEmployeeViewPage_jsp_0._jspService(_0002fpublic_0005fhtml_0002fEmployeeViewPage_0002ejspEmployeeViewPage_jsp_0.java:99) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382) at org.netbeans.modules.web.core.execution.JspServlet.service(JspServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387) at org.apache.tomcat.core.Handler.service(Handler.java:263) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Unknown Source) ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Help with Exception: java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation
Client need to add jbosssx-client.jar in addition to jboss-client to their classpath in 2.2 - Original Message - From: "Kevin James Baxter" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 3:34 PM Subject: [JBoss-user] Help with Exception: java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation Hello, everyone; Any insight would be greatly appreciated. I'm porting an existing application from jBoss 2.0 FINAL to jBoss 2.2. FINAL. Here's the exception I'm getting: Starting tomcat. Check logs/tomcat.log for error messages No webapps/ directory C:\local\forte4j\temp\tomcat\webapps 2001-04-18 07:36:00 - Ctx( ): Exception in: R( + /public_html/EmployeeViewPage.jsp + null) - javax.servlet.ServletException: org/jboss/security/SecurityAssociation at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:390) at org.netbeans.modules.web.core.execution.JspServlet.service(JspServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387) at org.apache.tomcat.core.Handler.service(Handler.java:263) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Unknown Source) Root cause: java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184) at org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231) at $Proxy0.create(Unknown Source) at gov.ssa.util.JNDIManagerAbstract.getEmployeeManager(JNDIManagerAbstract.java:34) at p_00025blic_0005fhtml._0002fpublic_0005fhtml_0002fEmployeeViewPage_0002ejspEmployeeViewPage_jsp_0._jspService(_0002fpublic_0005fhtml _0002fEmployeeViewPage_0002ejspEmployeeViewPage_jsp_0.java:99) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382) at org.netbeans.modules.web.core.execution.JspServlet.service(JspServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387) at org.apache.tomcat.core.Handler.service(Handler.java:263) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:695) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Unknown Source) ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Does JProbe work with JBoss?
Saw this same problem on Linux w/ Blackdown 1.3. Something about a "profile" field needs to be added. :-( Bill Burke wrote: Has anybody ever gotten JProbe to work with JBoss? Optimizeit seems to work, but I really hate the UI. JBoss has problems loading CMP JAWS entity beans with JProbe. BTW, I'm on Win2K with jdk1.3 Thanks in advance, Bill ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem running the InterestBean example
Hi everyone, I just downloaded JBoss 2.2 with Tomcat and ran through the first example in the documentation for deploying the InterestBean. Deployment went fine but when I tried to run the InterestClient I get the following exception. I am running on WinNT 4.0 with JDK1.3 that comes with JBuilder. I did not use JBuilder to build, I simply compiled at the command line. The command line used to execute the InterestClient.class is also below. I included all the jars I could think of in the class path but it seems to have a problem finding ioser12. Can anyone tell me what my problem is or offer any suggestions in finding a solution. As you can see I installed JBoss in a directory called d:\jboss-tomcat-2.2\jboss-2.2. I would appreciate any help. Thanks in advance. D:\Jboss\Examples\interestjava -classpath d:\jbuilder4\jdk1.3\jre\lib\rt.jar;d:\jboss-tomcat-2.2\jboss-2.2\client\jbos s-client.jar;d:\jboss-tomcat-2.2\jboss-2.2\client\jbosssx-client.jar;d:\jbos s-tomcat-2.2\jboss-2.2\client\jnp-client.jar;.\interest.jar;. InterestClient Got context Got reference ERROR! Shared library ioser12 could not be found. Exception in thread "main" java.lang.UnsatisfiedLinkError: specialLoadClass at com.sun.corba.se.internal.util.JDKClassLoader.loadClass(JDKClassLoader.java: 58) at com.sun.corba.se.internal.util.JDKBridge.loadClassM(JDKBridge.java:23) at com.sun.corba.se.internal.util.JDKBridge.loadClass(JDKBridge.java:105) at javax.rmi.CORBA.Util.loadClass(Util.java:215) at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:306) at javax.rmi.CORBA.Util.clinit(Util.java:53) at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObjec t.java:172) at javax.rmi.PortableRemoteObject.clinit(PortableRemoteObject.java:61) at InterestClient.main(InterestClient.java:48) Doal Miller [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Help with Exception: java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation
Hi, Scott; It worked! Thanx, -Kevin Scott M Stark wrote: 032101c0c860$90b26580$364211ac@succubussi">Client need to add jbosssx-client.jar in addition to jboss-client to theirclasspath in 2.2- Original Message -From: "Kevin James Baxter" [EMAIL PROTECTED]To: [EMAIL PROTECTED]Sent: Wednesday, April 18, 2001 3:34 PMSubject: [JBoss-user] Help with Exception: java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation Hello, everyone;Any insight would be greatly appreciated.I'm porting an existing application from jBoss 2.0 FINAL to jBoss 2.2.FINAL. Here's the exception I'm getting:Starting tomcat. Check logs/tomcat.log for error messagesNo webapps/ directory C:\local\forte4j\temp\tomcat\webapps2001-04-18 07:36:00 - Ctx( ): Exception in: R( +/public_html/EmployeeViewPage.jsp + null) -javax.servlet.ServletException: org/jboss/security/SecurityAssociation at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:390) atorg.netbeans.modules.web.core.execution.JspServlet.service(JspServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) atorg.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387) at org.apache.tomcat.core.Handler.service(Handler.java:263) atorg.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371) atorg.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749) atorg.apache.tomcat.core.ContextManager.service(ContextManager.java:695) atorg.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207) atorg.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403) atorg.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Unknown Source)Root cause:java.lang.NoClassDefFoundError: org/jboss/security/SecurityAssociation atorg.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.getPrincipal(GenericProxy.java:184) atorg.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:231) at $Proxy0.create(Unknown Source) atgov.ssa.util.JNDIManagerAbstract.getEmployeeManager(JNDIManagerAbstract.java:34) at p_00025blic_0005fhtml._0002fpublic_0005fhtml_0002fEmployeeViewPage_0002ejspEmployeeViewPage_jsp_0._jspService(_0002fpublic_0005fhtml_0002fEmployeeViewPage_0002ejspEmployeeViewPage_jsp_0.java:99) atorg.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) atorg.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) atorg.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:309) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:382) atorg.netbeans.modules.web.core.execution.JspServlet.service(JspServlet.java:75) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) atorg.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:387) at org.apache.tomcat.core.Handler.service(Handler.java:263) atorg.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371) atorg.apache.tomcat.core.ContextManager.internalService(ContextManager.java:749) atorg.apache.tomcat.core.ContextManager.service(ContextManager.java:695) atorg.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207) atorg.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403) atorg.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Unknown Source)___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user ___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
Hi Toby , First of all , I did not deploy the ejb jars with jboss.xml(from documentation is optional). And the records are inserted into my table , i can see it in my database. Thanks. Toby Allsopp wrote: On Wed, Apr 18, 2001 at 08:19:31PM +0800, Russell wrote: Hi all , I am using RedHat6.1 , postgresql7.0.1 ,jboss2.1 and jdk.1.3. Do i need to worry if where start the jboss , i have the error below : [Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. However , when i called ejb create , the records is inserted in my table and did not give me any error. I think you'll find that they haven't been inserted in your table, but in someone else's. JBoss defaults to java:/DefaultDS in this situation, which is the bundled HypersonicSQL database by default. You need to check your jboss.xml to make sure the mapping is set up correctly. Are this jboss bugs ? It's not the clearest error message in the world. You might like to log a feature request at SourceForge for it to be improved. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] XAQueueConnectionFactory not found
Yes, the JBossMQ service starts up correctly as I can see at JBoss startup. I don't know, however, if the name that the MessageBean is obviously configured to use (XAQueueConnectionFactory) is actually bound. I've been thinking that it is the job of the JBossMQ service to bind this name. Or is it JBoss's job? Where is this done? I don't find any hint in any of the configuration files. According to the step by step explanation of Message Driven Beans in the documentation, it shouldn't be my job as a developer to bind something to this name. Or am I wrong there? thanks, Alexander At 22:14 18.04.01, Jason Dillon wrote: Are you sure that you have started the JBossMQ service? Have you checked to see if this value is actually bound in the naming context of the server you are using? --jason On Wed, 18 Apr 2001, Alexander Jerusalem wrote: Hi, I'm trying to deploy a Message Driven Bean but the auto deployer fails with a javax.naming.NameNotFoundException: XAQueueConnectionFactory not bound. The only place where I see this name is in jbossmq.xml in the InvocationLayer element. What am I missing? thanks, Alexander Jerusalem ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Missing or invalid Instance Pool
In my standardjboss.xml, I have this entry " resource-managers /". It obviously means that my resource manager is not configured. Please help me. Thanks. Nguyen Thanh Phong. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
On Thu, Apr 19, 2001 at 09:53:39AM +0800, Russell wrote: Hi Toby , First of all , I did not deploy the ejb jars with jboss.xml(from documentation is optional). And the records are inserted into my table , i can see it in my database. Actually, looking at the code, it seems that the warning you're getting is due to not having a DefaultDS. Have you removed DefaultDS from jboss.jcml? I don't know how you're ending up using the correct database. Are you actually using the DataSource you obtain from JNDI? Toby. Thanks. Toby Allsopp wrote: On Wed, Apr 18, 2001 at 08:19:31PM +0800, Russell wrote: Hi all , I am using RedHat6.1 , postgresql7.0.1 ,jboss2.1 and jdk.1.3. Do i need to worry if where start the jboss , i have the error below : [Container-Factory]No resource manager found for jdbc/PostgresDS Yes. This means that you haven't successfully mapped the bean-local name, "java:comp/env/jdbc/PostgresDS" to the global name of the DataSource you want. However , when i called ejb create , the records is inserted in my table and did not give me any error. I think you'll find that they haven't been inserted in your table, but in someone else's. JBoss defaults to java:/DefaultDS in this situation, which is the bundled HypersonicSQL database by default. You need to check your jboss.xml to make sure the mapping is set up correctly. Are this jboss bugs ? It's not the clearest error message in the world. You might like to log a feature request at SourceForge for it to be improved. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Stable branch for 2.2?
Hi Remember seeing in the mailing list that jboss is setup a stable branch for 2.2 for bug fixes etc. How do I access this? regards Chiah Tong Kiat
Re: [JBoss-user] Missing or invalid Instance Pool
On Thu, Apr 19, 2001 at 08:55:24AM +0700, Nguyen Thanh Phong wrote: In my standardjboss.xml, I have this entry " resource-managers /". It obviously means that my resource manager is not configured. Have you changed standardjboss.xml? If not, then that's not the problem, because it works for everyone else. If you have changed standardjboss.xml, please post the changes you've made. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
On Thu, Apr 19, 2001 at 11:08:27AM +0800, Russell wrote: Hi Toby, I have did not see any DefaultDS in my jboss.jcml. And for second question , i did not why it can inserted record into table even i have the warning from jboss. Thanks Below is my jboss.jcml file : Yep, there's no DefaultDS there. That's fine, but it leaves the question of why you're getting the right DataSource. Does your code say something like: DataSource ds = (DataSource) new InitialContext().lookup("java:/PostgresDS"); by any chance? If not, what does it say? Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Missing or invalid Instance Pool
No, I haven't touch the standardjboss.xml file. I put the following into jboss.xml ?xml version="1.0" encoding="Cp1252"? jboss resource-managers resource-manager res-class="org.jboss.ejb.deployment.JDBCResource" res-nameDefaultDS/res-name res-jndi-namejava:/DefaultDS/res-jndi-name /resource-manager /resource-managers enterprise-beans entity ejb-nameAddressBean/ejb-name jndi-namesdc/smart/user/AddressHome/jndi-name configuration-nameStandard CMP EntityBean/configuration-name /entity entity ejb-nameAdministratorBean/ejb-name jndi-namesdc/smart/user/AdministratorHome/jndi-name configuration-nameStandard CMP EntityBean/configuration-name /entity entity ejb-nameSystemUserBean/ejb-name jndi-namesdc/smart/user/SystemUserHome/jndi-name configuration-nameStandard CMP EntityBean/configuration-name /entity entity ejb-nameCustomerBean/ejb-name jndi-namesdc/smart/user/CustomerHome/jndi-name configuration-nameStandard CMP EntityBean/configuration-name /entity entity ejb-nameReceiverBean/ejb-name jndi-namesdc/smart/user/ReceiverHome/jndi-name configuration-nameStandard CMP EntityBean/configuration-name /entity session ejb-nameUserManagerBean/ejb-name jndi-namesdc/smart/user/UserManagerHome/jndi-name configuration-nameStandard Stateful SessionBean/configuration-name /session securefalse/secure /enterprise-beans /jboss I have configure DB2 to be bound at java:/DefaultDS. This connection is working because a stateless session beans is currently working OK. What value should be used for res-name and res-jndi-name? Thanks. Nguyen Thanh Phong. - Original Message - From: Toby Allsopp [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 9:45 AM Subject: Re: [JBoss-user] Missing or invalid Instance Pool On Thu, Apr 19, 2001 at 08:55:24AM +0700, Nguyen Thanh Phong wrote: In my standardjboss.xml, I have this entry " resource-managers /". It obviously means that my resource manager is not configured. Have you changed standardjboss.xml? If not, then that's not the problem, because it works for everyone else. If you have changed standardjboss.xml, please post the changes you've made. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] No resource manager found
Hi Toby , No. I just called ejbcreate . I did not understand why it can find my datasource. below is my ejb-jar.xml and jaws.xml . Maybe you can find something weird in the xml file ?xml version="1.0" encoding="ISO-8859-1"? !DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd' ejb-jar descriptionEnterprise Beans for Project: pmg.jpr/description enterprise-beans entity ejb-nameProjectMngUser/ejb-name homecom.cesma.ecommerce.pmg.user.ProjectMngUserHome/home remotecom.cesma.ecommerce.pmg.user.ProjectMngUser/remote ejb-classcom.cesma.ecommerce.pmg.user.ProjectMngUserBean/ejb-class persistence-typeContainer/persistence-type prim-key-classcom.cesma.ecommerce.pmg.user.ProjectMngUserPK/prim-key-class reentrantFalse/reentrant cmp-field field-namepm_userid/field-name /cmp-field cmp-field field-namecompanyid/field-name /cmp-field cmp-field field-nameemail/field-name /cmp-field cmp-field field-namepassword/field-name /cmp-field cmp-field field-namecanapproved/field-name /cmp-field cmp-field field-nameishomeowner/field-name /cmp-field cmp-field field-nameissalesexec/field-name /cmp-field cmp-field field-nameisprojectexec/field-name /cmp-field cmp-field field-nameisadmin/field-name /cmp-field resource-ref res-ref-namejdbc/PostgresDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /entity /enterprise-beans assembly-descriptor container-transaction method ejb-nameProjectMngUser/ejb-name method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor /ejb-jar ?xml version="1.0" encoding="ISO-8859-1"? jaws enterprise-beans entity ejb-nameProjectMngUser/ejb-name table-namepm_user/table-name create-tabletrue/create-table cmp-field field-namepm_userid/field-name /cmp-field cmp-field field-namecompanyid/field-name /cmp-field cmp-field field-nameemail/field-name /cmp-field cmp-field field-namepassword/field-name /cmp-field cmp-field field-namecanapproved/field-name /cmp-field cmp-field field-nameishomeowner/field-name /cmp-field cmp-field field-nameissalesexec/field-name /cmp-field cmp-field field-nameisprojectexec/field-name /cmp-field cmp-field field-nameisadmin/field-name /cmp-field /entity /enterprise-beans datasourcePostgresDS/datasource type-mappingPostgreSQL/type-mapping type-mappings type-mapping namePostgreSQL/name mapping java-typejava.util.Date/java-type jdbc-typeDATE/jdbc-type sql-typeDATE/sql-type /mapping mapping java-typejava.sql.Date/java-type jdbc-typeDATE/jdbc-type sql-typeDATE/sql-type /mapping mapping java-typejava.lang.String/java-type jdbc-typeVARCHAR/jdbc-type sql-typeTEXT/sql-type /mapping mapping java-typejava.lang.Long/java-type jdbc-typeBIGINT/jdbc-type sql-typeBIGINT/sql-type /mapping mapping java-typejava.lang.Object/java-type jdbc-typeBLOB/jdbc-type sql-typeBLOB/sql-type /mapping mapping java-typejava.lang.Integer/java-type jdbc-typeINTEGER/jdbc-type sql-typeINTEGER/sql-type /mapping mapping java-typejava.lang.Short/java-type jdbc-typeINTEGER/jdbc-type sql-typeINTEGER/sql-type /mapping mapping java-typejava.lang.Boolean/java-type jdbc-typeVARCHAR/jdbc-type sql-typeBOOL/sql-type /mapping mapping java-typejava.lang.Character/java-type jdbc-typeCHAR/jdbc-type sql-typeCHAR/sql-type /mapping mapping java-typejava.lang.Double/java-type jdbc-typeDOUBLE/jdbc-type sql-typeDOUBLE/sql-type /mapping mapping java-typejava.sql.TimeStamp/java-type jdbc-typeTIMESTAMP/jdbc-type sql-typeTIMESTAMP/sql-type /mapping mapping java-typejava.lang.Byte/java-type jdbc-typeTINYINT/jdbc-type sql-typeTINYINT/sql-type /mapping mapping java-typejava.lang.Float/java-type jdbc-typeFLOAT/jdbc-type