Re: [JBoss-user] JBossMQ exception on startup
Make sure the directory c:/java/JBoss-2.2.2_Tomcat-3.2.2/jboss/db/jbossmq is present. If not, create it. It wasn't for me with 2.2.1. - Original Message - From: "Allan Kamau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 9:32 AM Subject: Re: [JBoss-user] JBossMQ exception on startup > I have the same problem in Windows 2000 server but not > on Linux. > Can anyone help, thank you in advance. > > Allan. > > --- "Ferguson, Doug" <[EMAIL PROTECTED]> > wrote: > > Hey, > > > > I get following exception on jboss startup for win2k > > but not on linux. > > > > [JBossMQ] Starting > > [JBossMQ] Cannot start the JMS server ! Invalid > > configuration. > > [JBossMQ] javax.jms.JMSException: Invalid > > configuration. > > [JBossMQ] at > > > org.jbossmq.server.PersistenceManager.(PersistenceManag > > er.java:107) > > [JBossMQ] at > > > org.jbossmq.server.StartServer.run(StartServer.java:170) > > [JBossMQ] at > > > org.jbossmq.server.StartServer.start(StartServer.java:70) > > [JBossMQ] at > > > org.jbossmq.server.JBossMQService.startService(JBossMQService > > .java:66) > > [JBossMQ] at > > > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport. > > java:93) > > [JBossMQ] at > > java.lang.reflect.Method.invoke(Native Method) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1628) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1523) > > [JBossMQ] at > > > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > > [JBossMQ] at > > java.lang.reflect.Method.invoke(Native Method) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1628) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1523) > > [JBossMQ] at > > org.jboss.Main.(Main.java:217) > > [JBossMQ] at > > org.jboss.Main$1.run(Main.java:121) > > [JBossMQ] at > > java.security.AccessController.doPrivileged(Native > > Method) > > [JBossMQ] at > > org.jboss.Main.main(Main.java:117) > > [JBossMQ] Linked Exception: > > [JBossMQ] javax.jms.JMSException: Could not open the > > queue's tranaction log: > > /C: > > > /java/JBoss-2.2.2_Tomcat-3.2.2/jboss/db/jbossmq/transactions.dat > > [JBossMQ] at > > > org.jbossmq.persistence.SpyTxLog.throwJMSException(SpyTxLog.j > > ava:95) > > [JBossMQ] at > > > org.jbossmq.persistence.SpyTxLog.(SpyTxLog.java:35) > > [JBossMQ] at > > > org.jbossmq.server.PersistenceManager.(PersistenceManag > > er.java:104) > > [JBossMQ] at > > > org.jbossmq.server.StartServer.run(StartServer.java:170) > > [JBossMQ] at > > > org.jbossmq.server.StartServer.start(StartServer.java:70) > > [JBossMQ] at > > > org.jbossmq.server.JBossMQService.startService(JBossMQService > > .java:66) > > [JBossMQ] at > > > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport. > > java:93) > > [JBossMQ] at > > java.lang.reflect.Method.invoke(Native Method) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1628) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1523) > > [JBossMQ] at > > > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > > [JBossMQ] at > > java.lang.reflect.Method.invoke(Native Method) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1628) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1523) > > [JBossMQ] at > > org.jboss.Main.(Main.java:217) > > [JBossMQ] at > > org.jboss.Main$1.run(Main.java:121) > > [JBossMQ] at > > java.security.AccessController.doPrivileged(Native > > Method) > > [JBossMQ] at > > org.jboss.Main.main(Main.java:117) > > [JBossMQ] Started > > [DefaultJMSProvider] Starting > > [DefaultJMSProvider] JMS provider Adapter > > DefaultJMSProvider bound to > > java:/Defa > > ultJMSProvider > > [DefaultJMSProvider] Started > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Weird deployment error...
Remove EJBException from your create method ---Hermann - Original Message - From: "Phan Anh Tran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 15, 2001 7:12 AM Subject: [JBoss-user] Weird deployment error... > My remote interface: > > public interface DataManager > extends EJBObject > { > blabalala... > } > > > My home interface: > > DataManagerHome > DataManager create() > throws CreateException, EJBException, RemoteException; > > == > JBOSS 2.2.2 error... > > Bean : DataManagerBean > Method : public abstract DataManager create() throws CreateException, > EJBException, RemoteException > Section: 6.10.6 > Warning: The method return values in the home interface must be of valid > types for RMI/IIOP. > > > What's wrong? > > Thanks... > Anh > > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] httprequest fired twice
Just wondering if anyone has been able to find a way to resolve this issue. I did a preliminary testing and found that the requests are similar, including all the headers. JM. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jee-Meng Ang Sent: Thursday, June 14, 2001 11:58 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] httprequest fired twice Yes, the requests are the same. IE just fired it twice. It looks like we have all confirmed that IE is the culprit here. I haven't tested using Netscape yet. I have posted the same question in the tomcat-user mailing lists. It seems other ppl have this problem too. Apparently, under certain circumstances, the browser will fire 2 similar httprequest. I will continue to look for an answer. Jee-Meng. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 11:28 PM Subject: RE: [JBoss-user] httprequest fired twice > Are requests the same? I suspect that IE first asks whether the content had > been changed (if it wasn't changed, it will deliver local cached copy), and > if the content had been changed, it will sent the right request to get the > page. > > > Yes, I have this problem aswell. Don't know if its a bug in IE or in > > Tomcat, but i would guess IE as both Netscape/Mozilla and Opera works > > fine. > > > > > > > > On 14 Jun 2001 19:30:19 +0800, Jee-Meng Ang wrote: > > > Just wondering whether anyone faced the problem of Jboss / Tomcat > > > combination firing two HTTPRequest events from MS Internet Explorer? > > > > > > Regards, > > > Jee Meng. > > Regards, > Roman > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: Out of sync EJBs after passivation
Norton, Our problem from the previous thread that you refer to was that in our ejbPassivate code we did not set our dataholder to null. Ok - I think this is what your problem is: If you are holding references to other ejbs, the you should set them to null in ejbPassivate and re-obtain them in ejbActivate. This is because the object instance that you get when the bean is re-activated may not be the same instance that the bean was loaded into. again - I say I think... if I'm wrong I hope someone will correct me and I'm not misleading too many ppl. cheers dim > From: Norton Lam <[EMAIL PROTECTED]> > To: "'[EMAIL PROTECTED]'" ><[EMAIL PROTECTED]> > Date: Thu, 14 Jun 2001 23:11:49 -0500 > Subject: [JBoss-user] Out of sync EJBs after passivation > Reply-To: [EMAIL PROTECTED] > > Hey, all, > > I'm having a problem that looks to be a variation of a > problem posted here earlier. However, I never saw > if it was classified a bug and is being fixed, or if > there is a workaround. > > I have an EJB A. It contains one to many EJBs B. > When I retrieve several A EJBs via a column other > than the primary key, they load and get the > B EJBs associated with them. Everything works fine. > > After a few minutes, everything passivates and I try > to retrieve the same set of A EJBs. But the B EJBs > have now scrambled and are associated with the > wrong A EJBs. > > (Side note: I've heard that EJBs containing other > EJBs is not recommended, even by Sun, but > I also need to get B EJBs directly in other parts > of the application.) > > It appears this is probably the same issue under > the subject of "Serious Bug? EntityBean out of > synch with database". However, I am not using > EJBDoclet and I am using BMP. > > The interesting thing is, I put some logging in > ejbActivate() and ejbPassivate(). No other > code is in those methods. When they > EJBs are passivated and activated, they > look fine. It is when my application tries > to access the data when the trouble > arises. > > I tried re-retrieving the B EJBs in ejbActivate(), > but that also didn't help. > > Is this a bug? Is there a workaround? > > Thanx. > > Norton ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Examples & VisualCafe
Thanks for such a great piece of technology. What I am interested in are some very in-depth examples on the order of what's in books like 'Mastering Enterprise Java Beans.' In fact, a book itself would be great. I'd be up for helping in the creation of an eBook or Acrobat version. Additionally, I have Visual Cafe 4 Expert Edition. If anyone has set VC4 to work with JBoss, I'd appreciate any helpful info you could give. r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Weird deployment error...
Found the problem...In my remote interface, I used a number of data types which were not RMI-IIOP compliant. Is it possible to tell JBOSS to use pure RMI or non-IIOP transport? I have no need for CORBA interop... Anh - Original Message - From: "Phan Anh Tran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 10:12 PM Subject: [JBoss-user] Weird deployment error... > My remote interface: > > public interface DataManager > extends EJBObject > { > blabalala... > } > > > My home interface: > > DataManagerHome > DataManager create() > throws CreateException, EJBException, RemoteException; > > == > JBOSS 2.2.2 error... > > Bean : DataManagerBean > Method : public abstract DataManager create() throws CreateException, > EJBException, RemoteException > Section: 6.10.6 > Warning: The method return values in the home interface must be of valid > types for RMI/IIOP. > > > What's wrong? > > Thanks... > Anh > > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] My Jdbc pool doesn't work,help!
Hello everyone: I have config a connection pool for oracle8i in jboss.cml and when jboss started, the message in the console is: [OracleDB] Initializing [OracleDB] Initialized [OracleDB] Starting [OracleDB] XA Connection pool OracleDB bound to java:/OracleDB [OracleDB] Started oracle.jdbc.driver.OracleDriver OracleDB org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl jdbc:oracle:thin:@***.***.***.***:1521:ora8i *** *** and now, how can I use Jndi to locate the datasouce and use it. this is my client code: Properties env=new Properties(); env.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); env.setProperty("java.naming.provider.url", "***.***.***.***:1099"); env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming"); new InitialContext(env).lookup("OracleDB") but this doesn't work and I have try the last line to look up ("java:/OracleDB"); ("/OracleDB"); ("java:comp/jdbc/OracleDB"); ("java:comp/OracleDB"); Still doesn't work. how to make it work??? help me pls. Kammi from [EMAIL PROTECTED] 2001-06-1512:50:42 _ [×ã²»³ö»§ ÇáËÉÉÏÍø] ÉÏÍøרÓúţº95963£¬Óû§Ãû/ÃÜÂ룺263 Ìػݾ«Æ·¿Õµ÷ÂòÓÖËÍ http://shopping.263.net/hotsale/aircondition/index.asp ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How do I use Other Messaging Servers with JBoss EJB Server
Hi, I am trying to use Fiorano Messaging Server with JBoss EJB Server. My messaging is not working properly. I am not starting the embedded JbossMQ of Jboss-2.2.1. When I try to use JbossMQ server for Messaging, everything is working fine. What might be the problem?. Should I change anything in the properties files placed inside ../conf/default/ directory. small clue: I am able to see the Messages getting published but the subscriber classes are unable to get the message. I am using Jboss-2.2.1, Fiorano Messaging Server, JDK 1.3.1, Linux. Your help will be appreciated. Regards, Madhu ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Weird deployment error...
My remote interface: public interface DataManager extends EJBObject { blabalala... } My home interface: DataManagerHome DataManager create() throws CreateException, EJBException, RemoteException; == JBOSS 2.2.2 error... Bean : DataManagerBean Method : public abstract DataManager create() throws CreateException, EJBException, RemoteException Section: 6.10.6 Warning: The method return values in the home interface must be of valid types for RMI/IIOP. What's wrong? Thanks... Anh _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Out of sync EJBs after passivation
Hey, all, I'm having a problem that looks to be a variation of a problem posted here earlier. However, I never saw if it was classified a bug and is being fixed, or if there is a workaround. I have an EJB A. It contains one to many EJBs B. When I retrieve several A EJBs via a column other than the primary key, they load and get the B EJBs associated with them. Everything works fine. After a few minutes, everything passivates and I try to retrieve the same set of A EJBs. But the B EJBs have now scrambled and are associated with the wrong A EJBs. (Side note: I've heard that EJBs containing other EJBs is not recommended, even by Sun, but I also need to get B EJBs directly in other parts of the application.) It appears this is probably the same issue under the subject of "Serious Bug? EntityBean out of synch with database". However, I am not using EJBDoclet and I am using BMP. The interesting thing is, I put some logging in ejbActivate() and ejbPassivate(). No other code is in those methods. When they EJBs are passivated and activated, they look fine. It is when my application tries to access the data when the trouble arises. I tried re-retrieving the B EJBs in ejbActivate(), but that also didn't help. Is this a bug? Is there a workaround? Thanx. Norton ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] expanded form
Unfortunately, files in the jar are flat, there is no folder in the path, so I can not unjar all that crap into deploy directory, I need to put into some context folder. -- don't put it in another folder. simply unjar the file as is under deploy. the auto deployer should pick it up from there. -- > I did not find anywhere a description how to deploy expanded structure of EJB or more - J2EE application. When I > unpack the interest.jar example (that works in archived form) into an interest directory and put it into deploy > directory, it is ignored by JBoss. Should I change some properties? Is it possible at all with JBoss? > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: More Re: [JBoss-user] When do entity beans commit?
Hi Georg, Regarding this problem I've been having -- thank you for all your thoughts and help. I have no idea why the code was executing inside a transaction, since the session bean method was definitely marked Never, and the entity bean Supports. Perhaps this is a bug, or perhaps the "spec-undefined" behavior of Supports+Entity Beans within jBoss has changed. In any case -- I have given up. I completely re-wrote that section of code using straight JDBC calls directly from the session bean method (with no use of entity beans); it now runs faster and I'm not getting any deadlocks. Regards, Bryan Georg Rehfeld wrote: 050501c0f480$ebc632c0$[EMAIL PROTECTED]">Dear Bryan, 6. Log messages from server.log - yes this message seemed toappear many hundred times in a row, around the time of mydeadlock:[staffBean] LOCKING-WAITING (TRANSACTION) for id com.theApp.ejb.staffPK@73ctx.hash 2702560 tx:TransactionImpl:XidImpl[FormatId=257, GlobalId=app-web1//188, BranchQual=] This clearly indicates access to an instance INSIDE a transactionthat already is associated to another TX. Interesting would be toknow if only staffBean with PK 73 is logged, or if other beansare involved/logged, and then which Transaction Global Id isshown there.In a true deadlock scenario you should see one instance loggedwith (in your case) 73 + app-web1//188 and at least one otherwith some other PK and Global Id (say 42 + app-web1//4711), inyour case I expect both of type staffBean, but in complexerscenarios it could be of some other type. And the true deadlockcase could even involve more beans cyclic waiting for each other.If you only see 73 + app-web1//188 LOCKING-WAITING it's morelikely, that the instance is participating in a lengthyprocessing, so that TX app-web1//188 finally gives up, althoughnow true deadlock condition exists.But having said all this, you told us, that the sessions methodis 'Never' and the entity methods called are 'Supports', so youare right, there should be no transaction at all. And I assume,that, while your tests were running no intentional transactionalmethods were invoked?The last idea I can come up with is: might be you have a typo inyour deployment descriptor where you try to set your methods to'Supports' and thus they are left to the default 'Required'?Checked the CaSe too? I don't know, if this really is verified atdeployment time.If this even isn't the case, I would report this as a possiblebug at SourceForge, as nobody else came into this thread ofdiscussion to help us. Best you would provide more completeserver.log and your relevant deployment descriptor parts and codesamples (i.e. for others to have a true look at case and names ofmethods etc.)Ah, and a final note: the code around the LOCKING-WAITING and theException you receive was just reworked to solve some otherproblem. The modifying author (Bill Burke) said, this only is apartial attempt at the LOCKING-WAITING (he was focused on theother problem, which he solved) issue, but the JBoss founder MarcFleury is just about to rework that code even more.This modification(s) do nothing about the fact, that you seetransactional behaviour, where it shouldn't be (IMHO), but if theabove guess doesn't hold, you still may want to try the newversion out. It's only checked into CVS, so you had to compileJBoss yourself for a test. 4. Yes, conceivably some of the same entity beans are wanted byother threads at the same time as this thread is doing it'sthing. However I thought that, being non-transactional, therewouldn't be any contention problems. Maybe the calls areserialized, but at least there wouldn't be any deadlocks. Am Iwrong? As far as I understand the code version you are executing (2.2.1or 2.2.2 I assume, did you tell us?) there could be deadlock withnon-reentrant beans, at least when they actually do a callback(which would require reentrant to be enabled), but this would belogged differently, so in your case it doesn't seem to be thereason.Just to clarify (my favorite Sequence diagram again :-)sessionentity Aentity B--- I mA1 | | I-->ImB1| I I-->I I I I I ImA2I I II<-I <<< blocks foreverThis is due to a bug (I think) in JBoss in an attempt to be morewise than the EJB Spec, which requires an EJBException to bethrown when B calls back A via mA2 while A still is not finishedwith mA1 and the bean A isn't reentrant. JBoss instead would gointo a busy waiting loop for mA1 to finish, which doesn't happen.But I'm not really sure on this, just haven't the old codearound, and, oops, it's already again 5 a'clock in the morning,much too late to check the old source out and try to verify or doa test case now. If I turn out to be right, I SHOULD report thatas a bug (that code in EntityInstanceInterceptor is really tootricky to fiddle with, when unexperienced)!best regar
Re: [JBoss-user] XADatasource connection from outside of EJB
On Thu, Jun 14, 2001 at 06:55:05PM -0500, Ferguson, Doug wrote: > Just to confirm... It would be bad to try and get the connection passed > to another VM. It would be a waste of time because it won't work. It's also bad conceptually. A database connection has all sorts of local resources associated with it, particularly a socket connection, for which it simply makes no sense to pass to other processes. It is possible to implement a JDBC driver that allows you to pass the connections around to different processes, but I maintain that a design that requires this is faulty. Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Unclean Shutdown at Win2000
Hi, I got an unclean shutdown problem ( in windows 2000 server), it happened some times, after I shutdown the server, and start (with tomcat) it, i get this error when deploy ejb: ServerException: Could not bind either home or invoker; nested exception is: java.rmi.server.ExportException: Port already in use: ; nested exception is: java.net.BindException: Address in use: JVM_Bind Thanks a lot. David Cao - Energizing by Thinking ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Integrated Tomcat throws a security exception
IMHO, Yeah, far too much. I would rather rely on Tomcat 4.0(development now) to provide the web container (is jsp/servlet/web server) combo 'in front' of jboss. Lionel - Original Message - From: "Guy Rouillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 1:10 PM Subject: Re: [JBoss-user] Integrated Tomcat throws a security exception > I don't think it would be a good idea. JBoss is a large undertaking by > itself. Adding Tomcat to the mix would be too much. We should take full > advantage of work being put into Tomcat by a large body of people. > > - Original Message - > From: "marc fleury" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 13, 2001 6:42 PM > Subject: RE: [JBoss-user] Integrated Tomcat throws a security exception > > > > how do you guys feel about forking tomcat... > > > > marc > > > > ___ > 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 redeploy strangeness
Marc, what do u mean by context of B/page.jsp? U mean jsp/bean code that does a JNDI lookup? Lionel - Original Message - From: "marc fleury" <[EMAIL PROTECTED]> To: "Jboss-User@Lists. Sourceforge. Net" <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 1:00 PM Subject: [JBoss-user] Tomcat redeploy strangeness > I never thought it would boil down to this... > > So I have 2 ears, mostly tomcat stuff, the A website (JSPs) and the B > website (JSPs) as well. > > A links to pages in B, and does so through the "B/page.jsp" link, "B" being > the context of B > > If I use the deployer and deployer A first and then B then it works fine, I > can access the page in B from A. > > If however I redeploy A from there (say with a "touch A.ear" in the deploy > directory) then the above doesn't work and I get a 404 file not found. > > If I redeploy B (touch b.ear) then it works again. > > Someone gets very confused with the contexts it seems... or is it just me > missusing them? > > he, any help appreciated... > > ;-) > > marcf > > _ > Marc Fleury, Ph.D > [EMAIL PROTECTED] > _ > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] XADatasource connection from outside of EJB
No... Yeah... I realize that the java code just sees the DataSource interface and that XA is just an implementation. Just to confirm... It would be bad to try and get the connection passed to another VM. cheers, d. -Original Message- From: Toby Allsopp [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 14, 2001 6:22 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] XADatasource connection from outside of EJB On Thu, Jun 14, 2001 at 05:37:41PM -0500, Ferguson, Doug wrote: > Hi, > > I understand that it is bad to obtain a database connection via jndi from > outside of jboss but is it ok to obtain a connection via jndi from a non ejb > that will run inside of jboss? That's fine. BTW, XADataSource is not something any application code should care about. The interface you want is javax.sql.DataSource. Is the name of the MBean that you configure to set this up (XADataSourceLoader) confusing? 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] XADatasource connection from outside of EJB
On Thu, Jun 14, 2001 at 05:37:41PM -0500, Ferguson, Doug wrote: > Hi, > > I understand that it is bad to obtain a database connection via jndi from > outside of jboss but is it ok to obtain a connection via jndi from a non ejb > that will run inside of jboss? That's fine. BTW, XADataSource is not something any application code should care about. The interface you want is javax.sql.DataSource. Is the name of the MBean that you configure to set this up (XADataSourceLoader) confusing? Toby. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] HOW TO DISABLE ENTITY-BEAN CACHING ???
Hello all. I was wondering if someone can give me a hand. I temporarily need to disable all entity-bean caching in JBoss. Is this possible? My problem is that I have an external application that is updating my entity-bean tables (I will eventually eliminate that, but for now I have no choice in the matter) and I want my beans to show the most current data from the operational store. So far, I have modified "standardjboss.xml" and set the tags to option C ... which seems like a fit. However, after making a change to a database record and accessing the corresponding entity-bean, the bean still contains the "old" data (apparently it is cached in memory). Am I going insane or am I missing some configuration somewhere? Any help is appreciated! - Frank Villarreal ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Pass by reference between two SLSBs?
By default containers used optimized in vm call semantics to avoid RMI serialization costs. See the Optimized flag in the container-invoker-conf element discussion here: http://www.jboss.org/documentation/HTML/ch06s08.html - Original Message - From: "Jim Archer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 2:49 PM Subject: [JBoss-user] Pass by reference between two SLSBs? > Hi All... > > I have noticed that jBoss can pass a Collection by reference from one SLSB > into another. If I am in a SLSB and pass a Collection of objects into a > different SLSB (via its remote interface, of course), modify the Collection > in the called SLSB and then return, the SLSB I issued the call from can see > the modified data in the Collection it passed down. > > I was under the impression (prehaps wrongly) that an object passed to an > entity bean through a remote interface would, in effect, be passed by > value. > > So whats going on? > > I'm using jBoss 2.2.1 Tomcat-3.2.1 on Sun's JDK 1.3.1 and Windows 2000. > > Thanks! > > Jim > > > > 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] ClassCastException when getting Home Interface from within Servlet (Jetty)
Title: ClassCastException when getting Home Interface from within Servlet (Jetty) Hello all, I am running JBoss 2.2.2 and Jetty3.1 RC5. I am getting the following stacktrace after using PortableRemoteObject.narrow() and casting the return value to the expected home interface. ** [Jetty] java.lang.ClassCastException: $Proxy6 [Jetty] at main._0002fmain_0002findex_0002ejspindex_jsp_0._jspService(_0002fmain_0002findex_0002ejspindex_jsp_0.java:109) [Jetty] at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) [Jetty] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [Jetty] at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:176) [Jetty] at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:307) [Jetty] at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380) [Jetty] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [Jetty] at com.mortbay.Jetty.Servlet.ServletHolder.handle(ServletHolder.java:488) [Jetty] at com.mortbay.Jetty.Servlet.ServletHandler.handle(ServletHandler.java:488) [Jetty] at com.mortbay.Jetty.Servlet.ServletHandler.handle(ServletHandler.java:317) [Jetty] at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:956) [Jetty] at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:913) [Jetty] at com.mortbay.HTTP.Handler.ResourceHandler.handleGet(ResourceHandler.java:361) [Jetty] at com.mortbay.HTTP.Handler.ResourceHandler.handle(ResourceHandler.java:265) [Jetty] at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:956) [Jetty] at com.mortbay.HTTP.HandlerContext.handle(HandlerContext.java:913) [Jetty] at com.mortbay.HTTP.HttpServer.service(HttpServer.java:703) [Jetty] at com.mortbay.HTTP.HttpConnection.service(HttpConnection.java:508) [Jetty] at com.mortbay.HTTP.HttpConnection.handle(HttpConnection.java:347) [Jetty] at com.mortbay.HTTP.SocketListener.handleConnection(SocketListener.java:107) [Jetty] at com.mortbay.Util.ThreadedServer.handle(ThreadedServer.java:294) [Jetty] at com.mortbay.Util.ThreadPool$PoolThreadRunnable.run(ThreadPool.java:613) [Jetty] at java.lang.Thread.run(Thread.java:484) *** So I'm getting back the class "$Proxy6" which I'm assuming is the stub for the JBoss implementation of my home interface. This "$Proxy6" class is also what is bound in the JNDI tree to the name declared in jboss.xml. Here is a clue. When I try to execute the same code from a remote client through the network I have no problem. I'm thinking that this may have something to do with JBoss and Jetty living in the same JVM. What do you all think? I know you all are as busy as I am and I appreciate your time. Kudos to those who work on this excellent app server!!! -Matt Tilchen
[JBoss-user] XADatasource connection from outside of EJB
Hi, I understand that it is bad to obtain a database connection via jndi from outside of jboss but is it ok to obtain a connection via jndi from a non ejb that will run inside of jboss? Thanks, d. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Pass by reference between two SLSBs?
Hi All... I have noticed that jBoss can pass a Collection by reference from one SLSB into another. If I am in a SLSB and pass a Collection of objects into a different SLSB (via its remote interface, of course), modify the Collection in the called SLSB and then return, the SLSB I issued the call from can see the modified data in the Collection it passed down. I was under the impression (prehaps wrongly) that an object passed to an entity bean through a remote interface would, in effect, be passed by value. So whats going on? I'm using jBoss 2.2.1 Tomcat-3.2.1 on Sun's JDK 1.3.1 and Windows 2000. Thanks! Jim 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
RE: [JBoss-user] Auto-increment CMP primary key?
Or, if your not concerned with humans seeing the data, you could use the java.rmi.server.UID class. This class will generate a unique ID, with respect to the host its running on. For an ID unique accross a cluster, add the IP address to it. Jim --On Thursday, June 14, 2001 4:28 PM -0500 "Nordahl, David C" <[EMAIL PROTECTED]> wrote: > You'd need to create a PrimaryKeyBean like mentioned in earlier posts > today only with fields that store the last number issued for each of your > other beans that need these ids. Then create one instance of that > PrimaryKeyBean to do the work. Then in the ejbCreate() method, call some > findBy on PrimaryKeyHome to get the PrimaryKey remote interface for that > instance, and call a method on the remote interface that returns the next > id for the bean that is to be created. Like: > > public Long ejbCreate() throws RemoteException, CreateException{ > > PrimaryKey pk=null; > PrimaryKeyHome > pkhome=(PrimaryKeyHome)getHome("primaryKey/PrimaryKey",PrimaryKeyHome.cla > ss) ; > > try{ > pk=pkhome.findByPrimaryKey(new Integer(0)); > } > catch(Exception e){ > pk=pkhome.create(); > } > cancelled=false; > reservationID=pk.getReservationID(); > return null; > > } > > > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Richard > Kasperowski > Sent: Thursday, June 14, 2001 4:04 PM > To: jboss-user > Subject: [JBoss-user] Auto-increment CMP primary key? > > > Another newbie question: > > Using a totally out-of-the-box JBoss+TomCat, I built a container managed > EJB. The EJB's primary key is a Long; the idea is that a simple serial > number is sufficient. In my bean's ejbCreate(), is there a recommended > way to automatically generate the next Long? > > Thanks, > > -- > Richard Kasperowski (mailto:[EMAIL PROTECTED]) > Tel: 617-576-1552, Fax: 617-576-2441 > http://www.altisimo.com/ > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user 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
Re: [JBoss-user] Expanded form
don't put it in another folder. simply unjar the file as is under deploy. the auto deployer should pick it up from there. - Original Message - From: "Boris Garbuzov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 7:17 PM Subject: [JBoss-user] Expanded form > I did not find anywhere a description how to deploy expanded structure of EJB or more - J2EE application. When I > unpack the interest.jar example (that works in archived form) into an interest directory and put it into deploy > directory, it is ignored by JBoss. Should I change some properties? Is it possible at all with JBoss? > > > ___ > 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] Entity beans not caputer System.out
Hmm, did you also check the server.log? - Original Message - From: "Ferguson, Doug" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 9:56 PM Subject: [JBoss-user] Entity beans not caputer System.out > > I print out debug messages in my entity bean but they do not appear in my > console. > The just started happening when I installed jboss2.2.2 w/ integrated tomcat. > > > ___ > 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] Auto-increment CMP primary key?
You'd need to create a PrimaryKeyBean like mentioned in earlier posts today only with fields that store the last number issued for each of your other beans that need these ids. Then create one instance of that PrimaryKeyBean to do the work. Then in the ejbCreate() method, call some findBy on PrimaryKeyHome to get the PrimaryKey remote interface for that instance, and call a method on the remote interface that returns the next id for the bean that is to be created. Like: public Long ejbCreate() throws RemoteException, CreateException{ PrimaryKey pk=null; PrimaryKeyHome pkhome=(PrimaryKeyHome)getHome("primaryKey/PrimaryKey",PrimaryKeyHome.class) ; try{ pk=pkhome.findByPrimaryKey(new Integer(0)); } catch(Exception e){ pk=pkhome.create(); } cancelled=false; reservationID=pk.getReservationID(); return null; } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Richard Kasperowski Sent: Thursday, June 14, 2001 4:04 PM To: jboss-user Subject: [JBoss-user] Auto-increment CMP primary key? Another newbie question: Using a totally out-of-the-box JBoss+TomCat, I built a container managed EJB. The EJB's primary key is a Long; the idea is that a simple serial number is sufficient. In my bean's ejbCreate(), is there a recommended way to automatically generate the next Long? Thanks, -- Richard Kasperowski (mailto:[EMAIL PROTECTED]) Tel: 617-576-1552, Fax: 617-576-2441 http://www.altisimo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JSP examples fail (was: What is a "web container" ?)
JBoss/Tomcat combo Not finding JDK_HOME/lib/tools.jar in classpath. - Original Message - From: "Claus Nielsen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 6:29 PM Subject: [JBoss-user] JSP examples fail (was: What is a "web container" ?) > On 13 Jun 2001 14:37:30 -0400, Tahir Awan wrote: > > > Make sure you are running jboss with tomcat. Try "run tomcat" from > > jboss/bin. > > Also check if you are getting "[EmbeddedTomcat]started" message in jboss > > console. > > > > Tahir > > Right! Now I really feel stupid - running the right script helps a > lot... > > Feeling stupid is not gonna prevent me from asking again, thoug. Now > TomCat is running, but using it to serve jsp pages still dosn't work. It > does run servlets, but when attempting to try out the jsp examples I get > errors like this: > > [--- START ERROR MESSAGE ---] > > Error: 500 > Location: /examples/jsp/num/numguess.jsp > Internal Servlet Error: > > javax.servlet.ServletException: sun/tools/javac/Main > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > at org.apache.tomcat.core.Handler.service(Handler.java:287) > at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > Root cause: > > java.lang.NoClassDefFoundError: sun/tools/javac/Main > at > org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) > at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) > at > org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:258) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:268) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > at org.apache.tomcat.core.Handler.service(Handler.java:287) > at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at > org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:213) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > > [--- END ERROR MESSAGE ---] > > Now what am I doing wrong ? > > Best regards > Claus Nielsen > > > ___ > 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] Cannot get tomcat working with JBoss
Have not downloaded this version of JBoss but it seems like the start up is not seeing jars under tomcat/lib. - Original Message - From: "Allan McLemore" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 9:02 PM Subject: [JBoss-user] Cannot get tomcat working with JBoss > Cannot get tomcat working with JBoss. > > Here's my setup: > Operating System: Windows 2000 Professional > Java: JDK 1.3.1 and J2SDKEE 1.2.1 > JBoss Version: JBoss-2.2.2_Tomcat-3.2.2 > > The interest client example works fine, but the > tomcat-test.ear does not work. The instructions are > not very clear for setting up tomcat with JBoss or > what URL you need to type to test the servlet. I > followed the setup instructions listed at > http://www.jboss.org/documentation/HTML/ch11.html#howtotomcat, > but it didn't work. > > What do I need to do to get this working? > > > Here's a copy of my JBoss startup messages: > > [Hypersonic] Initialized > [InstantDB] Initializing > [InstantDB] Initialized > [DefaultDS] Initializing > [DefaultDS] Initialized > [Container factory] Initializing > [Container factory] Initialized > [EmbeddedTomcat] Initializing > [EmbeddedTomcat] Initialized > [JBossMQ] Initializing > [JBossMQ] Initialized > [DefaultJMSProvider] Initializing > [DefaultJMSProvider] Initialized > [StdJMSPool] Initializing > [StdJMSPool] Initialized > [J2EE Deployer Default] Initializing > [J2EE Deployer Default] Initialized > [Auto deploy] Initializing > [Auto deploy] Initialized > [RARDeployer] Initializing > [RARDeployer] Found a temp directory left over from a > previous run - deleting it > . > [RARDeployer] Initialized > [ConnectionManagerFactoryLoader] Initializing > [MinervaNoTransCMFactory] Initialized > [ConnectionManagerFactoryLoader] Initializing > [MinervaSharedLocalCMFactory] Initialized > [ConnectionManagerFactoryLoader] Initializing > [MinervaXACMFactory] Initialized > [ConnectionFactoryLoader] Initializing > [BlackBoxDS] Initialized > [JMX RMI Adaptor] Initializing > [JMX RMI Adaptor] Initialized > [JMX RMI Connector] Initializing > [JMX RMI Connector] Initialized > [Mail Service] Initializing > [Mail Service] Initialized > [Service Control] Initialized 25 services > [Service Control] Starting 25 MBeans > [Webserver] Starting > [Webserver] Codebase set to http://armws:8083/ > [Webserver] Started webserver on port 8083 > [Webserver] Started > [Naming] Starting > [Naming] Starting jnp server > [Naming] Started jnpPort=1099, rmiPort=0, Client > SocketFactory=null, Server Sock > etFactory=null > [Naming] Naming started on port 1099 > [Naming] Started > [JNDIView] Starting > [JNDIView] Started > [Transaction manager] Starting > [Transaction manager] Started > [JAAS Security Manager] Starting > [JAAS Security Manager] JAAS.startService, > cachePolicy=null > [JAAS Security Manager] JAAS.startService, > SecurityProxyFactory=org.jboss.securi > ty.SubjectSecurityProxyFactory@63118a > [JAAS Security Manager] Started > [JDBC provider] Starting > [JDBC provider] Started > [Hypersonic] Starting > [Hypersonic] Database started > [Hypersonic] Started > [InstantDB] Starting > [InstantDB] XA Connection pool InstantDB bound to > java:/InstantDB > Enhydra InstantDB - Version 3.26 > [InstantDB] The Initial Developer of the Original Code > is Lutris Technologies In > c. > Portions created by Lutris are Copyright (C) 1997-2001 > Lutris Technologies, Inc. > > All Rights Reserved. > [InstantDB] Started > [DefaultDS] Starting > [DefaultDS] XA Connection pool DefaultDS bound to > java:/DefaultDS > [Hypersonic] Server 1.4 is running > [Hypersonic] Press [Ctrl]+[C] to abort > [DefaultDS] Started > [Container factory] Starting > [Container factory] Started > [EmbeddedTomcat] Starting > [EmbeddedTomcat] Starting EmbeddedTomcat > [Service Control] Could not start > DefaultDomain:service=EmbeddedTomcat > [Service Control] java.lang.NoClassDefFoundError: > org/apache/tomcat/util/xml/Xml > Action > [Service Control] at > org.jboss.tomcat.EmbeddedTomcatService.startService(E > mbeddedTomcatService.java:69) > [Service Control] at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBean > Support.java:93) > [Service Control] at > java.lang.reflect.Method.invoke(Native Method) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe > rverImpl.java:1628) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe > rverImpl.java:1523) > [Service Control] at > org.jboss.util.ServiceControl.start(ServiceControl.ja > va:97) > [Service Control] at > java.lang.reflect.Method.invoke(Native Method) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe > rverImpl.java:1628) > [Service Control] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe > rverImpl.java:1523) > [Service Control] at > org.jboss.Main.(Main.java:217) > [Service Control] at > org.jboss.Main$1.run(Main.java:121) > [Service Co
[JBoss-user] Auto-increment CMP primary key?
Another newbie question: Using a totally out-of-the-box JBoss+TomCat, I built a container managed EJB. The EJB's primary key is a Long; the idea is that a simple serial number is sufficient. In my bean's ejbCreate(), is there a recommended way to automatically generate the next Long? Thanks, -- Richard Kasperowski (mailto:[EMAIL PROTECTED]) Tel: 617-576-1552, Fax: 617-576-2441 http://www.altisimo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Entity beans not caputer System.out
I print out debug messages in my entity bean but they do not appear in my console. The just started happening when I installed jboss2.2.2 w/ integrated tomcat. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss-web.xml in web contexts defined in server.xml instead of a war file not working
Title: jboss-web.xml in web contexts defined in server.xml instead of a war file not working I have a web application that uses JAAS security to secure servlets. When the app is deployed as a war file the user is allowed access to the servlets. When the application is defined as a context in the tomcat server.xml file the following exception is thrown. Error during authenticate javax.naming.NameNotFoundException: env not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:473) at org.jnp.server.NamingServer.getBinding(NamingServer.java:481) at org.jnp.server.NamingServer.getObject(NamingServer.java:487) at org.jnp.server.NamingServer.lookup(NamingServer.java:253) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:457) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) at javax.naming.InitialContext.lookup(Unknown Source) at org.jboss.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:102) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.jboss.tomcat.security.JBossSecurityMgrRealm.authorize(JBossSecurityMgrRealm.java:148) at org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java:855) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:789) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Unknown Source) The jboss-web.xml contains the following java:/jaas/example1 The security parts of web.xml are as follows Nhigh CM /app/cm/* HEAD GET POST PUT DELETE Echo NONE BASIC NHigh CM Echo The context configuration in server.xml is as follows crossContext="false" debug="0" reloadable="true" > Any ideas? Paul
[JBoss-user] Cannot get tomcat working with JBoss
Cannot get tomcat working with JBoss. Here's my setup: Operating System: Windows 2000 Professional Java: JDK 1.3.1 and J2SDKEE 1.2.1 JBoss Version: JBoss-2.2.2_Tomcat-3.2.2 The interest client example works fine, but the tomcat-test.ear does not work. The instructions are not very clear for setting up tomcat with JBoss or what URL you need to type to test the servlet. I followed the setup instructions listed at http://www.jboss.org/documentation/HTML/ch11.html#howtotomcat, but it didn't work. What do I need to do to get this working? Here's a copy of my JBoss startup messages: [Hypersonic] Initialized [InstantDB] Initializing [InstantDB] Initialized [DefaultDS] Initializing [DefaultDS] Initialized [Container factory] Initializing [Container factory] Initialized [EmbeddedTomcat] Initializing [EmbeddedTomcat] Initialized [JBossMQ] Initializing [JBossMQ] Initialized [DefaultJMSProvider] Initializing [DefaultJMSProvider] Initialized [StdJMSPool] Initializing [StdJMSPool] Initialized [J2EE Deployer Default] Initializing [J2EE Deployer Default] Initialized [Auto deploy] Initializing [Auto deploy] Initialized [RARDeployer] Initializing [RARDeployer] Found a temp directory left over from a previous run - deleting it . [RARDeployer] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaNoTransCMFactory] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaSharedLocalCMFactory] Initialized [ConnectionManagerFactoryLoader] Initializing [MinervaXACMFactory] Initialized [ConnectionFactoryLoader] Initializing [BlackBoxDS] Initialized [JMX RMI Adaptor] Initializing [JMX RMI Adaptor] Initialized [JMX RMI Connector] Initializing [JMX RMI Connector] Initialized [Mail Service] Initializing [Mail Service] Initialized [Service Control] Initialized 25 services [Service Control] Starting 25 MBeans [Webserver] Starting [Webserver] Codebase set to http://armws:8083/ [Webserver] Started webserver on port 8083 [Webserver] Started [Naming] Starting [Naming] Starting jnp server [Naming] Started jnpPort=1099, rmiPort=0, Client SocketFactory=null, Server Sock etFactory=null [Naming] Naming started on port 1099 [Naming] Started [JNDIView] Starting [JNDIView] Started [Transaction manager] Starting [Transaction manager] Started [JAAS Security Manager] Starting [JAAS Security Manager] JAAS.startService, cachePolicy=null [JAAS Security Manager] JAAS.startService, SecurityProxyFactory=org.jboss.securi ty.SubjectSecurityProxyFactory@63118a [JAAS Security Manager] Started [JDBC provider] Starting [JDBC provider] Started [Hypersonic] Starting [Hypersonic] Database started [Hypersonic] Started [InstantDB] Starting [InstantDB] XA Connection pool InstantDB bound to java:/InstantDB Enhydra InstantDB - Version 3.26 [InstantDB] The Initial Developer of the Original Code is Lutris Technologies In c. Portions created by Lutris are Copyright (C) 1997-2001 Lutris Technologies, Inc. All Rights Reserved. [InstantDB] Started [DefaultDS] Starting [DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS [Hypersonic] Server 1.4 is running [Hypersonic] Press [Ctrl]+[C] to abort [DefaultDS] Started [Container factory] Starting [Container factory] Started [EmbeddedTomcat] Starting [EmbeddedTomcat] Starting EmbeddedTomcat [Service Control] Could not start DefaultDomain:service=EmbeddedTomcat [Service Control] java.lang.NoClassDefFoundError: org/apache/tomcat/util/xml/Xml Action [Service Control] at org.jboss.tomcat.EmbeddedTomcatService.startService(E mbeddedTomcatService.java:69) [Service Control] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBean Support.java:93) [Service Control] at java.lang.reflect.Method.invoke(Native Method) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1628) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1523) [Service Control] at org.jboss.util.ServiceControl.start(ServiceControl.ja va:97) [Service Control] at java.lang.reflect.Method.invoke(Native Method) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1628) [Service Control] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanSe rverImpl.java:1523) [Service Control] at org.jboss.Main.(Main.java:217) [Service Control] at org.jboss.Main$1.run(Main.java:121) [Service Control] at java.security.AccessController.doPrivileged(Native Me thod) [Service Control] at org.jboss.Main.main(Main.java:117) [JBossMQ] Starting [JBossMQ] Server Version 0.8 Started [JBossMQ] Started [DefaultJMSProvider] Starting [DefaultJMSProvider] JMS provider Adapter DefaultJMSProvider bound to java:/Defa ultJMSProvider [DefaultJMSProvider] Started [StdJMSPool] Starting [StdJMSPool] JMS provider Adapter StdJMSPool bound to java:/StdJMSPool [StdJMSPool] Started [J2EE Deployer Default] Starting [J2EE Deployer Default] Cleaning up deployment directory [J2EE Deployer D
[JBoss-user] passing paramets/args to embedded tomcat
Hi: I am using Jboss-2.2.2_Tomcat-3.2.2, and like to be able to pass arguments to tomcat during startup. For instance, I want tomcat to read an alternative file, rather that server.xml. How can I do that? Thanks! keith ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JSP examples fail (was: What is a "web container"?)
Hi, Ensure that tools.jar is in your classpath when you execute run_with_tomcat.sh. When a JSP is first accessed, it is converted into a servlet and compiled --- what's going wrong, is that Tomcat (...Jasper) cannot find the java compiler. Cheers, Graeme Smecher On 14 Jun 2001, Claus Nielsen wrote: > On 13 Jun 2001 14:37:30 -0400, Tahir Awan wrote: > > > Make sure you are running jboss with tomcat. Try "run tomcat" from > > jboss/bin. > > Also check if you are getting "[EmbeddedTomcat]started" message in jboss > > console. > > > > Tahir > > Right! Now I really feel stupid - running the right script helps a > lot... > > Feeling stupid is not gonna prevent me from asking again, thoug. Now > TomCat is running, but using it to serve jsp pages still dosn't work. It > does run servlets, but when attempting to try out the jsp examples I get > errors like this: > > [--- START ERROR MESSAGE ---] > > Error: 500 > Location: /examples/jsp/num/numguess.jsp > Internal Servlet Error: > > javax.servlet.ServletException: sun/tools/javac/Main > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > at org.apache.tomcat.core.Handler.service(Handler.java:287) > at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at > >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > Root cause: > > java.lang.NoClassDefFoundError: sun/tools/javac/Main > at > org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) > at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) > at > org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) > at > >org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258) > at > org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) > at org.apache.tomcat.core.Handler.service(Handler.java:287) > at > org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at > org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) > at > org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at > >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) > at > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) > at java.lang.Thread.run(Thread.java:484) > > [--- END ERROR MESSAGE ---] > > Now what am I doing wrong ? > > Best regards > Claus Nielsen > > > ___ > 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] JMS performance.
|2. Regarding reusing the object - In my code, the message is created |only ONCE in an init() method, using this - | msg = tsession.createMapMessage(); |where tsession is a TopicSession. it is not an issue with your application it is an issue with the underlying implementation, if it takes so much time there is usually massive serialization going on... either saving to disk either creating a new object and serializing everybody etc etc... So please post to JBossMQ and let's get the ball rolling there. marcf ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Expanded form
I did not find anywhere a description how to deploy expanded structure of EJB or more - J2EE application. When I unpack the interest.jar example (that works in archived form) into an interest directory and put it into deploy directory, it is ignored by JBoss. Should I change some properties? Is it possible at all with JBoss? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JMS performance.
Hi Marc, Thanks for your reply. I am new to this JBoss group as well as using JBoss. I couldn't understand your reply completely. I would greatly appreciate it if you could ellaborate on your response. > I remember Rickard telling me about a little flag one would set to > instruct the VM >to reuse the objects (Map message) in your case. 1. Where is the flag that you were mentioning? Is there any document regarding this? 2. Regarding reusing the object - In my code, the message is created only ONCE in an init() method, using this - msg = tsession.createMapMessage(); where tsession is a TopicSession. After that, there is a while loops that uses this message, changes the fields everytime and sends it to the Topic. Something like this: public void run() { while (loop-- > 0) { try { long start = System.currentTimeMillis(); String id = tag + "," + counter++; String caller = "1234"; String callee = "5678"; // Compose the message msg.setLong("start", start); msg.setString("id", id); msg.setString("caller", caller); msg.setString("callee", callee); // send the message tpublisher.publish(msg); long end = System.currentTimeMillis(); System.out.println(start + "," + id + "," + end); } catch(JMSException jmse) { jmse.printStackTrace(); } } } I fail to see why this should take so much time. > Please add this in the features of JBossMQ and crosspost there. Do you mean that I should ask the same question on the JBossMQ group or is there some place where I should add this as a feature? Thanks, Vipul. --- original message -- From: "marc fleury" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] JMS performance. Date: Thu, 14 Jun 2001 11:37:53 -0400 Reply-To: [EMAIL PROTECTED] |I noticed that on an average, it takes around 3.7 milliseconds to |compose this message on the Weblogic Server whereas it takes 200 |milliseconds to compose this same message on the JBoss Server. Anytime there is "orders" of magnitude in creating object it usually means that there is serious serialization involved and the simplest way is to reuse the object and minimize the serialization going on inside. I remember Rickard telling me about a little flag one would set to instruct the VM to reuse the objects (Map message) in your case. Please add this in the features of JBossMQ and crosspost there. We really need to take JBossMQ performance very seriously and the first step (since you all seem to be benching in loops) is to take care of the times it takes to create any JMS Message type objects in the VM by pre-creating a few and/or making sure they are reused by the VM. regards marcf ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Web Application?
Use the beta2 release of the JBoss 2.2.2 + Tomcat 3.2.2 bundle that contains an local entity resolver to avoid this problem. - Original Message - From: "Optima" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 8:32 AM Subject: [JBoss-user] Web Application? Greetings all, Everytime I start the JBoss 2.2.2 + Tomcat 3.2.2, it requires to connect to check the "web.xml" in "tomcat_test.war" in "tomcat_test.ear". Pls advise how could I prevent it? I think that it's the line in web.xml asking for connection: http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: Custom Finder problem in CMP ejb
Hey Roman and Dan: Thanks for your help. You guys are exactly right about not using the in the query in jaws.xml for defining custom finders. I used the actual column names from the database and it worked as you had recommended. Thanks again, Jamal. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Web Application?
Hello, Where do you find the tomcat_test.ear file? > Optima wrote: > > Greetings all, > > Everytime I start the JBoss 2.2.2 + Tomcat 3.2.2, it requires to > connect to check the "web.xml" in "tomcat_test.war" in > "tomcat_test.ear". Pls advise how could I prevent it? > > I think that it's the line in web.xml asking for connection: > > Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> > > And could I save the DTD file for offline use and how can I do this? > > Thanks > > BRdgs/Zeon > thanks Christof Lehmann VUB Printmedia GmbH Berlin Bonn Dresden Köln Leipzig Chopinstr. 4 TEL: +49 341 960 50 93 04103 LeipzigFAX: +49 341 960 50 92 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Combo primary keys in ejb-jar
Just to clarify what Mike is saying: you don't use a , you use Mike Hoolehan wrote: > The class name (with package) of your primary key class. Here's one I use. > > > Models a Saved Query > The Saved Query Entity bean > SavedQueryHome > sai.mbz.dat.savedquery.SavedQueryHome > sai.mbz.dat.savedquery.SavedQuery > sai.mbz.dat.savedquery.SavedQueryEJB > Bean > sai.mbz.dat.savedquery.SavedQueryPrimaryKey > False > Stateless > Container > > > On (14/06/01 11:41), Nordahl, David C wrote: > >>If you use a PK class which is an aggregate of multiple fields, what to you >>put for of the ejb-jar.jar file? 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] notifying clients of events
What is the easiest way to notify all of your connected clients that an event has occurred? If I was using straight rmi, I'd write an interface and publsh that to the server and do a client-callback on that interface. Should I be using JMS? If so, should I be using durable or nondurable subscriptions. Jay -- Jay Scherer 901 Explorer Blvd Huntsville, AL 35806 (256)963-8130 Sun Certified Programmer For The Java Platform Oracle Certified Application Developer -- "Leave those behind who are content in a C/C++ environment to stagnate in the confines of the Matrix" ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] manual
Georg Rehfeld wrote: > Hi, > > note, I'm not complaining about bad JBoss docs, I find them brief > and enhancable but covering most important things yet, but And I'm not saying that documentation shouldn't be improved, but I think that much of your argument here is actually for requirements specification, not user documentation. > > Scott M Stark said: > >>3. Read the ultimate docs(the source) ... >> > > I don't agree with this, the ultimate doc is the doc! The > importance of documentation was addressed by SUN with the > JavaDoc tool for low level docs, but the rule applies to high > level docs too. OK, how about: "the authoritative resource describing the behavior of a software system is the source code." Yes, source != documentation, but if you want to know how something works, the source is far better than documentation. Documentation lies. Just read some documentation from proprietary tools! I just went through this argument with the support staff of another (commercial, proprietary) application server: we were getting a NullPointerException from their code, and it took a week to persuade them that maybe they should look at the source to determine what might be null. This is the strength of open source software: if it's behaving in a manner you don't understand, you can read the code! If you want free lunch, get a sales guy to take you out. If you want working software and self-determination, use open source software. > > The 'ultimate docs are the docs' rule especially is true for > Interfaces, The 'ultimate doc' in that case is the ejb 1.1 specification. > > One heavy pitfall of the 'ultimate doc is the source' rule is code > containing a bug. You never should assume that the existing code > is to be interpreted as the doc, which would declare the bug to > be the intended behaviour. again, deviation from specification is a bug. But now you're also bringing requirements documentation into the discussion. This is a completely separate thing from user documentation. I'd hate to refer to requirements docs to find out how to do something - especially for an infrastructure tool like JBoss. How often to you refer to POSIX doco when you want to get something done on *nix? > But without docs, how could the bug > ever discovered (except for really obvious ones)? By a human, > often the author himself, knowing or guessing the INTENTION of > the code and comparing the intention <=> documentation deviation from _requirements_ is a bug: deviation from documentation could be a documentation bug _or_ an implementation/design bug. > > Another example: I once had a *.properties file with duplicate > keys (by intention, don't tell you the whole story here) and > wanted to know how java.util.Properties would deal with that. > The docs for Properties.load() are lengthy about the expected > format, but say nothing about dups. So I looked up the impl and > found, that the last duplicate key/value pair in the file was the final > result. Should I now use this knowledge and rely on that behaviour? > Never! Because the impl at any time can change without notice, > the behaviour is undefined, so don't use it. Else you would > introduce very subtle and difficult to find bugs whit the next > JDK or with some subclass of Properties, that does other things > and so on. > > Having said that back to work. > > And please know, Scott has given sooo much source AND documentation > to JBoss and advice to users on this list that nobody of us avarage > readers here ever can keep up with him. > > Very respectful > Georg > ___ ___ > | + | |__Georg Rehfeld Woltmanstr. 12 20097 Hamburg > |_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10 > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > 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] JSP examples fail (was: What is a "web container" ?)
On 13 Jun 2001 14:37:30 -0400, Tahir Awan wrote: > Make sure you are running jboss with tomcat. Try "run tomcat" from > jboss/bin. > Also check if you are getting "[EmbeddedTomcat]started" message in jboss > console. > > Tahir Right! Now I really feel stupid - running the right script helps a lot... Feeling stupid is not gonna prevent me from asking again, thoug. Now TomCat is running, but using it to serve jsp pages still dosn't work. It does run servlets, but when attempting to try out the jsp examples I get errors like this: [--- START ERROR MESSAGE ---] Error: 500 Location: /examples/jsp/num/numguess.jsp Internal Servlet Error: javax.servlet.ServletException: sun/tools/javac/Main at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NoClassDefFoundError: sun/tools/javac/Main at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) at java.lang.Thread.run(Thread.java:484) [--- END ERROR MESSAGE ---] Now what am I doing wrong ? Best regards Claus Nielsen ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problem with custom finders in a CMP EJB.
Noorzaie, Jamal wrote: > Hi Group: > public Long ejbFindByPrimaryKey(Long pk) throws FinderException, > RemoteException { > security_id_ = pk; > return pk; > } If your bean is CMP, you shouldn't implement ejbFindByPrimaryKey. If your bean were BMP, this wouldn't work anyway. > > username_ > USERNAME > > > password_ > PASSWORD > > > > findByUsernamePassword > username_ = {0} AND password_ = {1} Once more: use the column names here, not the Bean's field names. In other words: username = {0} AND password = {1} 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.
Re: [JBoss-user] Combo primary keys in ejb-jar
The class name (with package) of your primary key class. Here's one I use. Models a Saved Query The Saved Query Entity bean SavedQueryHome sai.mbz.dat.savedquery.SavedQueryHome sai.mbz.dat.savedquery.SavedQuery sai.mbz.dat.savedquery.SavedQueryEJB Bean sai.mbz.dat.savedquery.SavedQueryPrimaryKey False Stateless Container On (14/06/01 11:41), Nordahl, David C wrote: > If you use a PK class which is an aggregate of multiple fields, what to you > put for of the ejb-jar.jar file? > > ___ > 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] Running on Solaris
edit your 'run_with_tomcat.sh' file and change the line that reads: export JBOSS_CLASSPATH=$JBOSS_CLASSPATH:$JAVA_HOME/lib/tools.jar to read: JBOSS_CLASSPATH=$JAVA_HOME/lib/tools.jar:$JBOSS_CLASSPATH that should take care of it for you db -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David A. PalmerSent: Thursday, June 14, 2001 10:13 AMTo: [EMAIL PROTECTED]Subject: [JBoss-user] Running on Solaris We are trying to run on Solaris. We keep getting the follwing message when running with tomcat. Jboss by itself starts fine. Any idea? root >> run_with_tomcat.sh./run_with_tomcat.sh: JBOSS_CLASSPATH=:/programs/j2sdk1_3_1/lib/tools.jar: is not an identifier Thanks David Palmer
RE: [JBoss-user] How to use uniqueidentifier / auto-numbering fie ld in a database ?
--- Tejaswi Redkar <[EMAIL PROTECTED]> wrote: > I think we all would like to use your bean. It is in > high demand. > > Could you please send it to us ? Answering to popular demand, here is source for SequenceEJB.java To made a EJB from it, just throw it to ejbdoclet. Adjust package names as appropriate. ---snip--- /** This is sequence entity bean. Process this file using ejbdoclet to create all necessary interfaces and deployment descriptors. Licensing policy is GNU LGPL ( check www.gnu.org for exact conditions ) Copyright by Konstantin Pribluda 2001. All rights reserved. No responsibility accepted. Satisfaction is not guaranted. Any usage of this software by military entities or for military puproses is explicitly prohibited, and will be considered as act of war against author. Author reserves the right to retailate such acts of war by means which seem convenient for him, included but not limited to usage of voodoo cult technics to remotely cause severy diarrhoe to violators. play cool java games: http://www.yook.de/ */ package org.pribluda.Sequence.ejb; import org.pribluda.Sequence.*; import org.pribluda.interfaces.*; import java.util.Collection; import javax.ejb.EntityBean; import javax.ejb.EntityContext; import java.rmi.RemoteException; import javax.ejb.CreateException; import javax.ejb.RemoveException; import javax.ejb.EJBException; /** * Sequence bean. Use entity name as primary key * * @author Konstantin Pribluda ( [EMAIL PROTECTED] ) * @ejb:entity-cmp * @ejb:ejb-name Sequence * @ejb:finder Collection findAll() * @ejb:finder Collection findById(String id) * @ejb:jndi-name sequenceProvider * @jboss:table-name sequences */ public abstract class SequenceEJB implements javax.ejb.EntityBean { transient private EntityContext ctx; /** * ID of sequence * @ejb:pk-field * @ejb:persistent-field * @ejb:remote-method */ public abstract String getId(); /** * @ejb:remote-method * @ejb:pk-field * @ejb:persistent-field */ public abstract void setId(String id); /** * Last sequence number used * @ejb:remote-method * @ejb:persistent-field */ public abstract long getValue(); /** * Set last sequence number * @ejb:persistent-field * @ejb:remote-method */ public abstract void setValue(long nn); /** * Initial sequence value * @ejb:persistent-field * @ejb:remote-method */ public abstract void setInitialValue(long iv); /** * Initial sequence value * @ejb:persistent-field * @ejb:remote-method */ public abstract long getInitialValue(); /** * Sequence Increment * @ejb:persistent-field * @ejb:remote-method */ public abstract void setIncrement(long incr); /** * Sequence Increment * @ejb:persistent-field * @jboss:column-name inc * @ejb:remote-method */ public abstract long getIncrement(); /** * Wrap-around status * @ejb:persistent-field * @ejb:remote-method * @jboss:column-name inc */ public abstract void setWrapAround(boolean ok); /** * Wrap around status * @ejb:persistent-field * @ejb:remote-method */ public abstract boolean getWrapAround(); /** * Generate new sequence number and advance by one * Can throw wrap-around exception * @ejb:remote-method */ public long getNext() throws WrapAroundException { long rr = getValue() + getIncrement(); if( ( (rr >= getInitialValue() && getValue() < getInitialValue()) || (rr <= getInitialValue() && getValue() > getInitialValue()) ) && getWrapAround() ) { throw new WrapAroundException("Sequence " + getId() + " wrapped around"); } setValue(rr); return rr; } /** * Reset sequence * @ejb:remote-method */ public void resetSequence() { setValue(getInitialValue()); } /** * Bulk accessor. * @ejb:remote-method */ public abstract void setData(SequenceData data); /** * Bulk accessor. * @ejb:remote-method */ public abstract SequenceData getData(); /** * Create sequence default way * @ejb:create-method */ public Object ejbCreate(String name) throws RemoteException, CreateException { setId(name); setInitialValue(-1); setIncrement(1); setWrapAround(true); return null; } /** * Create Sequence from bulk data * @ejb:create-method */ public Object ejbCreate(SequenceData data) throws RemoteException, CreateException { setData(data); return null; } /** * Create Sequence * @ejb:create-method */ public Object ejbCreate(String sequenceName,int initialValue,int step,boolean canWrap) throws RemoteException, CreateException { setId(sequenceName); setInitialValue(initialValue); setIncrement(step); setWrapA
[JBoss-user] Combo primary keys in ejb-jar
If you use a PK class which is an aggregate of multiple fields, what to you put for of the ejb-jar.jar file? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBossMQ exception on startup
You will only see this problem if your zip utility does not create empty directories that exist in the zip archive. I am able to run the 2.2.2 build on w2k by unziping the JBoss-2.2.2.zip with the java jar command. - Original Message - From: "Jay Scherer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 9:02 AM Subject: Re: [JBoss-user] JBossMQ exception on startup > the only solution I found, and it's not a solution, is to go back to > 2.2.1 or get the source from cvs and recompile. > > jay > > Allan Kamau wrote: > > > I have the same problem in Windows 2000 server but not > > on Linux. > > Can anyone help, thank you in advance. > > > > Allan. > > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] How to use uniqueidentifier / auto-numbering field in a database ?
I think we all would like to use your bean. It is in high demand. Could you please send it to us ? Thanks Tejaswi -Original Message- From: Konstantin Priblouda [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 14, 2001 8:53 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] How to use uniqueidentifier / auto-numbering field in a database ? > > you can make a > > PrimaryKeyBean which issues unique primary keys > for your different beans. > > Its attributes would be the last issued key for > each table/bean which needs > > a unique id. I already produced such bean, and would share it with a community, if there is a demand. = Konstantin Priblouda ( ko5tik )Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBossMQ exception on startup
the only solution I found, and it's not a solution, is to go back to 2.2.1 or get the source from cvs and recompile. jay Allan Kamau wrote: > I have the same problem in Windows 2000 server but not > on Linux. > Can anyone help, thank you in advance. > > Allan. > > --- "Ferguson, Doug" <[EMAIL PROTECTED]> > wrote: > > Hey, > > > > I get following exception on jboss startup for win2k > > but not on linux. > > > > [JBossMQ] Starting > > [JBossMQ] Cannot start the JMS server ! Invalid > > configuration. > > [JBossMQ] javax.jms.JMSException: Invalid > > configuration. > > [JBossMQ] at > > > org.jbossmq.server.PersistenceManager.(PersistenceManag > > er.java:107) > > [JBossMQ] at > > > org.jbossmq.server.StartServer.run(StartServer.java:170) > > [JBossMQ] at > > > org.jbossmq.server.StartServer.start(StartServer.java:70) > > [JBossMQ] at > > > org.jbossmq.server.JBossMQService.startService(JBossMQService > > .java:66) > > [JBossMQ] at > > > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport. > > java:93) > > [JBossMQ] at > > java.lang.reflect.Method.invoke(Native Method) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1628) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1523) > > [JBossMQ] at > > > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > > [JBossMQ] at > > java.lang.reflect.Method.invoke(Native Method) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1628) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1523) > > [JBossMQ] at > > org.jboss.Main.(Main.java:217) > > [JBossMQ] at > > org.jboss.Main$1.run(Main.java:121) > > [JBossMQ] at > > java.security.AccessController.doPrivileged(Native > > Method) > > [JBossMQ] at > > org.jboss.Main.main(Main.java:117) > > [JBossMQ] Linked Exception: > > [JBossMQ] javax.jms.JMSException: Could not open the > > queue's tranaction log: > > /C: > > > /java/JBoss-2.2.2_Tomcat-3.2.2/jboss/db/jbossmq/transactions.dat > > [JBossMQ] at > > > org.jbossmq.persistence.SpyTxLog.throwJMSException(SpyTxLog.j > > ava:95) > > [JBossMQ] at > > > org.jbossmq.persistence.SpyTxLog.(SpyTxLog.java:35) > > [JBossMQ] at > > > org.jbossmq.server.PersistenceManager.(PersistenceManag > > er.java:104) > > [JBossMQ] at > > > org.jbossmq.server.StartServer.run(StartServer.java:170) > > [JBossMQ] at > > > org.jbossmq.server.StartServer.start(StartServer.java:70) > > [JBossMQ] at > > > org.jbossmq.server.JBossMQService.startService(JBossMQService > > .java:66) > > [JBossMQ] at > > > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport. > > java:93) > > [JBossMQ] at > > java.lang.reflect.Method.invoke(Native Method) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1628) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1523) > > [JBossMQ] at > > > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > > [JBossMQ] at > > java.lang.reflect.Method.invoke(Native Method) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1628) > > [JBossMQ] at > > > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > > .java:1523) > > [JBossMQ] at > > org.jboss.Main.(Main.java:217) > > [JBossMQ] at > > org.jboss.Main$1.run(Main.java:121) > > [JBossMQ] at > > java.security.AccessController.doPrivileged(Native > > Method) > > [JBossMQ] at > > org.jboss.Main.main(Main.java:117) > > [JBossMQ] Started > > [DefaultJMSProvider] Starting > > [DefaultJMSProvider] JMS provider Adapter > > DefaultJMSProvider bound to > > java:/Defa > > ultJMSProvider > > [DefaultJMSProvider] Started > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > __ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user -- Jay Scherer 901 Explorer Blvd Huntsville, AL 35806 (256)963-8130 Sun Certified Programmer For The Java Platform Oracle Certified Application Developer -- "Leave those behind who are content in a C/C++ environment to stagnate in the confines of the Matrix" ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Running on Solaris
On Thu, 14 Jun 2001, David A. Palmer wrote: > We are trying to run on Solaris. We keep getting the follwing message when > running with tomcat. Jboss by itself starts fine. Any idea? > > root >> run_with_tomcat.sh > ./run_with_tomcat.sh: JBOSS_CLASSPATH=:/programs/j2sdk1_3_1/lib/tools.jar: > is not an identifier humm..just off the top of my head, change the JBOSS_CLASSPATH to: JBOSS_CLASSPATH=/programs/j2sdk1_3_1/lib/tools.jar ditch the ":" after the "=" ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] httprequest fired twice
Yes, the requests are the same. IE just fired it twice. It looks like we have all confirmed that IE is the culprit here. I haven't tested using Netscape yet. I have posted the same question in the tomcat-user mailing lists. It seems other ppl have this problem too. Apparently, under certain circumstances, the browser will fire 2 similar httprequest. I will continue to look for an answer. Jee-Meng. - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 11:28 PM Subject: RE: [JBoss-user] httprequest fired twice > Are requests the same? I suspect that IE first asks whether the content had > been changed (if it wasn't changed, it will deliver local cached copy), and > if the content had been changed, it will sent the right request to get the > page. > > > Yes, I have this problem aswell. Don't know if its a bug in IE or in > > Tomcat, but i would guess IE as both Netscape/Mozilla and Opera works > > fine. > > > > > > > > On 14 Jun 2001 19:30:19 +0800, Jee-Meng Ang wrote: > > > Just wondering whether anyone faced the problem of Jboss / Tomcat > > > combination firing two HTTPRequest events from MS Internet Explorer? > > > > > > Regards, > > > Jee Meng. > > Regards, > Roman > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to use uniqueidentifier / auto-numbering field in a database ?
> > you can make a > > PrimaryKeyBean which issues unique primary keys > for your different beans. > > Its attributes would be the last issued key for > each table/bean which needs > > a unique id. I already produced such bean, and would share it with a community, if there is a demand. = Konstantin Priblouda ( ko5tik )Freelance Software developer < http://www.pribluda.de > < play java games -> http://www.yook.de > < render charts online -> http://www.pribluda.de/povray/ > __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] manual
|You know, instead of all this exploring, why don't you all just get on the |jboss-docs mailing list and start contributing to the documentation project |instead. That way the energy you're pouring into writing these emails will |be much better utilized. thank you, I was going to fire one myself :-) open source only works if *you* make it work. marcf ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Client files jar or just .classes ??
Title: Client files jar or just .classes ?? Hi Everyone, Im new to the list and to Jboss so if my questions are too benial please bear with me.. Ok Iv just done the interest example and first thought that Id compile the *.java files myself and then create the interest.jar file and ejb-jar.xml and jboss.xml. So I did this and then copied my new interest.jar file to the JBOSS_DIST\deploy dir, noticing that the interest.jar file was then deployed in the JBoss cmd window. On the client I decided to set up the classpath to include the interest.jar file which Id put in a "jars" dir in the root of the interest dir:- java -classpath "c:\JBossTomcat\jboss\client\jboss-client.jar;c:\JBossTomcat\jboss\client\jbosssx-client.jar;c:\JBossTomcat\jboss\client\jnp-client.jar;jars/interest.jar" InterestClient The home class and the other ejb classes are all in the interest.jar file so I hoped that Id included the relavent classes for the rmi stuff.. The interestClient class was in my interest root dir. When running I got the following error:- Exception in thread "main" java.lang.NoClassDefFoundError: InterestClient So after some thought I decided to include the bean classes like this (dir structure):- interest\ com\ web_tomorrow\ interest\ interest.class interestBean.class interestHome.class InterestClient jars\ interest.jar and then run with the following classpath :- java -classpath "c:\JBossTomcat\jboss\client\jboss-client.jar;c:\JBossTomcat\jboss\client\jbosssx-client.jar;c:\JBossTomcat\jboss\client\jnp-client.jar;." InterestClient Everyhting worked fine and I got the usual results as per the interest tutorial. So My question is why can't I use a jar file on the client that contains my bean classes ?? I did make sure that the paths where correct in the jar file also ( com\ web_tomorrow\ interest\ interest.class interestBean.class interestHome.class ) so Im almost sure that that's not the problem. Is it the case that on the client the bean classes will have to be unzipped/jared and put into there relavent package dirs?? It would be tidier if they where just in jars. If they can be in jars please let me know. Stephen. ** ** ** ** ** ** ** ** ** ** ** ** ** Stephen White - Designer Direct : 00 46 31 74 62191 Mobile : 0706 89 33 43 Epost : [EMAIL PROTECTED] EHPT Sweden AB, 405 34 Göteborg ** ** ** ** ** ** ** ** ** ** ** ** **
RE: [JBoss-user] JMS performance.
|I noticed that on an average, it takes around 3.7 milliseconds to |compose this message on the Weblogic Server whereas it takes 200 |milliseconds to compose this same message on the JBoss Server. Anytime there is "orders" of magnitude in creating object it usually means that there is serious serialization involved and the simplest way is to reuse the object and minimize the serialization going on inside. I remember Rickard telling me about a little flag one would set to instruct the VM to reuse the objects (Map message) in your case. Please add this in the features of JBossMQ and crosspost there. We really need to take JBossMQ performance very seriously and the first step (since you all seem to be benching in loops) is to take care of the times it takes to create any JMS Message type objects in the VM by pre-creating a few and/or making sure they are reused by the VM. regards marcf | |Has anyone noticed this? I would appreciate it if anyone could tell me |why this might be happening. Here are a few details that might be |helpful. | |JDK version: 1.3 |JBoss version: 2.2.2 | |Thank you. | |Vipul Lalka |[EMAIL PROTECTED] | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Web Application?
Greetings all, Everytime I start the JBoss 2.2.2 + Tomcat 3.2.2, it requires to connect to check the "web.xml" in "tomcat_test.war" in "tomcat_test.ear". Pls advise how could I prevent it? I think that it's the line in web.xml asking for connection: http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> And could I save the DTD file for offline use and how can I do this? Thanks BRdgs/Zeon
Re: [JBoss-user] How to use uniqueidentifier / auto-numbering field in a database ?
David Nordahl wrote: > If you can't get SQL Server's autonumber to work, And you won't for reasons that I tire of reiterating. > you can make a > PrimaryKeyBean which issues unique primary keys for your different beans. > Its attributes would be the last issued key for each table/bean which needs > a unique id. That's what you'll need to do. If you need to know why, go to www.jboss.org and search the mailing list archives from there (don't bother with the search links from sourceforge, they're broken) > > - Original Message - > From: "Lau Chet Hong" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, June 13, 2001 10:46 PM > Subject: [JBoss-user] How to use uniqueidentifier / auto-numbering field in > a database ? > > > >>Dear all, >>Does jBoss supports those called uniqueidentifier / auto-number field type >>in a database ? I am trying to use a primary key field with >> > uniqueidentifier > >>type in SQL Server 2000, but couldn't manage. How should I configure my >>jaws.xml and my source code to use it ? Thank you very much! >> >>Regards, >>ChetHong Lau >> >> 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.
Re: [JBoss-user] Running on Solaris
"David A. Palmer" wrote: > > We are trying to run on Solaris. We keep getting the follwing message > when running with tomcat. Jboss by itself starts fine. Any idea? > > root >> run_with_tomcat.sh > ./run_with_tomcat.sh: > JBOSS_CLASSPATH=:/programs/j2sdk1_3_1/lib/tools.jar: is not an > identifier > > > Thanks > > David Palmer David, Sounds like the script run_with_tomcat.sh needs to be converted to a unix file format. -- +---+-+ | Bruce Snyder | iWitness, Inc. | | Software Engineer | 2995 Wilderness Pl. | | 303.545.9000 x126 | Boulder, CO 80301 | +---+-+ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] httprequest fired twice
Are requests the same? I suspect that IE first asks whether the content had been changed (if it wasn't changed, it will deliver local cached copy), and if the content had been changed, it will sent the right request to get the page. > Yes, I have this problem aswell. Don't know if its a bug in IE or in > Tomcat, but i would guess IE as both Netscape/Mozilla and Opera works > fine. > > > > On 14 Jun 2001 19:30:19 +0800, Jee-Meng Ang wrote: > > Just wondering whether anyone faced the problem of Jboss / Tomcat > > combination firing two HTTPRequest events from MS Internet Explorer? > > > > Regards, > > Jee Meng. Regards, Roman ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Customer Finders in CMP ejb
Hi, Sorry, for incomplete post (incidentally hit "send"). > > > > > >JamalSecurity >AR_SECURITY >false > > security_id_ > SECURITY_ID > > > username_ > USERNAME > > > password_ > PASSWORD > > > > findByUsernamePassword > username_ = {0} AND password_ = {1} So, as far as I know, persistence manager does not parse your "where" clause, just substitutes parameters. This means you have to put the real column names, "USERNAME" and "PASSWORD", not bean fields. > > > > > > > >OraclePool >Oracle8 > > > Regards, Roman ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Customer Finders in CMP ejb
> > > >JamalSecurity >AR_SECURITY >false > > security_id_ > SECURITY_ID > > > username_ > USERNAME > > > password_ > PASSWORD > > > > findByUsernamePassword > username_ = {0} AND password_ = {1} ^^ ^ Persistence manager does not parse the > > > > > > > >OraclePool >Oracle8 > > > > > Thank you very much for your help. > > Regards, > Jamal. > > > ___ > 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] :-) EJB2.0 RunAs
Its something I'm working on now. What is your interpretation of the runAs semantics? - Original Message - From: "Lewis Henderson" <[EMAIL PROTECTED]> To: "JBoss User (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, June 14, 2001 2:12 AM Subject: [JBoss-user] :-) EJB2.0 RunAs > Scott, > I notice in a previous post you said that 'RunAs' will be implemented in 2.3 > in the near futureany idea when(ish)? > > Lewis > > > ___ > 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] httprequest fired twice
We have seen it as well...since we get it on any app server we run on, we've concluded that it is IE. Thanks Bill !! Robert Price epixtech, inc. (801) 223-5954 [EMAIL PROTECTED] Christofer Sandberg <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 06/14/2001 09:03 AM Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject: Re: [JBoss-user] httprequest fired twice Yes, I have this problem aswell. Don't know if its a bug in IE or in Tomcat, but i would guess IE as both Netscape/Mozilla and Opera works fine. On 14 Jun 2001 19:30:19 +0800, Jee-Meng Ang wrote: > Just wondering whether anyone faced the problem of Jboss / Tomcat > combination firing two HTTPRequest events from MS Internet Explorer? > > Regards, > Jee Meng. > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Running on Solaris
We are trying to run on Solaris. We keep getting the follwing message when running with tomcat. Jboss by itself starts fine. Any idea? root >> run_with_tomcat.sh./run_with_tomcat.sh: JBOSS_CLASSPATH=:/programs/j2sdk1_3_1/lib/tools.jar: is not an identifier Thanks David Palmer
Re: [JBoss-user] httprequest fired twice
Yes, I have this problem aswell. Don't know if its a bug in IE or in Tomcat, but i would guess IE as both Netscape/Mozilla and Opera works fine. On 14 Jun 2001 19:30:19 +0800, Jee-Meng Ang wrote: > Just wondering whether anyone faced the problem of Jboss / Tomcat > combination firing two HTTPRequest events from MS Internet Explorer? > > Regards, > Jee Meng. > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Customer Finders in CMP ejb
Group: What is the appropriate scheme for using custom finders in a CMP ejb. Based on the JBoss documentation, you define the finder method for example findByUsernamePassword() in the HOME interface: public Long findByUsernamePassword(String username, String password) throws FinderException, RemoteException; I add the SQL part of it in jaws.xml, I did that. But I keep getting the javax.ejb.FinderException: Find failed error message. Do I need to provide an implementation for the finder method in the Bean implementation class as well, just like for findByPrimaryKey()? If any one has an example of using customer finders, it will be great to see the process. Here is my jaws.xml: JamalSecurity AR_SECURITY false security_id_ SECURITY_ID username_ USERNAME password_ PASSWORD findByUsernamePassword username_ = {0} AND password_ = {1} OraclePool Oracle8 Thank you very much for your help. Regards, Jamal. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JMS performance.
Hello, I am conducting some tests on performance related issues with using JMS on various J2EE App. Servers. I have a simple Java client that constructs a message of type MapMessage and posts it to a JMS Topic. I noticed that on an average, it takes around 3.7 milliseconds to compose this message on the Weblogic Server whereas it takes 200 milliseconds to compose this same message on the JBoss Server. Has anyone noticed this? I would appreciate it if anyone could tell me why this might be happening. Here are a few details that might be helpful. JDK version: 1.3 JBoss version: 2.2.2 Thank you. Vipul Lalka [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] The method return values in the home interface mustbe of valid types for RMI/IIOP.
I ran into this a little bit ago.. There is a good thread on it in the archive where someone listed all the possible reasons it can occur.. Try taking out the EJBException from the stuff that gives an error. If you're using TogetherSoft, it throws those in and the verifier gives that cryptic error. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tbone Sent: Thursday, June 14, 2001 12:25 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] The method return values in the home interface mustbe of valid types for RMI/IIOP. Does the Bicycle extends javax.ejb.EJBObject ( Remote interface )? - Original Message - From: "Richard Kasperowski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 13, 2001 7:17 PM Subject: [JBoss-user] The method return values in the home interface must be of valid types for RMI/IIOP. > I'm a new JBoss user trying to debug my code with respect to this > warning message at deploy time. I've tried making the remote interface, > Bicycle, extend Serializable, but the warning doesn't go away. What am > I doing wrong? > > - > [Verifier] > Bean : BicycleBean > Method : public abstract Bicycle create() throws CreateException, > EJBException, RemoteException, SQLException > Section: 9.2.8 > Warning: The method return values in the home interface must be of valid > types for RMI/IIOP. > > [Verifier] > Bean : BicycleBean > Method : public abstract Bicycle findByPrimaryKey(Integer) throws > FinderException, RemoteException, EJBException > Section: 9.2.8 > Warning: The method return values in the home interface must be of valid > types for RMI/IIOP. > - > > Thanks, > > -- > Richard Kasperowski (mailto:[EMAIL PROTECTED]) > Tel: 617-576-1552, Fax: 617-576-2441 > http://www.altisimo.com/ > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Non-unique Primary Keys
> In other words, I have a table which doesn't have a unique primary > key but rather a pair of fields that must be unique. How do I make > a primary key object without having to add another field to the > database? The quick answer is yes, you can do this, and you probably want to check out EJBdoclet. It will create the primary key class (and a lot of the other EJB code) for you. http://sourceforge.net/projects/ejbdoclet/ Not to pick a nit but you *do* in fact have a primary key, it's just composed of the two columns which together are unique, e.g.: CREATE TABLE "text_data" ( "text_data" int4 NOT NULL, "language" int4 NOT NULL, "text" character varying(255), PRIMARY KEY ("text_data", "language") ); With this table you can have multiple rows for each text_data value and multiple rows for each language value, but only one row for each text-data/language pair. HTH, Toby ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] unable to instantiate LoginConfiguration from applet, continued
Hello again! I'm still trying to get my applet working :-). But still no success. Before I added security the applet was working. Not I get a SecurityException when the LoginContext is instantiating. I've tried to sign the applet jar and it seems like I got a few steps further. As can be seen below, the stack trace says my applet can't read the property java.securyity.auth.debug. But this is very strange as I made a policy entry giving all permissions to the applet (I also tried to add this PropertyPermission but to no effect.) c:\appletviewer http://xxx.xxx.xxx.xxx:8080/appl.html Setting java.security.auth.login.config to file:///config/auth.conf Exception occurred during event dispatching: java.lang.ExceptionInInitializerError: java.security.AccessControlException: acc ess denied (java.util.PropertyPermission java.security.auth.debug read) at java.security.AccessControlContext.checkPermission(AccessControlConte xt.java:272) at java.security.AccessController.checkPermission(AccessController.java: 399) at java.lang.SecurityManager.checkPermission(SecurityManager.java:545) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:12 78) at java.lang.System.getProperty(System.java:560) at javax.security.auth.login.Debug$1.run(Debug.java:27) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.login.Debug.(Debug.java:24) at javax.security.auth.login.LoginContext.(LoginContext.java:147 ) Regards, Pelle Poluha > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Pelle Poluha > Sent: den 12 juni 2001 14:31 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] unable to instantiate LoginConfiguration from > applet > > > Hello! > > I'm trying to run my client as an applet. The users have to > login before > entering the application and here the program fails with an > SecurityException, se below. I have adjusted the .policy file > by adding an > AllPermission policy. I've tried to bundle the auth.conf file > in the jar > file containing the applet but also tried to have the > auth.conf file at a > specified location on the drive (ie c:\config\auth.conf). But > nothing helps. > > The java.security property is set inside the applet, using > System.setProperty(...); > > Any ideas? > > I'm using JBoss 2.2.2 on Win2K. > > Regards, > Pelle Poluha > > C:\>appletviewer http://xxx.xxx.xxx.xxx:8080/app.html > Setting java.security.auth.login.config to file://c:\config\auth.conf > java.lang.SecurityException: unable to instantiate LoginConfiguration > at > javax.security.auth.login.Configuration.getConfiguration(Configuratio > n.java:212) > at > javax.security.auth.login.LoginContext$1.run(LoginContext.java:166) > at java.security.AccessController.doPrivileged(Native Method) > at > javax.security.auth.login.LoginContext.init(LoginContext.java:163) > at > javax.security.auth.login.LoginContext.(LoginContext.java:319) > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] manual
You know, instead of all this exploring, why don't you all just get on the jboss-docs mailing list and start contributing to the documentation project instead. That way the energy you're pouring into writing these emails will be much better utilized. -- Juha At 08:15 14.6.2001 -0500, you wrote: >Let's explore the documentation question from another angle. If you look at the databases postgresql and mysql, most people on this list would say that they are excellent, have been around in some form or another for several years, and postgresql is more advanced. But the truth of the matter is that mysql has a larger user base, and produces excellent documentation. Perhaps the documentation has swayed newcomers to use mysql over postgresql. > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBossMQ exception on startup
I have the same problem in Windows 2000 server but not on Linux. Can anyone help, thank you in advance. Allan. --- "Ferguson, Doug" <[EMAIL PROTECTED]> wrote: > Hey, > > I get following exception on jboss startup for win2k > but not on linux. > > [JBossMQ] Starting > [JBossMQ] Cannot start the JMS server ! Invalid > configuration. > [JBossMQ] javax.jms.JMSException: Invalid > configuration. > [JBossMQ] at > org.jbossmq.server.PersistenceManager.(PersistenceManag > er.java:107) > [JBossMQ] at > org.jbossmq.server.StartServer.run(StartServer.java:170) > [JBossMQ] at > org.jbossmq.server.StartServer.start(StartServer.java:70) > [JBossMQ] at > org.jbossmq.server.JBossMQService.startService(JBossMQService > .java:66) > [JBossMQ] at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport. > java:93) > [JBossMQ] at > java.lang.reflect.Method.invoke(Native Method) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1628) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1523) > [JBossMQ] at > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > [JBossMQ] at > java.lang.reflect.Method.invoke(Native Method) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1628) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1523) > [JBossMQ] at > org.jboss.Main.(Main.java:217) > [JBossMQ] at > org.jboss.Main$1.run(Main.java:121) > [JBossMQ] at > java.security.AccessController.doPrivileged(Native > Method) > [JBossMQ] at > org.jboss.Main.main(Main.java:117) > [JBossMQ] Linked Exception: > [JBossMQ] javax.jms.JMSException: Could not open the > queue's tranaction log: > /C: > /java/JBoss-2.2.2_Tomcat-3.2.2/jboss/db/jbossmq/transactions.dat > [JBossMQ] at > org.jbossmq.persistence.SpyTxLog.throwJMSException(SpyTxLog.j > ava:95) > [JBossMQ] at > org.jbossmq.persistence.SpyTxLog.(SpyTxLog.java:35) > [JBossMQ] at > org.jbossmq.server.PersistenceManager.(PersistenceManag > er.java:104) > [JBossMQ] at > org.jbossmq.server.StartServer.run(StartServer.java:170) > [JBossMQ] at > org.jbossmq.server.StartServer.start(StartServer.java:70) > [JBossMQ] at > org.jbossmq.server.JBossMQService.startService(JBossMQService > .java:66) > [JBossMQ] at > org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport. > java:93) > [JBossMQ] at > java.lang.reflect.Method.invoke(Native Method) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1628) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1523) > [JBossMQ] at > org.jboss.util.ServiceControl.start(ServiceControl.java:97) > [JBossMQ] at > java.lang.reflect.Method.invoke(Native Method) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1628) > [JBossMQ] at > com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl > .java:1523) > [JBossMQ] at > org.jboss.Main.(Main.java:217) > [JBossMQ] at > org.jboss.Main$1.run(Main.java:121) > [JBossMQ] at > java.security.AccessController.doPrivileged(Native > Method) > [JBossMQ] at > org.jboss.Main.main(Main.java:117) > [JBossMQ] Started > [DefaultJMSProvider] Starting > [DefaultJMSProvider] JMS provider Adapter > DefaultJMSProvider bound to > java:/Defa > ultJMSProvider > [DefaultJMSProvider] Started > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] manual
Let's explore the documentation question from another angle. If you look at the databases postgresql and mysql, most people on this list would say that they are excellent, have been around in some form or another for several years, and postgresql is more advanced. But the truth of the matter is that mysql has a larger user base, and produces excellent documentation. Perhaps the documentation has swayed newcomers to use mysql over postgresql. From: "Scott M Stark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] manual Date: Wed, 13 Jun 2001 20:51:24 -0700 Organization: JBoss Reply-To: [EMAIL PROTECTED] And javadoc is found where? In the source... - Original Message - From: "Georg Rehfeld" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 13, 2001 6:22 PM Subject: Re: [JBoss-user] manual > Hi, > > note, I'm not complaining about bad JBoss docs, I find them brief > and enhancable but covering most important things yet, but > > Scott M Stark said: > > 3. Read the ultimate docs(the source) ... > > I don't agree with this, the ultimate doc is the doc! The > importance of documentation was addressed by SUN with the > JavaDoc tool for low level docs, but the rule applies to high > level docs too. > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] httprequest fired twice
Just wondering whether anyone faced the problem of Jboss / Tomcat combination firing two HTTPRequest events from MS Internet Explorer? Regards, Jee Meng. winmail.dat
RE: [JBoss-user] Little problem in test
You'll need to run the run_upload first to insert some sample data into the database first, before the run_list will show any data. Regards, ChetHong Lau > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 14, 2001 6:07 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Little problem in test > > > Well I've downloaded the cdEJB exemple in jboss/documentation . > > All files compiled with success, i've deployed it with no > more problem. > > But from the test, when I run "run-list.sh" file , even when I execute > "List" by hand, nothing appens ??? > > No errors, no messages, nothing. > > So I thought my sql connection didn't run, by I've checked > it, all is going > well. > > So I don't understand... > > > May it come from the container management of jboss or > something else ? > If somebody has suggestions, you're welcome. > Thanks. > > > ___ > 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] Little problem in test
Well I've downloaded the cdEJB exemple in jboss/documentation . All files compiled with success, i've deployed it with no more problem. But from the test, when I run "run-list.sh" file , even when I execute "List" by hand, nothing appens ??? No errors, no messages, nothing. So I thought my sql connection didn't run, by I've checked it, all is going well. So I don't understand... May it come from the container management of jboss or something else ? If somebody has suggestions, you're welcome. Thanks. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] WARNING: no match found for security role...
Thanks Scott. But why doesn't Sun's deploytool insert these elements? /Pelle Poluha ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] :-) EJB2.0 RunAs
Scott, I notice in a previous post you said that 'RunAs' will be implemented in 2.3 in the near futureany idea when(ish)? Lewis ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Non-unique Primary Keys
Title: RE: [JBoss-user] Non-unique Primary Keys Sun's J2EE developer guide has a good section on this at http://java.sun.com/j2ee/j2sdkee/techdocs/guides/ejb/html/Entity6.html#9455. Paul -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Nordahl, David C Sent: 13 June 2001 22:36 To: '[EMAIL PROTECTED]' Subject: [JBoss-user] Non-unique Primary Keys Is it possible to create a primary key object for a bean where the PK object itself is not stored in the database, but its attributes are? In other words, I have a table which doesn't have a unique primary key but rather a pair of fields that must be unique. How do I make a primary key object without having to add another field to the database? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Comments on JBoss/Tomcat JAAS docs etc. [was: manual]
Scott M Stark wrote: > > So I see three options here. > 1. Take the 10k your saving and write 10k worth of docs. > 2. Send 10k to JBoss and we'll write 10k worth of docs. > 3. Read the ultimate docs(the source) and save 10k less the hours it takes you. > I'll second that. There's nothing worse than folk moaning unconstructively (in capitals too) on mailing lists like this because everything isn't quite the way they would like it to be. I've just been working through your JAAS security howto this week and was very impressed with the security integration stuff and also with how much effort had gone into producing all this documentation (and examples - yes there *are* examples) to help people understand how to get it working. And all in addition to developing and maintaining jboss itself (not to mention earning a living too). OK, so it's not all handed to you on a plate, but I think the manual is improving a lot and if people just would just invest a bit of time to look through it and the website, try some stuff out, check the mailing list archives (or newsgroups for EJB stuff in general) and then finally post specific problems or constructive comments then it would save a lot of people's time and unnecessary traffic in the list. General ranting or demands for instant gratification after spending 10 minutes working on a problem are not going to help the situation at all. Having got that off my chest, and in addition to saying thanks, Scott, for all your hard work, can I just make a few minor (constructive :-) comments and suggestions on docs and the use of security with the integrated tomcat/jboss distribution. 1. The JAAS howto contains a lot of useful information on integration with tomcat (and examples), so should probably be linked to from the tomcat howto. 2. The jboss-2.2.2_tomcat_3.2.2 distribution now uses the org.jboss.tomcat.security.JBossSecurityMgrRealm by default and this doesn't seem to be documented - also the source (which explains what it does) doesn't come with the server and not everyone knows about the contrib module or how to access it with cvs. Maybe the full embedded-tomcat source should be included in the combined distribution. 3. Using the integrated distribution out of the box, attempting to use an application with web security-constraints throws a NullPointerException in the above class: [EmbeddedTomcatSX] User: null is authenticated 2001-06-12 05:21:34 - Ctx( /qn ): Exception in: R( /qn + /admin/index.jsp + null) - java.lang.NullPointerException at org.jboss.tomcat.security.JBossSecurityMgrRealm.authenticate(JBossSecurityMgrRealm.java:113) at org.apache.tomcat.core.ContextManager.doAuthenticate(ContextManager.java:837) at org.apache.tomcat.core.RequestImpl.getRemoteUser(RequestImpl.java:341) at org.jboss.tomcat.security.JBossSecurityMgrRealm.authorize(JBossSecurityMgrRealm.java:148) at org.apache.tomcat.core.ContextManager.doAuthorize(ContextManager.java:855) This happens when you first try to access secured web content. It can be fixed by working through the JAAS tutorial and configuring your application properly with a security domain in the same way as the examples, but the initial error doesn't provide much of a pointer (no pun intended :-) to what you should do next. 4. The above error also happens if you have your jboss-web.xml file in the wrong place (i.e. not in WEB-INF) like I did for a while by accident. Jboss-web.xml only seems to be mentioned in a few obscure places and should probably be mentioned in the configuration chapter. Again you can work out all this from the examples but it could be overlooked. 5. The distribution contains an out of date set of docs for JBoss 2.0 - including one for tomcat which mentions various things (e.g. "unifying the security model") as future enhancements when in fact they are already done (I believe). This should probably be removed as it will just cause confusion. All the best, Luke. > - Original Message - > From: "Ivan Bolcina" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, June 11, 2001 11:03 PM > Subject: RE: [JBoss-user] manual > > > I TOTALLY AGREE. BAD DOCUMENTATION MIGHT BE DEATH OF JBOSS. PLEASE DO > > EXAMPLES. > > WHY PEOPLE PAY 10K FOR COMMERCIAL EJB SERVERS? BECAUSE OF DOCUMENTATION! > > IT'S EASY! > > -- Neu: sunrise hat jetzt noch günstigere Surfpreise! Sofort profitieren! http://go.sunrise.ch/de/promo1 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] PreparedStatement in MySQL (Syntax error!!!)
I forgot to say thanks. Thanks. It was that (and some other stupid mistakes I did). /Pelle Poluha >When you're using a prepared statement and you have a String >parameter like >your number 2 and 3: >ps.setString(2,"'"+name+"'"); >you don't need to add the "'" because he handles for you, try >this, hope >helps >Ciao >Mr Andrea Delle Chiaie ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] No resource manager message, MySQL and JBoss
Hi, I'm just getting into JBoss and MySQL, and I've got it all working, EJB BMP's connecting to a pool which uses MySQL. BUT, I get 'No resource manager found for java:/mydb message for each of the EJB's. JBoss initialisation output shows: ... [JDBC provider] Initializing [JDBC provider] Loaded JDBC-driver:org.gjt.mm.mysql.Driver [JDBC provider] Initialized ... [pollstar] Starting [pollstar] XA Connection pool pollstar bound to java:/mydb [pollstar] Started ... [Container factory] Deploying MyFirstEjb [Container factory] No resource manager found for java:/mydb So you can see the MySQL driver loaded, and the XA connection pool being bound. But the bean uses resourse java:/mydb and this results in the no resource manager message. The JBoss.xml file I use has: MyFirstEJB myfirstejb java:/mydb java:/mydb Does anyone know what I must do to remove the No resource manager message? Even better can someone tell me exactly what it means - I can guess but it would be nice for a JBoss guru to say. Thanks, Jonathan -- This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Old jserv with JBoss'
You don't need absolutely a war file with tomcat; it works with classes in correct directory. SAINT-MARTIN Cecile [EMAIL PROTECTED] > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Emerson > Sent: Wednesday, June 13, 2001 1:58 PM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] Old jserv with JBoss' > > > I need use Jserv because tomcat just works with war archiver (am I wrong?) > and not with servlets in directories like was in Jserv. I don´t use JSP´s > (wasn´t available that time), instead I use static pages with dinamic tags > that I change on the fly, and the system is already in production. I would > be too much work to change everything to JSP... > > And is the Jserv compatible with the API´s of JBoss client > > > At 12:59 13/06/01 -0400, you wrote: > >I suspect it crshed because the new methods are not available in the old > >JServ package. Try compiling it using the old API and deploying it that > way, > >it should work. Assuming you have everything there you should > still be able > >to do lookups. I haven't of course tried this. best bet would > really be to > >upgrade to the latest versions (stable) of tomcat. > > > >Al > > > > > >-Original Message- > >From: [EMAIL PROTECTED] > >[mailto:[EMAIL PROTECTED]]On Behalf Of Emerson > >Sent: Wednesday, June 13, 2001 9:57 AM > >To: [EMAIL PROTECTED] > >Subject: [JBoss-user] Old jserv with JBoss' > > > > > >Is it possible to use old jserv (now tomcat) to run servlets that are > >clients to EJB JBoss remote objects?? > > > >That´s because I have a system in production (web-centric) using > >jserv/apache/JSDK2.0/IBMJava2-1.3 and I made a new servlet accessing EJB > >objects. > >But the httpsession methods getValue and putValue are deprecated (in the > >new Servlet API in which i compiled the servlet), and when i put > it to run > >it didn´t recognize the method getProperties (new method por getValue()). > > > >I tried to put the new Servlet API, but it crashed the Jserv. > > > >I indeed have to use new tomcat??? > > > >Please help... > > > > > >Emerson Cargnin > >TRE-SC > >Setor de Desenvolvimento > >Tel: (48) 251-3700 - Ramal 3134 > > > >___ > >JBoss-user mailing list > >[EMAIL PROTECTED] > >http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > >___ > >JBoss-user mailing list > >[EMAIL PROTECTED] > >http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > Emerson Cargnin > TRE-SC > Setor de Desenvolvimento > Tel: (48) 251-3700 - Ramal 3134 > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > ___ > 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