Re: Debugging JSP
Herman, A quick search on the knowledge base reveals a few pages that may be of interest: http://kb.atlassian.com/search.jsp?query=debugging One in particular is: http://kb.atlassian.com/content/orion/docs/debugging.html which has links to: http://kb.atlassian.com/content/orion/docs/development-mode.html What you need to do is change global-web-application.xml to include the tag parameter development=true. It is fully described in the link above. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Herman Rashid wrote: Hi all, How do you debug jsp using Orion ? I have managed to get debugging going for servlets/ejb, but not JSP since I don't know the internal of Orion's JSP.. All help appreciated. __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
RuntimeException in threads
I've been trying to catch a runtime exception thrown by one of my user threads, before the orion server gets it. One of the solutions I thought would work was to create a ThreadGroup as a parent of the thread in question and have it to catch the exception. It doesn't seem to work. Any ideas? Roman _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
JSP1.0 Support ??
Hi, Does Orion support JSP1.0? I'm porting an application from IBM WebSphere App Server and it was coded in JSP1.0. Also would love to hear from people in the list who knows the difference btw JSP1.0 and JSP1.1 or has experience porting it. Thanks. __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
RE: Debugging JSP
Wow, some of those debugging pages have a lot more information on debugging under Orion than I previously thought was available. Nice to know. When I tried this about six months ago, it seemed to work under javac, but not jikes. Anyone know if that's still the case, or if it was just a fluke on my part? I haven't had to debug a JSP under Orion recently, so I haven't tested this out. Also, under Tomcat and JRun, there are ways to precompile JSPs--a quick search in the KB didn't bring up anything obvious. Is there a way to accomplish this under Orion? I don't need to be able to use these precompiled JSPs anywhere, I just like to be able to make JSP compilation a part of the build process so that I don't have to build over and over to fix bugs in JSPs when I have to do extensive JSP modifications. - Geoffrey : -Original Message- : From: Scott Farquhar [mailto:[EMAIL PROTECTED]] : Sent: Wednesday, November 28, 2001 3:25 AM : To: Orion-Interest : Subject: Re: Debugging JSP : : : Herman, : : A quick search on the knowledge base reveals a few pages that : may be of : interest: :http://kb.atlassian.com/search.jsp?query=debugging : : One in particular is: :http://kb.atlassian.com/content/orion/docs/debugging.html : : which has links to: :http://kb.atlassian.com/content/orion/docs/development-mode.html : : What you need to do is change global-web-application.xml to : include the : tag parameter development=true. It is fully described in : the link above. : : Cheers, : Scott : : -- : Scott Farquhar :: [EMAIL PROTECTED] : : Atlassian :: http://www.atlassian.com : Supporting YOUR J2EE World : : : : : Herman Rashid wrote: : : Hi all, : : How do you debug jsp using Orion ? : : I have managed to get debugging going for : servlets/ejb, but not JSP since I don't know the : internal of Orion's JSP.. : : All help appreciated. : : __ : Do You Yahoo!? : Yahoo! GeoCities - quick and easy web site hosting, just : $8.95/month. : http://geocities.yahoo.com/ps/info1 : : : : : : : : _ : This message has been checked for all known viruses by the : MessageLabs Virus Scanning Service. For further information visit : http://www.messagelabs.com/stats.asp :
JAAS?
Does Orion 1.5.2 support JAAS? Thanks Hash
RE: Attaching a Web App to root context
Herman, I have a servlet redirecting to a JSP, no problem. Must be some problem in the deployment or address that you redirect to. I am simply using an application root based path, e.g. RequestDispatcher rd = request.getRequestDispatcher(/upload.jsp); rd.forward(request, response); --peter -Original Message- From: Herman Rashid [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 8:28 PM To: Orion-Interest Subject: Attaching a Web App to root context Hi everyone, I am trying to attach my own web application to the root context, ie I want to access my web application like this: http://myserver/myindex.html instead of: http://myserver/myapp/myindex.html which has been shown in the examples. So far I have achieved this by changing this line in default-web-site.xml: default-web-app application=default name=defaultWebApp / To this line: default-web-app application=myapp name=myapp / Also I deployed my application as an ear file and put the following line in server.xml: application name=myapp path=../applications/myapp.ear / The web application seems to work as I can access html, jsp and servlets BUT I can't get servlet forwards to JSP working. It made me wonder if I've configured the whole thing wrongly. Thank you all __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
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 no stack trace available 11/28/01 6:28 PM Error in bean NBWOSession java.lang.OutOfMemoryError no stack trace available 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 10460)].server.ApplicationServerTransaction.end(Unknown Source) at NBWOSession_StatefulSessionBeanWrapper27.storeData(NBWOSession_StatefulS essionBeanWrapper27.java:3919) at
finder queries
Can some one help me out on this? I want to implement a findByName. I've looked at findquery.html and finders.html and am still having trouble. I want a findByName but I dont want to edit the orio-ejb-jar.xml file, I want to put the string into the Bean. Where? In the bean, the home, or the remote. And how do you do a partial? (findquery.html shows a full: I have yet to find any docs that describe the use of this method) I guess I want something like findByName_query=partial: where prov_name = $1 and I dont know how. thanks.
Re: RuntimeException in threads
if by user threads you mean a thread that you're manually starting (i.e. not a worker thead) then maybe put a try/catch block in the run method? public void run() { while(!stopped) { try { // do stuff } catch(Exception e) { // handle error } } } ...or have i missed the point completely? - Original Message - From: Namor Taror [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 7:35 PM Subject: RuntimeException in threads I've been trying to catch a runtime exception thrown by one of my user threads, before the orion server gets it. One of the solutions I thought would work was to create a ThreadGroup as a parent of the thread in question and have it to catch the exception. It doesn't seem to work. Any ideas? Roman _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Error Parsing XXX.xml Error
I keep getting a parsing error when I make changes to the orion xml files (such as orion-application.xml) and the server tries to pick up the changes with the following error Document root element is missing this happens sporadically and usually I simply keep doing a save till the document parses correctly. has anyone run across this.
JNDI RMI clustering problem
Hello, I am trying to accomplish RMI clustering and seem to be having JNDI problems in the process. I have performed the following changes to my deployment settings. 1) orion-application.xml Changed all bean remote=false to remote=true 2) rmi.xml Added rmi-server host=localhost port=9091 and cluster username=cluster password=cluster 3) jndi.properties at the top level in my ear file looks like this java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont extFactory java.naming.provider.url=ormi://localhost:9091 My application is located at the following url https://localhost:9090/webApp 4) In my code I am creating an initial context and looking up a bean but get a NameNotFoundException. The code in my JSP looks like : Context ctx = getInitialContext(); Object home = ctx.lookup(LoginSL); loginHome = (LoginSLHome)PortableRemoteObject.narrow(home, LoginSLHome.class); The above code is giving me the following exception : Does someone know what I am doing wrong in either the code or deployment settings ?? 500 Internal Server Error javax.naming.NameNotFoundException: LoginSL not found at com.evermind[Orion/1.5.2 (build 10460)].server.rmi.RMIContext.lookup(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cf._np(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._cf.lookup(Unknown Source) at javax.naming.InitialContext.lookup(Unknown Source) at /processLogin.jsp._jspService(/processLogin.jsp.java:67) (JSP page line 55) at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown Source) 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) Thanks, Akshat
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 no stack trace available 11/28/01 6:28 PM Error in bean NBWOSession java.lang.OutOfMemoryError no stack trace available 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
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 no stack trace available 11/28/01 6:28 PM Error in bean NBWOSession java.lang.OutOfMemoryError no stack trace available 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