RE: help with trans. synchronization
Don't know if this will help, but it looks like the problem starts with the execution of a finder query. So maybe review the sql you've set for this query in orion-ejb-jar.xml. Or maybe the query can return more than one row and you have it set to return a single entity instance in the ejb's home interface? -Original Message- From: Waller Anne [mailto:[EMAIL PROTECTED]] Sent: 17 May 2002 02:35 To: Orion-Interest Subject: help with trans. synchronization Can anyone give some pointers or have come across a similar problem ? We are currently in development and in the middle of UAT testing. The application runs on Orion1.5.2 connecting to multiple datasources on the one server. A recent test raised the following exception java.lang.ArrayIndexOutOfBoundsException at com.evermind.server.ApplicationServerTransactionSynchrization.getConnection( Unknown source) . at ChangeHome_EntityHomeWrapper267.findActive(ChangeHome_EntityHomeWrapper) The application ues stateless session beans and CMP entity beans. There are 3 queuelisteners for transactions. Have reviewed the orion-ejb-jar and the ejb-jar for the transaction-attributes but am still none the wiser. Has anyone got any suggestions on tracking this down, we have put the profiler from HP called HPJMeter on and run with -Xprof. Perhaps we have too much information now but we are too inexperienced to be able to know what the next step should be in tracking this down. Would appreciate any advise on this one? regards, Anne. ** This e-mail is confidential and for the sole use of the intended recipient(s). If you are not the intended recipient, you are not authorised to disclose, use, distribute or in any other way make use of the information contained in it, and such activities are prohibited. If you have received this e-mail in error, please notify the sender by reply e-mail, delete the document and destroy all copies of the original message. **
Re: Help
Hi, If for some reason the JSP will not compile, you will get null when trying to get a RequestDispatcher to it. What stacktrace do you get when you access it directly (the internal server error 500)? A tip to see what's happening is to add development="true" to the orion-web.xml deployment descriptor to get readable java code for the accessed JSPs (stored in the deployment directory) /Fredrik Lindgren François Beauregard wrote: > I decided to day to give a first try at Orion (1.5.3). > I started trying to deploy an application that already runs fine under > Tomcat / Borland AppServer. > I have a .ear for this application > > I configured server.xml, data-sources.xml and default-web-site.xml > server.xml : > /> > default-web-site.xml : > > > Here is my application.xml > > Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd";> > > OASIS Application > > OasisBaseEJBs.jar > > > OasisPartyEJBs.jar > > > > oasisWeb.war > /oasisWeb > > > > > In the web.xml in oasisWeb.war I only have servlet mappings and tld > definitions. > > When I start Orion, the application deploys just fine but if I try to invoke > any jsp I get an internal error (500). > http:/localhost/oasisWeb/Welcome.jsp > If I change Welcome.jsp to Welcome.html, it displays correctly. > > If I invoke a servlet, it is properly invoked but whenever I try to > servlet.getServletContext().getRequestDispatcher(res.encodeURL(url)) > For a url that is a jsp I get a null result. > > Any idea? > > Thanks > __ > François Beauregard > Pyxis Technologies > Vice-président, recherche et développement > > Tel: (450) 681-9094 > Fax: (450) 681-5758 > [EMAIL PROTECTED] > > > > >
Re: Help
Hi François Beauregard, Configuration for server.xml, data-sources.xml and default-web-site.xml looks fine. Do your servlets located in the ..\oasis\oasisWeb\WEB-INF\classes directory? And one more note: jsp file is compiled file html not so when you run jsp file Orion compiles it. Result of the compiling you can see in the ...\application-deployments\oasis directory. Igor. ___ Igor Chirokov [EMAIL PROTECTED] - Original Message - From: "François Beauregard" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Friday, February 08, 2002 5:16 AM Subject: Help > I decided to day to give a first try at Orion (1.5.3). > I started trying to deploy an application that already runs fine under > Tomcat / Borland AppServer. > I have a .ear for this application > > I configured server.xml, data-sources.xml and default-web-site.xml > server.xml : > /> > default-web-site.xml : > > > Here is my application.xml > > Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd";> > > OASIS Application > > OasisBaseEJBs.jar > > > OasisPartyEJBs.jar > > > > oasisWeb.war > /oasisWeb > > > > > In the web.xml in oasisWeb.war I only have servlet mappings and tld > definitions. > > When I start Orion, the application deploys just fine but if I try to invoke > any jsp I get an internal error (500). > http:/localhost/oasisWeb/Welcome.jsp > If I change Welcome.jsp to Welcome.html, it displays correctly. > > If I invoke a servlet, it is properly invoked but whenever I try to > servlet.getServletContext().getRequestDispatcher(res.encodeURL(url)) > For a url that is a jsp I get a null result. > > Any idea? > > Thanks > __ > François Beauregard > Pyxis Technologies > Vice-président, recherche et développement > > Tel: (450) 681-9094 > Fax: (450) 681-5758 > [EMAIL PROTECTED] > > > >
Re: Help
how your web.xml file looks like François Beauregard wrote: >I decided to day to give a first try at Orion (1.5.3). >I started trying to deploy an application that already runs fine under >Tomcat / Borland AppServer. >I have a .ear for this application > >I configured server.xml, data-sources.xml and default-web-site.xml >server.xml : >/> >default-web-site.xml : > > >Here is my application.xml > >Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd";> > > OASIS Application > >OasisBaseEJBs.jar > > >OasisPartyEJBs.jar > > > > oasisWeb.war > /oasisWeb > > > > >In the web.xml in oasisWeb.war I only have servlet mappings and tld >definitions. > >When I start Orion, the application deploys just fine but if I try to invoke >any jsp I get an internal error (500). >http:/localhost/oasisWeb/Welcome.jsp >If I change Welcome.jsp to Welcome.html, it displays correctly. > >If I invoke a servlet, it is properly invoked but whenever I try to >servlet.getServletContext().getRequestDispatcher(res.encodeURL(url)) >For a url that is a jsp I get a null result. > >Any idea? > >Thanks >__ >François Beauregard >Pyxis Technologies >Vice-président, recherche et développement > >Tel: (450) 681-9094 >Fax: (450) 681-5758 >[EMAIL PROTECTED] > >
RE: Help!
Title: Message Most likely, your .jsp page is too large. I think there is a limit of 64K per method, and since the JSP page all get's generated into a single method, you might be exceeding that. Try using dynamic includes instead of static includes, or if you are not using includes at all, try to break up the page and use dynamic includes. -AP_ -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of NihilistSent: Wednesday, January 09, 2002 6:41 AMTo: Orion-InterestSubject: Help! Can anybody explain this error to me: Error parsing JSP page /process/index.jsp Error creating jsp-page instance: java.lang.VerifyError: (class: __jspPage1_process_index_jsp, method: _jspService signature: (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V) Illegal target of jump or branch It can't be replicated on a consistent basis, it seems to pop up, then go away, all by itself. And that's disturbing... Gotta be able to trust the app server! Thanks, Michael -Michael LaccettiDeveloper, Eldan Software[EMAIL PROTECTED]
RE: Help: Out of Memory Error...
don't send this mail to me Mohammed Islam Fulcrum Analytics, Inc.(formerly Cyber Dialogue ) Phone: 212-651-9263
RE: Help: Out of Memory Error...
What are you setting for your VM min/max heap settings? -Original Message- From: Arjen Schoneveld [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 1:02 PM To: Orion-Interest Cc: Arjen Schoneveld Subject: Help: Out of Memory Error... Hi All, We are about to deploy a new application for our client that is built on Orion. The application consists of some Servlets, statefull and stateless session beans and CM entity beans. We have been testing the application for a month now and did not experience any problems. However today we set up a client application that sequentially submits XML documents to the Servlet which controls a Statefull Session bean. (This is also how our web-application (and that of others) talk to this servlet (via XML). Normally a human is entering data in a web application and the data is marshalled in an XML document and send to the Servlet). The client-application is supposed to submit 2 XML documents sequentially to the servlet, which parses it, calls some methods of a statefull session bean (which controls other stateless session beans and entity beans) and sends an XML reply back. Every XML request takes about 1.5s to process. So far so good. However after an hour (or so) of running, Orion gets an java.lang.OutOfMemory Exception (see below). Does anybody known a solution. It is very important because we are about to deploy our application in production environment. Maybe we should delimit the number of (entity) bean instances? For every XML request about 20 records (hence entity beans) are created. BTW We are using SQL-server as a database. Thanks very much in advance, Arjen Schoneveld 11/28/01 6:28 PM nbwo: Servlet error java.lang.OutOfMemoryError <> 11/28/01 6:28 PM Error in bean NBWOSession java.lang.OutOfMemoryError <> 11/28/01 6:28 PM Error in bean Requests: Error loading state java.rmi.RemoteException: java.lang.IllegalStateException: Transaction expired: java.lang.OutOfMemoryError at com.dvs.nbwo.toolbox.ejb.entity.RequestsBean.ejbLoad(RequestsBean.java:8 6) at Requests_EntityBeanWrapper3.loadState(Requests_EntityBeanWrapper3.java:7 17) at com.evermind[Orion/1.5.2 (build 10460)].server.ejb.EntityEJBObject.endTransaction(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransactionSynchronization._vib(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransaction._vib(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransactionSynchronization.afterCompleti on(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransaction._end(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransaction.end(Unknown Source) at NBWOSession_StatefulSessionBeanWrapper27.storeData(NBWOSession_StatefulS essionBeanWrapper27.java:3919) at com.dvs.nbwo.toolbox.servlets.NBWOServlet.maakResultaatWaardebepalingsBe richt(NBWOServlet.java:1375) at com.dvs.nbwo.toolbox.servlets.NBWOServlet.doNbwoToetsing(NBWOServlet.jav a:977) at com.dvs.nbwo.toolbox.servlets.NBWOServlet.doAction(NBWOServlet.java:168) at org.dexels.toolbox.server.ToolboxServerServlet.doPost(ToolboxServerServl et.java:395) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb.include(Unknown Source) at org.dexels.toolbox.server.Postman.dispatch(Postman.java:197) at org.dexels.toolbox.server.Postman.doPost(Postman.java:513) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source) 11/28/01 6:28 PM Error in bean Requests: Error while delisting bean from TX com.evermind[Orion/1.5.2 (build 10460)].transaction.MarshallingXAException at com.evermind[Orion/1.5.2 (build 10460)].server.ejb.EntityEJBObject.endTransaction(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransactionSynchronization._vib(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransaction._vib(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransactionSynchronization.afterCompleti on(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransaction._end(Unknown Source) at com.evermind[Orion/1.5.2 (build
RE: Help: Out of Memory Error...
java -ms128M -mx800M -jar orion.jar use this jvm setting where 128M is the minimum memory and 800M is the maximum memory jvm will use it to start orion. vipul -Original Message- From: Arjen Schoneveld [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 12:02 PM To: Orion-Interest Cc: Arjen Schoneveld Subject: Help: Out of Memory Error... Hi All, We are about to deploy a new application for our client that is built on Orion. The application consists of some Servlets, statefull and stateless session beans and CM entity beans. We have been testing the application for a month now and did not experience any problems. However today we set up a client application that sequentially submits XML documents to the Servlet which controls a Statefull Session bean. (This is also how our web-application (and that of others) talk to this servlet (via XML). Normally a human is entering data in a web application and the data is marshalled in an XML document and send to the Servlet). The client-application is supposed to submit 2 XML documents sequentially to the servlet, which parses it, calls some methods of a statefull session bean (which controls other stateless session beans and entity beans) and sends an XML reply back. Every XML request takes about 1.5s to process. So far so good. However after an hour (or so) of running, Orion gets an java.lang.OutOfMemory Exception (see below). Does anybody known a solution. It is very important because we are about to deploy our application in production environment. Maybe we should delimit the number of (entity) bean instances? For every XML request about 20 records (hence entity beans) are created. BTW We are using SQL-server as a database. Thanks very much in advance, Arjen Schoneveld 11/28/01 6:28 PM nbwo: Servlet error java.lang.OutOfMemoryError <> 11/28/01 6:28 PM Error in bean NBWOSession java.lang.OutOfMemoryError <> 11/28/01 6:28 PM Error in bean Requests: Error loading state java.rmi.RemoteException: java.lang.IllegalStateException: Transaction expired: java.lang.OutOfMemoryError at com.dvs.nbwo.toolbox.ejb.entity.RequestsBean.ejbLoad(RequestsBean.java:8 6) at Requests_EntityBeanWrapper3.loadState(Requests_EntityBeanWrapper3.java:7 17) at com.evermind[Orion/1.5.2 (build 10460)].server.ejb.EntityEJBObject.endTransaction(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransactionSynchronization._vib(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransaction._vib(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransactionSynchronization.afterCompleti on(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransaction._end(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransaction.end(Unknown Source) at NBWOSession_StatefulSessionBeanWrapper27.storeData(NBWOSession_StatefulS essionBeanWrapper27.java:3919) at com.dvs.nbwo.toolbox.servlets.NBWOServlet.maakResultaatWaardebepalingsBe richt(NBWOServlet.java:1375) at com.dvs.nbwo.toolbox.servlets.NBWOServlet.doNbwoToetsing(NBWOServlet.jav a:977) at com.dvs.nbwo.toolbox.servlets.NBWOServlet.doAction(NBWOServlet.java:168) at org.dexels.toolbox.server.ToolboxServerServlet.doPost(ToolboxServerServl et.java:395) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb.include(Unknown Source) at org.dexels.toolbox.server.Postman.dispatch(Postman.java:197) at org.dexels.toolbox.server.Postman.doPost(Postman.java:513) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source) 11/28/01 6:28 PM Error in bean Requests: Error while delisting bean from TX com.evermind[Orion/1.5.2 (build 10460)].transaction.MarshallingXAException at com.evermind[Orion/1.5.2 (build 10460)].server.ejb.EntityEJBObject.endTransaction(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransactionSynchronization._vib(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransaction._vib(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerTransactionSynchronization.afterCompleti on(Unknown Source) at com.evermind[Orion/1.5.2 (bu
RE: Help with HTTP Internal Server Error
Hi If your using Internet Explorer you might want to turn "Friendly Error Messages" off. I found this a couple a days ago(on this list). It seems that IE wraps more or less every server error into the standard useless 500 InternalServer error. Disabling "Friend Error Messages" should, in most cases, give you the error message the server is sending, and not the one from ie. Tools -> Internet Options -> Advanced -> Browsing -> Show friendly HTTP error messages Aslak Knutsen EDB Teamco Dialog -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 4. oktober 2001 16:09 To: Orion-Interest Subject: Help with HTTP Internal Server Error Hi I'm getting a HTTP 500 Internal Server error when I try to access one of my JSP pages. The following is written to the web-access.log file, but no other errors are reported anywhere. GET /budgeting/Test?event=accountSummary&accType=SAVNG HTTP/1.1" 500 482 Does the 482 at the end mean something or is there anywhere else where I could get more information about the error. Just to make things interesting, the page works fine if I run it through Tomcat. Thanks Derek Hardy E-mail communication is not secure and may be intercepted by a third party. This message is confidential to the intended addressee. If you are not the intended addressee, please inform us immediately and then delete this message. Virgin Direct does not accept responsibility for changes made to this message after it was sent. Although Virgin Direct believes this e-mail is free of any virus or other defect which may affect a computer, it is the responsibility of the recipient to ensure that it is virus free and Virgin Direct does not accept any responsibility for any loss or damage arising in any way from it's use. Virgin Direct Personal Financial Service Ltd is regulated by the Personal Investment Authority for life insurance, pension and unit trust business and represents only the Virgin Direct marketing group. Registered office: Discovery House, Whiting Road, Norwich NR4 6EJ, UK. Registered in England No. 3072766. The Virgin One account is a secured personal bank account with The Royal Bank of Scotland plc. It is provided by Virgin Direct Personal Finance Ltd which is a representative only of Virgin Direct Personal Financial Service Ltd. Registered office: Waterhouse Square, 138-142 Holborn, London EC1N 2TH, UK. Registered in England no 3414708. The Virgin Deposit Account is a personal deposit account with The Royal Bank of Scotland plc administered by Virgin Direct Personal Financial Service Ltd. All telephone calls are recorded and may be monitored.
RE: Help with HTTP Internal Server Error
Disable IE's "friendly" error messages, then you should see a stack trace... -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Thursday, October 04, 2001 7:09 AM To: Orion-Interest Subject: Help with HTTP Internal Server Error Hi I'm getting a HTTP 500 Internal Server error when I try to access one of my JSP pages. The following is written to the web-access.log file, but no other errors are reported anywhere. GET /budgeting/Test?event=accountSummary&accType=SAVNG HTTP/1.1" 500 482 Does the 482 at the end mean something or is there anywhere else where I could get more information about the error. Just to make things interesting, the page works fine if I run it through Tomcat. Thanks Derek Hardy E-mail communication is not secure and may be intercepted by a third party. This message is confidential to the intended addressee. If you are not the intended addressee, please inform us immediately and then delete this message. Virgin Direct does not accept responsibility for changes made to this message after it was sent. Although Virgin Direct believes this e-mail is free of any virus or other defect which may affect a computer, it is the responsibility of the recipient to ensure that it is virus free and Virgin Direct does not accept any responsibility for any loss or damage arising in any way from it's use. Virgin Direct Personal Financial Service Ltd is regulated by the Personal Investment Authority for life insurance, pension and unit trust business and represents only the Virgin Direct marketing group. Registered office: Discovery House, Whiting Road, Norwich NR4 6EJ, UK. Registered in England No. 3072766. The Virgin One account is a secured personal bank account with The Royal Bank of Scotland plc. It is provided by Virgin Direct Personal Finance Ltd which is a representative only of Virgin Direct Personal Financial Service Ltd. Registered office: Waterhouse Square, 138-142 Holborn, London EC1N 2TH, UK. Registered in England no 3414708. The Virgin Deposit Account is a personal deposit account with The Royal Bank of Scotland plc administered by Virgin Direct Personal Financial Service Ltd. All telephone calls are recorded and may be monitored.
RE: HELP !!! SECURITY
lo que? the orionconsole is run with: $orion# java -jar orionconsole.jar HTH, JP PS: mail me (in Spanish if you like) if that's not what you're looking for. An extended explanation would be appreciated -Original Message-From: David Bonilla [mailto:[EMAIL PROTECTED]]Sent: Viernes, 21 de Septiembre de 2001 11:23To: Orion-InterestSubject: HELP !!! SECURITY Ok... I have understand all about security but know, how and where can I activate a option to use a Orion-Based console or something else to control de User Name and Password ? __David Bonilla FuertesTHE BIT BANG NETWORKhttp://www.bit-bang.comProfesor Waksman, 8, 6º B28036 MadridSPAINTel.: (+34) 914 577 747Móvil: 656 62 83 92Fax: (+34) 914 586 176__
RE: HELP !!! SECURITY
David, The orionconsole application allows you to add and remove users, but it is VERY buggy, and not supported by IronFlare: java -jar orionconsole.jar Most of us write a admin web module to administer user's. Here are the relavent API's: 1. roleManager: This class can be instanced by using the following jndi lookup: RoleManager manager = (RoleManager)new InitialContext().lookup("java:comp/RoleManager"); It has things like addToRole, login, getPrincipal, and removePrincipal. This api is the class you should use to interact with a second api, usermanager. Check out the api here http://www.orionserver.com/docs/api/index.html. 2. UserManager: There are three of these builtin, - XMLUserManager. This one is used by the container for the global application, and users, and role/group mapping is stored in the principals.xml file of the orion/config directory. Since it is usually the parent of all other usermanagers, the principals.xml file should be included in each ear/META-INF directory with its own usersecurity. - DataSourceUserManager. This usermanager uses a database to store user information, groups, etc. - EJBUserManager. This usermanager uses an ejb to store user information, groups, etc. You can write your own user manager to interface with LDAP or any other security datastore. A good example is in http://www.orionsupport.com/articles/usermanager.html (or http://uk.orionsupport.com/articles/usermanager.html mirror). These security api's are specific to Orion, since there is no specification for how containers impement user security in j2ee. If you want to use user security, www.jollem.com has a draft tutorial on user security which talks about the specifics of configuring security for an application in orion. regards, the elephantwalker www.elephantwalker.com -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David BonillaSent: Friday, September 21, 2001 8:23 AMTo: Orion-InterestSubject: HELP !!! SECURITY Ok... I have understand all about security but know, how and where can I activate a option to use a Orion-Based console or something else to control de User Name and Password ? __David Bonilla FuertesTHE BIT BANG NETWORKhttp://www.bit-bang.comProfesor Waksman, 8, 6º B28036 MadridSPAINTel.: (+34) 914 577 747Móvil: 656 62 83 92Fax: (+34) 914 586 176__
RE: Help me
For error 1) You have to copy tools.jar to c:\orion directory For error 2) You have to provide jndi.properties for accessing client. You have to provide username/password for JNDI lookup. Kesav Kumar Kolla Voquette Inc 650 356 3740(W) 510 889 6840(R) VoquetteDelivering Sound Information Send Instant Message -Original Message-From: nguyen dinh uong [mailto:[EMAIL PROTECTED]]Sent: Thursday, September 20, 2001 4:28 AMTo: Orion-InterestSubject: Help me I have to meet some error when I deploy /demo/ejb I hope You can help me First error .This is appear when I use java -jar orion.jar /*Auto-deploying product (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/product/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a path="the/path/to/tools.jar" /> and restartAuto-deploying cart (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/cart/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a and restartAuto-deploying usermanager (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/usermanager/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add aand restartAuto-deploying product... Error instantiating application 'ejbsamples' at file:/C:/orion/demo/ejb/: Error auto-deploying application-client at product: No location specified and no suitable instance of the type 'Product' found for the ejb-ref MyProductOrion/1.4.5 initialized*/Second error .when I use command java -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;. CartClient/*Exception in thread "main" java.lang.SecurityException: Invalid username/password for ejbsamples (admin) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.f4(JAX) at com.evermind.server.rmi.RMIServer.f4(JAX, Compiled Code) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.administration.LazyResourceFinder.f4(JAX) at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX) at com.evermind.server.Application.aq8(JAX, Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242) at javax.naming.InitialContext.init(InitialContext.java:218) at javax.naming.InitialContext.(InitialContext.java:174) at CartClient.main(CartClient.java:17) */I don't know I'll have to continune how Thank you very much Uo^ng Dinh Nguyen - Get your private, free Email by Vietnamese at http://vol.vnn.vn
Re: Help me
Please read the error its having all the solution to fix your problem --- nguyen dinh uong <[EMAIL PROTECTED]> wrote: I have to meet some error when I deploy /demo/ejb I hope You can help me First error .This is appear when I use java -jar orion.jar /*Auto-deploying product (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/product/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add aand restartAuto-deploying cart (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/cart/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a and restartAuto-deploying usermanager (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/usermanager/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a and restartAuto-deploying product... Error instantiating application 'ejbsamples' at file:/C:/orion/demo/ejb/: Error auto-deploying application-client at product: No location specified and no suitable instance of the type 'Product' found for the ejb-ref MyProductOrion/1.4.5 initialized*/Second error .when I use command java -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;. CartClient/*Exception in thread "main" java.lang.SecurityException: Invalid username/password for ejbsamples (admin) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.f4(JAX) at com.evermind.server.rmi.RMIServer.f4(JAX, Compiled Code) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.administration.LazyResourceFinder.f4(JAX) at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX) at com.evermind.server.Application.aq8(JAX, Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242) at javax.naming.InitialContext.init(InitialContext.java:218) at javax.naming.InitialContext. (InitialContext.java:174) at CartClient.main(CartClient.java:17) */I don't know I'll have to continune how Thank you very much Uo^ng Dinh Nguyen - Get your private, free Email by Vietnamese at http://vol.vnn.vn Regards Muthu Rajamanickam e-mail:[EMAIL PROTECTED] Phone:832-567-7859 __ Terrorist Attacks on U.S. - How can you help? Donate cash, emergency relief information http://dailynews.yahoo.com/fc/US/Emergency_Information/
RE: Help me
Did you copy tools.jar (from your jdk) into your Orion directory? -Original Message-From: nguyen dinh uong [mailto:[EMAIL PROTECTED]]Sent: 20 September 2001 12:28To: Orion-InterestSubject: Help me I have to meet some error when I deploy /demo/ejb I hope You can help me First error .This is appear when I use java -jar orion.jar /*Auto-deploying product (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/product/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a path="the/path/to/tools.jar" /> and restartAuto-deploying cart (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/cart/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a and restartAuto-deploying usermanager (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/usermanager/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add aand restartAuto-deploying product... Error instantiating application 'ejbsamples' at file:/C:/orion/demo/ejb/: Error auto-deploying application-client at product: No location specified and no suitable instance of the type 'Product' found for the ejb-ref MyProductOrion/1.4.5 initialized*/Second error .when I use command java -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;. CartClient/*Exception in thread "main" java.lang.SecurityException: Invalid username/password for ejbsamples (admin) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.f4(JAX) at com.evermind.server.rmi.RMIServer.f4(JAX, Compiled Code) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.administration.LazyResourceFinder.f4(JAX) at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX) at com.evermind.server.Application.aq8(JAX, Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242) at javax.naming.InitialContext.init(InitialContext.java:218) at javax.naming.InitialContext.(InitialContext.java:174) at CartClient.main(CartClient.java:17) */I don't know I'll have to continune how Thank you very much Uo^ng Dinh Nguyen - Get your private, free Email by Vietnamese at http://vol.vnn.vn
RE: Help me
Try setting deactivated =false in the principals.xml file under config dir of orion for username & password as specified in the jndi.properties of Cart example. -Original Message-From: nguyen dinh uong [mailto:[EMAIL PROTECTED]]Sent: Thursday, September 20, 2001 4:58 PMTo: Orion-InterestSubject: Help me I have to meet some error when I deploy /demo/ejb I hope You can help me First error .This is appear when I use java -jar orion.jar /*Auto-deploying product (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/product/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a path="the/path/to/tools.jar" /> and restartAuto-deploying cart (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/cart/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a and restartAuto-deploying usermanager (No previous deployment found)... Error compiling file:/C:/orion/demo/ejb/usermanager/: Error instantiating compiler: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add aand restartAuto-deploying product... Error instantiating application 'ejbsamples' at file:/C:/orion/demo/ejb/: Error auto-deploying application-client at product: No location specified and no suitable instance of the type 'Product' found for the ejb-ref MyProductOrion/1.4.5 initialized*/Second error .when I use command java -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;. CartClient/*Exception in thread "main" java.lang.SecurityException: Invalid username/password for ejbsamples (admin) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.gl(JAX) at com.evermind.server.rmi.ba.f4(JAX) at com.evermind.server.rmi.RMIServer.f4(JAX, Compiled Code) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.administration.LazyResourceFinder.f4(JAX) at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX) at com.evermind.server.Application.aq8(JAX, Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:242) at javax.naming.InitialContext.init(InitialContext.java:218) at javax.naming.InitialContext.(InitialContext.java:174) at CartClient.main(CartClient.java:17) */I don't know I'll have to continune how Thank you very much Uo^ng Dinh Nguyen - Get your private, free Email by Vietnamese at http://vol.vnn.vn "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system."
RE: Help needed
Instead of IP tables, you could use Apache to proxy port 80 requests to the port your Orion is listening for. You set up your virtual host in your apache conf file like this (you need to make sure you have the Apache proxy module installed): ServerName www.yourdomain.com ProxyRequests On RewriteEngine On RewriteRule ^/(.*) http://www.yourdomain.com:4321/$1 [P] TransferLog /pathtowhereyouwanttologaccess/access LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" (where 4321 is the port number your Orion is listening on.) If you do that make sure you add this between your tags to your web-site xml file (the one in your orion/config dir): You need to bear in mind that it makes your Orion access log files useless as all request appear to have come from the same IP. All you do is use the Apache ones instead. Check out: http://www.orionsupport.com/articles/apachefrontend.html for some additional info. Hope this helps. Johnny -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bill Wichgers Sent: 31 August 2001 16:49 To: Orion-Interest Subject: Help needed I'm trying to get Orion Server to start as a non-root users on Red Hat 7.1. I know I need to forward the port from 80 to something above 1024. Does any one know how I can do that with iptables. I've never used it before. Any help would be appreceated. Bill Wichgers
Re: Help needed
Hi. > I'm trying to get Orion Server to start as a non-root users on Red Hat > 7.1. I know I need to forward the port from 80 to something above > 1024. Does any one know how I can do that with iptables. I've never > used it before. ipchains -I input --protocol tcp \ --destination-port 80 -j REDIRECT 10240 If the Orion port is 10240. You need to configure your kernel to support redirecting. Consult Kernel docs. > Any help would be appreceated. > > > Bill Wichgers Lachezar
Re: Help needed.
You can't if you use direct connection to your ejb stuff. Obvious solution - use servlet as a facade for your server part and use http with serialization or xml or html or clear text ... Alex > Antonio Vazquez wrote: > > Hi all, > I've write a JApplet that comunicates with an EJB. It's work fine but > I have a problem. I use > com.evermind.server.ApplicationClientInitialContextFactory and to use > it from the client I need to put orion.jar in every computer that use > this applet. Can anybody tell me how I use it without copy orion.jar > in every computer. > > Thanks in advance > > Antonio
Re: Help with exception, could be classpath related
Hi Ashok, the two beans are in two individual ejb-jar files, with both beans deployed successfully, I know this because they work fine when I connect simple clients to them, and both work from the same client when the classpath is set correctly. The contents of the files are ejb-jar2.jar SimpleSessionBean.class + other classes ejb-jar1.jar SimpleEntityBean + other classes By other classes I mean the Home interfaces etc etc and standard java classes which the Beans use. The SimpleSessionBean references the SimpleEntityBean and some of the standard classes. I don't think ears are suitable for this are they? Thanks for all your help, I really do appreciate it! Albert. Subject: Re: Help with exception, could be classpath related Date: Thu, 09 Aug 2001 20:08:03 -0700 From: Ashok Banerjee <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Are the 2 beans in the different applications (ear files)? If so you may want to specify one application as the parent of the other. Cheers, Ashok [EMAIL PROTECTED] wrote: > Hello All, > hope you can help me with this as I'm unsure exactly what it means, > I use a session bean to invoke methods on an entity bean, the error seems > to be in the Entity Bean but it has been tested from a client and it works, > I think it may be due to the classpath, as I've had to put the classes into > the server.xml as file before I could see them from > ejbs. any ideas are very welcome, > Thanks, > Albert. > Here is the exception I get from the terminal I start Orion server from: > > java.lang.ClassCastException: __Proxy0 > at SimpleEntityBean.Submit(SimpleEntityBean.java:230) > at > SimpleEntity_EntityBeanWrapper0.Submit(SimpleEntity_EntityBeanWrapper0.java >:268) at java.lang.reflect.Method.invoke(Native Method) > at com.evermind._dh._gc(Unknown Source) > at com.evermind._if.run(Unknown Source) > > Email just got more fun @ another.com > http://another.com --- -- Be passionate about your email Just click here: http://another.com
Re: Help with exception, could be classpath related
Are the 2 beans in the different applications (ear files)? If so you may want to specify one application as the parent of the other. Cheers, Ashok [EMAIL PROTECTED] wrote: > Hello All, > hope you can help me with this as I'm unsure exactly what it means, > I use a session bean to invoke methods on an entity bean, the error seems to be in >the Entity Bean but it has been tested from a client and it works, I think it may be >due to the classpath, as I've had to put the classes into the server.xml as path="...">file before I could see them from ejbs. > any ideas are very welcome, > Thanks, > Albert. > Here is the exception I get from the terminal I start Orion server from: > > java.lang.ClassCastException: __Proxy0 > at SimpleEntityBean.Submit(SimpleEntityBean.java:230) > at >SimpleEntity_EntityBeanWrapper0.Submit(SimpleEntity_EntityBeanWrapper0.java:268) > at java.lang.reflect.Method.invoke(Native Method) > at com.evermind._dh._gc(Unknown Source) > at com.evermind._if.run(Unknown Source) > > Email just got more fun @ another.com > http://another.com
RE: help...Error deserializing session
Sounds like you have a stateful session bean that has a member variable which is of a non-serializable type, from the looks of it, some sort of JDBC object, such as Connection or Statement. When your bean is activated or passivated, it's trying to serialize or deserialize that member variable causing the error. Declare the offending variable as transient, and ensure that you initialize the variable before you use it in your code. Andre -Original Message- From: John Miller [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:41 AM To: Orion-Interest Subject: help...Error deserializing session Hi, I have written an EJB which does a pretty simple Oracle select and am getting this error, when the bean is instantiated for the first time: Error deserializing session: java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.evermind.sql.ak I have no idea what might be causing this, so any suggestions or ideas you might have would be a great help. Thanks, Johnny http://www.iii.co.uk Interactive Investor International is a leading UK Internet personal finance service that provides individuals with the capability to identify, compare, monitor and buy online a number of financial products and services. Interactive Investor Trading Limited, a subsidiary of Interactive Investor International plc, is regulated by the SFA.
RE: help...Error deserializing session
I am currently getting same error while connecting to Oracle. Looks like they all happened when connecting to Oracle. -Original Message-From: John Miller [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 10, 2001 1:41 PMTo: Orion-InterestSubject: help...Error deserializing session Hi, I have written an EJB which does a pretty simple Oracle select and am getting this error, when the bean is instantiated for the first time: Error deserializing session: java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.evermind.sql.ak I have no idea what might be causing this, so any suggestions or ideas you might have would be a great help. Thanks, Johnny http://www.iii.co.uk Interactive Investor International is a leading UK Internet personal finance service that provides individuals with the capability to identify, compare, monitor and buy online a number of financial products and services. Interactive Investor Trading Limited, a subsidiary of Interactive Investor International plc, is regulated by the SFA.
Re: Help on List
Maybee you stated the wrong email address for unsubscription? WR - Original Message - From: "Abhilash Koneri" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 4:27 AM Subject: Help on List > HI, > I need to unsubscribe from this list and subscribe to a different mail > id. I managed > the secoud part. But how do I go about the former?? (The unsubscribe > button on the orionserver home > page does not work). > > regards, > abhilash >
Re: Help on List
It worked as recently as May. I was able to go unsubscribe prior to leaving for vacation and it worked just fine. There may be a slight delay, however. --- Abhilash Koneri <[EMAIL PROTECTED]> wrote: > HI, > I need to unsubscribe from this list and subscribe to a different mail > id. I managed > the secoud part. But how do I go about the former?? (The unsubscribe > button on the orionserver home > page does not work). > > regards, > abhilash > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Help With JNDI properties
You need an application-client.xml file as in $ORION_HOME/demo/ejb/product/META-INF/application-client.xml. Cheers, Ash [EMAIL PROTECTED] wrote: > Hi All. > Is there anything wrong with this set of properties I'm trying to use with Orion? > (the username and password is correct! > > Properties p = new Properties(); > // ... Specify the JNDI properties specific to the vendor. > >p.setProperty("java.naming.factory.initial","com.evermind.server.ApplicationClientInitialContextFactory"); > p.setProperty("java.naming.provider.url","ormi://localhost"); > p.setProperty("java.naming.security.principal","username"); > p.setProperty("java.naming.security.credentials","password"); > > This compiles fine but when run gives the error: > > javax.naming.NamingException: META-INF/application-client.xml resource not found >(see J2EE spec, application-client chapter for requirements and format of the file) > at >com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(Unknown >Source) > at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665) > at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246) > at javax.naming.InitialContext.init(InitialContext.java:222) > at javax.naming.InitialContext.(InitialContext.java:198) > at Client_1.getInitialContext(Client_1.java:35) > at Client_1.main(Client_1.java:13) > > I can't find this application-client.xml file anywhere in the primer example or the >other examples. > Thanks, > Albert. > > - > > Be passionate about your email > Just click here: http://another.com
Re: HELP on MessageDrivenBeans
Hi.> I did look at the ATM example. That's the thing : in ATM the message driven> bean does not declare ANY topic or connection factory. Only the publishing> session bean declares them. Now, how do they make the connection between the> MDB and the topic/topicConnectionFactory declared by the publisher ? Is this> the ONLY way of doing it (I have just an MDB in one single jar file, the> publisher is not an EJB) ? Does anybody has a simple and working example of> MDB under Orion ?! Yes. I have a working example, that works with an external topic-publisher (stand-alone java app) and an external queue-sender (also a stand alone app). Works :)>>> IN EJB-JAR.XML HelloBean HelloMSGBean.HelloBean Container javax.jms.Topic > All I want is to be told what needs to be in orion specific descriptors ...> if anything needs to be there. >>> IN ORION-EJB-JAR.XML connection-factory-location="jms/TopicConnectionFactory" destination-location="jms/theTopic" /> > I think I forgot to mention that I'm using Orion 1.4.5 And I already found> out another JMS problem in this version : an auto-started client (droped the> MDB :(((, too much effort to deploy it) enters in an infinite loop when> receiving messages from a topic - acknowledgemnt doesn't work ?! I tried to> update to 1.4.7 and it does not work AT ALL (no more messages). GOT MUCH WORK TO DO!!! 1.4.5 Bug: When deploying the MDBs it removes the destination definition from the deployment descriptor orion-ejb-jar.xml. Thus your beans will listen to one and the same topic (the default topic). Walk-around-1: After deploying the beans shutdown orion and edit manually orion-ejb-jar.xml in the deployment directory (application-deployments/blah). Walk-around-2: Have only one topic and only one queue. I think this problem is also in 1.4.7, 1.4.8, but I don't have them at hand and I'm not so sure. The problem is solved in 1.5.2 for sure. > Thanks !> > Eugen < REST OF MESSAGE CUT OFF > Lachezar.
RE: HELP on MessageDrivenBeans
I did look at the ATM example. That's the thing : in ATM the message driven bean does not declare ANY topic or connection factory. Only the publishing session bean declares them. Now, how do they make the connection between the MDB and the topic/topicConnectionFactory declared by the publisher ? Is this the ONLY way of doing it (I have just an MDB in one single jar file, the publisher is not an EJB) ? Does anybody has a simple and working example of MDB under Orion ?! All I want is to be told what needs to be in orion specific descriptors ... if anything needs to be there. I think I forgot to mention that I'm using Orion 1.4.5 And I already found out another JMS problem in this version : an auto-started client (droped the MDB :(((, too much effort to deploy it) enters in an infinite loop when receiving messages from a topic - acknowledgemnt doesn't work ?! I tried to update to 1.4.7 and it does not work AT ALL (no more messages). Thanks ! Eugen > -Original Message- > From: elephantwalker [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 27, 2001 1:23 PM > To: Orion-Interest > Subject: RE: HELP on MessageDrivenBeans > > > Eugen, > > Take a look at the atm example. It uses a jms ejb. You will > have to unpack > the ear to get to the bean, but its there. Atm is in the demo > directory. > > Regards, > > the elephantwalker > > .ps did you uncomment the jms-config tag in server.xml? > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > Eugen Bulboaca > Sent: Wednesday, June 27, 2001 9:57 AM > To: Orion-Interest > Subject: HELP on MessageDrivenBeans > > > Could anybody please describe once and for all ALL the steps > required in > deploying an MDB under Orion ?! It's not normal, you write > the code in 5 > minutes and you styruggle one day or more to do the deployment :(( ! > > Here's what I have tried - with no success in having the bean > to react : > > 1. Added resource-ref entries in the deployment descriptor ejb-jar.xml > > > > Listener message driven > bean > Listener > ListenerBean > > com.davincitech.mCare.utils.logging.listener.Listen > erBean ass> > > > javax.jms.Topic > > Container > > The log topic > where log events > are broadcasted... > > jms/theTopic > javax.jms.Topic > Container > > > The Factory used to produce > connections to the log topic... > > jms/theTopicConnectionFactory > > javax.jms.TopicConnectionFactory > Container > > > > > Orion will automatically add resource-ref-map entries in > orion-ejb-jar.xml: >name="com.davincitech.mCare.utils.logging.listener.ListenerBean" > destination-location="jms/theTopic"> > >name="jms/theTopicConnectionFactory" /> > > Now my question : DO WE NEED TO USE destination-location AND > connection-factory-location ATTRIBUTES FOR > message-driven-deployment OR NOT > ?! > > 2. I tried without those resource-ref entries in > ejb-jar.xml and just > setting destination-location and connection-factory-location > and no success > either. > > Now, I have a client that uses JMS to publish messages to the topic > (actually is a Log4J JMS appender object) - it uses the > following parameters > : > > > value="java:comp/env/jms/theTopicConnectionFactory"/> > value="java:comp/env/jms/theTopic" > /> > > value="com.evermind.server.ApplicationClientInitialContextFactory"/> > value="ormi://localhost/mCare" /> > > > > > > I've tested, it is sending a message to the topic -> I changed Orion's > jmschat example to receive any type o message and it does receive the > messages sent by the client. > > Now, what do I need to put in jms.xml ?! I've only added the topic's > declaration: > > > A dummy topic > > > What am I missing ?!??? I'm tired ! :((( > > Thanks ! > > Eugen > > > >
RE: HELP on MessageDrivenBeans
Eugen, Take a look at the atm example. It uses a jms ejb. You will have to unpack the ear to get to the bean, but its there. Atm is in the demo directory. Regards, the elephantwalker .ps did you uncomment the jms-config tag in server.xml? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eugen Bulboaca Sent: Wednesday, June 27, 2001 9:57 AM To: Orion-Interest Subject: HELP on MessageDrivenBeans Could anybody please describe once and for all ALL the steps required in deploying an MDB under Orion ?! It's not normal, you write the code in 5 minutes and you styruggle one day or more to do the deployment :(( ! Here's what I have tried - with no success in having the bean to react : 1. Added resource-ref entries in the deployment descriptor ejb-jar.xml Listener message driven bean Listener ListenerBean com.davincitech.mCare.utils.logging.listener.ListenerBean javax.jms.Topic Container The log topic where log events are broadcasted... jms/theTopic javax.jms.Topic Container The Factory used to produce connections to the log topic... jms/theTopicConnectionFactory javax.jms.TopicConnectionFactory Container Orion will automatically add resource-ref-map entries in orion-ejb-jar.xml: Now my question : DO WE NEED TO USE destination-location AND connection-factory-location ATTRIBUTES FOR message-driven-deployment OR NOT ?! 2. I tried without those resource-ref entries in ejb-jar.xml and just setting destination-location and connection-factory-location and no success either. Now, I have a client that uses JMS to publish messages to the topic (actually is a Log4J JMS appender object) - it uses the following parameters : I've tested, it is sending a message to the topic -> I changed Orion's jmschat example to receive any type o message and it does receive the messages sent by the client. Now, what do I need to put in jms.xml ?! I've only added the topic's declaration: A dummy topic What am I missing ?!??? I'm tired ! :((( Thanks ! Eugen
Re: help jsession problem -urgent
Thanks I got the problem. You are right the servlet spec says the JSESSIONID should be after the contextpath. Thanks. - Original Message - From: "Jacky Cheung" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, May 24, 2001 11:52 PM Subject: Re: help jsession problem -urgent > Kesav, > > It seems that your are using url rewriting to track sessions. According to > the Servlet specification, for session tracking using URL rewriting, a path > parameter should be added. I think the url should be... > > http://localhost/vms/servlet/Logout;JSESSIONID=x?fileName=blah > > You can find the information in SRV.7.1.3 in the specification of Servlet > 2.3 PFD2. > > Best regards, > Jacky > > - Original Message - > From: "Jeff Hubbach" <[EMAIL PROTECTED]> > To: "Orion-Interest" <[EMAIL PROTECTED]> > Sent: Friday, May 25, 2001 12:35 PM > Subject: Re: help jsession problem -urgent > > > > Kesav, > > > > Do you mean to have the URL: > > http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x > > ?? > > > > It looks like you have a semicolon where an ampersand should be: > > http://localhost/vms/servlet/Logout?fileName=blah&JSESSIONID=x > > > > The correct method of separating multiple URL parameters is with an > > ampersand, > > not a semicolon as you sent. > > > > Jeff Hubbach > > > > On Thu, 24 May 2001 19:16:14 -0700 > > Kesav Kumar <[EMAIL PROTECTED]> wrote: > > > > >I am using a URL > > >http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x > > > > > >In my servlet I am accessing the fileName by > > >request.getParameter("fileName") > > >I am getting the following value 1;JSESSIONID=x > > > > > >Why doesn't orion strips out the jessionid from the name value paris of > > the > > >request. It seems it is happening in the new version only. > > > > > >I am using 1.5.1 version. I haven't seen this problem in the previous > > >versions. Is there some thing I am missing or is it a bug? > > > > > >Thanks. > > > > > >Kesav Kumar > > >Software Engineer > > >Voquette, Inc. > > >650 356 3740 > > >mailto:[EMAIL PROTECTED] > > >http://www.voquette.com > > >Voquette...Delivering Sound Information > > > > > > > > > > > > -- > > Jeff Hubbach > > [EMAIL PROTECTED] > > > > > > > >
Re: HELP! 1.4.5 and JMS
Try to upgrade to 1.5.1 orion if you can't upgrate then possible soultions are like this. Copy the latest xerces.jar into \jre\lib\ext directory so that orion picks the xerces from there. The other alternate is write a batch file including all jar files in classpath in correct order and run the orion server by java com.evermind.server.ApplicationServer - Original Message - From: "Jean-Guillaume LALANNE" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Friday, May 25, 2001 7:35 AM Subject: RE: HELP! 1.4.5 and JMS > Hi, > > Have you managed to install GLUE with orion ? > Is it a difficult to handle ? > I have tried to install SOAP apache on Orion and I got on trouble > with the xerces versioning... > So I now I run my J2EE plateform on orion(1.3.8) and my SOAP > listener on TOMCAT. > I would be nice if could come back to orion. > Is glue toolkit a way to do this ? > > Thanx in advance for your suggestions. > > cheers > Jean-Guillaume LALANNE > > > > -Message d'origine- > De : [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]De la part de Joseph B. > Ottinger > Envoye : vendredi 25 mai 2001 13:08 > A : Orion-Interest > Objet : RE: HELP! 1.4.5 and JMS > > > Well, that's useful. Actually, I'm investigating the use of SOAP now (not > being an anti-MS idiot^Wbigot and all) and it's pretty nice; with a decent > toolkit like GLUE (http://www.themindelectric.com/) it's easy to use with > Orion, fast, and cross-platform and cross-language. All pluses, if you > need that kind of capability. > > On Thu, 24 May 2001, elephantwalker wrote: > > > Yes...drop SOAP and use XML-RPC. Faster and lighter and NOT a Microsoft > > solution. > > > > www.xml-rpc.org > > > > also Brett McGlaughlin's book Java and XML. > > > > Regards, > > > > the elephantwalker > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Su, Yi > > Sent: Thursday, May 24, 2001 8:01 PM > > To: Orion-Interest > > Subject: RE: HELP! 1.4.5 and JMS > > > > > > Hello, > > > > Does anyone knows that what Java tools, libraries are currently > supporting > > XML schema and XLL. > > > > Is there resources for me to look up for using SOAP using Java? > > > > Thanks alot. > > > > Regards, > > > > Yeoman > > > > -Original Message- > > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, May 17, 2001 10:16 AM > > To: Orion-Interest > > Cc: 'Orion-Interest' > > Subject: Re: HELP! 1.4.5 and JMS > > > > > > Hi Kesav, > > Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After > > removing the connection factory line, in 1.4.5, the client hangs on > > TopicConnection.createSubscriber(). If I give the createTopicConnection a > > username and password, then the server throws a NPE and the client hangs > at > > createTopicConnection(). > > > > The same problem persists in 1.4.8. > > > > I'm sure I'm doing something really stupid. However, I have no idea > how > > to solve it. I'm attaching some code in the hope that someone can help me > > out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really > > desperate! > > > > Thanks, > > Vidur > > > > Kesav Kumar wrote: > > > > > > Just remove the connectionfactory line from your jms.xml. > > > > Kesav Kumar > > Software Engineer > > Voquette, Inc. > > 650 356 3740 > > mailto:[EMAIL PROTECTED] > > http://www.voquette.com > > Voquette...Delivering Sound Information > > > > -Original Message- > > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 16, 2001 11:31 AM > > To: Orion-Interest > > Subject: HELP! 1.4.5 and JMS > > > > Please help! I broke something in my code and can't figure it out. > > On > > the client, I'm consistently getting: > > java.lang.NullPointerException > >at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) > >at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) > >at com.evermind.server.jms.cj.(JAX) > >at com.evermind.server.jms.b8.start(JAX) > >at > > > > > com.epistemic.km.server.Notificati
RE: HELP! 1.4.5 and JMS
Is it a strong use? After all, you said XML-RPC was faster and lighter - okay, granted. Then you pointed out that XML-RPC wasn't a MS solution, either - with emphasis. SOAP is also an IBM solution, yet you didn't say "NOT an IBM solution" - you centered on MS. Typically, that's bigotry. If I'm incorrect in my analysis, well... that's okay, it just seemed to be the connotation you were offering. On Fri, 25 May 2001, elephantwalker wrote: > Joe, > > Using a word like 'bigot' is a little strong, there are several technical > experts that have evaluated the soap standard and xml-rpc (often, you can > use xml-rpc with soap), and concluded that soap is a "heavy" standard, > versus the relatively light implementations of xml-rpc out there. So this is > a considered opinion. > > In the end, isv's will use whatever gets us to the end of the project in the > cheapest, most reliable way. > > Regards, > > the elephantwalker > > > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B. > Ottinger > Sent: Friday, May 25, 2001 4:08 AM > To: Orion-Interest > Subject: RE: HELP! 1.4.5 and JMS > > > Well, that's useful. Actually, I'm investigating the use of SOAP now (not > being an anti-MS idiot^Wbigot and all) and it's pretty nice; with a decent > toolkit like GLUE (http://www.themindelectric.com/) it's easy to use with > Orion, fast, and cross-platform and cross-language. All pluses, if you > need that kind of capability. > > On Thu, 24 May 2001, elephantwalker wrote: > > > Yes...drop SOAP and use XML-RPC. Faster and lighter and NOT a Microsoft > > solution. > > > > www.xml-rpc.org > > > > also Brett McGlaughlin's book Java and XML. > > > > Regards, > > > > the elephantwalker > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Su, Yi > > Sent: Thursday, May 24, 2001 8:01 PM > > To: Orion-Interest > > Subject: RE: HELP! 1.4.5 and JMS > > > > > > Hello, > > > > Does anyone knows that what Java tools, libraries are currently > supporting > > XML schema and XLL. > > > > Is there resources for me to look up for using SOAP using Java? > > > > Thanks alot. > > > > Regards, > > > > Yeoman > > > > -Original Message- > > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, May 17, 2001 10:16 AM > > To: Orion-Interest > > Cc: 'Orion-Interest' > > Subject: Re: HELP! 1.4.5 and JMS > > > > > > Hi Kesav, > > Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After > > removing the connection factory line, in 1.4.5, the client hangs on > > TopicConnection.createSubscriber(). If I give the createTopicConnection a > > username and password, then the server throws a NPE and the client hangs > at > > createTopicConnection(). > > > > The same problem persists in 1.4.8. > > > > I'm sure I'm doing something really stupid. However, I have no idea > how > > to solve it. I'm attaching some code in the hope that someone can help me > > out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really > > desperate! > > > > Thanks, > > Vidur > > > > Kesav Kumar wrote: > > > > > > Just remove the connectionfactory line from your jms.xml. > > > > Kesav Kumar > > Software Engineer > > Voquette, Inc. > > 650 356 3740 > > mailto:[EMAIL PROTECTED] > > http://www.voquette.com > > Voquette...Delivering Sound Information > > > > -Original Message- > > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 16, 2001 11:31 AM > > To: Orion-Interest > > Subject: HELP! 1.4.5 and JMS > > > > Please help! I broke something in my code and can't figure it out. > > On > > the client, I'm consistently getting: > > java.lang.NullPointerException > >at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) > >at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) > >at com.evermind.server.jms.cj.(JAX) > >at com.evermind.server.jms.b8.start(JAX) > >at > > > > > com.epistemic.km.server.NotificationBase.getConnection(Noti
RE: HELP! 1.4.5 and JMS
Installing GLUE is simple: in ./electric/webapps/glue there's a web application. Install that in Orion, and you're fairly done; see the installation docs (the usage document, in particular) for how to do it. --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
RE: HELP! 1.4.5 and JMS
Joe, Using a word like 'bigot' is a little strong, there are several technical experts that have evaluated the soap standard and xml-rpc (often, you can use xml-rpc with soap), and concluded that soap is a "heavy" standard, versus the relatively light implementations of xml-rpc out there. So this is a considered opinion. In the end, isv's will use whatever gets us to the end of the project in the cheapest, most reliable way. Regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B. Ottinger Sent: Friday, May 25, 2001 4:08 AM To: Orion-Interest Subject: RE: HELP! 1.4.5 and JMS Well, that's useful. Actually, I'm investigating the use of SOAP now (not being an anti-MS idiot^Wbigot and all) and it's pretty nice; with a decent toolkit like GLUE (http://www.themindelectric.com/) it's easy to use with Orion, fast, and cross-platform and cross-language. All pluses, if you need that kind of capability. On Thu, 24 May 2001, elephantwalker wrote: > Yes...drop SOAP and use XML-RPC. Faster and lighter and NOT a Microsoft > solution. > > www.xml-rpc.org > > also Brett McGlaughlin's book Java and XML. > > Regards, > > the elephantwalker > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Su, Yi > Sent: Thursday, May 24, 2001 8:01 PM > To: Orion-Interest > Subject: RE: HELP! 1.4.5 and JMS > > > Hello, > > Does anyone knows that what Java tools, libraries are currently supporting > XML schema and XLL. > > Is there resources for me to look up for using SOAP using Java? > > Thanks alot. > > Regards, > > Yeoman > > -Original Message- > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 17, 2001 10:16 AM > To: Orion-Interest > Cc: 'Orion-Interest' > Subject: Re: HELP! 1.4.5 and JMS > > > Hi Kesav, > Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After > removing the connection factory line, in 1.4.5, the client hangs on > TopicConnection.createSubscriber(). If I give the createTopicConnection a > username and password, then the server throws a NPE and the client hangs at > createTopicConnection(). > > The same problem persists in 1.4.8. > > I'm sure I'm doing something really stupid. However, I have no idea how > to solve it. I'm attaching some code in the hope that someone can help me > out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really > desperate! > > Thanks, > Vidur > > Kesav Kumar wrote: > > > Just remove the connectionfactory line from your jms.xml. > > Kesav Kumar > Software Engineer > Voquette, Inc. > 650 356 3740 > mailto:[EMAIL PROTECTED] > http://www.voquette.com > Voquette...Delivering Sound Information > > -Original Message- > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 16, 2001 11:31 AM > To: Orion-Interest > Subject: HELP! 1.4.5 and JMS > > Please help! I broke something in my code and can't figure it out. > On > the client, I'm consistently getting: > java.lang.NullPointerException >at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) >at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) >at com.evermind.server.jms.cj.(JAX) >at com.evermind.server.jms.b8.start(JAX) >at > > com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java > :89) > >at > > com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:10 > 1) > >at > > com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java > :44) > > Auto-started clients can send/receive messages without trouble. > > getConnection() calls createTopicConnection() and then start(). > If I use, createConnection (usr, pwd), then the system hangs. > > In jms.xml, I have: > > location="jms/notificationFactory" port="9127" /> > > > > Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 > that is a show stopper for us. And in fact, this code worked uptil > yesterday when I made changes to try and get 1.4.8 to work. > > TIA, > Vidur > > PS. If possible, please also cc me directly. I'm really desperate. > -- > Vidur Dhanda > Active Solutions > tel: 617/566-1252 > cell: 617/821-7115 > [EMAIL PROTECTED] > www.active-solutions-inc.com > > > -- > Vidur Dhanda > Active Solutions > tel: 617/566-1252 > cell: 617/821-7115 > [EMAIL PROTECTED] > www.active-solutions-inc.com > > > --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
RE: HELP! 1.4.5 and JMS
Hi, Have you managed to install GLUE with orion ? Is it a difficult to handle ? I have tried to install SOAP apache on Orion and I got on trouble with the xerces versioning... So I now I run my J2EE plateform on orion(1.3.8) and my SOAP listener on TOMCAT. I would be nice if could come back to orion. Is glue toolkit a way to do this ? Thanx in advance for your suggestions. cheers Jean-Guillaume LALANNE -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Joseph B. Ottinger Envoye : vendredi 25 mai 2001 13:08 A : Orion-Interest Objet : RE: HELP! 1.4.5 and JMS Well, that's useful. Actually, I'm investigating the use of SOAP now (not being an anti-MS idiot^Wbigot and all) and it's pretty nice; with a decent toolkit like GLUE (http://www.themindelectric.com/) it's easy to use with Orion, fast, and cross-platform and cross-language. All pluses, if you need that kind of capability. On Thu, 24 May 2001, elephantwalker wrote: > Yes...drop SOAP and use XML-RPC. Faster and lighter and NOT a Microsoft > solution. > > www.xml-rpc.org > > also Brett McGlaughlin's book Java and XML. > > Regards, > > the elephantwalker > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Su, Yi > Sent: Thursday, May 24, 2001 8:01 PM > To: Orion-Interest > Subject: RE: HELP! 1.4.5 and JMS > > > Hello, > > Does anyone knows that what Java tools, libraries are currently supporting > XML schema and XLL. > > Is there resources for me to look up for using SOAP using Java? > > Thanks alot. > > Regards, > > Yeoman > > -Original Message- > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 17, 2001 10:16 AM > To: Orion-Interest > Cc: 'Orion-Interest' > Subject: Re: HELP! 1.4.5 and JMS > > > Hi Kesav, > Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After > removing the connection factory line, in 1.4.5, the client hangs on > TopicConnection.createSubscriber(). If I give the createTopicConnection a > username and password, then the server throws a NPE and the client hangs at > createTopicConnection(). > > The same problem persists in 1.4.8. > > I'm sure I'm doing something really stupid. However, I have no idea how > to solve it. I'm attaching some code in the hope that someone can help me > out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really > desperate! > > Thanks, > Vidur > > Kesav Kumar wrote: > > > Just remove the connectionfactory line from your jms.xml. > > Kesav Kumar > Software Engineer > Voquette, Inc. > 650 356 3740 > mailto:[EMAIL PROTECTED] > http://www.voquette.com > Voquette...Delivering Sound Information > > -Original Message- > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 16, 2001 11:31 AM > To: Orion-Interest > Subject: HELP! 1.4.5 and JMS > > Please help! I broke something in my code and can't figure it out. > On > the client, I'm consistently getting: > java.lang.NullPointerException >at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) >at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) >at com.evermind.server.jms.cj.(JAX) >at com.evermind.server.jms.b8.start(JAX) >at > > com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java > :89) > >at > > com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:10 > 1) > >at > > com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java > :44) > > Auto-started clients can send/receive messages without trouble. > > getConnection() calls createTopicConnection() and then start(). > If I use, createConnection (usr, pwd), then the system hangs. > > In jms.xml, I have: > > location="jms/notificationFactory" port="9127" /> > > > > Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 > that is a show stopper for us. And in fact, this code worked uptil > yesterday when I made changes to try and get 1.4.8 to work. > > TIA, > Vidur > > PS. If possible, please also cc me directly. I'm really desperate. > -- > Vidur Dhanda > Active Solutions > tel: 617/566-1252 > cell: 617/821-7115 > [EMAIL PROTECTED] > www.active-solutions-inc.com > > > -- > Vidur Dhanda > Active Solutions > tel: 617/566-1252 > cell: 617/821-7115 > [EMAIL PROTECTED] > www.active-solutions-inc.com > > > --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
Re: help jsession problem -urgent
Title: help jsession problem -urgent Try passing your parameters this way: http://localhost/vms/servlet/Logout?fileName=blah&JSESSIONID=x The key here is the "&" that separates the two parameters. HTH Javier SoquesMegasoft Computación, C.A.CaracasVenezuelaTlf.: (58212)6933211 ext. 217Fax.: (58212)6932811Cel.: (016)6300872[EMAIL PROTECTED] - Original Message - From: Kesav Kumar To: Orion-Interest Sent: Thursday, May 24, 2001 10:16 PM Subject: help jsession problem -urgent I am using a URL http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x In my servlet I am accessing the fileName by request.getParameter("fileName") I am getting the following value 1;JSESSIONID=x Why doesn't orion strips out the jessionid from the name value paris of the request. It seems it is happening in the new version only. I am using 1.5.1 version. I haven't seen this problem in the previous versions. Is there some thing I am missing or is it a bug? Thanks. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information
RE: HELP! 1.4.5 and JMS
Well, that's useful. Actually, I'm investigating the use of SOAP now (not being an anti-MS idiot^Wbigot and all) and it's pretty nice; with a decent toolkit like GLUE (http://www.themindelectric.com/) it's easy to use with Orion, fast, and cross-platform and cross-language. All pluses, if you need that kind of capability. On Thu, 24 May 2001, elephantwalker wrote: > Yes...drop SOAP and use XML-RPC. Faster and lighter and NOT a Microsoft > solution. > > www.xml-rpc.org > > also Brett McGlaughlin's book Java and XML. > > Regards, > > the elephantwalker > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Su, Yi > Sent: Thursday, May 24, 2001 8:01 PM > To: Orion-Interest > Subject: RE: HELP! 1.4.5 and JMS > > > Hello, > > Does anyone knows that what Java tools, libraries are currently supporting > XML schema and XLL. > > Is there resources for me to look up for using SOAP using Java? > > Thanks alot. > > Regards, > > Yeoman > > -Original Message- > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 17, 2001 10:16 AM > To: Orion-Interest > Cc: 'Orion-Interest' > Subject: Re: HELP! 1.4.5 and JMS > > > Hi Kesav, > Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After > removing the connection factory line, in 1.4.5, the client hangs on > TopicConnection.createSubscriber(). If I give the createTopicConnection a > username and password, then the server throws a NPE and the client hangs at > createTopicConnection(). > > The same problem persists in 1.4.8. > > I'm sure I'm doing something really stupid. However, I have no idea how > to solve it. I'm attaching some code in the hope that someone can help me > out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really > desperate! > > Thanks, > Vidur > > Kesav Kumar wrote: > > > Just remove the connectionfactory line from your jms.xml. > > Kesav Kumar > Software Engineer > Voquette, Inc. > 650 356 3740 > mailto:[EMAIL PROTECTED] > http://www.voquette.com > Voquette...Delivering Sound Information > > -Original Message- > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 16, 2001 11:31 AM > To: Orion-Interest > Subject: HELP! 1.4.5 and JMS > > Please help! I broke something in my code and can't figure it out. > On > the client, I'm consistently getting: > java.lang.NullPointerException >at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) >at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) >at com.evermind.server.jms.cj.(JAX) >at com.evermind.server.jms.b8.start(JAX) >at > > com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java > :89) > >at > > com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:10 > 1) > >at > > com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java > :44) > > Auto-started clients can send/receive messages without trouble. > > getConnection() calls createTopicConnection() and then start(). > If I use, createConnection (usr, pwd), then the system hangs. > > In jms.xml, I have: > > location="jms/notificationFactory" port="9127" /> > > > > Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 > that is a show stopper for us. And in fact, this code worked uptil > yesterday when I made changes to try and get 1.4.8 to work. > > TIA, > Vidur > > PS. If possible, please also cc me directly. I'm really desperate. > -- > Vidur Dhanda > Active Solutions > tel: 617/566-1252 > cell: 617/821-7115 > [EMAIL PROTECTED] > www.active-solutions-inc.com > > > -- > Vidur Dhanda > Active Solutions > tel: 617/566-1252 > cell: 617/821-7115 > [EMAIL PROTECTED] > www.active-solutions-inc.com > > > --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
Re: help jsession problem -urgent
Kesav, It seems that your are using url rewriting to track sessions. According to the Servlet specification, for session tracking using URL rewriting, a path parameter should be added. I think the url should be... http://localhost/vms/servlet/Logout;JSESSIONID=x?fileName=blah You can find the information in SRV.7.1.3 in the specification of Servlet 2.3 PFD2. Best regards, Jacky - Original Message - From: "Jeff Hubbach" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Friday, May 25, 2001 12:35 PM Subject: Re: help jsession problem -urgent > Kesav, > > Do you mean to have the URL: > http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x > ?? > > It looks like you have a semicolon where an ampersand should be: > http://localhost/vms/servlet/Logout?fileName=blah&JSESSIONID=x > > The correct method of separating multiple URL parameters is with an > ampersand, > not a semicolon as you sent. > > Jeff Hubbach > > On Thu, 24 May 2001 19:16:14 -0700 > Kesav Kumar <[EMAIL PROTECTED]> wrote: > > >I am using a URL > >http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x > > > >In my servlet I am accessing the fileName by > >request.getParameter("fileName") > >I am getting the following value 1;JSESSIONID=x > > > >Why doesn't orion strips out the jessionid from the name value paris of > the > >request. It seems it is happening in the new version only. > > > >I am using 1.5.1 version. I haven't seen this problem in the previous > >versions. Is there some thing I am missing or is it a bug? > > > >Thanks. > > > >Kesav Kumar > >Software Engineer > >Voquette, Inc. > >650 356 3740 > >mailto:[EMAIL PROTECTED] > >http://www.voquette.com > >Voquette...Delivering Sound Information > > > > > > > -- > Jeff Hubbach > [EMAIL PROTECTED] > > >
Re: HELP! 1.4.5 and JMS
Checkout http://www.soapware.org/directory/4/implementations. The url pretty much describes what you will find. As for XML Schema and XLL. W3C's site actually lists some useful links. http://www.w3.org/XML/Schema http://www.w3.org/XML/Linking Here are some other XLL/XSD links. http://www.oasis-open.org/cover/xll.html#software http://www.w3.org/XML/2000/09/LinkingImplementations.html http://sourceforge.net/projects/xmlconf/ I hope that helps, skot - Original Message - From: Su, Yi To: Orion-Interest Sent: Thursday, May 24, 2001 8:01 PM Subject: RE: HELP! 1.4.5 and JMS Hello, Does anyone knows that what Java tools, libraries are currently supporting XML schema and XLL. Is there resources for me to look up for using SOAP using Java?
Re: HELP! 1.4.5 and JMS
xerces gives initial support for xml schema. You can use apache SOAP or axis for all SOAP access in java. - Original Message - From: Su, Yi To: Orion-Interest Sent: Thursday, May 24, 2001 8:01 PM Subject: RE: HELP! 1.4.5 and JMS Hello, Does anyone knows that what Java tools, libraries are currently supporting XML schema and XLL. Is there resources for me to look up for using SOAP using Java? Thanks alot. Regards, Yeoman -Original Message-From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 17, 2001 10:16 AMTo: Orion-InterestCc: 'Orion-Interest'Subject: Re: HELP! 1.4.5 and JMSHi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: location="jms/notificationFactory" port="9127" /> Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
RE: HELP! 1.4.5 and JMS
Yes...drop SOAP and use XML-RPC. Faster and lighter and NOT a Microsoft solution. www.xml-rpc.org also Brett McGlaughlin's book Java and XML. Regards, the elephantwalker -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Su, YiSent: Thursday, May 24, 2001 8:01 PMTo: Orion-InterestSubject: RE: HELP! 1.4.5 and JMS Hello, Does anyone knows that what Java tools, libraries are currently supporting XML schema and XLL. Is there resources for me to look up for using SOAP using Java? Thanks alot. Regards, Yeoman -Original Message-From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 17, 2001 10:16 AMTo: Orion-InterestCc: 'Orion-Interest'Subject: Re: HELP! 1.4.5 and JMSHi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: location="jms/notificationFactory" port="9127" /> Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
Re: help jsession problem -urgent
Kesav, Do you mean to have the URL: http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x ?? It looks like you have a semicolon where an ampersand should be: http://localhost/vms/servlet/Logout?fileName=blah&JSESSIONID=x The correct method of separating multiple URL parameters is with an ampersand, not a semicolon as you sent. Jeff Hubbach On Thu, 24 May 2001 19:16:14 -0700 Kesav Kumar <[EMAIL PROTECTED]> wrote: >I am using a URL >http://localhost/vms/servlet/Logout?fileName=blah;JSESSIONID=x > >In my servlet I am accessing the fileName by >request.getParameter("fileName") >I am getting the following value 1;JSESSIONID=x > >Why doesn't orion strips out the jessionid from the name value paris of the >request. It seems it is happening in the new version only. > >I am using 1.5.1 version. I haven't seen this problem in the previous >versions. Is there some thing I am missing or is it a bug? > >Thanks. > >Kesav Kumar >Software Engineer >Voquette, Inc. >650 356 3740 >mailto:[EMAIL PROTECTED] >http://www.voquette.com >Voquette...Delivering Sound Information > > -- Jeff Hubbach [EMAIL PROTECTED]
RE: HELP! 1.4.5 and JMS
Hello, Does anyone knows that what Java tools, libraries are currently supporting XML schema and XLL. Is there resources for me to look up for using SOAP using Java? Thanks alot. Regards, Yeoman -Original Message-From: Vidur Dhanda [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 17, 2001 10:16 AMTo: Orion-InterestCc: 'Orion-Interest'Subject: Re: HELP! 1.4.5 and JMSHi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: location="jms/notificationFactory" port="9127" /> Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
RE: Help wanted - Info about exclusive-write-access
Hi Atul, I think this feature is application server dependent and not a part of the J2EE specs. Please correct me if I am wrong. I know that Orion and WebLogic provide this option to specify that it has exclusive access to the database (table) for performance improvements. Other app servers might also have something similar. Since this is a value-add this is very specific to the app server being used and appears only in the app server specific deployment file. Hope this helps Rajesh -Original Message- From: Kshatriya, Atul [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 9:15 AM To: Orion-Interest Subject: Help wanted - Info about exclusive-write-access Hello, This is a deployment question for entity beans. The database that we are working on can potentially be changed/updated outside the ejb container. After reading the documentation I found that we need to specify in the orion-ejb-jar.xml a flag exclusive-write-access="false" in thesection for that entity bean so that orion will do trips to the database everytime a bean property is accessed and reflect the correct state everytime. But strangely orion-ejb-jar.xml is a deployment file. It is created by orion from the .ear file that we give it as the application, and not a part of the .ear. I don't want to change the deployment files of orion to make my application work correctly! What do I need to specify in MY ejb-jar.xml in which I detail my entity beans so that orion will correctly deploy them with the flag set to false (it is true by default). Thank you very much in advance. Atul. -Original Message- From: Ernie Phelps [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 4:18 AM To: Orion-Interest Subject: RE: JSP variable in nested Tags Scott, Thanks for the tip, but in this case I went back and ensured that there were no spaces between. Still have the same issue. - E -Original Message- From: SCOTT FARQUHAR [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 6:13 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JSP variable in nested Tags I have a feeling that this is not orion-specific (websphere ie tomcat does this too) if you have any spaces between " and <% then you will encounter this problem. >>> [EMAIL PROTECTED] 05/24/01 04:58am >>> I have an interesting little problem. I am using the Jakarta tags inside an tag. One of the attributes of the is name, which I am setting using name="<%= myVar.getMyProp %>". This works fine, until I put text in front of the "<%". If I do that, it sends the literal string instead of the value of the variable. Example 1 (Works): Produces: Example 2 (Fails): Produces: I have looked at the JSP 1.1 specification, but couldn't find anything that said it should be processed one way or the other. I have a feeling that this is an Orion specific issue, but can't find out which way is correct to submit a bug report. Does anyone on the list have a resource to point me to on this issue? Thanks in advance for your help. OS: Win2k Ver: Orion 1.5.1 JDK: 1.3 - Ernie Phelps
RE: Help wanted - Info about exclusive-write-access
copy lyou modified orior-ejb-jar.xml file (or create your own) from the deployment directory to you development ejb META-INF directory. So now your ejb directory should look like this: META-INF | - ejb-jar.xml - orion-ejb-jar.xml remake your ejb jar. remake your war and ear files deploy as usual, but now the orion-ejb-jar.xml in the deployment will reflect your changes. BTW, you only have to put in your tag ... orion should do the rest. All of the j2ee deployment descriptors which are in the j2ee spec have "orion-specific" orion-"j2ee descriptor".xml files which can be put in the same place as the j2ee specific. weblogic used to use dd files which also had to be in the ejb.jar file, but their latest version also uses orion's technique of xml deployment descriptors. I guess they steal from the best. ... oh yeah, remember to blow away your deploy directory, because orion will not overwrite a orion-specific xml file in the deployment directory, because most of us hacks just modify the automatically created stuff, and only package it up in the final release. regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kshatriya, Atul Sent: Thursday, May 24, 2001 9:15 AM To: Orion-Interest Subject: Help wanted - Info about exclusive-write-access Hello, This is a deployment question for entity beans. The database that we are working on can potentially be changed/updated outside the ejb container. After reading the documentation I found that we need to specify in the orion-ejb-jar.xml a flag exclusive-write-access="false" in thesection for that entity bean so that orion will do trips to the database everytime a bean property is accessed and reflect the correct state everytime. But strangely orion-ejb-jar.xml is a deployment file. It is created by orion from the .ear file that we give it as the application, and not a part of the .ear. I don't want to change the deployment files of orion to make my application work correctly! What do I need to specify in MY ejb-jar.xml in which I detail my entity beans so that orion will correctly deploy them with the flag set to false (it is true by default). Thank you very much in advance. Atul. -Original Message- From: Ernie Phelps [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 4:18 AM To: Orion-Interest Subject: RE: JSP variable in nested Tags Scott, Thanks for the tip, but in this case I went back and ensured that there were no spaces between. Still have the same issue. - E -Original Message- From: SCOTT FARQUHAR [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 6:13 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: JSP variable in nested Tags I have a feeling that this is not orion-specific (websphere ie tomcat does this too) if you have any spaces between " and <% then you will encounter this problem. >>> [EMAIL PROTECTED] 05/24/01 04:58am >>> I have an interesting little problem. I am using the Jakarta tags inside an tag. One of the attributes of the is name, which I am setting using name="<%= myVar.getMyProp %>". This works fine, until I put text in front of the "<%". If I do that, it sends the literal string instead of the value of the variable. Example 1 (Works): Produces: Example 2 (Fails): Produces: I have looked at the JSP 1.1 specification, but couldn't find anything that said it should be processed one way or the other. I have a feeling that this is an Orion specific issue, but can't find out which way is correct to submit a bug report. Does anyone on the list have a resource to point me to on this issue? Thanks in advance for your help. OS: Win2k Ver: Orion 1.5.1 JDK: 1.3 - Ernie Phelps
Re: HELP! 1.4.5 and JMS
JDK 1.3.1 rc2 and I'm not getting to the point where a message can be sent or received. The problem occurs in createSubscriber() or createTopicConnection(). Vidur [EMAIL PROTECTED] wrote: > Hi Vidur, > What is your message size and what is your jdk version? if you are using > any of pre jdk-1.3 (to start orion server) and if your message size is more > than 64K, you will have similar problem. > --venkat > > > Vidur Dhanda > <[EMAIL PROTECTED]> > inc.com> cc: "'Orion-Interest'" ><[EMAIL PROTECTED]> > Sent by: Subject: Re: HELP! 1.4.5 >and JMS > owner-orion-interest@orion > server.com > > > 05/17/01 12:18 PM > Please respond to > Orion-Interest > > > > I have jndi.properties on the classpath. And when I examine the Context > that is used for the lookup, it has the appropriate values. There's > something else (hopefully, very basic) that is going on here. Could > someone try running the code against their installation? > > Thanks, > Vidur > Kesav Kumar wrote: If you write a separate client app to access JMS > messages you need to have jndi.properties file or you need to provide the > properties to the InitialContext. Here aret the steps to write a separate > client app which runs outside the orion environment. 1) In your jms.xml > don't have any connection factory just declare your topics/queues 2) Either > have jndi.properties in the class path with the following contents > >java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory > > java.naming.provider.url=ormi://localhost/ > java.naming.security.principal=admin > java.naming.security.credentials=admin Or create a Hashatble with > the above key, values and pass to the InitialContext constructor. 3) If you > are using orion1.4.8 which creating connection from factory pass > username/password as a paramters to > factory.createXXXConnection(username, password). I hope this will work. > - Original Message - > From: Vidur Dhanda > To: Kesav Kumar > Cc: 'Orion-Interest' > Sent: Wednesday, May 16, 2001 7:16 PM > Subject: Re: HELP! 1.4.5 and JMS > Hi Kesav, > > Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing > the connection factory line, in 1.4.5, the client hangs on > TopicConnection.createSubscriber(). If I give the createTopicConnection a > username and password, then the server throws a NPE and the client hangs at > createTopicConnection(). > > The same problem persists in 1.4.8. > > I'm sure I'm doing something really stupid. However, I have no idea how to > solve it. I'm attaching some code in the hope that someone can help me out > of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really > desperate! > > Thanks, > Vidur > > Kesav Kumar wrote: > > Just remove the connectionfactory line from your jms.xml. > > Kesav Kumar > Software Engineer > Voquette, Inc. > 650 356 3740 > mailto:[EMAIL PROTECTED] > http://www.voquette.com > Voquette...Delivering Sound Information > > -Original Message- > From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 16, 2001 11:31 AM > To: Orion-Interest > Subject: HELP! 1.4.5 and JMS > > Please help! I broke something in my code and can't figure it out. On > the client, I'm consistently getting: > java.lang.NullPointerException > at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) > at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) > at com.evermind.server.jms.cj.(JAX) > at com.evermind.server.jms.b8.start(JAX) > at > com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) > > at > com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) > > at > com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) > > Auto-started clients can send/receive messages without trouble. > > getConnection() calls createTopicConnection() and then start(). > If I use, createConnection (usr, pwd), then the system hangs. > > In jms.xml, I have: > > location="jms/notificationFactory" port="9127" /> > > > > Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 > that is a show stopper for us. And in fact, this code worked uptil > yesterday when I made changes to try and get 1.4.8 to work. > > TIA, > Vidur > > PS. If possible, please also cc me directly. I'm really desperate. > -- > Vidur Dhanda > Active Solutions > tel: 617/566-1252 > cell: 617/821-7115 > [EMAIL PROTECTED] > www.active-solutions-inc.com -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
RE: HELP! 1.4.5 and JMS
Title: RE: HELP! 1.4.5 and JMS I just tried by sending 135K text message with JMS it works fine for me. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 17, 2001 1:22 AM To: Orion-Interest Subject: Re: HELP! 1.4.5 and JMS Hi Vidur, What is your message size and what is your jdk version? if you are using any of pre jdk-1.3 (to start orion server) and if your message size is more than 64K, you will have similar problem. --venkat Vidur Dhanda inc.com> cc: "'Orion-Interest'" <[EMAIL PROTECTED]> Sent by: Subject: Re: HELP! 1.4.5 and JMS owner-orion-interest@orion server.com 05/17/01 12:18 PM Please respond to Orion-Interest I have jndi.properties on the classpath. And when I examine the Context that is used for the lookup, it has the appropriate values. There's something else (hopefully, very basic) that is going on here. Could someone try running the code against their installation? Thanks, Vidur Kesav Kumar wrote: If you write a separate client app to access JMS messages you need to have jndi.properties file or you need to provide the properties to the InitialContext. Here aret the steps to write a separate client app which runs outside the orion environment. 1) In your jms.xml don't have any connection factory just declare your topics/queues 2) Either have jndi.properties in the class path with the following contents java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory java.naming.provider.url=ormi://localhost/ java.naming.security.principal=admin java.naming.security.credentials=admin Or create a Hashatble with the above key, values and pass to the InitialContext constructor. 3) If you are using orion1.4.8 which creating connection from factory pass username/password as a paramters to factory.createXXXConnection(username, password). I hope this will work. - Original Message - From: Vidur Dhanda To: Kesav Kumar Cc: 'Orion-Interest' Sent: Wednesday, May 16, 2001 7:16 PM Subject: Re: HELP! 1.4.5 and JMS Hi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputS
RE: HELP! 1.4.5 and JMS
Send me your code I will give a try. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message-From: Vidur Dhanda [mailto:[Kesav Kumar] ]Sent: Wednesday, May 16, 2001 9:18 PMTo: Orion-InterestCc: 'Orion-Interest'Subject: Re: HELP! 1.4.5 and JMSI have jndi.properties on the classpath. And when I examine the Context that is used for the lookup, it has the appropriate values. There's something else (hopefully, very basic) that is going on here. Could someone try running the code against their installation? Thanks, Vidur Kesav Kumar wrote: If you write a separate client app to access JMS messages you need to have jndi.properties file or you need to provide the properties to the InitialContext. Here aret the steps to write a separate client app which runs outside the orion environment. 1) In your jms.xml don't have any connection factory just declare your topics/queues 2) Either have jndi.properties in the class path with the following contents java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory java.naming.provider.url=ormi://localhost/ java.naming.security.principal=admin java.naming.security.credentials=admin Or create a Hashatble with the above key, values and pass to the InitialContext constructor. 3) If you are using orion1.4.8 which creating connection from factory pass username/password as a paramters to factory.createXXXConnection(username, password). I hope this will work. - Original Message - From: Vidur Dhanda To: Kesav Kumar Cc: 'Orion-Interest' Sent: Wednesday, May 16, 2001 7:16 PM Subject: Re: HELP! 1.4.5 and JMS Hi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: location="jms/notificationFactory" port="9127" /> Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
Re: HELP! 1.4.5 and JMS
Hi Vidur, What is your message size and what is your jdk version? if you are using any of pre jdk-1.3 (to start orion server) and if your message size is more than 64K, you will have similar problem. --venkat Vidur Dhanda inc.com> cc: "'Orion-Interest'" <[EMAIL PROTECTED]> Sent by: Subject: Re: HELP! 1.4.5 and JMS owner-orion-interest@orion server.com 05/17/01 12:18 PM Please respond to Orion-Interest I have jndi.properties on the classpath. And when I examine the Context that is used for the lookup, it has the appropriate values. There's something else (hopefully, very basic) that is going on here. Could someone try running the code against their installation? Thanks, Vidur Kesav Kumar wrote: If you write a separate client app to access JMS messages you need to have jndi.properties file or you need to provide the properties to the InitialContext. Here aret the steps to write a separate client app which runs outside the orion environment. 1) In your jms.xml don't have any connection factory just declare your topics/queues 2) Either have jndi.properties in the class path with the following contents java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory java.naming.provider.url=ormi://localhost/ java.naming.security.principal=admin java.naming.security.credentials=admin Or create a Hashatble with the above key, values and pass to the InitialContext constructor. 3) If you are using orion1.4.8 which creating connection from factory pass username/password as a paramters to factory.createXXXConnection(username, password). I hope this will work. - Original Message - From: Vidur Dhanda To: Kesav Kumar Cc: 'Orion-Interest' Sent: Wednesday, May 16, 2001 7:16 PM Subject: Re: HELP! 1.4.5 and JMS Hi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44)
Re: HELP! 1.4.5 and JMS
I have jndi.properties on the classpath. And when I examine the Context that is used for the lookup, it has the appropriate values. There's something else (hopefully, very basic) that is going on here. Could someone try running the code against their installation? Thanks, Vidur Kesav Kumar wrote: If you write a separate client app to access JMS messages you need to have jndi.properties file or you need to provide the properties to the InitialContext. Here aret the steps to write a separate client app which runs outside the orion environment. 1) In your jms.xml don't have any connection factory just declare your topics/queues 2) Either have jndi.properties in the class path with the following contents java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory java.naming.provider.url=ormi://localhost/ java.naming.security.principal=admin java.naming.security.credentials=admin Or create a Hashatble with the above key, values and pass to the InitialContext constructor. 3) If you are using orion1.4.8 which creating connection from factory pass username/password as a paramters to factory.createXXXConnection(username, password). I hope this will work. - Original Message - From: Vidur Dhanda To: Kesav Kumar Cc: 'Orion-Interest' Sent: Wednesday, May 16, 2001 7:16 PM Subject: Re: HELP! 1.4.5 and JMS Hi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: location="jms/notificationFactory" port="9127" /> Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
Re: HELP! 1.4.5 and JMS
If you write a separate client app to access JMS messages you need to have jndi.properties file or you need to provide the properties to the InitialContext. Here aret the steps to write a separate client app which runs outside the orion environment. 1) In your jms.xml don't have any connection factory just declare your topics/queues 2) Either have jndi.properties in the class path with the following contents java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory java.naming.provider.url=ormi://localhost/ java.naming.security.principal=admin java.naming.security.credentials=admin Or create a Hashatble with the above key, values and pass to the InitialContext constructor. 3) If you are using orion1.4.8 which creating connection from factory pass username/password as a paramters to factory.createXXXConnection(username, password). I hope this will work. - Original Message - From: Vidur Dhanda To: Kesav Kumar Cc: 'Orion-Interest' Sent: Wednesday, May 16, 2001 7:16 PM Subject: Re: HELP! 1.4.5 and JMS Hi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: location="jms/notificationFactory" port="9127" /> Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
Re: HELP! 1.4.5 and JMS
Hi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs on TopicConnection.createSubscriber(). If I give the createTopicConnection a username and password, then the server throws a NPE and the client hangs at createTopicConnection(). The same problem persists in 1.4.8. I'm sure I'm doing something really stupid. However, I have no idea how to solve it. I'm attaching some code in the hope that someone can help me out of this mess. I've tried it against 1.4.5 and 1.4.8. And I am really desperate! Thanks, Vidur Kesav Kumar wrote: Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: location="jms/notificationFactory" port="9127" /> Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com NotificationBase.java
RE: HELP! 1.4.5 and JMS
Title: RE: HELP! 1.4.5 and JMS Just remove the connectionfactory line from your jms.xml. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:31 AM To: Orion-Interest Subject: HELP! 1.4.5 and JMS Please help! I broke something in my code and can't figure it out. On the client, I'm consistently getting: java.lang.NullPointerException at java.io.DataOutputStream.writeUTF(DataOutputStream.java:329) at java.io.DataOutputStream.writeUTF(DataOutputStream.java:306) at com.evermind.server.jms.cj.(JAX) at com.evermind.server.jms.b8.start(JAX) at com.epistemic.km.server.NotificationBase.getConnection(NotificationBase.java:89) at com.epistemic.km.server.NotificationBase.getSession(NotificationBase.java:101) at com.epistemic.km.server.NotificationBase.getSubscriber(NotificationBase.java:44) Auto-started clients can send/receive messages without trouble. getConnection() calls createTopicConnection() and then start(). If I use, createConnection (usr, pwd), then the system hangs. In jms.xml, I have: location="jms/notificationFactory" port="9127" /> Any ideas? I'm on version 1.4.5. 1.4.8 has a regression on bug 188 that is a show stopper for us. And in fact, this code worked uptil yesterday when I made changes to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com
RE: help
did you try http://java.sun.com ? I am not trying to be sarcastic. I have found that they provide pretty good tutorials for jsp's as well as links to other good resources. Sun also has pretty good resources regarding XML Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of vadlamudi koteswara rao Sent: Friday, April 27, 2001 11:47 PM To: Orion-Interest Subject: help Hello, I am learing XML & jsp can u please give a good documentation & examples site . thanks vkrao --- Jeff Schnitzer <[EMAIL PROTECTED]> wrote: > How do you integrate"copy" with dynamic content? > Two layers of XSL > transformation (one to mix in copy, one to mix in > markup)? Or do you > use JSP-type templating to build the Content XML > before it is sent off > to XSLT? > > Thanks, > Jeff > > -Original Message- > From: Tim Endres > Sent: Thu 4/26/2001 5:30 PM > To: Orion-Interest > Cc: > Subject: RE: MVC/XML Framework Comments please > > > > > It sounds like Tim has a homebrew system for > going directly > from Logic > > to Presentation. My team has been thinking of > eventually > writing a > > wrapper to expose JavaBeans (the model) as a DOM > using > reflection so you > > could still have a pull-based system rather than > having to > build the > > full tree ahead of time. I'm not sure it's > ultimately > desirable to skip > > the Logic->Content step, although it would > improve > performance. > > Not quite. > > We use Logic (Session Beans/Commands) --> Content > (XML) --> > Presentation (XSL). > We simply apply the XSLT transform ourselves, as > opposed to > having Orion do > it, so we can precompile and cache appropriately. > > I personally think that skipping the Content step > is > shortsighted. For instance, > our web page designers never need a live system to > connect to. > We simply provide > them with XML files and they write the XSL against > the static > XML files. When the > XSL is dropped into the live system, it simply > operates on live > XML coming from > the Logic layer. I think this abstraction is > important. > > tim. > > > > > > ATTACHMENT part 2 application/ms-tnef name=winmail.dat __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Help me please "domain was nul" message is killing me here...
I have had the same problem Alexto further muddy the matter I still haven't figured it out. I have opted to sipmply circumvent this option and do my own method of remote invocation (EJB in one server invoking an EJB in a another server). What I do remember reading , is that you need to set the "parent attribute" in the application definition in server .xml. If you look at the docs it specifies that this kind of scenario can be accomplished by doing just this.. i.e. the invoker is a child of the invoked. The problem I had, with this , is that I could never get it to work; I could never figure out the syntax.- parent ="ParentApp". - This only works if the other application is on the same physical server. The moment you try to append a server name to this application name i.e. parent = "remote-host/ParentApp" or even parent = "ormi://remote-host/ParentApp" this goes to hell !!! If this is supposed to work, that implies that the syntax tried out was wrong Anyway this might not be of any help, but you may want to try investigating the parent deal further (in server.xml when you define the application). It might lead to some undiscovered truth If you do find out, could you please let me know as well !! I developed a kludge to bypass this scenariowhich I would like to rep-lace with a functional soloution Good Luck ! Bruno Baloi [EMAIL PROTECTED] -Original Message- From: Alex Paransky [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 2:28 AM To: Orion-Interest Subject:RE: Help me please "domain was nul" message is killing me here... Ray, the problem is quite simple. I have two Orion servers. One server is running an EJB application model, the other server is running JSP client application. From the JSP server, I try to access the EJB server, by creating an InitialContext with the same parameters that I would if I was trying to connect to the EJB application using a standalone client (appplication-client.xml and ApplicationClientInitialContextFactory). At this point, I get a NullPointerException on the Client (JSP Server) side telling me that the "domain was null". The exact same code, works correctly when running as a standalone application, however, when put into the JSP Server, produces this exception. Some people suggested using ApplictionInitialContextFactory, however, since ApplicationInitialContextFactory reads application.xml, I have no place to put my tags to reference the objects in the EJB application. Other people suggested playing around with rmi.xml. This, however, hardly seems standard. I am trying to write code that is J2EE compliant without having to use any of the Orion specific features. So I am at a standstill. It's hard to believe that no one ran into this problem. In many cases it does not make sense to deploy the client and server on the same physical machine. Our JSP clients are running on the public internet while our EJB models are running on the private internet not accessible from the outside. Also, since we have many clients, we anticipate having a "farm" of EJB servers running the model, and a "farm" of JSP servers accessing this model. I am amazed that no one has stumbled onto this problem. If you have two Orion servers running, put the following code on one of the servers: Properties p = new Properties(); p.setProperty(Context.PROVIDER_URL, "ormi:///"); p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory"); p.setProperty(Context.SECURITY_PRINCIPAL, ""); p.setProperty(Context.SECURITY_CREDENTIALS, ""); InitialContext ctx = new InitialContext(p); You will need to replace , , and with values for your system. You will need to put the application-client.xml in to the proper directory. For a web application, this file should go into WEB-INF/classes/META-INF/application-client.xml. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison Sent: Monday, April 02, 2001 8:16 PM To: Orion-Interest Subject: Re: Help me please "domain was nul" message is killing me here... Alex - Is there any chance you could zip up a small amount of code that recreates your problem? You had better include examples of your orion config files too. Or at least if you could provide lots of information code snippets and the like - that would b
Re: Help me please "domain was nul" message is killing me here...
> > PS: Is this what it takes to get a question answered? Is there a different > > forum for paying customers? If I pay $1500, will I get my questions > > answered faster? > > > One would assume so. Paying customers are prioritised in the support queue > (from personal experience). > > Hani Interesting. As another paying customer, this hasn't been my experience. I'm ignored just as completely as non-paying customers. This ignoring includes formal messages to Orion's support email address as well. We're still in development, but purchased a license in the hope that something resembling support would be forthcoming. It was a misguided expenditure in that regard. P. Pontbriand Canlink Interactive Technologies Inc.
Re: Help me please "domain was nul" message is killing me here...
I've gone back through your emails and don't have an overall picture of your application. Perhaps I am more dense than the average bear, but go ahead and give an overall picture of your application - like: This app is distributed over N orion server[s] and the configuration is done in the following manner... and I am trying to accomplish the followingand then I get this "domain was null" error, etc. That way myself and perhaps others can help out and it won't take 4 weeks to do so. Just a question out of curiosity: Have you looked at other app servers and do they support what you want to do in the way you want to do it - like JBoss,WebLogic,EAServer? Cheers! Ray Harrison --- Ray Harrison <[EMAIL PROTECTED]> wrote: > Alex - > Is there any chance you could zip up a small amount of code that recreates your >problem? You had > better include examples of your orion config files too. Or at least if you could >provide lots of > information code snippets and the like - that would be great! Give us what you can >and we may be > able to help... > > Cheers > Ray > > > > --- Alex Paransky <[EMAIL PROTECTED]> wrote: > > Does anyone know what the "domain was null" message means? How do I get rid > > of it. Where do I specify a domain? HEELP, someone please. I have > > been posting this question for the last 3 weeks, and still I have no > > answers. > > > > Please, please please, help. > > > > -AP_ > > > > PS: Is this what it takes to get a question answered? Is there a different > > forum for paying customers? If I pay $1500, will I get my questions > > answered faster? > > > > > > > __ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/?.refer=text > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
Re: Help me please "domain was nul" message is killing me here...
i am also trying to get two orion servers talking to each other, on server A i have declared an ejb-module to be remote (orion-application.xml), this module runs on server B. Server B is declared in the rmi.xml file as another rmi server for server A, I lookup the ejb from the remote module, and then get a Class Cast exception when trying to narrow the object, to the home interface. any advice on how to get this working would be much appreciated, colin.. - Original Message - From: "Alex Paransky" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, April 03, 2001 7:28 AM Subject: RE: Help me please "domain was nul" message is killing me here... > Ray, the problem is quite simple. I have two Orion servers. One server is > running an EJB application model, the other server is running JSP client > application. From the JSP server, I try to access the EJB server, by > creating an InitialContext with the same parameters that I would if I was > trying to connect to the EJB application using a standalone client > (appplication-client.xml and ApplicationClientInitialContextFactory). At > this point, I get a NullPointerException on the Client (JSP Server) side > telling me that the "domain was null". > > The exact same code, works correctly when running as a standalone > application, however, when put into the JSP Server, produces this exception. > Some people suggested using ApplictionInitialContextFactory, however, since > ApplicationInitialContextFactory reads application.xml, I have no place to > put my tags to reference the objects in the EJB application. > > Other people suggested playing around with rmi.xml. This, however, hardly > seems standard. I am trying to write code that is J2EE compliant without > having to use any of the Orion specific features. > > So I am at a standstill. It's hard to believe that no one ran into this > problem. In many cases it does not make sense to deploy the client and > server on the same physical machine. Our JSP clients are running on the > public internet while our EJB models are running on the private internet not > accessible from the outside. Also, since we have many clients, we > anticipate having a "farm" of EJB servers running the model, and a "farm" of > JSP servers accessing this model. I am amazed that no one has stumbled onto > this problem. > > If you have two Orion servers running, put the following code on one of the > servers: > > Properties p = new Properties(); > p.setProperty(Context.PROVIDER_URL, > "ormi:///"); > p.setProperty(Context.INITIAL_CONTEXT_FACTORY, > "com.evermind.server.ApplicationClientInitialContextFactory"); > p.setProperty(Context.SECURITY_PRINCIPAL, ""); > p.setProperty(Context.SECURITY_CREDENTIALS, ""); > InitialContext ctx = new InitialContext(p); > > You will need to replace , , and > with values for your system. You will need to put the > application-client.xml in to the proper directory. For a web application, > this file should go into WEB-INF/classes/META-INF/application-client.xml. > > > -AP_ > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison > Sent: Monday, April 02, 2001 8:16 PM > To: Orion-Interest > Subject: Re: Help me please "domain was nul" message is killing me > here... > > > Alex - > Is there any chance you could zip up a small amount of code that recreates > your problem? You had > better include examples of your orion config files too. Or at least if you > could provide lots of > information code snippets and the like - that would be great! Give us what > you can and we may be > able to help... > > Cheers > Ray > > > > --- Alex Paransky <[EMAIL PROTECTED]> wrote: > > Does anyone know what the "domain was null" message means? How do I get > rid > > of it. Where do I specify a domain? HEELP, someone please. I have > > been posting this question for the last 3 weeks, and still I have no > > answers. > > > > Please, please please, help. > > > > -AP_ > > > > PS: Is this what it takes to get a question answered? Is there a > different > > forum for paying customers? If I pay $1500, will I get my questions > > answered faster? > > > > > > > __ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/?.refer=text > > >
RE: Help me please "domain was nul" message is killing me here...
Ray, the problem is quite simple. I have two Orion servers. One server is running an EJB application model, the other server is running JSP client application. From the JSP server, I try to access the EJB server, by creating an InitialContext with the same parameters that I would if I was trying to connect to the EJB application using a standalone client (appplication-client.xml and ApplicationClientInitialContextFactory). At this point, I get a NullPointerException on the Client (JSP Server) side telling me that the "domain was null". The exact same code, works correctly when running as a standalone application, however, when put into the JSP Server, produces this exception. Some people suggested using ApplictionInitialContextFactory, however, since ApplicationInitialContextFactory reads application.xml, I have no place to put my tags to reference the objects in the EJB application. Other people suggested playing around with rmi.xml. This, however, hardly seems standard. I am trying to write code that is J2EE compliant without having to use any of the Orion specific features. So I am at a standstill. It's hard to believe that no one ran into this problem. In many cases it does not make sense to deploy the client and server on the same physical machine. Our JSP clients are running on the public internet while our EJB models are running on the private internet not accessible from the outside. Also, since we have many clients, we anticipate having a "farm" of EJB servers running the model, and a "farm" of JSP servers accessing this model. I am amazed that no one has stumbled onto this problem. If you have two Orion servers running, put the following code on one of the servers: Properties p = new Properties(); p.setProperty(Context.PROVIDER_URL, "ormi:///"); p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.ApplicationClientInitialContextFactory"); p.setProperty(Context.SECURITY_PRINCIPAL, ""); p.setProperty(Context.SECURITY_CREDENTIALS, ""); InitialContext ctx = new InitialContext(p); You will need to replace , , and with values for your system. You will need to put the application-client.xml in to the proper directory. For a web application, this file should go into WEB-INF/classes/META-INF/application-client.xml. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison Sent: Monday, April 02, 2001 8:16 PM To: Orion-Interest Subject: Re: Help me please "domain was nul" message is killing me here... Alex - Is there any chance you could zip up a small amount of code that recreates your problem? You had better include examples of your orion config files too. Or at least if you could provide lots of information code snippets and the like - that would be great! Give us what you can and we may be able to help... Cheers Ray --- Alex Paransky <[EMAIL PROTECTED]> wrote: > Does anyone know what the "domain was null" message means? How do I get rid > of it. Where do I specify a domain? HEELP, someone please. I have > been posting this question for the last 3 weeks, and still I have no > answers. > > Please, please please, help. > > -AP_ > > PS: Is this what it takes to get a question answered? Is there a different > forum for paying customers? If I pay $1500, will I get my questions > answered faster? > > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
Re: Help me please "domain was nul" message is killing me here...
Alex - Is there any chance you could zip up a small amount of code that recreates your problem? You had better include examples of your orion config files too. Or at least if you could provide lots of information code snippets and the like - that would be great! Give us what you can and we may be able to help... Cheers Ray --- Alex Paransky <[EMAIL PROTECTED]> wrote: > Does anyone know what the "domain was null" message means? How do I get rid > of it. Where do I specify a domain? HEELP, someone please. I have > been posting this question for the last 3 weeks, and still I have no > answers. > > Please, please please, help. > > -AP_ > > PS: Is this what it takes to get a question answered? Is there a different > forum for paying customers? If I pay $1500, will I get my questions > answered faster? > > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/?.refer=text
Re: Help me please "domain was nul" message is killing me here...
orion/config/default-web-site.xml should do it. If it doesnt work please send a bit more info. on the problem like when you get the problem if you have a small sample app just zip it up. Cheers, Ash Alex Paransky wrote: > Does anyone know what the "domain was null" message means? How do I get rid > of it. Where do I specify a domain? HEELP, someone please. I have > been posting this question for the last 3 weeks, and still I have no > answers. > > Please, please please, help. > > -AP_ > > PS: Is this what it takes to get a question answered? Is there a different > forum for paying customers? If I pay $1500, will I get my questions > answered faster?
Re: Help me please "domain was nul" message is killing me here...
On Mon, 2 Apr 2001, Alex Paransky wrote: > Does anyone know what the "domain was null" message means? How do I get rid > of it. Where do I specify a domain? HEELP, someone please. I have > been posting this question for the last 3 weeks, and still I have no > answers. > As far as I know, 'domain was null' shows up if you try to access a url without specifying an application. Eg if you specify ormi://localhost instead of ormi://localhost/appname > PS: Is this what it takes to get a question answered? Is there a different > forum for paying customers? If I pay $1500, will I get my questions > answered faster? > One would assume so. Paying customers are prioritised in the support queue (from personal experience). Hani
RE: Help me please "domain was nul" message is killing me here...
Alex, 1) Have you tried using both: com.evermind.server.ApplicationClientInitialContextFactory and com.evermind.server.ApplicationInitialContextFactory 2) Have you tried some how disabling the JNDI service from your client orion server? Since that is the only difference. 3) Also see if putting the server and client in different IP's does something. It is defitelly something with the JNDI driver being loaded in the application twice... claudio > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky > Sent: Monday, April 02, 2001 11:19 AM > To: Orion-Interest > Subject: Help me please "domain was nul" message is killing me here... > > > Does anyone know what the "domain was null" message means? How > do I get rid > of it. Where do I specify a domain? HEELP, someone please. I have > been posting this question for the last 3 weeks, and still I have no > answers. > > Please, please please, help. > > -AP_ > > PS: Is this what it takes to get a question answered? Is there a > different > forum for paying customers? If I pay $1500, will I get my questions > answered faster? > > >
Re: help talking to the Orion JNDI tree from outside the container
al pivonka wrote: > > I have seperate application trying to utilize the > orion > jndi context of an webapp with in the orion container. > > I have setup a jndi.properties file in the classpath > of the application and on execution i recieve this > exception: > > javax.naming.CommunicationException: Can't find > SerialContextProvider jndi.properties contents: java.naming.provider.url=ormi\://127.0.0.1\:23791/appName java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory works for me
Re: help for what ?
--- elton <[EMAIL PROTECTED]> wrote: > > help > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: HELP: Settings for pooled datasources, timeout errors
> >I'd like to know if i did not get something regarding the configuration of >datasources and if others had problems with the timeout settings. Hi Jens, I believe your observations are correct and your not doing something wrong. We have also had a number of strange effects in that area but unfortunately not been able to construct an easily reproducible test case, which IMHO is the only thing that would make magnus or karl have a look at that. I believe that the core connection and transaction handling code is not rock-solid and does break under some exceptional circumstances. btw, most of my problems also happen when doing large bulk updates using ejb. IMHO an additional parameter that should be in there is a max-number of statements that can be issued per connection, before it is reopened by orion's pooling software. that way one could configure stuff conservatively without degrading performance significantly. Of course that makes their TX handling code a bit more complicated but as your case demonstrates, these things are necessary or at least very helpful in the real world. If you can set up a simple ear that demonstrates your problems, I'm sure they will look into it quickly, at least that has been my experience. Hope that helps somewhat, if not, see it as a sign of support ;-). Regards, Robert >Best regards > >Jens Stutte > > > >[EMAIL PROTECTED], http://www.netmedia.de > >netmedia GmbH >Neugrabenweg 5-7 >66123 Saarbruecken >Germany > >fon: +49 (0) 681 - 3 79 88 - 0 >fax: +49 (0) 681 - 3 79 88 - 99 > > (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: HELP!!! - Using UserManagers - Logging in users without asking for credentials
Thanxs for the hint. I could also think of a more portable solution to this problem. If it is just to provide single sign-on, I would, from within the client-servlet, first access any page known to be form-based login-proteced and reply with a post containing j_username and j_password. Store the session cookie in your servlet. Ignore the response. Then it now comes to access the protected resource, rather than packaging user-credentials into the request just set the cookie in the http-header and You are done. This has the added benefit that Your servlet may login over https while accessing the protected resource over faster http. And it works with any J2EE server. Bye, Falk - Original Message - Subject: RE: HELP!!! - Using UserManagers - Logging in users without asking for credentials > You want to use the RoleManager: > Context ctx = new InitialContext(); > RoleManager roleMan = > (RoleManager)ctx.lookup("java:comp/RoleManager"); > try > { >roleMan.login(memberName, password); > } > catch (SecurityException ex) > { >return false; > } > return true; > -Original Message- > From: Chris Evans [mailto:[EMAIL PROTECTED]] > servlet accept requests from another website. Balled up in that request > would be user credentials(ie: username, password, etc...). From the
RE: HELP!!! - Using UserManagers - Logging in users without asking for credentials
You want to use the RoleManager: Context ctx = new InitialContext(); RoleManager roleMan = (RoleManager)ctx.lookup("java:comp/RoleManager"); try { roleMan.login(memberName, password); } catch (SecurityException ex) { return false; } return true; -Original Message- From: Chris Evans [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 25, 2001 3:49 PM To: Orion-Interest Subject: HELP!!! - Using UserManagers - Logging in users without asking for credentials Hey, I've tried everything that I can think of without any proper documentation/examples to go by. What i'm trying to do is have a servlet accept requests from another website. Balled up in that request would be user credentials(ie: username, password, etc...). From the request I want to log in that user to my application without them knowing they have switched sites. I thought EJBManager was the way to go but without any real documentation i'm at a loss as to how to go about doing this. Right now we use DataSourceUserManager and form-based login to accept the users info and that works fine. Does anybody have any idea/examples on how to do this??? I've tried changing the in orion-application.xml to "com.evermind.ejb.EJBManager" but I can't figure out how to use/see it in a servlet to be able to do lookups on the DB. Thanks, Chris Evans Canlink Interactive Technologies
RE: Help: deadlock with concurent access to entity bean
Oracle, MS SQL, Sybase 11 & 12, Hypersonic database-schemas are key in this... However, I don't store files in the database but have built a service that sync's a number of dir's in a cluster/island, so it handles all file replication without hitting the DB; I map Objects to clob in Oracle, VARBINARY in Sybase & MSSQL. I haven't persisted any object above 30 K -Original Message- From: Agus K. Pranantoseno [mailto:[EMAIL PROTECTED]] Sent: Miércoles, 17 de Enero de 2001 22:52 To: Orion-Interest Subject: Re: Help: deadlock with concurent access to entity bean Do u succedded using BLOB to map a picture ?? do u experiance size limit ?? i have tried CMP picture bean myself (mapped to bean) but somehow on image more than 1k it's failed to store to the db (no exception thrown) so i used LONG RAW instead (i used oracle as db). what database do u used ?? - Original Message - From: Juan Lorandi (Chile) <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 5:36 AM Subject: RE: Help: deadlock with concurent access to entity bean check Bug #161 & Bug #170 in bugzilla... supposedly there's a workaround to Bug #170, but I'm not clear on exactly how to use it JP -Original Message- From: Elhadi barkat [mailto:[EMAIL PROTECTED]] Sent: Miércoles, 17 de Enero de 2001 16:57 To: Orion-Interest Subject: Help: deadlock with concurent access to entity bean Hi, During heavy test of my CMP picture bean (mapped to a table with a BLOB), deadlocks occur when I try to access it concurently from different clients, a threaded java application, a web client and a proprietary messaging service within orion The result is that my db table is no more accessible and I don't get any exceptions Could someone give me a push on this issue. I'm stucked on it for the day Hadi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres Sent: mercredi, 17. janvier 2001 19:10 To: Orion-Interest Cc: Claes Theander Subject: Re: Stand-alone-client Try using: prop.setProperty( "java.naming.factory.initial", "com.evermind.server.rmi.ApplicationClientInitialContextFactory"); > Hello! > > I'm trying to connect to my EJB's from a stand alone client like this: > > Properties prop = new Properties(); > > prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMII nitialContextFactory"); > > > prop.setProperty("java.naming.provider.url","ormi://localhost/myApp"); > prop.setProperty("java.naming.security.principal","admin"); > prop.setProperty("java.naming.security.credentials","123"); > Context con = new InitialContext(prop); > boundObject = con.lookup("java:comp/env/ejb/XXXHome"); > xxxHome = > (XXXHome)PortableRemoteObject.narrow(boundObject,XXXHome.class); > > Im getting this error message: > "javax.naming.NameNotFoundException: java:comp/env/ejb/XXHome not > found." > I know that the EJB's are working cause I'm able to access them from a > jsp-page. > I have refs to the EJB in application-client.xml. > > Any suggestions ? > /C. > > > > >
RE: Help: deadlock with concurent access to entity bean
Storing Images works for me using DB2 it should also works with DBs supporting BLOB 1) first check that your db schema config file defines a mapping between java.io.Serializable and BLOB 2) implement a Picture class that implements Serializable ---> public class Picture implements Serializable { public Object data; public Picture(){} public void setData(byte[] data) { this.data = data.clone(); } public byte[] getData() { return (byte[])data; } } 3) in your bean declare your picture as an instance of Picture class and deploy it as a container managed field Hope it'll work for you As you read it in my previous message, I'm facing deadlocks with a heavy concurent access to PictureBean I'm still searching for a solution -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Agus K. Pranantoseno Sent: jeudi, 18. janvier 2001 02:52 To: Orion-Interest Subject: Re: Help: deadlock with concurent access to entity bean Do u succedded using BLOB to map a picture ?? do u experiance size limit ?? i have tried CMP picture bean myself (mapped to bean) but somehow on image more than 1k it's failed to store to the db (no exception thrown) so i used LONG RAW instead (i used oracle as db). what database do u used ?? - Original Message - From: Juan Lorandi (Chile) <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 5:36 AM Subject: RE: Help: deadlock with concurent access to entity bean check Bug #161 & Bug #170 in bugzilla... supposedly there's a workaround to Bug #170, but I'm not clear on exactly how to use it JP -Original Message- From: Elhadi barkat [mailto:[EMAIL PROTECTED]] Sent: Miércoles, 17 de Enero de 2001 16:57 To: Orion-Interest Subject: Help: deadlock with concurent access to entity bean Hi, During heavy test of my CMP picture bean (mapped to a table with a BLOB), deadlocks occur when I try to access it concurently from different clients, a threaded java application, a web client and a proprietary messaging service within orion The result is that my db table is no more accessible and I don't get any exceptions Could someone give me a push on this issue. I'm stucked on it for the day Hadi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres Sent: mercredi, 17. janvier 2001 19:10 To: Orion-Interest Cc: Claes Theander Subject: Re: Stand-alone-client Try using: prop.setProperty( "java.naming.factory.initial", "com.evermind.server.rmi.ApplicationClientInitialContextFactory"); > Hello! > > I'm trying to connect to my EJB's from a stand alone client like this: > > Properties prop = new Properties(); > > prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMII nitialContextFactory"); > > > prop.setProperty("java.naming.provider.url","ormi://localhost/myApp"); > prop.setProperty("java.naming.security.principal","admin"); > prop.setProperty("java.naming.security.credentials","123"); > Context con = new InitialContext(prop); > boundObject = con.lookup("java:comp/env/ejb/XXXHome"); > xxxHome = > (XXXHome)PortableRemoteObject.narrow(boundObject,XXXHome.class); > > Im getting this error message: > "javax.naming.NameNotFoundException: java:comp/env/ejb/XXHome not > found." > I know that the EJB's are working cause I'm able to access them from a > jsp-page. > I have refs to the EJB in application-client.xml. > > Any suggestions ? > /C. > > > > >
Re: Help: deadlock with concurent access to entity bean
Do u succedded using BLOB to map a picture ?? do u experiance size limit ?? i have tried CMP picture bean myself (mapped to bean) but somehow on image more than 1k it's failed to store to the db (no exception thrown) so i used LONG RAW instead (i used oracle as db). what database do u used ?? - Original Message - From: Juan Lorandi (Chile) <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 5:36 AM Subject: RE: Help: deadlock with concurent access to entity bean check Bug #161 & Bug #170 in bugzilla... supposedly there's a workaround to Bug #170, but I'm not clear on exactly how to use it JP -Original Message- From: Elhadi barkat [mailto:[EMAIL PROTECTED]] Sent: Miércoles, 17 de Enero de 2001 16:57 To: Orion-Interest Subject: Help: deadlock with concurent access to entity bean Hi, During heavy test of my CMP picture bean (mapped to a table with a BLOB), deadlocks occur when I try to access it concurently from different clients, a threaded java application, a web client and a proprietary messaging service within orion The result is that my db table is no more accessible and I don't get any exceptions Could someone give me a push on this issue. I'm stucked on it for the day Hadi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres Sent: mercredi, 17. janvier 2001 19:10 To: Orion-Interest Cc: Claes Theander Subject: Re: Stand-alone-client Try using: prop.setProperty( "java.naming.factory.initial", "com.evermind.server.rmi.ApplicationClientInitialContextFactory"); > Hello! > > I'm trying to connect to my EJB's from a stand alone client like this: > > Properties prop = new Properties(); > > prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMII nitialContextFactory"); > > > prop.setProperty("java.naming.provider.url","ormi://localhost/myApp"); > prop.setProperty("java.naming.security.principal","admin"); > prop.setProperty("java.naming.security.credentials","123"); > Context con = new InitialContext(prop); > boundObject = con.lookup("java:comp/env/ejb/XXXHome"); > xxxHome = > (XXXHome)PortableRemoteObject.narrow(boundObject,XXXHome.class); > > Im getting this error message: > "javax.naming.NameNotFoundException: java:comp/env/ejb/XXHome not > found." > I know that the EJB's are working cause I'm able to access them from a > jsp-page. > I have refs to the EJB in application-client.xml. > > Any suggestions ? > /C. > > > > >
RE: Help: deadlock with concurent access to entity bean
check Bug #161 & Bug #170 in bugzilla... supposedly there's a workaround to Bug #170, but I'm not clear on exactly how to use it JP -Original Message- From: Elhadi barkat [mailto:[EMAIL PROTECTED]] Sent: Miércoles, 17 de Enero de 2001 16:57 To: Orion-Interest Subject: Help: deadlock with concurent access to entity bean Hi, During heavy test of my CMP picture bean (mapped to a table with a BLOB), deadlocks occur when I try to access it concurently from different clients, a threaded java application, a web client and a proprietary messaging service within orion The result is that my db table is no more accessible and I don't get any exceptions Could someone give me a push on this issue. I'm stucked on it for the day Hadi -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres Sent: mercredi, 17. janvier 2001 19:10 To: Orion-Interest Cc: Claes Theander Subject: Re: Stand-alone-client Try using: prop.setProperty( "java.naming.factory.initial", "com.evermind.server.rmi.ApplicationClientInitialContextFactory"); > Hello! > > I'm trying to connect to my EJB's from a stand alone client like this: > > Properties prop = new Properties(); > > prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMII nitialContextFactory"); > > > prop.setProperty("java.naming.provider.url","ormi://localhost/myApp"); > prop.setProperty("java.naming.security.principal","admin"); > prop.setProperty("java.naming.security.credentials","123"); > Context con = new InitialContext(prop); > boundObject = con.lookup("java:comp/env/ejb/XXXHome"); > xxxHome = > (XXXHome)PortableRemoteObject.narrow(boundObject,XXXHome.class); > > Im getting this error message: > "javax.naming.NameNotFoundException: java:comp/env/ejb/XXHome not > found." > I know that the EJB's are working cause I'm able to access them from a > jsp-page. > I have refs to the EJB in application-client.xml. > > Any suggestions ? > /C. > > > > >
Re: Help with Java obfuscators
- Original Message - From: "Christian Sell" <[EMAIL PROTECTED]> > I dont think freeware is the right term, if I read the website correctly. > What you get there is a 90 day evaluation for non-commercial purposes. After > that you may request a commercial license, but it does not say for how much. Most all software on alphaworks are being licensed for $1,000 for unlimited use with no support. I'm not sure about something like JAX since it's just a utility... seems like it should be less. (like jikes which was made open source) Serge Knystautas Loki Technologies http://www.lokitech.com/ > > > > > I'm real happy with IBM's freeware product "JAX": > > http://www.alphaworks.ibm.com/tech/JAX. > > > > Incidentally this seems to be the same tool Evermind uses. > > > > --Mark > >
Re: Help with Java obfuscators
I dont think freeware is the right term, if I read the website correctly. What you get there is a 90 day evaluation for non-commercial purposes. After that you may request a commercial license, but it does not say for how much. > > I'm real happy with IBM's freeware product "JAX": > http://www.alphaworks.ibm.com/tech/JAX. > > Incidentally this seems to be the same tool Evermind uses. > > --Mark >
Re: Help with Java obfuscators
Arno: I'm real happy with IBM's freeware product "JAX": http://www.alphaworks.ibm.com/tech/JAX. Incidentally this seems to be the same tool Evermind uses. --Mark "Arno Grbac" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 01/04/2001 09:41 AM Please respond to Orion-Interest To: Orion-Interest <[EMAIL PROTECTED]> cc: Subject: Help with Java obfuscators Happy and prosperous New Year to all, I hope somebody could recommend a decent code obfuscator for a Java library. Thanks, -arno
RE: Help me about orion serlvet
I would suggest going through the excellent Orion Primer tutorial, at http://www.jollem.com/orion-primer/. It covers writing a simple servlet and stateless session bean, and how to deploy them to Orion. Jason Boehle [EMAIL PROTECTED] -Original Message-From: cgreen [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 13, 2000 7:58 AMTo: Orion-InterestSubject: Help me about orion serlvet Hello,i'm a newbie for java and orion i want to make a new servlet on orion application server how to do that ? I add the lines at web.xml : FormMail FormMailServlet and put the FormMailServlet.class to web-inf/classes then i visit: http://../FormMailServlet but get a error How to do that ? Thanks for any advice. newbie
Re: RE: Help me please in post method
Have you switched your servlet to perform doPost instead of doGet? John Hogan _ Get your free E-mail at http://www.ireland.com
RE: Help me please in post method
A tip to all: DO NOT SEND ORION SUPPORT REQUESTS TO INDIVIDUALS ON THE ORION-INTEREST LIST. Thank you. -mike > -Original Message- > From: waheed rahman [mailto:[EMAIL PROTECTED]] > Sent: Sunday, December 10, 2000 7:15 PM > To: [EMAIL PROTECTED] > Subject: Help me please in post method > > > Hi, > > This is waheed from dubai and i am newbie to orion > server. > > I developed a project for my academic with all the > method in get, after that i converted all the form > into post and its working properly. > > Now,i like to make it online here comes the problem, > > the form with get is working properly and the project > form with post method is not working properly. > ie. it is compiling partialy, and giving partial > output and some times blank screen,with status bar > "Done". > > > Some peoples suggest that post content length has to > increased will you please help me in this.But they > dont aware of orion. > > What to do please help me in this regard > > Advance thankings for your help. > > Regards > Waheed Rahuman > > > > > > > > __ > Do You Yahoo!? > Yahoo! Shopping - Thousands of Stores. Millions of Products. > http://shopping.yahoo.com/ >
RE: Help: Accessing EJBs in different applications
Well, I have an app It has one ejb-jar it has 2 web-war's they're ALL in the same app... HTH JP -Original Message- From: Montebove Luciano [mailto:[EMAIL PROTECTED]] Sent: Viernes, 08 de Diciembre de 2000 9:37 To: Orion-Interest Subject: Help: Accessing EJBs in different applications Hi all, I want access, from the web part of an application, EJBs deployed in a different application. Which is the correct way to do this. Have I to define a special in web.xml or what? Thanks ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø Luciano Montebove - Software Architect - Finsiel S.p.a E-mail: [EMAIL PROTECTED] Phone: (+39) 06-4142-7663 "If you don't fail now and again, it's a sign you're playing it safe" -W. Allen ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø
RE: Help in running XSL
I am using the Sun XSLTC, but had a similar problem. What I have done which works well for me is to install the runtime jar's in the JRE/LIB/EXT path. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kesav Kumar Sent: 07 December 2000 17:33 To: Orion-Interest Subject: Help in running XSL Hi I am new to orion I have developed some classes which uses xalanj-1.2.1 for parsing xsl and converting xml to html. When I ran my application from command line it works fine. I am now trying to integrate with servlets which are running on orion I am always getting class not found exception for bsf.jar and bsfengines.jar. I copied all the xalan jar files to my application web-inf\lib directory but it didn't work. I copied the jar files to orion root directory by replacing the orion's original xaln.jar and xerces.jar but still didn't help me. Can any one please help me in setting up xalan classes. I kept the all xalan's jar files in my classpath and I am using jdk1.3 on winNT. I am starting orionserver as java -jar orion.jar. Can any one plz help me in settings. Thanks in advance. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com
RE: Help in running XSL
Hi Kesav , I have a ejb which gets data from table and creates a xml in memory and then calls xsl to convert it to html.It works fine and i used to get the same early. I have xerces.jar in orion directory and all xalan.jar,bsf.jar,bsfengines.jar and js.jar in orion/lib directory. You can try this and also check your classpath regards rajeev -Original Message- From: Kesav Kumar [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 12:33 PM To: Orion-Interest Subject: Help in running XSL Hi I am new to orion I have developed some classes which uses xalanj-1.2.1 for parsing xsl and converting xml to html. When I ran my application from command line it works fine. I am now trying to integrate with servlets which are running on orion I am always getting class not found exception for bsf.jar and bsfengines.jar. I copied all the xalan jar files to my application web-inf\lib directory but it didn't work. I copied the jar files to orion root directory by replacing the orion's original xaln.jar and xerces.jar but still didn't help me. Can any one please help me in setting up xalan classes. I kept the all xalan's jar files in my classpath and I am using jdk1.3 on winNT. I am starting orionserver as java -jar orion.jar. Can any one plz help me in settings. Thanks in advance. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com
RE: HELP. Strange Database Connecton error.
You're using thin drivers... these drivers never use the Oracle OCI, and never ever read tnsnames.ora -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sábado, 18 de Noviembre de 2000 13:33 To: Orion-Interest Subject: HELP. Strange Database Connecton error. OK list i need help. This is kind of subtle so please read the whole message before responding. This certainly points to something I do not understand about Orion data-source configuration. I am getting an error from Oracle upon table creation. Here is the text of the error back from Orion: Starting Orion Auto-deploying addressbook (New server version detected)... Auto-deploying addressbook-ejb.jar (No previous deployment found)... SQL error: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12505)(ERROR_STACK=(ERROR=( CODE =12505)(EMFI=4 Warning: Error creating table: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=135286784)(ERR=12505)(ERROR_STACK=(ERROR=( CODE =12505)(EMFI=4 done. Orion/1.3.8 initialized Looking up ERR=12505, Oracle tells me this is a problem with SID resolution. tnsnames.ora looks fine, indeed the entry was created by Net8 Easy Config. In addition the following JDBC code: public class JT { public static void main(String[] args){ String url = "jdbc:oracle:thin:@zaragoza:1521:oradbb"; try { Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();; Connection conn = DriverManager.getConnection(url, "jdev", "deal"); Statement stmt = conn.createStatement(); stmt.execute("create table duff (first varchar(6), next varchar(5))"); } catch (SQLException ex) { System.out.println("SQL Exception."); ex.printStackTrace(); } catch (Exception ex) { System.out.println("Just a plain bummer."); ex.printStackTrace(); } } } creates a table just fine using the same SID and tnsnames.ora entry. To make this all more confusing, I am trying to connect to Oracle on a dual boot Linux/NT system. The Linux SID is oradba. The NT SID is oradbb. Naturally I am only trying to connect to the NT Oracle when NT is booted and visa versa. The Linux side works fine, it is the NT entry that gives the error. Both Oracle installations are 8.1.5. The only difference is that on the NT side the user is given DBA privledges and is creating tables in the system rollback segment whereas on the Linux side there is a separate "development" rollback segment. I have been posting this to the Oracle list (with no answers forthcoming) until I wrote the JDBC code snippet I post above. The fact that this code creates tables where Orion does not tends to make me think it is a Orion config issue. Here are the entries from my Orion config files. I understand that this is not the optimum place for the default-data-source attribute tag but that is a separate thread. ORION_HOME/config/server.xml (the default-data-source tag is toggled between the Linux SID and the NT SID: http://www.orionserver.com/dtds/application-server.dtd"> ORION_HOME/config/data-sources.xml: http://www.orionserver.com/dtds/data-sources.dtd"> All comments welcome. Could someone please help? Peace -- E-Mail: [EMAIL PROTECTED] Date: 18-Nov-00 Time: 10:22:19 This message was sent by XFMail --
RE: help...servlet claspath
I did something like this, because I had my own classes I would create that were used by Servlets, but not exclusively. All I did was specify the path in my system CLASSPATH environment variable. As long as that was specified in the environment that Orion started in, it seemed to work just fine. -Alex On Fri, 17 Nov 2000 16:07:22 +0100, J.T. Wenting wrote: > I think he means the classpath not for servlets but for external resources > like beans. > The default place for this is /orion/lib and /WEB-INF/classes, but > is it possible to set other locations and if so, how to do it? > > Jeroen T. Wenting > [EMAIL PROTECTED] > > Murphy was wrong, things that can't go wrong will anyway > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Sven van 't > > Veer > > Sent: Friday, November 17, 2000 14:29 > > To: Orion-Interest > > Subject: Re: help...servlet claspath > > > > > > > > > > Edmund Cheung wrote: > > > > > > Hi, > > > > > > In weblogic, I defined the servlet classpath in the weblogic > > properties file > > > as follow; > > > > > > weblogic.httpd.servlet.classpath=D:/weblogic/myserver/servletclasses > > > > > weblogic.httpd.register.UserManagerController=servlet.UserManagerC > > ontroller > > > > > > In my jsp, I call thsi servlet name > > > > > > > > > In Orion, I defined the following in web.xml but where should > > I define the > > > classpath for servlet ? > > > > > > > > > UserManagerController > > > User manager controller > > > servlet.UserManagerController > > >.. > > > > > > > > > Thanks & reagrds, > > > > > > Edmund > > Actually you don't have to do anything in Orion. Just putting the > > classfile for the servlen in > > orion/applications/your_app/your_app-web/WEB-INF/classes > > makes the servlet available to Orion by calling: > > http://localhost/servlet/YourServlet > > > > sven > > > > -- > > == > > > > Sven E. van 't Veer > > http://www.cachoeiro.net > > Java Developer > > [EMAIL PROTECTED] > > == > > > > > >
RE: help...servlet claspath
I think he means the classpath not for servlets but for external resources like beans. The default place for this is /orion/lib and /WEB-INF/classes, but is it possible to set other locations and if so, how to do it? Jeroen T. Wenting [EMAIL PROTECTED] Murphy was wrong, things that can't go wrong will anyway > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Sven van 't > Veer > Sent: Friday, November 17, 2000 14:29 > To: Orion-Interest > Subject: Re: help...servlet claspath > > > > > Edmund Cheung wrote: > > > > Hi, > > > > In weblogic, I defined the servlet classpath in the weblogic > properties file > > as follow; > > > > weblogic.httpd.servlet.classpath=D:/weblogic/myserver/servletclasses > > > weblogic.httpd.register.UserManagerController=servlet.UserManagerC > ontroller > > > > In my jsp, I call thsi servlet name > > > > > > In Orion, I defined the following in web.xml but where should > I define the > > classpath for servlet ? > > > > > > UserManagerController > > User manager controller > > servlet.UserManagerController > >.. > > > > > > Thanks & reagrds, > > > > Edmund > Actually you don't have to do anything in Orion. Just putting the > classfile for the servlen in > orion/applications/your_app/your_app-web/WEB-INF/classes > makes the servlet available to Orion by calling: > http://localhost/servlet/YourServlet > > sven > > -- > == > > Sven E. van 't Veer > http://www.cachoeiro.net > Java Developer > [EMAIL PROTECTED] > == > >
Re: help...servlet claspath
hi! have you specified a servlet-mapping? without this thing won't work ;-) yours, lars EC> Hi, EC> In weblogic, I defined the servlet classpath in the weblogic properties file EC> as follow; EC> weblogic.httpd.servlet.classpath=D:/weblogic/myserver/servletclasses EC> weblogic.httpd.register.UserManagerController=servlet.UserManagerController EC> In my jsp, I call thsi servlet name EC> EC> In Orion, I defined the following in web.xml but where should I define the EC> classpath for servlet ? EC> EC> UserManagerController EC> User manager controller EC> servlet.UserManagerController EC>.. EC> EC> Thanks & reagrds, EC> Edmund
Re: help...servlet claspath
Edmund Cheung wrote: > > Hi, > > In weblogic, I defined the servlet classpath in the weblogic properties file > as follow; > > weblogic.httpd.servlet.classpath=D:/weblogic/myserver/servletclasses > weblogic.httpd.register.UserManagerController=servlet.UserManagerController > > In my jsp, I call thsi servlet name > > > In Orion, I defined the following in web.xml but where should I define the > classpath for servlet ? > > > UserManagerController > User manager controller > servlet.UserManagerController >.. > > > Thanks & reagrds, > > Edmund Actually you don't have to do anything in Orion. Just putting the classfile for the servlen in orion/applications/your_app/your_app-web/WEB-INF/classes makes the servlet available to Orion by calling: http://localhost/servlet/YourServlet sven -- == Sven E. van 't Veer http://www.cachoeiro.net Java Developer [EMAIL PROTECTED] ==
Re: help ! classpath to the shared jar files or class files
Just put the jar file in the /lib dir where orion is installed and it will find them automatically. Regards, Ted Slusser [EMAIL PROTECTED]
Re: help ! classpath to the shared jar files or class files
Edmund Cheung wrote: > > I have non-ejb classes ( called share.jar)are used by all ejb jar files and > how do I let Orion know to use this jar file for the ejb jars files ? > Define the classpath somewhere ? I have got the error below while deploying > the ejb jar files. Thanks for your help. just place them in the /path/to/orion/lib directory and they will be loaded on startup of Orion sven -- == Sven E. van 't Veer http://www.cachoeiro.net Java Developer [EMAIL PROTECTED] ==
Re: HELP! Confused about CMP and Primary Keys
Vidur Dhanda wrote: > > OK, > > Now I'm thoroughly confused.Would someone please help me before I > confuse myself even more. Here's the question/scenario: > I have a primary key, > > public class PK implements Serializable { > public String fooGuts; > > constructor/get/Set ... > } > The only way it seems to work is by having a String member in the Entity > bean -- fooGuts. But that seems primitive. I know the EJB 1.1 spec > says the for _composite_ primary keys ... But to my thinking this is > more of a OR problem -- I have a CMP field (that happens to be the > primary key) and I want to control its relational representation. And > with all the nice OR stuff in Orion, it must be possible. My only > constraint is that I have to adhere to EJB1.1. > You'll need that public string for cmp to work. The primary Key class should contain the primary key field in your table (as a public field) so oruion can manipulate it. Take a look at yeh EJB sprec, section 9.4.7.1 and 9.4.7.2 sven -- == Sven E. van 't Veer http://www.cachoeiro.net Java Developer [EMAIL PROTECTED] ==
RE: Help me, please
Generally an error that mentions the '' method refers to a problem with a global variable (instance variables) that you are setting in some way or another. I've learned that this '' method is a pre-constructor that builds all the global variables in your object. Check these variables. Also, if you set the environment variable JAVA_COMPILER=NONE you won't get those nasty 'Compiled Code' messages, instead, you will get line numbers. Makes debugging easier. Hope that helps a little. Matt MacGillivray Technical Developer Delfour Corporation (905) 415-9779 x2021 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jordi Pinol Sent: Friday, November 10, 2000 6:59 AM To: Orion-Interest Subject: Help me, please I have a next problem, when my application starts: java.lang.ArrayIndexOutOfBoundsException: 6 at java.lang.String.(Compiled Code) at java.lang.String.toUpperCase(Compiled Code) at java.lang.String.toUpperCase(Compiled Code) at org.hsql.Tokenizer.getToken(Compiled Code) at org.hsql.Tokenizer.getString(Compiled Code) at org.hsql.Database.execute(Compiled Code) at org.hsql.jdbcConnection.executeStandalone(Compiled Code) at org.hsql.jdbcConnection.execute(Compiled Code) at org.hsql.jdbcStatement.fetchResult(Compiled Code) at org.hsql.jdbcStatement.executeQuery(Compiled Code) at org.hsql.jdbcPreparedStatement.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at ants.moo.PlaceDAO.selectByWorld(Compiled Code) at ants.moo.PlaceDAO.findByWorld(PlaceDAO.java:102) at ants.moo.PlaceEJB.ejbFindByWorld(PlaceEJB.java:1145) at PlaceHome_EntityHomeWrapper12.findByWorld(Compiled Code) at ants.moo.WorldEJB.getPlaces(Compiled Code) at World_EntityBeanWrapper4.getPlaces(Compiled Code) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Compiled Code) at com.evermind.server.rmi.bd.run(Compiled Code) at com.evermind.server.rmi.bb.hy(Compiled Code) at com.evermind.server.rmi.bb.run(Compiled Code) at com.evermind.util.f.run(Compiled Code) java.sql.SQLException: General error java.lang.ArrayIndexOutOfBoundsException: 6 in statement [select Id from Places where SubId = 'world1' ] at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at java.sql.SQLException.(SQLException.java:64) at org.hsql.Trace.getError(Compiled Code) at org.hsql.jdbcResultSet.(Compiled Code) at org.hsql.jdbcConnection.executeStandalone(Compiled Code) at org.hsql.jdbcConnection.execute(Compiled Code) at org.hsql.jdbcStatement.fetchResult(Compiled Code) at org.hsql.jdbcStatement.executeQuery(Compiled Code) at org.hsql.jdbcPreparedStatement.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at com.evermind.sql.am.executeQuery(Compiled Code) at ants.moo.PlaceDAO.selectByWorld(Compiled Code) at ants.moo.PlaceDAO.findByWorld(PlaceDAO.java:102) at ants.moo.PlaceEJB.ejbFindByWorld(PlaceEJB.java:1145) at PlaceHome_EntityHomeWrapper12.findByWorld(Compiled Code) at ants.moo.WorldEJB.getPlaces(Compiled Code) at World_EntityBeanWrapper4.getPlaces(Compiled Code) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Compiled Code) at com.evermind.server.rmi.bd.run(Compiled Code) at com.evermind.server.rmi.bb.hy(Compiled Code) at com.evermind.server.rmi.bb.run(Compiled Code) at com.evermind.util.f.run(Compiled Code)
RE: HELP: Security !!! How to do it.
Another thing to add in the ATM example they authenicate a user usings the Servlets built in form authentication login form eg this i presume creates princepal that is passed to the EJB layer to be checked. So my question is how the hell do i do the same thing from a Java Application. -Original Message- From: Peter Delahunty [mailto:[EMAIL PROTECTED]] Sent: Friday, November 10, 2000 10:07 AM To: Orion-Interest Subject: HELP: Security !!! How to do it. Hi guys I don't know if anyone has done this yet but i want to connect to Orion from a Java application using user authentication and authorisation. I have checked the archives but there is no solid advice there. My aim is to get a "username" and "password" from a user. Then i want to authenticate them using orion, how ? Do i use RoleManager.login()cos when i try to find it using "java:comp/RoleManager" then orion gives me naming exception that say that that name does not exist. Anyway if i was to authenticate the user, i then want to test my security settings below... So far i have this setup: So here is my test. i have a Session Bean with 6 methods methodA() methodB() methodC() methodD() methodE() methodF() i have 5 roles role1 role2 role3 role4 role5 these are the permissions role1 access ALL methods role2 access ABC role3 access DEF role4 access ADE role5 NO ACCESS then orion stuff i have 5 groups group1 mapped to role role1 group2 mapped to role role2 group3 mapped to role role3 group4 mapped to role role4 group5 mapped to role role5 i have 5 users user1in group1 role1 user2in group2 role2 user3in group3 role3 user4in group4 role4 user5in group5 role5 for example "user1" is linked to "role1" and "role1" can access all methods. However if i connect to orion with the following JNDI configurations java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont extFactory java.naming.provider.url=ormi://localhost/securityApp java.naming.security.principal=user1 java.naming.security.credentials=user1 i can manage to sucessfully call "create()" to get back the remote interface of my session bean. However if i call any of the bussiness methods then i get a security exception like below... " Error: user1 is not allowed to call this EJB method, check your security settings (method-permission -application.xml)." so what i am i doing wrong !!! here are my config files. APPLICATION.XML ejb role1 role2 role3 role4 role5 PRINCIPALS.XML users users users users users ORION-APPLICATION.XML ORION-EJB-JAR.XML
Re: HELP! orion + Linux + native threads
Sorry for including that other stuff at the end of my original message, by the way... Here's some more information: no problems under jakarta-tomcat (3.1) either, so it's beginning to look more and more like an Orion problem of some kind. I would really appreciate a word from the Orion guys on this one. Thanks, again. -Rich --- "Richard E. Sansom" <[EMAIL PROTECTED]> wrote: > Attached is a simple servlet that uses the request and response input and > output streams to read a text based message and simply echo the message back > to > the requestor. This thing runs fine when I stress it under Forte (hit it a > billion times, looking for performance and memory problems) but under Orion > (1.3.8, but I also tried it under the 1.4.0 version), I run out of native > threads just under 1000 requests into my test (I expect we're bumping up > against the 1024 magic number). > > Am I doing something wrong or is it a known problem? Again, the Forte > servlet > runner, which is no performance leader, didn't have any problems at all > running > under the same O/S (Redhat 7.0 - I know...) and JDK (Sun 1.3.0). > > Please help, I spent the better part of all night trying to figure this one > out. > > Thanks. > > -Rich > > --- "Juan Lorandi (Chile)" <[EMAIL PROTECTED]> wrote: > > Last week I bailed out of SprintA 2000, because variable length fields > don't > > grow... > > > > Bugzilla #127 > > > > Say, you have an Object/Serializable field in a CMP bean... > > It's mapped to either a nvarchar(S), or a varbinary(S) > > Whenever the serializable version of the object is bigger than S (look > > above) SprintA fails miserably > > > > However, I have not successfully confirmed that it's a SprintA problem, but > > I surely can make varbinarys grow > > using ADO, so must be a bug in the german product (SprintA 2000) > > > > HTH (before it's too late), > > > > > > Rifle > > > > > > -Original Message- > > From: Kurt Hoyt [mailto:[EMAIL PROTECTED]] > > Sent: Miércoles, 25 de Octubre de 2000 10:06 > > To: Orion-Interest > > Subject: RE: Ok. I feel dumb. Data Sources and MS SQL. > > > > > > I hate to be the bearer of bad news, but you'll have to spring for a type 4 > > JDBC driver. We bought the one from Inet Software called "Sprinta 2000". > The > > price was reasonable and it performs comparably with the best of them. > > That's how we got Orion and SQL Server 7 and Win2K to work together. > > > > Kurt in Atlanta > > > > -Original Message- > > From: Kimberley Scott [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, October 24, 2000 9:16 PM > > To: Orion-Interest > > Subject: Ok. I feel dumb. Data Sources and MS SQL. > > > > > > Hiya, > > > > Feeling real stupid here. I'm examining data sources and getting totally > > confused. Maybe I'm just burnt out. Haven't had a holiday in five years. > > Sigh. > > > > Back to business. We're *forced* to use Microsoft SQL 7 and Win2K. How do I > > set up the datasource xml file to handle this? I can't seem to find > anything > > on this in the email lists on in the docs. The only drivers I have are the > > ODBC bridges (The invisible hidden MS one and the standard Sun one) and I'm > > not paying for a Type IV driver at the outrageous prices I've been > presented > > with from BEA and the like. Has anyone done this before or can point me in > > the right direction? > > > > A tired developer who's feeling very old and dim... > > > > Kimberley Scott > > Senior Web Developer > > Peakhour Pty Ltd > > http://smartoffice.com.au <<- just built. needs work. ASP/COM Sigh. What > can > > I say? > > http://peakhour.com.au <<- corporate site > > http://www.geocities.com/kimmie_scott <<-me > > > > > > > > > > > Richard E. Sansom > [EMAIL PROTECTED] > > > __ > Do You Yahoo!? > Yahoo! Messenger - Talk while you surf! It's FREE. > http://im.yahoo.com/ > ATTACHMENT part 2 application/x-unknown name=TestServlet.java Richard E. Sansom [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/
Re: Help with getting Orion to talke to Oracle.
That's not quite true. While you can do what Al recommends you can also add a library path statement to the application.xml config file. As in the following: -- Jason Rimmer [EMAIL PROTECTED] - Original Message - From: "Al Fogleson" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, October 19, 1995 5:29 PM Subject: Re: Help with getting Orion to talke to Oracle. > You need to copy the oracle drivers into your orion/lib directory I actually > unzipped the classes111.zip there myself. > > Al > > - Original Message - > From: "J Davis" <[EMAIL PROTECTED]> > To: "Orion-Interest" <[EMAIL PROTECTED]> > Sent: Thursday, October 19, 2000 1:43 PM > Subject: Help with getting Orion to talke to Oracle. > > > > I have been pulling my hair out trying to get oracle and orion to talk to > > each other. I am sure it is a simple error, but I can't seem to find it. > > Here is my problem: > > > > I have installed orion 1.3.8 on a Windows 2000 server with jdk1.2.2, > > j2ee1.2.1, jre1.2.2 and oracle8idrivers12_01.zip. > > > > I copied the tools.jar from the jdk into the c:\orion dir. > > > > I have taken the time to set the following ENV variables based off some > > earlier messages: > > > > J2EE_CLASSPATH=c:\orion\lib\oracle8idrivers12_01.zip > > J2EE_HOME=c:\j2ee > > JAVA_HOME=c:\jdk > > PATH=(Original path);c:\jdk > > > > I tried exploding the oracle drivers in the orion/lib dir as well as the > > jre/lib/ext dir. > > > > I tried adding the oracle zip file to the library tag in the > application.xml > > like so: > > > > > > > > I setup the data-source file like so: > > > > > class="com.evermind.sql.ConnectionDataSource" > > name="Oracle VND Driver" > > location="jdbc/vndCoreDS" > > pooled-location="jdbc/vndPooledDS" > > xa-location="jdbc/xa/vndXADS" > > ejb-location="jdbc/vndDS" > > connection-driver="oracle.jdbc.driver.OracleDriver" > > username="login" > > password="pass" > > schema="./database-schemas/oracle.xml" > > url="jdbc:oracle:thin:@machine:1521:sid" > > inactivity-timeout="120" > > /> > > > > I built a simple class that looks like this to run from a remote machine: > > > > import java.sql.*; > > import javax.ejb.*; > > import javax.sql.DataSource; > > import javax.naming.*; > > import com.micronpc.db.*; > > > > public class TestConn > > { > > Context jndiContext; > > > > public TestConn() > > { > > try > > { > > jndiContext = new InitialContext(); > > DataSource ds = (DataSource)jndiContext.lookup("jdbc/vndPooledDS"); > > Connection conn = ds.getConnection(); > > Statement s = conn.createStatement(); > > String sql = "SELECT * from adv_sub_family_type"; > > ResultSet rs = s.executeQuery(sql); > > while(rs != null && rs.next()) > > { > > System.out.println("Record:" + rs.getString(1)); > > } > > } > > catch(Exception e) > > { > > System.out.println("Got this exception:" + e.getMessage()); > > e.printStackTrace(); > > } > > } > > > > public static void main(String[] args) > > { > > TestConn testConn1 = new TestConn(); > > } > > } > > > > My application-client.xml in the META-INF looks like this(although I am > not > > trying to use any of these objects yet.): > > > > > > > Application Client 1.2//EN" > > "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd"> > > > > > > QuoteEntity > > Entity > > com.micronpc.api.configurator.QuoteEntityHome > > > > com.micronpc.api.configurator.QuoteEntityRemote > > > > > > ModelQuoteEntity > > Entity > > > > com.micronpc.api.configurator.ModelQuoteEntityHome > > > > com.micronpc.api.configurator.ModelQuoteEntityRemote > > > > > > ProfileEntity > > Entity > > com.micronpc.api.configurator.ProfileEntityHome > > > > com.micronpc.api.configurator.ProfileEntityRemote > > > > > > > > my jndi.properties looks like this: > > > > > java.naming.factory.initial=com.evermin
Re: Help with getting Orion to talke to Oracle.
Or I usually put the oracle drivers in JAVA_HOME/jre/lib/ext Not sure of the technical differences between the two approaches, though. -joel - Original Message - From: "Al Fogleson" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, October 19, 1995 2:29 PM Subject: Re: Help with getting Orion to talke to Oracle. > You need to copy the oracle drivers into your orion/lib directory I actually > unzipped the classes111.zip there myself. > > Al > > - Original Message - > From: "J Davis" <[EMAIL PROTECTED]> > To: "Orion-Interest" <[EMAIL PROTECTED]> > Sent: Thursday, October 19, 2000 1:43 PM > Subject: Help with getting Orion to talke to Oracle. > > > > I have been pulling my hair out trying to get oracle and orion to talk to > > each other. I am sure it is a simple error, but I can't seem to find it. > > Here is my problem: > > > > I have installed orion 1.3.8 on a Windows 2000 server with jdk1.2.2, > > j2ee1.2.1, jre1.2.2 and oracle8idrivers12_01.zip. > > > > I copied the tools.jar from the jdk into the c:\orion dir. > > > > I have taken the time to set the following ENV variables based off some > > earlier messages: > > > > J2EE_CLASSPATH=c:\orion\lib\oracle8idrivers12_01.zip > > J2EE_HOME=c:\j2ee > > JAVA_HOME=c:\jdk > > PATH=(Original path);c:\jdk > > > > I tried exploding the oracle drivers in the orion/lib dir as well as the > > jre/lib/ext dir. > > > > I tried adding the oracle zip file to the library tag in the > application.xml > > like so: > > > > > > > > I setup the data-source file like so: > > > > > class="com.evermind.sql.ConnectionDataSource" > > name="Oracle VND Driver" > > location="jdbc/vndCoreDS" > > pooled-location="jdbc/vndPooledDS" > > xa-location="jdbc/xa/vndXADS" > > ejb-location="jdbc/vndDS" > > connection-driver="oracle.jdbc.driver.OracleDriver" > > username="login" > > password="pass" > > schema="./database-schemas/oracle.xml" > > url="jdbc:oracle:thin:@machine:1521:sid" > > inactivity-timeout="120" > > /> > > > > I built a simple class that looks like this to run from a remote machine: > > > > import java.sql.*; > > import javax.ejb.*; > > import javax.sql.DataSource; > > import javax.naming.*; > > import com.micronpc.db.*; > > > > public class TestConn > > { > > Context jndiContext; > > > > public TestConn() > > { > > try > > { > > jndiContext = new InitialContext(); > > DataSource ds = (DataSource)jndiContext.lookup("jdbc/vndPooledDS"); > > Connection conn = ds.getConnection(); > > Statement s = conn.createStatement(); > > String sql = "SELECT * from adv_sub_family_type"; > > ResultSet rs = s.executeQuery(sql); > > while(rs != null && rs.next()) > > { > > System.out.println("Record:" + rs.getString(1)); > > } > > } > > catch(Exception e) > > { > > System.out.println("Got this exception:" + e.getMessage()); > > e.printStackTrace(); > > } > > } > > > > public static void main(String[] args) > > { > > TestConn testConn1 = new TestConn(); > > } > > } > > > > My application-client.xml in the META-INF looks like this(although I am > not > > trying to use any of these objects yet.): > > > > > > > Application Client 1.2//EN" > > "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd"> > > > > > > QuoteEntity > > Entity > > com.micronpc.api.configurator.QuoteEntityHome > > > > com.micronpc.api.configurator.QuoteEntityRemote > > > > > > ModelQuoteEntity > > Entity > > > > com.micronpc.api.configurator.ModelQuoteEntityHome > > > > com.micronpc.api.configurator.ModelQuoteEntityRemote > > > > > > ProfileEntity > > Entity > > com.micronpc.api.configurator.ProfileEntityHome > > > > com.micronpc.api.configurator.ProfileEntityRemote > > > > > > > > my jndi.properties looks like this: > > > > > java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont > > extFactory > > java.na
Re: Help with getting Orion to talke to Oracle.
You need to copy the oracle drivers into your orion/lib directory I actually unzipped the classes111.zip there myself. Al - Original Message - From: "J Davis" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, October 19, 2000 1:43 PM Subject: Help with getting Orion to talke to Oracle. > I have been pulling my hair out trying to get oracle and orion to talk to > each other. I am sure it is a simple error, but I can't seem to find it. > Here is my problem: > > I have installed orion 1.3.8 on a Windows 2000 server with jdk1.2.2, > j2ee1.2.1, jre1.2.2 and oracle8idrivers12_01.zip. > > I copied the tools.jar from the jdk into the c:\orion dir. > > I have taken the time to set the following ENV variables based off some > earlier messages: > > J2EE_CLASSPATH=c:\orion\lib\oracle8idrivers12_01.zip > J2EE_HOME=c:\j2ee > JAVA_HOME=c:\jdk > PATH=(Original path);c:\jdk > > I tried exploding the oracle drivers in the orion/lib dir as well as the > jre/lib/ext dir. > > I tried adding the oracle zip file to the library tag in the application.xml > like so: > > > > I setup the data-source file like so: > > class="com.evermind.sql.ConnectionDataSource" > name="Oracle VND Driver" > location="jdbc/vndCoreDS" > pooled-location="jdbc/vndPooledDS" > xa-location="jdbc/xa/vndXADS" > ejb-location="jdbc/vndDS" > connection-driver="oracle.jdbc.driver.OracleDriver" > username="login" > password="pass" > schema="./database-schemas/oracle.xml" > url="jdbc:oracle:thin:@machine:1521:sid" > inactivity-timeout="120" > /> > > I built a simple class that looks like this to run from a remote machine: > > import java.sql.*; > import javax.ejb.*; > import javax.sql.DataSource; > import javax.naming.*; > import com.micronpc.db.*; > > public class TestConn > { > Context jndiContext; > > public TestConn() > { > try > { > jndiContext = new InitialContext(); > DataSource ds = (DataSource)jndiContext.lookup("jdbc/vndPooledDS"); > Connection conn = ds.getConnection(); > Statement s = conn.createStatement(); > String sql = "SELECT * from adv_sub_family_type"; > ResultSet rs = s.executeQuery(sql); > while(rs != null && rs.next()) > { > System.out.println("Record:" + rs.getString(1)); > } > } > catch(Exception e) > { > System.out.println("Got this exception:" + e.getMessage()); > e.printStackTrace(); > } > } > > public static void main(String[] args) > { > TestConn testConn1 = new TestConn(); > } > } > > My application-client.xml in the META-INF looks like this(although I am not > trying to use any of these objects yet.): > > > Application Client 1.2//EN" > "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd"> > > > QuoteEntity > Entity > com.micronpc.api.configurator.QuoteEntityHome > > com.micronpc.api.configurator.QuoteEntityRemote > > > ModelQuoteEntity > Entity > > com.micronpc.api.configurator.ModelQuoteEntityHome > > com.micronpc.api.configurator.ModelQuoteEntityRemote > > > ProfileEntity > Entity > com.micronpc.api.configurator.ProfileEntityHome > > com.micronpc.api.configurator.ProfileEntityRemote > > > > my jndi.properties looks like this: > > java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont > extFactory > java.naming.provider.url=ormi://ejbtestbox/micron > java.naming.security.principal=admin > java.naming.security.credentials=123 > > my principales file looke like this: > > > "http://www.orionserver.com/dtds/principals.dtd"> > > > > > administrators > > name="com.evermind.server.AdministrationPermission" /> > > > guests > > > users > > name="com.evermind.server.rmi.RMIPermission" /> > > > > > The default administrator > > > > > > The default user > > > > > The default guest/anonyomous > user > > > > > > if I try to make a connection with a standalone app on the machine it works > fine. If I try to go through orion I get the following errors. > > if I try it as vndPooledDS or vndCoreDS I get the following error: > > Got this exception:No suitable driver java.sql.SQLException: No suitable > driver at java.sql.DriverManager.getConnection(DriverManager.java:477) > at java.sql.DriverManager.getConnection(DriverManager.java:137) at > com.evermind.sql.DriverManagerDataSource.getConnection(JAX) at > com.evermind.sql.DriverManagerConnectionPoolDataSource.getPooledConnection(J > AX) at com.evermind.sql.OrionPooledDataSource.eh(JAX) at > com.evermind.sql.OrionPooledDataSource.d3(JAX, Compiled Code) at > com.evermind.sql.OrionPooledDataSource.getConnection(JAX, Compiled Code) > at TestConn.(TestConn.java, Compiled Code) at > TestConn.main(TestConn.java:44) > > if I try it as vndDS I get the following error: > > Got this exception:null java.lang.NullPointerException at > com.evermind.sql.OrionPooledDataSource.d2(JAX, Compiled Code) at > com.evermind.sql.OrionPooledDataSource.d3(JAX, Compiled Code) at > com.evermind.sql.ai.ek(
Re: Help with diagnosing problem
> Which is certainly interesting, but not very useful. Can someone suggest a > way to find out WHICH variable it is talking about? Or at least in > which/what sort of FILE this variable is declared/it's value is being > derived from? Nevermind. The problem ssems to have vanished all by itself. Ben Z. Tels [EMAIL PROTECTED] http://www.stack.nl/~optimusb/ UIN:2474460 "The Earth is the cradle of the mind, but one cannot stay in the cradle forever." --Tsiolkovsky
RE: HELP: Cannot understand DeadLock
Title: RE: HELP: Cannot understand DeadLock We have encountered database deadlocks using CMT and CMP and a SINGLE transaction, where for some reason some of the database calls generated by the CMP code get called in different process IDs on the database (even though they all occur on the same Java thread and are supposed to all occur in the same transaction). Most of our code does not deadlock, but certain sequences of code consistently give rise to these deadlocks. I have logged this as a bug. -Original Message- From: Simon Harris [mailto:[EMAIL PROTECTED]] Sent: 15 September 2000 15:17 To: Orion-Interest Subject: Re: HELP: Cannot understand DeadLock I would have thought the container should manage this. Anyway it is an intermittent problem. Ie doesn't always happen. Seems to ocurr under heavy (concurrent) load. Simon. - Original Message - From: "Ishpal" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Friday, September 15, 2000 8:18 PM Subject: Re: HELP: Cannot understand DeadLock > Hi, > > May be u r not committing the changes to the database... > i.e. ur code might be missing connection.commit() before u close the > connection to the database > > -- may be this helps.. > > bye, > Ishpal > > > Simon Harris wrote: > > > > Here is a trace from the log file. I don't understand how there can be > > an error in ejbPassivate() when I have no code in this method, and how > > do I end up with a deadlock wherby thread 6 is waiting forthread > > 6!??? > > > > Any clues anyone? > > > > 15/09/00 10:40 Error in bean cats.ejb.Change: Error loading state > > javax.ejb.NoSuchEntityException: Load failed for Change 1 > > at cats.change.ChangeDAO.load(ChangeDAO.java:197) > > at cats.change.ChangeEJB.ejbLoad(ChangeEJB.java:1073) > > at > > IChange_EntityBeanWrapper6.loadState(IChange_EntityBeanWrapper6.java:8734) > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > at > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi onBeanWrapper10.java:184) > > at java.lang.reflect.Method.invoke(Native Method) > > at com.evermind.server.rmi.bd.run(JAX) > > at com.evermind.server.rmi.bb.hw(JAX) > > at com.evermind.server.rmi.bb.run(JAX) > > at com.evermind.util.f.run(JAX) > > 15/09/00 10:40 Error in bean cats.ejb.Change: Error in ejbPassivate > > com.evermind.server.DeadlockException: Deadlock detected: thread 6 is > > waiting for resource entity Change 1 held by thread 6 > > at com.evermind.server.ejb.AbstractEJBObject.startCall(JAX) > > at com.evermind.server.ejb.EntityEJBObject.removeFromCache(JAX) > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > at > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi onBeanWrapper10.java:184) > > at java.lang.reflect.Method.invoke(Native Method) > > at com.evermind.server.rmi.bd.run(JAX) > > at com.evermind.server.rmi.bb.hw(JAX) > > at com.evermind.server.rmi.bb.run(JAX) > > at com.evermind.util.f.run(JAX) > > 15/09/00 10:40 Error in bean cats.ejb.Change: Error while delisting > > bean from TX > > com.evermind.transaction.MarshallingXAException > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > at > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi onBeanWrapper10.java:184) > > at java.lang.reflect.Method.invoke(Native Method) > > at com.evermind.server.rmi.bd.run(JAX) > > at com.evermind.server.rmi.bb.hw(JAX) > > at com.evermind.server.rmi.bb.run(JAX) > > at com.evermind.util.f.run(JAX) > > Nested exception is: > > javax.ejb.NoSuchEntityException: Load failed for Change 1 > > at cats.change.ChangeDAO.load(ChangeDAO.java:197) > > at cats.change.ChangeEJB.ejbLoad(ChangeEJB.java:1073) > > at > > IChange_EntityBeanWrapper6.loadState(IChange_EntityBeanWrapper6.java:8734) > > at com.evermind.server.ejb.Entit
Re: HELP: Cannot understand DeadLock
just guessed...might be wrong... - Original Message - From: Simon Harris <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent: Friday, September 15, 2000 6:46 PM Subject: Re: HELP: Cannot understand DeadLock > I would have thought the container should manage this. Anyway it is an > intermittent problem. Ie doesn't always happen. Seems to ocurr under heavy > (concurrent) load. > > Simon. > - Original Message - > From: "Ishpal" <[EMAIL PROTECTED]> > To: "Orion-Interest" <[EMAIL PROTECTED]> > Sent: Friday, September 15, 2000 8:18 PM > Subject: Re: HELP: Cannot understand DeadLock > > > > Hi, > > > > May be u r not committing the changes to the database... > > i.e. ur code might be missing connection.commit() before u close the > > connection to the database > > > > -- may be this helps.. > > > > bye, > > Ishpal > > > > > Simon Harris wrote: > > > > > > Here is a trace from the log file. I don't understand how there can be > > > an error in ejbPassivate() when I have no code in this method, and how > > > do I end up with a deadlock wherby thread 6 is waiting forthread > > > 6!??? > > > > > > Any clues anyone? > > > > > > 15/09/00 10:40 Error in bean cats.ejb.Change: Error loading state > > > javax.ejb.NoSuchEntityException: Load failed for Change 1 > > > at cats.change.ChangeDAO.load(ChangeDAO.java:197) > > > at cats.change.ChangeEJB.ejbLoad(ChangeEJB.java:1073) > > > at > > > > IChange_EntityBeanWrapper6.loadState(IChange_EntityBeanWrapper6.java:8734) > > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > > at > > > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi > onBeanWrapper10.java:184) > > > at java.lang.reflect.Method.invoke(Native Method) > > > at com.evermind.server.rmi.bd.run(JAX) > > > at com.evermind.server.rmi.bb.hw(JAX) > > > at com.evermind.server.rmi.bb.run(JAX) > > > at com.evermind.util.f.run(JAX) > > > 15/09/00 10:40 Error in bean cats.ejb.Change: Error in ejbPassivate > > > com.evermind.server.DeadlockException: Deadlock detected: thread 6 is > > > waiting for resource entity Change 1 held by thread 6 > > > at com.evermind.server.ejb.AbstractEJBObject.startCall(JAX) > > > at com.evermind.server.ejb.EntityEJBObject.removeFromCache(JAX) > > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > > at > > > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi > onBeanWrapper10.java:184) > > > at java.lang.reflect.Method.invoke(Native Method) > > > at com.evermind.server.rmi.bd.run(JAX) > > > at com.evermind.server.rmi.bb.hw(JAX) > > > at com.evermind.server.rmi.bb.run(JAX) > > > at com.evermind.util.f.run(JAX) > > > 15/09/00 10:40 Error in bean cats.ejb.Change: Error while delisting > > > bean from TX > > > com.evermind.transaction.MarshallingXAException > > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > > at > > > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi > onBeanWrapper10.java:184) > > > at java.lang.reflect.Method.invoke(Native Method) > > > at com.evermind.server.rmi.bd.run(JAX) > > > at com.evermind.server.rmi.bb.hw(JAX) > > > at com.evermind.server.rmi.bb.run(JAX) > > > at com.evermind.util.f.run(JAX) > > > Nested exception is: > > > javax.ejb.NoSuchEntityException: Load failed for Change 1 > > > at cats.change.ChangeDAO.load(ChangeDAO.java:197) > > > at cats.change.ChangeEJB.ejbLoad(ChangeEJB.java:1073) > > > at > > > > IChange_EntityBeanWrapper6.loadState(IChange_EntityBeanWrapper6.java:8734) > > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > > at > > > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi > onBeanWrapper10.java:184) > > > at java.lang.reflect.Method.invoke(Native Method) > > > at com.evermind.server.rmi.bd.run(JAX) > > > at com.evermind.server.rmi.bb.hw(JAX) > > > at com.evermind.server.rmi.bb.run(JAX) > > > at com.evermind.util.f.run(JAX) > > > > > >
Re: HELP: Cannot understand DeadLock
I would have thought the container should manage this. Anyway it is an intermittent problem. Ie doesn't always happen. Seems to ocurr under heavy (concurrent) load. Simon. - Original Message - From: "Ishpal" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Friday, September 15, 2000 8:18 PM Subject: Re: HELP: Cannot understand DeadLock > Hi, > > May be u r not committing the changes to the database... > i.e. ur code might be missing connection.commit() before u close the > connection to the database > > -- may be this helps.. > > bye, > Ishpal > > > Simon Harris wrote: > > > > Here is a trace from the log file. I don't understand how there can be > > an error in ejbPassivate() when I have no code in this method, and how > > do I end up with a deadlock wherby thread 6 is waiting forthread > > 6!??? > > > > Any clues anyone? > > > > 15/09/00 10:40 Error in bean cats.ejb.Change: Error loading state > > javax.ejb.NoSuchEntityException: Load failed for Change 1 > > at cats.change.ChangeDAO.load(ChangeDAO.java:197) > > at cats.change.ChangeEJB.ejbLoad(ChangeEJB.java:1073) > > at > > IChange_EntityBeanWrapper6.loadState(IChange_EntityBeanWrapper6.java:8734) > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > at > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi onBeanWrapper10.java:184) > > at java.lang.reflect.Method.invoke(Native Method) > > at com.evermind.server.rmi.bd.run(JAX) > > at com.evermind.server.rmi.bb.hw(JAX) > > at com.evermind.server.rmi.bb.run(JAX) > > at com.evermind.util.f.run(JAX) > > 15/09/00 10:40 Error in bean cats.ejb.Change: Error in ejbPassivate > > com.evermind.server.DeadlockException: Deadlock detected: thread 6 is > > waiting for resource entity Change 1 held by thread 6 > > at com.evermind.server.ejb.AbstractEJBObject.startCall(JAX) > > at com.evermind.server.ejb.EntityEJBObject.removeFromCache(JAX) > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > at > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi onBeanWrapper10.java:184) > > at java.lang.reflect.Method.invoke(Native Method) > > at com.evermind.server.rmi.bd.run(JAX) > > at com.evermind.server.rmi.bb.hw(JAX) > > at com.evermind.server.rmi.bb.run(JAX) > > at com.evermind.util.f.run(JAX) > > 15/09/00 10:40 Error in bean cats.ejb.Change: Error while delisting > > bean from TX > > com.evermind.transaction.MarshallingXAException > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > at > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi onBeanWrapper10.java:184) > > at java.lang.reflect.Method.invoke(Native Method) > > at com.evermind.server.rmi.bd.run(JAX) > > at com.evermind.server.rmi.bb.hw(JAX) > > at com.evermind.server.rmi.bb.run(JAX) > > at com.evermind.util.f.run(JAX) > > Nested exception is: > > javax.ejb.NoSuchEntityException: Load failed for Change 1 > > at cats.change.ChangeDAO.load(ChangeDAO.java:197) > > at cats.change.ChangeEJB.ejbLoad(ChangeEJB.java:1073) > > at > > IChange_EntityBeanWrapper6.loadState(IChange_EntityBeanWrapper6.java:8734) > > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > > at com.evermind.server.ApplicationServerTransaction.end(JAX) > > at > > IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessi onBeanWrapper10.java:184) > > at java.lang.reflect.Method.invoke(Native Method) > > at com.evermind.server.rmi.bd.run(JAX) > > at com.evermind.server.rmi.bb.hw(JAX) > > at com.evermind.server.rmi.bb.run(JAX) > > at com.evermind.util.f.run(JAX) > >
Re: HELP: Cannot understand DeadLock
Hi, May be u r not committing the changes to the database... i.e. ur code might be missing connection.commit() before u close the connection to the database -- may be this helps.. bye, Ishpal > Simon Harris wrote: > > Here is a trace from the log file. I don't understand how there can be > an error in ejbPassivate() when I have no code in this method, and how > do I end up with a deadlock wherby thread 6 is waiting forthread > 6!??? > > Any clues anyone? > > 15/09/00 10:40 Error in bean cats.ejb.Change: Error loading state > javax.ejb.NoSuchEntityException: Load failed for Change 1 > at cats.change.ChangeDAO.load(ChangeDAO.java:197) > at cats.change.ChangeEJB.ejbLoad(ChangeEJB.java:1073) > at > IChange_EntityBeanWrapper6.loadState(IChange_EntityBeanWrapper6.java:8734) > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > at com.evermind.server.ApplicationServerTransaction.end(JAX) > at > >IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessionBeanWrapper10.java:184) > at java.lang.reflect.Method.invoke(Native Method) > at com.evermind.server.rmi.bd.run(JAX) > at com.evermind.server.rmi.bb.hw(JAX) > at com.evermind.server.rmi.bb.run(JAX) > at com.evermind.util.f.run(JAX) > 15/09/00 10:40 Error in bean cats.ejb.Change: Error in ejbPassivate > com.evermind.server.DeadlockException: Deadlock detected: thread 6 is > waiting for resource entity Change 1 held by thread 6 > at com.evermind.server.ejb.AbstractEJBObject.startCall(JAX) > at com.evermind.server.ejb.EntityEJBObject.removeFromCache(JAX) > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > at com.evermind.server.ApplicationServerTransaction.end(JAX) > at > >IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessionBeanWrapper10.java:184) > at java.lang.reflect.Method.invoke(Native Method) > at com.evermind.server.rmi.bd.run(JAX) > at com.evermind.server.rmi.bb.hw(JAX) > at com.evermind.server.rmi.bb.run(JAX) > at com.evermind.util.f.run(JAX) > 15/09/00 10:40 Error in bean cats.ejb.Change: Error while delisting > bean from TX > com.evermind.transaction.MarshallingXAException > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > at com.evermind.server.ApplicationServerTransaction.end(JAX) > at > >IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessionBeanWrapper10.java:184) > at java.lang.reflect.Method.invoke(Native Method) > at com.evermind.server.rmi.bd.run(JAX) > at com.evermind.server.rmi.bb.hw(JAX) > at com.evermind.server.rmi.bb.run(JAX) > at com.evermind.util.f.run(JAX) > Nested exception is: > javax.ejb.NoSuchEntityException: Load failed for Change 1 > at cats.change.ChangeDAO.load(ChangeDAO.java:197) > at cats.change.ChangeEJB.ejbLoad(ChangeEJB.java:1073) > at > IChange_EntityBeanWrapper6.loadState(IChange_EntityBeanWrapper6.java:8734) > at com.evermind.server.ejb.EntityEJBObject.endTransaction(JAX) > at com.evermind.server.ApplicationServerTransaction.am6(JAX) > at com.evermind.server.ApplicationServerTransaction.commit(JAX) > at com.evermind.server.ApplicationServerTransaction.end(JAX) > at > >IGateway_StatelessSessionBeanWrapper10.handleMessage(IGateway_StatelessSessionBeanWrapper10.java:184) > at java.lang.reflect.Method.invoke(Native Method) > at com.evermind.server.rmi.bd.run(JAX) > at com.evermind.server.rmi.bb.hw(JAX) > at com.evermind.server.rmi.bb.run(JAX) > at com.evermind.util.f.run(JAX)