RE: Another request for struts on orion
On April 3r, 2001, quoth Rick Hightower: "Is there a way to search this mail archive? The URL is here: http://www.mail-archive.com/orion-interest@orionserver.com now, on searching, found this for 1.45: "Have you put struts.jar in your WEB-INF/lib directory (correct) or in the orion/lib directory (incorrect)? Also struts needs to be patched to work with Orion (ActionServlet.java as I remember, its in the archives)." and this for 1.47: " I had the same problem with Orion 1.4.7 and Struts 1.0beta (today's build), here's how I got it to work: You have to remove all the tlds from WEB-INF/lib/struts.jar that are under org.apache.struts.resources and put them under WEB-INF/classes/org/apache/struts/resources. Don't just copy them, they have to disapear from your struts.jar Took care of my issue, a bit annoying we have to do this but looks more like a bug in Orion than in Struts. Any comments on this? Christian" and this, further, for 1.4.7: "You're still going to run into problems when you try to use message resources (used prolifically for internal messages). Struts PropertyMessageResources calls getResourceAsStream() like this: is = this.getClass().getClassLoader().getResourceAsStream(name); ...and if you look at the Orion classloader, it does not implement getResourceAsStream(). This is what produces the "Cannot find message resources under org.apache.struts.action.MESSAGE" error. Look through the struts code for the source of that message; it has nothing to do with loading the dtds. The change described below is not necessary on Orion 1.4.5 or 1.4.7 (the only versions I have tested struts on). My current struts code has this.getClass().getResource(), and I see on the Orion console the correct Digester registration methods for the dtds. this.getClass().getClassLoader().getResource() is returning the correct thing. ...browsing the (decompiled) source, it is amusing to note that the Orion ServletContext (com.evermind.server.http.HttpApplication) does implement getResourceAsStream(), but from the Struts PropertyMessageResources you do not have access to the servlet context so it's no use :-) Jeff" and that seems to be all of substance...had it working myself since about the 15th of last month, but use it rarely, as we are a Cocoon shop. Michael J. Cannon > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Rick Hightower > Sent: Tuesday, April 03, 2001 6:08 PM > To: Orion-Interest > Subject: Another request for struts on orion > > > > > > I am also having a problem running struts on Orion. > > I followed the instructions and noticed that the directions to install the > sample application on Orion (as written) would not work. First it only > mentions copying one xml file not action.xml (it mentions > struts_config.xsl). Then it asks you to point the config setting to > action.xml without copying it to the web application root. The directions > seem to be missing some steps. > > I tried to improvise and tried to copy all xml (and tag definition files) > files from WEB-INF to the web app root of the sample, but I am running out > of ideas. I realize that Orion is popular and someone has this running > somewhere. And I also realize that this question has been asked for > > Where is a good place to search for the answers to this question? > Is there a way to search this mail archive? > > (BTW I did get struts to work on weblogic 5.1) > > --Rick Hightower > Software Developer > http://www.geocities.com/rick_m_hightower/ > > > -Original Message- > From: Shawn Stephens [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 03, 2001 2:42 PM > To: [EMAIL PROTECTED] > Subject: jndi > > > Hello, > Does anyone have the strut examples working with orionserver 1.4.5 > or later. If not, does anyone know where I can find more > information on how > to get this to work. I have implemented the extra procedures required to > set up strut with orion. > > > Thanks, > Shawn Stephens > > I get this error when I try to run the app: > > 4/3/01 4:33 PM defaultWebApp: 1.4.7 Started > 4/3/01 4:33 PM strutsExample: database: init > 4/3/01 4:33 PM strutsExample: database: Initializing database servlet > 4/3/01 4:33 PM strutsExample: database: Loading database from > '/WEB-INF/database.xml' > 4/3/01 4:33 PM strutsExample: action: init > 4/3/01 4:33 PM strutsExample: action: Loading application resources from > resource org.apache.struts.example.ApplicationResources > 4/3/01 4:33 PM strutsExample: action: Initializing configuration from > resource path /WEB-INF/action.xml > 4/3/01 4:33 PM strutsExample: action: null > java.net.MalformedURLException: unknown protocol: jndi > at > org.apache.struts.digester.Digester.resolveEntity(Digester.java:581) > at > org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExt > ernalEntit > y(DefaultEntityHandler.java:750) > at > org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExt >
Re: Returning Collections from ejbFindXXX()
The reason you're getting an exception is because the collection of Strings you return from your EJB method is not the same collection that the client receives. The client receives a collection of your EJB's remote interface class, and that is the class to which you should cast the results. Remember that it is the EJB container (Orion) which calls your EJB methods, not the client. Orion receives your String collection and uses it to create a collection of EJBs which are returned to the client code. - Original Message - From: "Permjeet Pandha" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, April 03, 2001 8:53 AM Subject: Returning Collections from ejbFindXXX() > Hi, > > Has anyone tried to return Collections from a BMP ejbFindAll() type of > operation? > > I return an ArrayList of String objects, the client receives this list ok > but gets a cast exception on trying to extract the String from the list. eg. > > public Collection ejbFindAll() throws java.rmi.RemoteException, > javax.ejb.FinderException > { > ArrayList v = new ArrayList(); > v.add("First"); > v.add("Second"); > return v; > } > > and the client code: > > Collection coll = home.findAll(); > System.out.println(coll.size() + coll.toString()); // this shows > correct count and contents: "2[First, Second]" > Iterator iterator = coll.iterator(); > while(iterator.hasNext()) > { > String s = (String)iterator.next();// class cast exception > System.out.println("Desc=" + s); > } > > On closer inspection with a debugger it turns out the objects in the list > are of class __Proxy5, some sort of orion proxy object. > > This appears to be a bug but I'd like to be sure in case its me. Has anyone > done this successfully? > > I'm using orion 1.4.5, I cannot seem to upgrade with autoupdate due to > (probably) firewall restrictions. > > TIA > > Permjeet > > >
Re: Another request for struts on orion
Hi it' easy to set up struts running with orion :) 1) struts-0.5 runs out-of-the-box with orion > 1.3.8 2) struts-1.0: - un-jar struts.jar - **move** the whole directory org/apache/struts/resources to a save place - recreate struts.jar (now without org/apache/struts/resources) - put the saved directory org/apache/struts/resources to WEB-INF/classes ... and it will work. hope that helps klaus Am Dienstag, 3. April 2001 23:07 schrieben Sie: > I am also having a problem running struts on Orion. > [...] > --Rick Hightower > > -Original Message- > From: Shawn Stephens [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 03, 2001 2:42 PM > To: [EMAIL PROTECTED] > Subject: jndi [...] > Shawn Stephens [...] -- Klaus Thiele - Personal & Informatik AG mailto:[EMAIL PROTECTED] "Your mouse has moved. Windows must be restarted for the change to take effect."
SV: errors using Taglib
Title: SV: errors using Taglib Try putting your classes in /WEB-INF/classes or /WEB-INF/lib instead. WR > -Ursprungligt meddelande- > Från: cmp user [mailto:[EMAIL PROTECTED]] > Skickat: den 3 april 2001 17:13 > Till: Orion-Interest > Ämne: errors using Taglib > > > Hi > I am trying to use my own custom taglibs in one of the > jsp pages. > Orion_HOME directory c:\temp\Orion > I copied a jsp file "customjsp.jsp" into > Orion_home\default-web-app\examples\jsp\myjsp\ > directory > I customized the web.xml in > Orion_home\default-web-app\WEB-INF directory > to include > > /webapp/DataTags.tld > /WEB-INF/DataTags.tld > > I have/copied the DataTags.tld in > Orion_home\default-web-app\WEB-INF directory > > and this tld uses the classes in "mytag.zip" > > I have included this zip file in my classpath > as > java -cp mytag.zip -jar orion.jar > when starting the Orion. > > when I run my jsp thru the browser i get > > java.lang.IllegalArgumentException: Class > datatags.ViObjTEI not found > void > com.evermind.server.http.d3.su(javax.servlet.ServletRequest, > javax.servlet.http.HttpServletResponse) > boolean > com.evermind.server.http.ef.s1(com.evermind.server.Application > ServerThread, > com.evermind.server.http.EvermindHttpServletRequest, > com.evermind.server.http.EvermindHttpServletResponse, > java.io.InputStream, java.io.OutputStream, boolean) > void > com.evermind.server.http.ef.do(java.lang.Thread) > void com.evermind.util.f.run() > > appericiate your help > > cmpsuer > > > __ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ >
SV: Deploy EAR/WAR via HTTP upload
Title: SV: Deploy EAR/WAR via HTTP upload /orion/admin.jar commands : -deploy - (re)deploys an application. Sub-switches are: -file - Enterprise Archive to deploy -deploymentName - Name of the application deployment -targetPath - The path on the remote OS to place the archive at. If not specified the applications directory is used -bindWebApp [application deployment name] [web-app name] [web-site name] [context root] - binds a web app to the specified site + root >Is it possible to deploy an EAR/WAR if uploaded via HTTP? If so, how? >Regards, >Mark A. Richman >Empire Software, Inc. >Expert Software Development & Consulting
Re: [ORMI port]
Jeremy, yes, within rmi.xml cf http://www.orionserver.com/docs/rmi.xml.html kuassi > ATTACHMENT part 2 message/rfc822 > Date: Tue, 3 Apr 2001 17:49:02 -0700 (PDT) > From: Jeremy Lizt <[EMAIL PROTECTED]> > Subject: ORMI port > To: Orion-Interest <[EMAIL PROTECTED]> > Reply-to: Orion-Interest > <[EMAIL PROTECTED]> > > Does ORMI communicate over a particular port number, > and is this configurable? > > Thanks. > Jeremy > > __ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
MessageDriven Beans !
Hi all, This is a freaky thing that I have been experiencing. Here's the scenario: I have two sets of topics: a server topic and a client topic. The server topic is hooked to a Message Driven Bean. There is some logic involved that places a message on the "server" topic.In turn the Message Driven Bean is awaken and it odes some procesisng in its turn. Subsequently, when the processing is done, I publish a message onto a separate topic for a client. Everything works fine up to the point where the Message Driven Bean publishes on to the "Client " topic. Everything looks peechy, however, the client subscriber to the client topic never gets the message. If I try an external client that publishes a message onto the client topic, the subscriber gets it. SO my dillemma, and what's been driving me nuts for the last few days, is that, the bloody Message Driven Bean does something to the topic, and freezes it up. I can't think of any reason why it should , but it does. Has anyone out there experienced such problems with the message driven beans ??? If so could you please lend a helping hand to someone who is slowly going looney Any input is much apreciated ! Thanks !!! Bruno
RE: Orion OpenTool to JBuilder 4?
How about this for a start? http://www.orionsupport.com/articles/jbuilder-debugging.html Mike > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Robert S. > Sfeir > Sent: Tuesday, April 03, 2001 1:32 PM > To: Orion-Interest > Subject: RE: Orion OpenTool to JBuilder 4? > > > Yep sure did, and this is only debugging but does not give you the > advantage of auto deploy without using other tools and things like > that. Running the whole app JBuilder would be really nice, > especially with > JSP and all that. > > R > > At 12:18 PM 4/3/2001 -0400, you wrote: > >Have you looked at > >http://www.orionsupport.com/articles/jbuilder-debugging.html ? > > > >At 09:41 AM 4/3/01 +0200, you wrote: > > > > > > > > -Original Message- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Robert S. > > > > Sfeir > > > > Sent: Monday, April 02, 2001 8:02 PM > > > > To: Orion-Interest > > > > Subject: Orion OpenTool to JBuilder 4? > > > > > > > > > > > > I've been trying to find ANY information about pluging in > > > > Orion as part of > > > > the servers inside JBuilder using the OpenTool API. Doesn't > > > > look like > > > > anyone's written one. I've sent an email to the Orion folks, > > > > no response. > > > > > > > > I have a source code example here that shows how to do this > > > > with Tomcat, > > > > and it doesn't look like I need THAT much more work to > > > > convert it over to > > > > make it work with Orion, I just don't want to spin my wheels > > > > doing it if > > > > someone has already done this. > > > > > >I haven't, and I think nobody else has since I've been > following both the > > >orion list and the jbuilder opentool newsgroup for some time now, but > > >haven't heard of it. > > >It would be nice if you could write it, although I'm quite > content using > > >jbuilder4 with the antrunner opentool (available from borland's > > >codecentral). > > > > > > > > > > > I know you can use Orion from the run menu, but there seem to > > > > be other > > > > benefits from having it as an application server in JBuilder, > > > > primarily for > > > > deployment purposes. > > > > > > > > Thanks. > > > > R > > > > > > > > > > > > Robert S. Sfeir > > > > Director of Software Development > > > > PERCEPTICON corporation > > > > San Francisco, CA 94123 > > > > w - http://www.percepticon.com/ > > > > e- [EMAIL PROTECTED] > > > > t - (415) 749-2900 x205 > > > > > > > > > > > > Robert S. Sfeir > Director of Software Development > PERCEPTICON corporation > San Francisco, CA 94123 > w - http://www.percepticon.com/ > e- [EMAIL PROTECTED] > t - (415) 749-2900 x205 > >
subscribe
subscribe __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: errors using Taglib
where did you put mytags.zip? you can't include it in your classpath, because java-jar doesn't use the classpath. try putting it in the lib directory >>> [EMAIL PROTECTED] 04/04/01 10:12am >>> Hi I am trying to use my own custom taglibs in one of the jsp pages. Orion_HOME directory c:\temp\Orion I copied a jsp file "customjsp.jsp" into Orion_home\default-web-app\examples\jsp\myjsp\ directory I customized the web.xml in Orion_home\default-web-app\WEB-INF directory to include /webapp/DataTags.tld /WEB-INF/DataTags.tld I have/copied the DataTags.tld in Orion_home\default-web-app\WEB-INF directory and this tld uses the classes in "mytag.zip" I have included this zip file in my classpath as java -cp mytag.zip -jar orion.jar when starting the Orion. when I run my jsp thru the browser i get java.lang.IllegalArgumentException: Class datatags.ViObjTEI not found void com.evermind.server.http.d3.su(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse) boolean com.evermind.server.http.ef.s1(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean) void com.evermind.server.http.ef.do(java.lang.Thread) void com.evermind.util.f.run() appericiate your help cmpsuer __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: Does any one has a solution for the "domain was null" message???
Well, I agree that it would be nice if you could get access to servers outside of Orion using the "client" approach, I don't think it necessarily defined in the J2EE platform specs. I took a look around the J2EE 1.3 specification, and the section J2EE.2.8 "Flexibility of Product Requirements" states: "This specification doesn't require that J2EE product be implemented by a single program, a single server, or even a single machine. In general, this specification doesn't describe the partionining of services or functions between machines, servers, or processes. As long as the requirements in this specification are met, J2EE Product Providers can partition the functionality however they see fit. A J2EE product must be able to deploy application components that execute with the semantics described by this specification." In section J2EE.2.11.3 "Network Protocols" it says that "This specification defines the mapping of application components to industry-standard network protocols. The mapping allows client access to the application components that have not installed J2EE product technology". Finally, in J2EE.8.2.1 "Application Assembly" subpart 3ii says "Dependencies that are not linked to internal components must be handled by the Deployer as external dependencies that must be met by resources previously installed on the platform. External resources must be linked to the resources on the platform during deployment." >From everything I have read, it seems that Orion isn't violating any specification rules, since they are allowed to partition functionality as they see fit. Orion does allows multiple servers to intercommunicate, but it is the responsibility of the application deployer to specify those links (and it is specific to Orion). Since the web container is bundled as part of the J2EE Server, I don't think the specification requires that it has access to anything outside that specific server environment. I would like to hear the thoughts of others about this, and any experiences they might have had with access with remote containers/servers. -jason
RE: How to specify a servlet as a main page
You have to put additional line as : 10 into paragraph: boot com.testing.es.start.Boot 10 Hope this help -Original Message- From: Ismael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 9:26 AM To: Orion-Interest Subject: How to specify a servlet as a main page Hi all, Until now I have been using a boot.jsp page as the main entry point to my application. But now I have changed it to a servlet. On the web.xml I have made a servlet mapping, boot com.testing.es.start.Boot boot /start the if I write http://localhost/context/start it goes to this servlet. I would like that whenever the user writes http://localhost/context it is redirected to the boot servlet. I have tried it by putting a servlet mapping only with / but it does not work. I have tried also with the welcome-file-list boot and it does not work. How should I do it? Thanks
Re: ORMI port
Hello Jeremy, Yes, the ORMI port in orion is 23791 by default, and you can configure it in the config/rmi.xml file. -- Best regards, Rafaelmailto:[EMAIL PROTECTED]
Re: Another request for struts on orion
I had it running in 1.4.5 (as a test), following instructions on the struts install file. In 1.4.7 its not running anymore! Werner Bohl Systems Consultant - Original Message - From: Rick Hightower <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Sent: Tuesday, April 03, 2001 6:07 PM Subject: Another request for struts on orion > > > > I am also having a problem running struts on Orion. > > I followed the instructions and noticed that the directions to install the > sample application on Orion (as written) would not work. First it only > mentions copying one xml file not action.xml (it mentions > struts_config.xsl). Then it asks you to point the config setting to > action.xml without copying it to the web application root. The directions > seem to be missing some steps. > > I tried to improvise and tried to copy all xml (and tag definition files) > files from WEB-INF to the web app root of the sample, but I am running out > of ideas. I realize that Orion is popular and someone has this running > somewhere. And I also realize that this question has been asked for > > Where is a good place to search for the answers to this question? > Is there a way to search this mail archive? > > (BTW I did get struts to work on weblogic 5.1) > > --Rick Hightower > Software Developer > http://www.geocities.com/rick_m_hightower/ > > > -Original Message- > From: Shawn Stephens [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 03, 2001 2:42 PM > To: [EMAIL PROTECTED] > Subject: jndi > > > Hello, > Does anyone have the strut examples working with orionserver 1.4.5 > or later. If not, does anyone know where I can find more information on how > to get this to work. I have implemented the extra procedures required to > set up strut with orion. > > > Thanks, > Shawn Stephens > > I get this error when I try to run the app: > > 4/3/01 4:33 PM defaultWebApp: 1.4.7 Started > 4/3/01 4:33 PM strutsExample: database: init > 4/3/01 4:33 PM strutsExample: database: Initializing database servlet > 4/3/01 4:33 PM strutsExample: database: Loading database from > '/WEB-INF/database.xml' > 4/3/01 4:33 PM strutsExample: action: init > 4/3/01 4:33 PM strutsExample: action: Loading application resources from > resource org.apache.struts.example.ApplicationResources > 4/3/01 4:33 PM strutsExample: action: Initializing configuration from > resource path /WEB-INF/action.xml > 4/3/01 4:33 PM strutsExample: action: null > java.net.MalformedURLException: unknown protocol: jndi > at > org.apache.struts.digester.Digester.resolveEntity(Digester.java:581) > at > org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit > y(DefaultEntityHandler.java:750) > at > org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse > t(DefaultEntityHandler.java:566) > at > org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java > :1139) > at > org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc > anner.java:2201) > at > org.apache.xerces.framework.XMLDocumentScanner.access$000(XMLDocumentScanner > .java:86) > at > org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML > DocumentScanner.java:887) > at > org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. > java:381) > at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952) > at > org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) > at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) > at javax.xml.parsers.SAXParser.parse(SAXParser.java:143) > at org.apache.struts.digester.Digester.parse(Digester.java:716) > at > org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403) > at > org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) > at javax.servlet.GenericServlet.init(GenericServlet.java:258) > at com.evermind.server.http.HttpApplication.xc(JAX) > at com.evermind.server.http.HttpApplication.wu(JAX) > at com.evermind.server.http.HttpApplication.w4(JAX) > at com.evermind.server.http.HttpApplication.wf(JAX) > at com.evermind.server.http.HttpApplication.(JAX) > at com.evermind.server.Application.u2(JAX) > at com.evermind.server.http.en.u2(JAX) > at com.evermind.server.http.em.nu(JAX) > at com.evermind.server.http.eg.s9(JAX) > at com.evermind.server.http.eg.dr(JAX) > at com.evermind.util.f.run(JAX) > 4/3/01 4:33 PM strutsExample: action: Mapping for servlet 'action' = 'null' > 4/3/01 4:33 PM strutsExample: 1.4.7 Started > >
Re: EntityBean Events inside tx.
You can try using JMS (colas), JMS puede participar en la transaccion, si la transaccion es rolledback, entonces el mensaje no se envia. Dependiendo de la lana que tengas... puedes comprar SonicMQ, el cual es muy caro y bueno, o puedes usar un open source. Algunos son spyderMQ (www.jboss.org) o OpenJMS (www.exolab.org). En la siguiente version de EJB, ya existe un message-driven Bean que tambien puede ser util. Por cierto, jboss ya lo tiene implementado. Saludos y espero que esto te ayude, JC :-) --- [EMAIL PROTECTED] wrote: > We would like our entity beans to propagate events > in the same > fashion than regular java beans. > Therefore we must, for example, send events > notifying of property > changes inside the bean. The problem with this is > that we don't know > if this method was called inside a transaction that > might be > rolled back later on, and hence the property change > event > should not have been sent at all. > Clearly, we want to propagate the events only when > the transactions > are commited. > Is there a standard "pattern" to manage this sort of > thing ? > TIA > > Ramiro Diaz Trepat > Opetra > > __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
ORMI port
Does ORMI communicate over a particular port number, and is this configurable? Thanks. Jeremy __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
errors using Taglib
Hi I am trying to use my own custom taglibs in one of the jsp pages. Orion_HOME directory c:\temp\Orion I copied a jsp file "customjsp.jsp" into Orion_home\default-web-app\examples\jsp\myjsp\ directory I customized the web.xml in Orion_home\default-web-app\WEB-INF directory to include /webapp/DataTags.tld /WEB-INF/DataTags.tld I have/copied the DataTags.tld in Orion_home\default-web-app\WEB-INF directory and this tld uses the classes in "mytag.zip" I have included this zip file in my classpath as java -cp mytag.zip -jar orion.jar when starting the Orion. when I run my jsp thru the browser i get java.lang.IllegalArgumentException: Class datatags.ViObjTEI not found void com.evermind.server.http.d3.su(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse) boolean com.evermind.server.http.ef.s1(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean) void com.evermind.server.http.ef.do(java.lang.Thread) void com.evermind.util.f.run() appericiate your help cmpsuer __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: Collection Finders With Entity Argument Always Return Empty Collection
Try reversing the order of the fields in the block for the bean in the orion-ejb-jar.xml. Might also work just to change the order in the ejb-jar.xml, especially if you deploy from scratch. Jeff >-Original Message- >From: Peter Pontbriand [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, March 28, 2001 7:51 AM >To: Orion-Interest >Subject: Re: Collection Finders With Entity Argument Always >Return Empty >Collection > > >Hmm. it seems a good under-desk gibbering session is helps >focus the brain. >Once that was over with, I copied the generated finder code >(below) into an >EJB of my own and executed it, getting the same results - not >rows in the >ResultSet. I then wasted a whack of time trying to lay my >eyeballs on the >actual final SQL statement being tossed at the database. No >luck there, no >amount of downcasting to assorted Oracle JDBC Driver Statement >classes would >produce a way to get a human readable parameterized SQL statement. No >matter, though, since by chance I spotted the problem in the >generated code: > >THE ORION-GENERATED CODE REVERSES THE ORDER OF THE STATEMENT >PARAMETERS!!! > >Notice the criteria in the where clause: first is >CatalogEntryEJB.catalogIdentity, second is >CatalogEntryEJB.catalogLocale. >These are the two fields of the composite primary key of CatalogEJB, a >String and a Locale respectively. > >Now look at the code that inserts the values for these parameters: > >First is: statement.setString(1, >com.evermind.util.ObjectUtils.toString(primaryKey398.locale)); >And second is: statement.setString(2, primaryKey398.identity); > >The locale is being inserted where the identity should be, and >vice-versa. > >Bugzilla Bug #379 has been posted. Anybody got a >non-stomach-churningly-ugly >workaround idea? > >P. Pontbriand >Canlink Interactive Technologies, Inc. > > >- Original Message - >From: "Peter Pontbriand" <[EMAIL PROTECTED]> >To: "Orion-Interest" <[EMAIL PROTECTED]> >Sent: Tuesday, March 27, 2001 12:27 PM >Subject: Collection Finders With Entity Argument Always Return Empty >Collection > > >> >> java.sql.PreparedStatement statement = >connection.getCustomStatement("select >> CatalogEntryEJB.identity, CatalogEntryEJB.catalogIdentity, >> CatalogEntryEJB.catalogLocale, CatalogEntryEJB.label, >> CatalogEntryEJB.targetRoleIdentity, >CatalogEntryEJB.referenceidentity, >> CatalogEntryEJB.price, CatalogEntryEJB.discountRate, >> CatalogEntryEJB.parentreferenceidentity, >CatalogEntryEJB.referenceTypeInt, >> CatalogEntryEJB.productCode, CatalogEntryEJB.description, >> CatalogEntryEJB.extendedDescription, CatalogEntryEJB.listIndex, >> CatalogEntryEJB.created, CatalogEntryEJB.creator, >CatalogEntryEJB.modified, >> CatalogEntryEJB.modifier from CatalogEntryEJB where >> CatalogEntryEJB.catalogIdentity = ? and >CatalogEntryEJB.catalogLocale = >?"); >> try { >> com.canlink.components.base.LocalizedEntityPK primaryKey398 = >> argument0 == null ? null : >> ((com.canlink.components.base.LocalizedEntityPK) >> argument0.getPrimaryKey()); >> { >> if (primaryKey398 == null) { >> if (((java.util.Locale) null) == null) >statement.setNull(1, >> java.sql.Types.VARCHAR); >> else >> statement.setString(1, >> >> com.evermind.util.ObjectUtils.toString(((java.util.Locale) null))); >> if (((java.lang.String) null) == null) >statement.setNull(2, >> java.sql.Types.VARCHAR); >> else >> statement.setString(2, ((java.lang.String) null)); >> } >> else { >> if (primaryKey398.locale == null) statement.setNull(1, >> java.sql.Types.VARCHAR); >> else >> statement.setString(1, >> >> com.evermind.util.ObjectUtils.toString(primaryKey398.locale)); >> if (primaryKey398.identity == null) statement.setNull(2, >> java.sql.Types.VARCHAR); >> else >> statement.setString(2, primaryKey398.identity); >> } >> } >> } >> finally { >> } >> java.sql.ResultSet set = statement.executeQuery(); >> while (set.next()) { >> >> } >> > > > >
RE: Implementation inheritance with ejb...
I don't think you can have an inheritance structure like this. When you define the parent relationship, the EJB container wants a method 'abstract Category getParent()' which does not exist. I have a similar tree structure without the inheritance (also called 'Category'), and it works with some caveats. Watch out for the lack of support for bidirectional relationships; I only store the parent relationship and implement the getCategoryChildren() business method with a call to ((CategoryHome)getEJBHome()).findByParent(). There are other ways but I found this to be the most pleasant. Inheritance wasn't really designed into the EJB specification. You can use interface inheritance, but otherwise you're asking for pain. Jeff >-Original Message- >From: Alex Paransky [mailto:[EMAIL PROTECTED]] >Sent: Thursday, March 29, 2001 7:32 PM >To: Orion-Interest >Subject: Implementation inheritance with ejb... > > >I have a general concept of a TreeNode which could contain a >parent (another >TreeNode) and some children, a Collection of TreeNodes. So I >have defined a >basic TreeNode such as: > >public class TreeNode ... { > public void setParent(TreeNode parent) throws RemoteException; > public TreeNode getParent() throws RemoteException; > > public void setChildren(Collection children) throws RemoteException; > public Collection getChildren() throws RemoteException; >} > >My TreeNodeBean, has the appropriate abstract functions. > >Now, I have something called Category, which has a parent/children >relationship with other categories. So, when creating a >Category, I defined >it like this: > >public interface Category extends TreeNode { > public String getName() throws RemoteException; > public void setName(String string) throws RemoteException >} > >similary, I defined a CategoryBean as an abstract class which >is based on >TreeNodeBean, with the additional abstract functions to >get/set name. I >have created a one-to-many relationship between Categories, >using parent to >specify the parent for particular category, and children to >indicate the >children Collection. > >When I try to deploy the Category bean, I get the following >exception from >Orion during deployment: > >Auto-deploying model (ejb-jar.xml had been touched since the previous >deployment)... java.lang.NullPointerException >at >com.evermind.server.ejb.deployment.ContainerManagedField.aep(JAX) >at com.evermind.server.ejb.database.fj.afk(JAX) >at com.evermind.server.ejb.compilation.gf.ah9(JAX) >at com.evermind.server.ejb.compilation.f9.ah9(JAX) >at com.evermind.server.ejb.compilation.f9.s7(JAX) >at com.evermind.server.ejb.compilation.gf.s7(JAX) >at com.evermind.server.ejb.EJBContainer.b_(JAX) >at com.evermind.server.Application.b_(JAX) >at com.evermind.server.Application.gj(JAX) >at com.evermind.server.ApplicationServer.r2(JAX) >at com.evermind.server.ApplicationServer.aq0(JAX) >at com.evermind.server.ApplicationServer.gj(JAX) >at com.evermind.server.hk.run(JAX) >at java.lang.Thread.run(Thread.java:484) >at com.evermind.util.f.run(JAX) > >Is this normal? What does this exception mean? > >Thanks. >-AP_ > > >
Another request for struts on orion
I am also having a problem running struts on Orion. I followed the instructions and noticed that the directions to install the sample application on Orion (as written) would not work. First it only mentions copying one xml file not action.xml (it mentions struts_config.xsl). Then it asks you to point the config setting to action.xml without copying it to the web application root. The directions seem to be missing some steps. I tried to improvise and tried to copy all xml (and tag definition files) files from WEB-INF to the web app root of the sample, but I am running out of ideas. I realize that Orion is popular and someone has this running somewhere. And I also realize that this question has been asked for Where is a good place to search for the answers to this question? Is there a way to search this mail archive? (BTW I did get struts to work on weblogic 5.1) --Rick Hightower Software Developer http://www.geocities.com/rick_m_hightower/ -Original Message- From: Shawn Stephens [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 2:42 PM To: [EMAIL PROTECTED] Subject: jndi Hello, Does anyone have the strut examples working with orionserver 1.4.5 or later. If not, does anyone know where I can find more information on how to get this to work. I have implemented the extra procedures required to set up strut with orion. Thanks, Shawn Stephens I get this error when I try to run the app: 4/3/01 4:33 PM defaultWebApp: 1.4.7 Started 4/3/01 4:33 PM strutsExample: database: init 4/3/01 4:33 PM strutsExample: database: Initializing database servlet 4/3/01 4:33 PM strutsExample: database: Loading database from '/WEB-INF/database.xml' 4/3/01 4:33 PM strutsExample: action: init 4/3/01 4:33 PM strutsExample: action: Loading application resources from resource org.apache.struts.example.ApplicationResources 4/3/01 4:33 PM strutsExample: action: Initializing configuration from resource path /WEB-INF/action.xml 4/3/01 4:33 PM strutsExample: action: null java.net.MalformedURLException: unknown protocol: jndi at org.apache.struts.digester.Digester.resolveEntity(Digester.java:581) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit y(DefaultEntityHandler.java:750) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse t(DefaultEntityHandler.java:566) at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java :1139) at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc anner.java:2201) at org.apache.xerces.framework.XMLDocumentScanner.access$000(XMLDocumentScanner .java:86) at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML DocumentScanner.java:887) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:952) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at javax.xml.parsers.SAXParser.parse(SAXParser.java:143) at org.apache.struts.digester.Digester.parse(Digester.java:716) at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1403) at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473) at javax.servlet.GenericServlet.init(GenericServlet.java:258) at com.evermind.server.http.HttpApplication.xc(JAX) at com.evermind.server.http.HttpApplication.wu(JAX) at com.evermind.server.http.HttpApplication.w4(JAX) at com.evermind.server.http.HttpApplication.wf(JAX) at com.evermind.server.http.HttpApplication.(JAX) at com.evermind.server.Application.u2(JAX) at com.evermind.server.http.en.u2(JAX) at com.evermind.server.http.em.nu(JAX) at com.evermind.server.http.eg.s9(JAX) at com.evermind.server.http.eg.dr(JAX) at com.evermind.util.f.run(JAX) 4/3/01 4:33 PM strutsExample: action: Mapping for servlet 'action' = 'null' 4/3/01 4:33 PM strutsExample: 1.4.7 Started
RE: Concurrent modification
ConcurrentModificationException is the result of a fail-fast iterator in the JDK 1.2+ collections framework. If one thread is iterating a collection and another thread modifies the collection, the next call to the iterator will immediately throw this exception. In the ugly old days of Hashtable and Vector, the results of concurrent modification were undefined. You need to rethink your synchronization strategy for whatever shared data you are initializing in initsequence.jsp. Jeff -Original Message- From: Ing. Nicola Folino [mailto:[EMAIL PROTECTED]] Sent: Friday, March 30, 2001 12:36 AM To: Orion-Interest Subject: Concurrent modification I have a web application with some jsp pages. If I click twice on a link to another jsp page, I get the exception: java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.next(Unknown Source) at java.util.Collections$6.nextElement(Unknown Source) at __jspPage21_initsequence_jsp._jspService(__jspPage21_initsequence_jsp .java:38) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xj(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX) at com.evermind.server.http.ef.do(JAX) at com.evermind.util.f.run(JAX) Keep in mind that go to the other link through an intermediate page which uses the directive . The same application runs perfectly on JRun, but I saw that Allaire J2EE Server moves from standard, so I'd like to develope on Orion... Thanks
RE: RMI/IIOP support in orion...
You want an appserver that uses RMI-IIOP natively. Orion isn't one of these. You would have to write an intermediate server that translates all CORBA/IIOP calls into EJB/ORMI calls. You will more than save on development costs by just spending the money up front for an IIOP-based server like BEA or Borland. If you have CORBA clients, Orion is probably not the right tool for you. Jeff >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, April 03, 2001 2:40 PM >To: Orion-Interest >Subject: RMI/IIOP support in orion... > > >Hi, > >I am relatively new to appserver... > >We are thinking of hosting a telecom app on an >appserverThe inetrface >is to the eventual users >of this application(s) has to be CORBA... so, please advice me >on options >available to us : > >Assuming that we would have a set of EJBs , how would a client >that uses >CORBA bind to these? > > >Thanks in advance... > > >Jobin Thomas > >[EMAIL PROTECTED] > > >
RE: Internal Server Error
You can also redirect stout to a file. Usage: java -jar orion.jar [switches] -install - installs the server, activates the admin account and rewrites text fi les to match the OS linefeed etc -quiet - surpress standard output -userThreads - enables context lookup support from user-created threads -config - specifies a location to server.xml -console - launches the admin console in-process -validateXML - valides (strictly) the XML files when reading them. -out [file] - specifies a file to route standard output to -err [file] - specifies a file to route error output to -version - Prints the version and exits. -? -help - print (this) help message so java -jar -out stdout.txt -err stderr.txt This should work from a service AFAIK >>> [EMAIL PROTECTED] 04/04/01 01:36am >>> Thank you for the replies! > From: Mike Cannon-Brookes > Sent: Tuesday, April 03, 2001 13:56 > > - check in your application.log file for that application, > the errors will be there Thanks, it's there, and ehh, I've found an interesting problem. So it was me.. :| In the application log (\application-deployments\\application.log ) I've found a full stacktrace > From: Johan Fredriksson > Sent: Tuesday, April 03, 2001 14:34 > > I use this command line for starting orion on a windows machine > > java -jar -Djdbc.connection.debug=true orion.jar 1> > \orionlog\systemout.txt > 2> \orionlog\systemerr.txt Thank you also for the reply, but our orion running as a service, so I'm in doubt if it can work. But I'll try it of course. BR, Adam
RE: Servlet blues
By default, a single instance of your servlet will be created by the container to service all requests. The doGet() is not synchronized so it must be written thread-safe. Alternatively, you can have your servlet implement the SingleThreadModel interface. This instructs the container to create a pool of servlets and synchronize access to them. I do a lot of image generation from servlets, but since I have a reasonably finite quantity of images I don't bother with SingleThreadModel and just cache them in a synchronized HashMap. The overhead of creating the ImageBuffer, etc for the first instances is small. BTW, you might want to use the free Acme GIFEncoder (http://www.acme.com) instead of Sun's jpeg encoder. I believe the jpeg encoder is only available in the Sun JVM and jpeg encoding is pretty lousy for flat expanses of color anyways. Jeff >-Original Message- >From: Huibert Aalbers Indaberea [mailto:[EMAIL PROTECTED]] >Sent: Friday, March 30, 2001 9:53 AM >To: Orion-Interest >Subject: Servlet blues > > >Hi everyone, > >I have written a servlet that dynamically generates an image >using Orion. >Everything works fine under light load. However, under heavy load, when >multiple users are using it simultaneously, it fails, >presenting erroneous >data. > >Does every request instantiate a new servlet class or is the same one >shared? Is the doGet method synchronized? Is this behaviour specific to >Orion? > >In a related question, sometimes, under heavy load i get the following >exception: > >java.io.IOException: reading encoded JPEG stream >at sun.awt.image.codec.JPEGImageEncoderImpl.writeJPEGStream(Native >Method) > >Has anyone seen this problem before? > >Thanks a lot for your help. > >Huibert > > >
Deploy EAR/WAR via HTTP upload
Is it possible to deploy an EAR/WAR if uploaded via HTTP? If so, how? Regards,Mark A. RichmanEmpire Software, Inc.Expert Software Development & Consulting+ Internet/Intranet/Extranet+ E-Commerce & B2B+ Java, C/C++, Visual Basic+ XML, SOAP, and Web Services+ Linux & Open-Source Solutions+ Database Applications+ ...and MUCH more!http://www.empsoft.com[EMAIL PROTECTED]Tel: 954-234-9049 BEGIN:VCARD VERSION:2.1 N:Richman;Mark;A.;Mr. FN:Mark A. Richman NICKNAME:Mark ORG:Empire Software, Inc. TITLE:President NOTE;ENCODING=QUOTED-PRINTABLE:Empire Software, Inc.=0D=0AExpert Software Development & Consulting=0D=0A= =0D=0A+ Internet/Intranet/Extranet=0D=0A+ E-Commerce & B2B=0D=0A+ Java, C/C+= +, Visual Basic=0D=0A+ XML, SOAP, and Web Services=0D=0A+ Linux & Open-Sourc= e Solutions=0D=0A+ Database Applications=0D=0A+ ...and MUCH more!=0D=0A ADR;WORK:;954-234-9049;9932 NW 57 Manor;Coral Springs;FL;33076;USA LABEL;WORK;ENCODING=QUOTED-PRINTABLE:954-234-9049=0D=0A9932 NW 57 Manor=0D=0ACoral Springs, FL 33076=0D=0AUSA URL: URL:http://www.empsoft.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20010228T000841Z END:VCARD
RE: findByXXX() with an ORDER BY parameter for Container-managed bean ?
>From: Markus Holmberg [mailto:[EMAIL PROTECTED]] > >You are relying on an implementation detail of your container. > >The reason it has worked for you so far is because your container has >used an instance of java.util.ArrayList/LinkedList, which indeed does >guarantee order. But CMP Entity EJB's finder methods do not return >java.util.List's! They return java.util.Collection. Your functionality >will break when the container changes it's implementation. I'll bet a case of beer that you can't find a J2EE server that uses an unordered implementation for the Collection :-) I would guess that Orion actually walks the RowSet from the Iterator rather than trying to shove everything into core first. Otherwise finders are going to choke on big queries. I think assuming this behavior is reasonably portable. My only worry is whether or not other app servers let you customize the finder sql so easily. Jeff
RMI/IIOP support in orion...
Hi, I am relatively new to appserver... We are thinking of hosting a telecom app on an appserverThe inetrface is to the eventual users of this application(s) has to be CORBA... so, please advice me on options available to us : Assuming that we would have a set of EJBs , how would a client that uses CORBA bind to these? Thanks in advance... Jobin Thomas [EMAIL PROTECTED]
RE: How to specify a servlet as a main page
Title: SV: How to specify a servlet as a main page The simple solution is to write a simple JSP page and have it forward to your servlet. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Patrik AnderssonSent: Tuesday, April 03, 2001 10:57 AMTo: Orion-InterestSubject: SV: How to specify a servlet as a main page As far as I know, it is simply not possible to have {file-spec} {file-spec} be something other than a HTML or JSP page. The reason for this I've heard is that some people just do not want this functionality. Don't ask me why. regards, Patrik Andersson
Re: How to specify a servlet as a main page
I think you need to map your servlet to the url "/", and handle from there. tim. > Hi all, > > Until now I have been using a boot.jsp page as the main entry point to my > application. But now I have changed it to a servlet. > > On the web.xml I have made a servlet mapping, > > > boot > com.testing.es.start.Boot > > > boot > /start > > > > the if I write http://localhost/context/start it goes to this servlet. > > I would like that whenever the user writes http://localhost/context it is > redirected to the boot servlet. > > I have tried it by putting a servlet mapping only with / but it does not work. > > I have tried also with the welcome-file-list > > > boot > > > and it does not work. > > How should I do it? > > Thanks > >
RE: Orion OpenTool to JBuilder 4?
Yep sure did, and this is only debugging but does not give you the advantage of auto deploy without using other tools and things like that. Running the whole app JBuilder would be really nice, especially with JSP and all that. R At 12:18 PM 4/3/2001 -0400, you wrote: >Have you looked at >http://www.orionsupport.com/articles/jbuilder-debugging.html ? > >At 09:41 AM 4/3/01 +0200, you wrote: > > > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Robert S. > > > Sfeir > > > Sent: Monday, April 02, 2001 8:02 PM > > > To: Orion-Interest > > > Subject: Orion OpenTool to JBuilder 4? > > > > > > > > > I've been trying to find ANY information about pluging in > > > Orion as part of > > > the servers inside JBuilder using the OpenTool API. Doesn't > > > look like > > > anyone's written one. I've sent an email to the Orion folks, > > > no response. > > > > > > I have a source code example here that shows how to do this > > > with Tomcat, > > > and it doesn't look like I need THAT much more work to > > > convert it over to > > > make it work with Orion, I just don't want to spin my wheels > > > doing it if > > > someone has already done this. > > > >I haven't, and I think nobody else has since I've been following both the > >orion list and the jbuilder opentool newsgroup for some time now, but > >haven't heard of it. > >It would be nice if you could write it, although I'm quite content using > >jbuilder4 with the antrunner opentool (available from borland's > >codecentral). > > > > > > > > I know you can use Orion from the run menu, but there seem to > > > be other > > > benefits from having it as an application server in JBuilder, > > > primarily for > > > deployment purposes. > > > > > > Thanks. > > > R > > > > > > > > > Robert S. Sfeir > > > Director of Software Development > > > PERCEPTICON corporation > > > San Francisco, CA 94123 > > > w - http://www.percepticon.com/ > > > e- [EMAIL PROTECTED] > > > t - (415) 749-2900 x205 > > > > > > Robert S. Sfeir Director of Software Development PERCEPTICON corporation San Francisco, CA 94123 w - http://www.percepticon.com/ e- [EMAIL PROTECTED] t - (415) 749-2900 x205
RE: How to specify a servlet as a main page
I think to do this you would need to have an index.jsp and configured web.xml's "Welcome.." entry to recognise it. Then simply forward or redirect within index.jsp. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Johnson, > Robert > Sent: Tuesday, April 03, 2001 9:11 AM > To: Orion-Interest > Subject: RE: How to specify a servlet as a main page > > > You might try putting a jsp page called default.jsp in the root of you web > application. Just put the following lines in the default.jsp. > > > > -Original Message- > From: Ismael [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 03, 2001 9:26 AM > To: Orion-Interest > Subject: How to specify a servlet as a main page > > > Hi all, > > Until now I have been using a boot.jsp page as the main entry point to my > application. But now I have changed it to a servlet. > > On the web.xml I have made a servlet mapping, > > > boot > com.testing.es.start.Boot > > > boot > /start > > > > the if I write http://localhost/context/start it goes to this servlet. > > I would like that whenever the user writes http://localhost/context it is > redirected to the boot servlet. > > I have tried it by putting a servlet mapping only with / but it does not > work. > > I have tried also with the welcome-file-list > > > boot > > > and it does not work. > > How should I do it? > > Thanks > >
RE: Does any one has a solution for the "domain was null" message???
Earl, I was only replying to your message where you indicate: "I suggest you try the ApplicationInitialContextFactory instead of theApplicationClientInitialContextFactory in your situation." I was only saying that using ApplicationInitialcontextFactory will not work in my case. There is no aspect that you do not understand. It's quite simple. Just try to create a new InitialContext(p) where p contains ApplicationClientInitialContextFactory. During the creation of InitialContext you will get a NullPointerException with the message of "domain was null". Jason Smith did a good job of documenting of how to connect two Orion servers together using RMI.XML file, however, this does not seem to be J2EE compliant. I still want to use the solution where InitialContext can be used to connect to a different server. For now, we are deploying our application in the same server using the parent="application-name" tag. -AP_ -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Earl MarwilSent: Tuesday, April 03, 2001 8:00 AMTo: Orion-InterestCc: [EMAIL PROTECTED]Subject: RE: Does any one has a solution for the "domain was null" message???If you use the ApplicationClientContextFactory it will read META-INF/application-client.xml which is where you can specify the and elements... There still must be some other aspect of your situation that I don't understand.In answer to my own question, I finally discovered how the rmi authentication works in conjunction with an EJBUserManager. It was not clear from the error messages. After reading the article at orionsupport on the DataSourceUserManager, studying the orion examples and docs and an intuitive guess, I added the permissions to a group in the application's principals.xml, e.g.:rmi users(Can someone explain the permissions in relation to the groups or point me to a reference? I'm still not sure which of the two or whether both are required and why. It works for now...)This group name is added in the orion-application.xml which also directs the application to use the custom EJB user manager:... ...Now my application client is successful in connecting to the rmi server, authenticating a user account via the EJBUserManager and accessing my application.At 18:37 3/30/2001 -0800, you wrote: The problem, is that I AM connecting to ANOTHER server from a client. It'sjust happends that the client is an Orion. UsingApplicationInitialContextFactory attempts to read META-INF/application.xml,but I need to specify , and other such entries which youcannot be put into application.xml.-AP_-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On Behalf Of Earl MarwilSent: Friday, March 30, 2001 10:21 AMTo: Orion-InterestSubject: Re: Does any one has a solution for the "domain was null"message???There may be a clue to this question in the following error message that isgenerated when trying thecom.evermind.server.ApplicationInitialContextFactory from an applicationclient:"javax.naming.NamingException:com.evermind.server.ApplicationInitialContextFactory should only be usedinside Orion server environments. For clientcom.evermind.server.ApplicationClientInitialContextFactory orcom.evermind.server.rmi.RMIInitialContextFactory should be used"I suggest you try the ApplicationInitialContextFactory instead of theApplicationClientInitialContextFactory in your situation.Somewhat related, I have been trying to get an application client working.I have succeeded in connecting to the orion rmi server, looking up an ejb,and retrieving data. I would like to authenticate against theEJBUserManager that is configured for our web applications. However, itappears that the rmi authentication defaults to XMLUserManager - i.e., Ican only authenticate for users defined in the principals.xml file. Thiscould be related to the orion Bugzilla #374. Can anyone provide someinsight into the RMI authentication? Thanks.Regards,EarlAt 18:04 3/29/2001 -0800, you wrote:>Could someone help me with this problem. When trying to create a new>InitialContext with factory>com.evermind.server.ApplicationClientInitialContextFactory from inside of>OrionServer always throws a NullPointerException, with message "domain was>null". The same code works fine from external client.>>Has anyone fixed this problem? Has anyone seen this problem? Is anyone>trying to deploy JSP and EJB parts on different Orion servers, or are all>people comfortable running their models in front of the firewalls?>>A
SV: How to specify a servlet as a main page
Title: SV: How to specify a servlet as a main page As far as I know, it is simply not possible to have {file-spec} {file-spec} be something other than a HTML or JSP page. The reason for this I've heard is that some people just do not want this functionality. Don't ask me why. regards, Patrik Andersson
Re: isolation levels
See the URL below. The constants defined in the java.sql.Connection class define what they mean. http://java.sun.com/j2se/1.3/docs/api/java/sql/Connection.html Also, Oreilly's Enterprise JavaBeans 2nd edition has a very good overview of what these isolation levels mean. Jeff. Dan North wrote: > Hi list. > > There is an isolation="serializable|committed|uncommitted|repeatable_read" > attribute for that isn't very clearly documented. > > Does anyone know what these levels do (or where I should look to find > out)? In particular, on one finder method (findByParent for a tree-based > data structure) I get a deadlock (in the app server, not the database) if > the finder method is fired twice in rapid succession, and I'm wondering > whether changing the isolation to "repeatable_read" might cure this? > > Or am I barking up a completely inappropriate tree? > > Thanks, > Dan/tastapod > > -- > Dan North > VP Development - Cadrion Software Ltd - +44 (0)20 7440 9550 > > CONFIDENTIALITY > This e-mail and any attachments are confidential > and may also be privileged. If you are not the named recipient, > please notify the sender immediately and do not disclose the > contents to another person, use it for any purpose, or store > or copy the information in any medium -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
RE: isolation levels
Try a search on ANSI/ISO SQL isolation levels. Regards, Arved Sandstrom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Dan North Sent: Tuesday, April 03, 2001 12:27 PM To: Orion-Interest Subject: isolation levels Hi list. There is an isolation="serializable|committed|uncommitted|repeatable_read" attribute for that isn't very clearly documented. Does anyone know what these levels do (or where I should look to find out)? In particular, on one finder method (findByParent for a tree-based data structure) I get a deadlock (in the app server, not the database) if the finder method is fired twice in rapid succession, and I'm wondering whether changing the isolation to "repeatable_read" might cure this? Or am I barking up a completely inappropriate tree? Thanks, Dan/tastapod -- Dan North VP Development - Cadrion Software Ltd - +44 (0)20 7440 9550 CONFIDENTIALITY This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium
RE: EntityBean Events inside tx.
Here's a description of an implementation of the Observer pattern for EJB. http://www.theserverside.com/resources/ObserverPattern.jsp An alternative is to implement your 'Change Events' as JMS messages, if you are using 'Transacted JMS' messages are only 'published' when the encompassing Tx is committed. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 03, 2001 8:25 AM > To: Orion-Interest > Subject: EntityBean Events inside tx. > > > We would like our entity beans to propagate events in the same > fashion than regular java beans. > Therefore we must, for example, send events notifying of property > changes inside the bean. The problem with this is that we don't know > if this method was called inside a transaction that might be > rolled back later on, and hence the property change event > should not have been sent at all. > Clearly, we want to propagate the events only when the transactions > are commited. > Is there a standard "pattern" to manage this sort of thing ? > TIA > > Ramiro Diaz Trepat > Opetra > >
RE: EntityBean Events inside tx.
You could wrap your whole process under a session bean and let the session bean to fire events for you based on your transaction outcome. A session bean implemented interface SessionSynchronization will be notified when transaction is commited or aborted. Conrad -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 8:25 AM To: Orion-Interest Subject: EntityBean Events inside tx. We would like our entity beans to propagate events in the same fashion than regular java beans. Therefore we must, for example, send events notifying of property changes inside the bean. The problem with this is that we don't know if this method was called inside a transaction that might be rolled back later on, and hence the property change event should not have been sent at all. Clearly, we want to propagate the events only when the transactions are commited. Is there a standard "pattern" to manage this sort of thing ? TIA Ramiro Diaz Trepat Opetra
RE: Orion OpenTool to JBuilder 4?
Have you looked at http://www.orionsupport.com/articles/jbuilder-debugging.html ? At 09:41 AM 4/3/01 +0200, you wrote: > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Robert S. > > Sfeir > > Sent: Monday, April 02, 2001 8:02 PM > > To: Orion-Interest > > Subject: Orion OpenTool to JBuilder 4? > > > > > > I've been trying to find ANY information about pluging in > > Orion as part of > > the servers inside JBuilder using the OpenTool API. Doesn't > > look like > > anyone's written one. I've sent an email to the Orion folks, > > no response. > > > > I have a source code example here that shows how to do this > > with Tomcat, > > and it doesn't look like I need THAT much more work to > > convert it over to > > make it work with Orion, I just don't want to spin my wheels > > doing it if > > someone has already done this. > >I haven't, and I think nobody else has since I've been following both the >orion list and the jbuilder opentool newsgroup for some time now, but >haven't heard of it. >It would be nice if you could write it, although I'm quite content using >jbuilder4 with the antrunner opentool (available from borland's >codecentral). > > > > > I know you can use Orion from the run menu, but there seem to > > be other > > benefits from having it as an application server in JBuilder, > > primarily for > > deployment purposes. > > > > Thanks. > > R > > > > > > Robert S. Sfeir > > Director of Software Development > > PERCEPTICON corporation > > San Francisco, CA 94123 > > w - http://www.percepticon.com/ > > e- [EMAIL PROTECTED] > > t - (415) 749-2900 x205 > > > >
RE: How to upgrade Xalan / Xerces?
Overwriting is one option but preferred way is to keep in you application lib directory and include in classpath. I ran into same kind of problems before then I wrote my batch file which takes all the jar files in the application lib directory and adds into classpath. This was pretty useful for all my applications. I am including my batch files. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: Peter Peltonen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 5:45 AM To: Orion-Interest Subject: How to upgrade Xalan / Xerces? I want to upgrade Xalan and Xerces to newer versions that comes with JAXP found at http://java.sun.com/xml? Do I just overwrite the .jar files? Regards, Peter startserver.bat acp.bat ocp.bat
RE: How to specify a servlet as a main page
You might try putting a jsp page called default.jsp in the root of you web application. Just put the following lines in the default.jsp. -Original Message- From: Ismael [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 9:26 AM To: Orion-Interest Subject: How to specify a servlet as a main page Hi all, Until now I have been using a boot.jsp page as the main entry point to my application. But now I have changed it to a servlet. On the web.xml I have made a servlet mapping, boot com.testing.es.start.Boot boot /start the if I write http://localhost/context/start it goes to this servlet. I would like that whenever the user writes http://localhost/context it is redirected to the boot servlet. I have tried it by putting a servlet mapping only with / but it does not work. I have tried also with the welcome-file-list boot and it does not work. How should I do it? Thanks
RE: Internal Server Error
Thank you for the replies! > From: Mike Cannon-Brookes > Sent: Tuesday, April 03, 2001 13:56 > > - check in your application.log file for that application, > the errors will be there Thanks, it's there, and ehh, I've found an interesting problem. So it was me.. :| In the application log (\application-deployments\\application.log ) I've found a full stacktrace > From: Johan Fredriksson > Sent: Tuesday, April 03, 2001 14:34 > > I use this command line for starting orion on a windows machine > > java -jar -Djdbc.connection.debug=true orion.jar 1> > \orionlog\systemout.txt > 2> \orionlog\systemerr.txt Thank you also for the reply, but our orion running as a service, so I'm in doubt if it can work. But I'll try it of course. BR, Adam
RE: How to upgrade Xalan / Xerces?
You will also need to delete the parser.jar file that comes with orion. -Original Message- From: Markus Holmberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 03, 2001 10:15 AM To: Orion-Interest Cc: Orion-Interest Subject: Re: How to upgrade Xalan / Xerces? Yes. Markus On Tue, Apr 03, 2001 at 03:44:32PM +0300, Peter Peltonen wrote: > > I want to upgrade Xalan and Xerces to newer versions that comes with JAXP > found at > http://java.sun.com/xml? Do I just overwrite the .jar files? > > > Regards, > Peter -- Markus Holmberg | Give me Unix or give me a typewriter. [EMAIL PROTECTED] | http://www.freebsd.org/
web application classloading
short: Orion's classloading seems to be broken. It handles classes differently depending on whether they're loaded from WEB-INF/lib or WEB-INF/classes. I see related bugs in the Orion bugzilla database (http://bugzilla.orionserver.com/bugzilla/show_bug.cgi?id=340) with no comments or solutions metioned.. long: I'm having some troubles with the Orion web application classloader. I'm currently using Orion 1.4.5 (I tried "java -jar autoupdate.jar" but it only asks me "Overwrite /config/database-schemas/sapdb.xml" and doesn't seem to do anything else). I'm running Linux, Sun JDK1.3_02. I'm trying to get the IdooXoap 1.1.1 toolkit running (http://www.idoox.com). It is delivered in an unpacked WAR directory. Classes seem to load from the WEB-INF/lib directory, but the application fails when those classes from WEB-INF/lib try to use Class.forName() to load classes that are in WEB-INF/classes. (Confused yet?) Here's what the default setup is, and what works on most other application servers: IdooXoap/WEB-INF/etc/config.xml IdooXoap/WEB-INF/lib/IdooXoap.jar IdooXoap/WEB-INF/lib/log4j.jar IdooXoap/WEB-INF/lib/xerces.jar IdooXoap/WEB-INF/classes/demos/.. The servlet that is being called is inside of IdooXoap.jar, and it tries to load the demos from the "classes" subdirectory. This fails - ClassNotFoundException. Here's how I've tried to fix it: 1) Create "IdooXoap/WEB-INF/lib/demos.jar" with the contents of "classes/demos". This fails again with ClassNotFound. 2) Unpack all of the libraries from "lib" into "classes" (and then remove everything from the "lib" directory). This works!! 3) Create a giant JAR of all classes in the "lib" directory (and then remove the "classes" directory). This works too!! court
isolation levels
Hi list. There is an isolation="serializable|committed|uncommitted|repeatable_read" attribute for that isn't very clearly documented. Does anyone know what these levels do (or where I should look to find out)? In particular, on one finder method (findByParent for a tree-based data structure) I get a deadlock (in the app server, not the database) if the finder method is fired twice in rapid succession, and I'm wondering whether changing the isolation to "repeatable_read" might cure this? Or am I barking up a completely inappropriate tree? Thanks, Dan/tastapod -- Dan North VP Development - Cadrion Software Ltd - +44 (0)20 7440 9550 CONFIDENTIALITY This e-mail and any attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose, or store or copy the information in any medium
EntityBean Events inside tx.
We would like our entity beans to propagate events in the same fashion than regular java beans. Therefore we must, for example, send events notifying of property changes inside the bean. The problem with this is that we don't know if this method was called inside a transaction that might be rolled back later on, and hence the property change event should not have been sent at all. Clearly, we want to propagate the events only when the transactions are commited. Is there a standard "pattern" to manage this sort of thing ? TIA Ramiro Diaz Trepat Opetra
RE: Does any one has a solution for the "domain was null" message???
If you use the ApplicationClientContextFactory it will read META-INF/application-client.xml which is where you can specify the and elements... There still must be some other aspect of your situation that I don't understand. In answer to my own question, I finally discovered how the rmi authentication works in conjunction with an EJBUserManager. It was not clear from the error messages. After reading the article at orionsupport on the DataSourceUserManager, studying the orion examples and docs and an intuitive guess, I added the permissions to a group in the application's principals.xml, e.g.: rmi users (Can someone explain the permissions in relation to the groups or point me to a reference? I'm still not sure which of the two or whether both are required and why. It works for now...) This group name is added in the orion-application.xml which also directs the application to use the custom EJB user manager: ... ... Now my application client is successful in connecting to the rmi server, authenticating a user account via the EJBUserManager and accessing my application. At 18:37 3/30/2001 -0800, you wrote: The problem, is that I AM connecting to ANOTHER server from a client. It's just happends that the client is an Orion. Using ApplicationInitialContextFactory attempts to read META-INF/application.xml, but I need to specify , and other such entries which you cannot be put into application.xml. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Earl Marwil Sent: Friday, March 30, 2001 10:21 AM To: Orion-Interest Subject: Re: Does any one has a solution for the "domain was null" message??? There may be a clue to this question in the following error message that is generated when trying the com.evermind.server.ApplicationInitialContextFactory from an application client: "javax.naming.NamingException: com.evermind.server.ApplicationInitialContextFactory should only be used inside Orion server environments. For client com.evermind.server.ApplicationClientInitialContextFactory or com.evermind.server.rmi.RMIInitialContextFactory should be used" I suggest you try the ApplicationInitialContextFactory instead of the ApplicationClientInitialContextFactory in your situation. Somewhat related, I have been trying to get an application client working. I have succeeded in connecting to the orion rmi server, looking up an ejb, and retrieving data. I would like to authenticate against the EJBUserManager that is configured for our web applications. However, it appears that the rmi authentication defaults to XMLUserManager - i.e., I can only authenticate for users defined in the principals.xml file. This could be related to the orion Bugzilla #374. Can anyone provide some insight into the RMI authentication? Thanks. Regards, Earl At 18:04 3/29/2001 -0800, you wrote: >Could someone help me with this problem. When trying to create a new >InitialContext with factory >com.evermind.server.ApplicationClientInitialContextFactory from inside of >OrionServer always throws a NullPointerException, with message "domain was >null". The same code works fine from external client. > >Has anyone fixed this problem? Has anyone seen this problem? Is anyone >trying to deploy JSP and EJB parts on different Orion servers, or are all >people comfortable running their models in front of the firewalls? > >Any help would be appreciated > >Thanks for your help. >-AP_ Earl Marwil SCIENTECH, Inc. 1690 International Way Idaho Falls, ID 83402 208.525.3717 Earl Marwil SCIENTECH, Inc. 1690 International Way Idaho Falls, ID 83402 208.525.3717
How to specify a servlet as a main page
Hi all, Until now I have been using a boot.jsp page as the main entry point to my application. But now I have changed it to a servlet. On the web.xml I have made a servlet mapping, boot com.testing.es.start.Boot boot /start the if I write http://localhost/context/start it goes to this servlet. I would like that whenever the user writes http://localhost/context it is redirected to the boot servlet. I have tried it by putting a servlet mapping only with / but it does not work. I have tried also with the welcome-file-list boot and it does not work. How should I do it? Thanks
session shared between two web-components of the same applications
I have two web applications that I would like to integrate on an application. What should I do? Until now with only one application on the file default web-site.xml I specify which web applications to load and which context to use Now if I put two web-components on the same application what shoud I do? or I should change the context ? I suppose that the session data will be shared between the two web apps that belongs to the same application, doesn't it? Thanks
Re: How to upgrade Xalan / Xerces?
Yes. Markus On Tue, Apr 03, 2001 at 03:44:32PM +0300, Peter Peltonen wrote: > > I want to upgrade Xalan and Xerces to newer versions that comes with JAXP > found at > http://java.sun.com/xml? Do I just overwrite the .jar files? > > > Regards, > Peter -- Markus Holmberg | Give me Unix or give me a typewriter. [EMAIL PROTECTED] | http://www.freebsd.org/
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 be great! Give us what you can and we may be able to help... Cheers Ray --- Alex Paransky <[EMAIL PR
Returning Collections from ejbFindXXX()
Hi, Has anyone tried to return Collections from a BMP ejbFindAll() type of operation? I return an ArrayList of String objects, the client receives this list ok but gets a cast exception on trying to extract the String from the list. eg. public Collection ejbFindAll() throws java.rmi.RemoteException, javax.ejb.FinderException { ArrayList v = new ArrayList(); v.add("First"); v.add("Second"); return v; } and the client code: Collection coll = home.findAll(); System.out.println(coll.size() + coll.toString()); // this shows correct count and contents: "2[First, Second]" Iterator iterator = coll.iterator(); while(iterator.hasNext()) { String s = (String)iterator.next();// class cast exception System.out.println("Desc=" + s); } On closer inspection with a debugger it turns out the objects in the list are of class __Proxy5, some sort of orion proxy object. This appears to be a bug but I'd like to be sure in case its me. Has anyone done this successfully? I'm using orion 1.4.5, I cannot seem to upgrade with autoupdate due to (probably) firewall restrictions. TIA Permjeet
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.
FW: Interbase and Orion / Falk Langhammers database schema for Interbase
Hi If you could give me any feedback about the following issue I would be very gratefull... I managed to get Interbase up and running with Orion. When I deploy, Orion creates my tables in the way I expected. However, when I start creating EJBs I get a javax.ejb.CreateException from InterClient. I create my EJBs from a JSP page which has worked fine on Hypersoniq. The exception on Interbase is this: javax.ejb.CreateException: Error creating EntityBean: [interclient] Invalid data conversion: Parameter instance Archive is out of range for requested conversion. See API reference for exception interbase.interclient.ParameterConversionException Now, such a conversion exception has to do with JDBC's conversions from Java objects to database data types. The instance I am trying to store is a simple bean containing only three properties: 1. a String as a primary key 2. another String 3. an int The only way I can imagine one of these values being out of range is if one of the strings were too long or the bytesize of the int could not fit into database type I have declared - I am using the database schema shown below which is based partially on Falk Langhammers post. If you have any ideas or suggestions I would be very happy to hear from you. Yours R. http://www.orionserver.com/dtds/database-schema.dtd"> -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Falk Langhammer Sent: 25. februar 2001 13:51 To: Orion-Interest Subject: Re: Win2k Pro. is mess... choosing the right database product Hi Vimal, I got Interbase working and there *are* some traps. Therefore let me share my solution with this list: (1) Get Interclient 2.0 from http://inprise-svca.www.conxion.com/win_sources.zip (a link from http://www.inprise.com/interbase/downloads/) (2) Install (3) Get a recompiled interclient.jar from http://www.kpi.com.au/interbase/files/interclient.jar (the original will cause JavaVerify errors) (4) Overwrite interclient.jar (the test applet will cease to work because some applet-specific classes were omitted in new .jar - ignore) (5) Get Firebird 0.9.4 from http://sourceforge.net/project/showfiles.php?group_id=9028&release_id=19364 (ie. http://download.sourceforge.net/firebird/fbinst_0_9-4_prod_2000_12_29-1.exe for Win2k) (6) Install (Firebird is Interbase 6.0 with OSS support - The version from Borland's site seems unsupported by both Borland and the OSS community now) Firebird is ~2 months old were Interbase6 is ~8 months old. This installs Firebird as a Win2k-service. (7) Using Interclient configurator, configure Interclient (ie., Interserver) as a Win2k-service. Start the service now. (8) Copy interclient.jar (the new one) to /lib. (9) Copy firebird.xml (cf. my attachment #1) to /config/database-schemas (I have seen many Interbase schemas - most of them had a bug. Mine follows the Borland Application Server 4.5 Spec for Interbase 5.0 plus 6.0 additional datatypes. Reserved words are incomplete!) (10) Modify /config/data-sources.xml to include the datasource (cf. my attachment #2 as an example - MODIFY!!) (11) Restart Orion and deploy your application. Hope this gets YOu up and running and saves YOu this weekend ;-) Falk Langhammer - Original Message - From: Vimal Patel To: Orion-Interest Sent: Thursday, August 03, 2000 10:44 PM Subject: Re: Win2k Pro. is mess... choosing the right database product Can you tell me what data-source settings you have to get interbase working with orion and the driver version. I can not get it to work with orion. Also if you could mail the database-schemas for interbase I would really appreciate it. Thanks, Vimal
Orion(web) -> Orion(ejb) communication rough mini-how to
OK, I decided I would try to figure out how to get this working yesterday and here is what I came up with. We have two machines each running Orion: Machine A - contains the EJBs Machine B - contains the web stuff 1) Create an application on Machine A that contains the EJBs you want to be able to access from Machine B. 2) Create an application on Machine B that contains web elements that will access the EJBs on Machine A (This application must be named the same as the application on Machine A! Also See Warning below!) 3) Edit the rmi.xml file of Machine B to include a "server" element tag that points to Machine A. 4) The orion-application.xml for the application on Machine B must include a tag like: 5) I had to put the home & remote interfaces of the ejb in the orion/lib directory on Machine B. It didn't seem to be able to find the class definitions otherwise, and I would eventually get this error: javax.naming.NamingException: Lookup error: java.io.IOException: Class Not Found : jason.HelloWorldHome; nested exception is: java.io.IOException: Class Not Found: jason.HelloWorldHome at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.hm.f4(JAX) at com.evermind.server.hm.lookup(JAX) at javax.naming.InitialContext.lookup(Unknown Source) at __jspPage3_jtest_jsp._jspService(__jspPage3_jtest_jsp.java:39) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xj(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX) at com.evermind.server.http.ef.do(JAX) at com.evermind.util.f.run(JAX) (I am very interested in the solution to this problem, and if anyone knows please post it to the Orion-Interest list.) 6) I didn't have to add any ejb-ref tags to my web.xml, I was able to access the remote EJB by doing the usual context lookup, narrowing, etc., from within a jsp. 7) Watch your web talk to the EJBs --- ! Warning ! --- Machine A must have at least the same applications that Machine B defines! If you don't then you will get a NullPointerException on Machine A that looks like: java.lang.NullPointerException at com.evermind.server.rmi.a7.gr(JAX) at com.evermind.server.rmi.a7.resolveClass(JAX) at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.inputObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at com.evermind.server.rmi.ba.hg(JAX) at com.evermind.server.rmi.ba.run(JAX) at com.evermind.util.f.run(JAX) I am speculating that this is because of the "shared" application namespace stuff that seems to be going on, but I could be way off base here. Note that you are allowed to have applications on Machine A that are not defined on Machine B. My biggest (or more frustrating) gotcha was making sure I could start both servers after I had placed the tag in the rmi config for the web machine. The warning should explain what you need to do to avoid that. After that was the afore mentioned class location problem. Regardless, I hope this helps. -jason
Re: Orion using Interbase / VerifyError
I'm using Interbase 6.01 Classic with InterClient 1.6 on a Red Hat 6.2. Java support is JDK 1.3 HotSpot from Sun. I'm not using EJB (only JSP/servlets) but it works fine for me. Kiss Tibor wrote: > > I have tried both 1.2 and 1.3. It is a problem with the interclient > classes. (At least with version 2, never really tried 1.6) > A rebuild from the sources solves the problem. > (Although you have to modify a bit of the code, IIRC near > XATransaction.) > > Tibor -- - Sergi Baila <[EMAIL PROTECTED]> www.imaginart.es Area de InternetimaginArt Master Distributor Via Augusta, 99 08006 Barcelona SPAIN tel: +34 93.2920770 fax: +34 93.2177651 -
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
How to upgrade Xalan / Xerces?
I want to upgrade Xalan and Xerces to newer versions that comes with JAXP found at http://java.sun.com/xml? Do I just overwrite the .jar files? Regards, Peter
Re: Internal Server Error
I use this command line for starting orion on a windows machine java -jar -Djdbc.connection.debug=true orion.jar 1> \orionlog\systemout.txt 2> \orionlog\systemerr.txt Johan - Original Message - From: "Toth [@HOTMAIL], Adam (E-mail)" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, April 03, 2001 12:23 PM Subject: Internal Server Error > Hi, > > We're testing our web project (JSPs, Servlets and MS SQL 2000 DB). > Orion app server version is v1.4.0. > > The test tool is MSWeb Application Stress v1.1. > It's cool and free anyway, take a look: > http://webtool.rte.microsoft.com/ > > The problem is minor, but it would be nice to clarify. > > During a 10 hour reliability test, some error appears, but only for POST > methods. > (The testing is replaying a recorded "browsing" by sending the POST and GET > requests to the server, so it's like an average user, just no delay between > the requests. FYI: Number of hits: 10798682 Requests per Second: 299.88, so > it's quite busy). > > > We have two problematic POSTs: > > Problem#1: > > URI: POST /login?action=dologout > Hit Count:42018 > > Result Codes > Code Description Count > -- > 200 OK42001 > 500 Internal Server Error 17 > > Problem#2: > > URI: POST /login?action=login-frommain > Hit Count:42018 > > Result Codes > Code Description Count > -- > 200 OK42010 > 500 Internal Server Error 8 > > What is interesting that there are no other POSTs in the test, just GETs, so > it's somehow seems to be related to the type of the request. > We're doing heavy logs during the test using log4j, so we have the complete > log in a file. There is no detected problem in the log. > The possible System.outs from Orion are lost, since the window it's running > has only 999 line buffer. > > As you probably noticed, these POST methods are going to a servlet, mapped > to /login. > Other mappings are used of course, so the problem is not related to servlet > mapping. > > Unfortunately I don't know when those logs coming (at once or in random > intervals) > > My questions: > - how to store orion logs? > - any ideas what is this problem? > - is there any way to catch these kind of errors? > > Any help would be very nice. > > Thank you in advance, > Adam >
RE: Orion using Interbase / VerifyError
Actually I found out a rebuild which works on JDK 1.3 can be downloaded from http://www.kpi.com.au/interbase/files/interclient.jar Falk Langhammer mentioned this in an earlier post. R. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kiss Tibor Sent: 3. april 2001 11:24 To: Orion-Interest Subject: RE: Orion using Interbase / VerifyError I have tried both 1.2 and 1.3. It is a problem with the interclient classes. (At least with version 2, never really tried 1.6) A rebuild from the sources solves the problem. (Although you have to modify a bit of the code, IIRC near XATransaction.) Tibor > -Original Message- > From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 03, 2001 8:38 AM > To: Orion-Interest > Subject: RE: Orion using Interbase / VerifyError > > > Thanks. I am using JDK1.3 and I noticed that the interclient > was developed > for 1.2. Might I ask which version of Java you are using? If > we are both > using 1.3 then that might be the reason. > > Yours > Randahl > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kiss Tibor > Sent: 2. april 2001 17:38 > To: Orion-Interest > Subject: RE: Orion using Interbase / VerifyError > > > Are you using Interclient2? > > I had the same problem. The workaround was to download the source code > for IC2 and build it for myself. > (It requires some modification, as it will not compile in its current > form.) > AFAIK, not a single line of code has been added between August and > January. > > > -Original Message- > > From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] > > Sent: Monday, April 02, 2001 3:11 PM > > To: Orion-Interest > > Subject: Orion using Interbase / VerifyError > > > > > > I am trying to make Orion work with Interbase. When deploying > > my solution I > > get the error shown below. I have tested my application on > > Hypersoniq, and I > > have tested my Interbase setup, plus I am able to connect to the > > datasource's URL using Interbases built in test tool. Still > I get the > > java.lang.VerifyError. > > > > I have noticed that this error is thrown under many different > > circumstances - if you deliberately use a wrong password or > an invalid > > database URL in "InterClient Communication Diagnostics", > > Interbase will > > simply throws this error aswell, and tell you that there might be a > > configuration problem (which is not the case). > > > > > > Any suggestions would be highly appreciated. > > > > Randahl > > > > > > > > Auto-deploying ro-ejb.jar (No previous deployment found)... > > Auto-creating table: create table ArchiveEJB (primaryKey > > INTEGER NOT NULL > > PRIMAR > > Y KEY, alias VARCHAR(255) NULL, classRestrictionName > > VARCHAR(255) NULL) > > java.lang.VerifyError: (class: > > interbase/interclient/ErrorKey, method: _$372 > > sig > > nature: (Ljava/lang/String;Ljava/lang/String;I)V) Expecting to find > > unitialized > > object on stack > > at > > interbase.interclient.SQLException.(SQLException.java:96) > > at > > > interbase.interclient.RecvMessage.createSQLException(RecvMessage.java > > :694) > > at > > > interbase.interclient.RecvMessage.makeSQLException(RecvMessage.java:5 > > 93) > > at > > > interbase.interclient.RecvMessage.get_EXCEPTIONS(RecvMessage.java:554 > > ) > > at > > interbase.interclient.Statement._$121578(Statement.java:282) > > at > > interbase.interclient.Statement.executeUpdate(Statement.java:261) > > at com.evermind.sql.am.executeUpdate(JAX) > > at com.evermind.sql.am.executeUpdate(JAX) > > at com.evermind.server.ejb.compilation.ga.ahq(JAX) > > at com.evermind.server.ejb.compilation.f4.ahq(JAX) > > at com.evermind.server.ejb.compilation.f4.s_(JAX) > > at com.evermind.server.ejb.compilation.ga.s_(JAX) > > at com.evermind.server.ejb.EJBContainer.bz(JAX) > > at com.evermind.server.Application.bz(JAX) > > at com.evermind.server.Application.gf(JAX) > > at com.evermind.server.ApplicationServer.rv(JAX) > > at com.evermind.server.ApplicationServer.aqb(JAX) > > at com.evermind.server.ApplicationServer.gf(JAX) > > at com.evermind.server.hg.run(JAX) > > at java.lang.Thread.run(Thread.java:484) > > at com.evermind.util.f.run(JAX) > > > > > > > > >
Interbase and Orion / Falk Langhammers database schema for Interbase
Hi If you could give me any feedback about the following issue I would be very gratefull... I managed to get Interbase up and running with Orion. When I deploy, Orion creates my tables in the way I expected. However, when I start creating EJBs I get a javax.ejb.CreateException from InterClient. I create my EJBs from a JSP page which has worked fine on Hypersoniq. The exception on Interbase is this: javax.ejb.CreateException: Error creating EntityBean: [interclient] Invalid data conversion: Parameter instance Archive is out of range for requested conversion. See API reference for exception interbase.interclient.ParameterConversionException Now, such a conversion exception has to do with JDBC's conversions from Java objects to database data types. The instance I am trying to store is a simple bean containing only three properties: 1. a String as a primary key 2. another String 3. an int The only way I can imagine one of these values being out of range is if one of the strings were too long or the bytesize of the int could not fit into database type I have declared - I am using the database schema shown below which is based partially on Falk Langhammers post. If you have any ideas or suggestions I would be very happy to hear from you. Yours R. http://www.orionserver.com/dtds/database-schema.dtd"> -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Falk Langhammer Sent: 25. februar 2001 13:51 To: Orion-Interest Subject: Re: Win2k Pro. is mess... choosing the right database product Hi Vimal, I got Interbase working and there *are* some traps. Therefore let me share my solution with this list: (1) Get Interclient 2.0 from http://inprise-svca.www.conxion.com/win_sources.zip (a link from http://www.inprise.com/interbase/downloads/) (2) Install (3) Get a recompiled interclient.jar from http://www.kpi.com.au/interbase/files/interclient.jar (the original will cause JavaVerify errors) (4) Overwrite interclient.jar (the test applet will cease to work because some applet-specific classes were omitted in new .jar - ignore) (5) Get Firebird 0.9.4 from http://sourceforge.net/project/showfiles.php?group_id=9028&release_id=19364 (ie. http://download.sourceforge.net/firebird/fbinst_0_9-4_prod_2000_12_29-1.exe for Win2k) (6) Install (Firebird is Interbase 6.0 with OSS support - The version from Borland's site seems unsupported by both Borland and the OSS community now) Firebird is ~2 months old were Interbase6 is ~8 months old. This installs Firebird as a Win2k-service. (7) Using Interclient configurator, configure Interclient (ie., Interserver) as a Win2k-service. Start the service now. (8) Copy interclient.jar (the new one) to /lib. (9) Copy firebird.xml (cf. my attachment #1) to /config/database-schemas (I have seen many Interbase schemas - most of them had a bug. Mine follows the Borland Application Server 4.5 Spec for Interbase 5.0 plus 6.0 additional datatypes. Reserved words are incomplete!) (10) Modify /config/data-sources.xml to include the datasource (cf. my attachment #2 as an example - MODIFY!!) (11) Restart Orion and deploy your application. Hope this gets YOu up and running and saves YOu this weekend ;-) Falk Langhammer - Original Message - From: Vimal Patel To: Orion-Interest Sent: Thursday, August 03, 2000 10:44 PM Subject: Re: Win2k Pro. is mess... choosing the right database product Can you tell me what data-source settings you have to get interbase working with orion and the driver version. I can not get it to work with orion. Also if you could mail the database-schemas for interbase I would really appreciate it. Thanks, Vimal
RE: Internal Server Error
- check in your application.log file for that application, the errors will be there - for more detail, set up a mail session and a mail address to email log messages to (in orion-application.xml) - then you get detailed request information as well in the trace -mike > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Toth > [@HOTMAIL], Adam (E-mail) > Sent: Tuesday, April 03, 2001 8:24 PM > To: Orion-Interest > Subject: Internal Server Error > > > Hi, > > We're testing our web project (JSPs, Servlets and MS SQL 2000 DB). > Orion app server version is v1.4.0. > > The test tool is MSWeb Application Stress v1.1. > It's cool and free anyway, take a look: > http://webtool.rte.microsoft.com/ > > The problem is minor, but it would be nice to clarify. > > During a 10 hour reliability test, some error appears, but only for POST > methods. > (The testing is replaying a recorded "browsing" by sending the > POST and GET > requests to the server, so it's like an average user, just no > delay between > the requests. FYI: Number of hits: 10798682 Requests per Second: > 299.88, so > it's quite busy). > > > We have two problematic POSTs: > > Problem#1: > > URI: POST /login?action=dologout > Hit Count:42018 > > Result Codes > Code Description Count > -- > 200 OK42001 > 500 Internal Server Error 17 > > Problem#2: > > URI: POST /login?action=login-frommain > Hit Count:42018 > > Result Codes > Code Description Count > -- > 200 OK42010 > 500 Internal Server Error 8 > > What is interesting that there are no other POSTs in the test, > just GETs, so > it's somehow seems to be related to the type of the request. > We're doing heavy logs during the test using log4j, so we have > the complete > log in a file. There is no detected problem in the log. > The possible System.outs from Orion are lost, since the window > it's running > has only 999 line buffer. > > As you probably noticed, these POST methods are going to a servlet, mapped > to /login. > Other mappings are used of course, so the problem is not related > to servlet > mapping. > > Unfortunately I don't know when those logs coming (at once or in random > intervals) > > My questions: > - how to store orion logs? > - any ideas what is this problem? > - is there any way to catch these kind of errors? > > Any help would be very nice. > > Thank you in advance, > Adam > > >
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 > > >
Shared session
I'm kind of stuck on this one, been experimenting all this morning :) What I want to do is to share a session between several applications. Preferredly, I'd like to share the objects between those applications and the code. I want to use virtualhosts, and I confed my hosts file like this 127.0.0.1 company.localhost 127.0.0.1 admin.company.localhost 127.0.0.1 subdomain1.company.localhost 127.0.0.1 subdomain2.company.localhost The mapping to those work. But how do I access a session created in company.localhost at subdomain1.company.localhost? Is it possible or impossible? Can I create a "parent" application which handles the sessions and how do I configure it? And for sharing code, I'd like to have a single point of distribution, is there a way to tell in the web.xml where the classes dir is? Thanks in advance Johan Fredriksson
Re: Friendly error messages from Microsoft get in the way (was Er ror pages defined in web.xml not found / activated)
Are you sure? I set my browser to show friendly http error messages and went to a page which does not exist. And I get the errorpage as defined in my web.xml Visit this page to test : http://www.batborsen.com/bb/se/this_page_does_not_exist.html the errorpage tag in web.xml looks like this 404 se/batborsen_error.html 500 se/batborsen_error.html take an extra look at the location tag... I am using IE6 Johan - Original Message - From: "Frank Eggink" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Monday, April 02, 2001 8:51 PM Subject: RE: Friendly error messages from Microsoft get in the way (was Er ror pages defined in web.xml not found / activated) > At least for development I can switch them off. Users (and helpdesk) will have to live with it. > > I never knew people could think of developing error message obfuscators :-( > > On Monday, April 02, 2001 7:14 PM, Juan Lorandi (Chile) [SMTP:[EMAIL PROTECTED]] wrote: > > the error code is sent on the very first line of the response header-- and > > orion doesn't allow you to control that > > > > > -Original Message- > > > From: Frank Eggink [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, April 02, 2001 3:56 AM > > > To: Orion-Interest > > > Subject: Friendly error messages from Microsoft get in the way (was > > > Error pages defined in web.xml not found / activated) > > > > > > > > > Well ... > > > > > > How can you spend your weekend?!? > > > > > > > > > The problem I described looks to be caused by wat's called > > > 'friendly error > > > messages' from the Internet Explorer. All runs fine with Netscape. > > > Microsoft replaces standard 404 'can not find page' errors > > > with their own > > > page, which is considered (by them) to be more user friendly. > > > > > > Still I do not understand how the Explorer gets the > > > information there is a > > > 404 error. Could this be somewhat less wanted feature of > > > Orion? I certainly > > > would like to have control over this error message. > > > > > > FE > > > > > > On Friday, March 30, 2001 5:48 PM, Frank Eggink > > > [SMTP:[EMAIL PROTECTED]] wrote: > > > > Hi, > > > > > > > > I'm having a problem. I have defined error pages in my web.xml > > > > > > > > I've defined: > > > > > > > > > > > > 404 > > > > /errors/error404.jsp > > > > > > > > > > > > Now I expect to see the error page when I request a non > > > existing page > > > like > > > > http://localhost/my-app/non-existing-page.html, which does > > > not happen. > > > I'm > > > > obviously overlooking something, but what?? > > > > > > > > [When I define the error page in a jsp page with <%@ > > > > errorpage=/errors/error404.jsp %> it does work. So it can > > > find the page, > > > > which gives me the impression I've setup something wrong. What?? > > > > > > > > > > > > FE > > > > > > > > Frank Eggink > > > > Swift Applications > > > > [EMAIL PROTECTED] > > > > +31 6 28847325 (voice) > > > > +31 33 4532464 (fax) > > > > > > > > > > > > >
Problem with "@" character submitted in POST request through CGIServlet, TunnelServlet
There's a bug in the CGI servlet. What happens is: I have an HTML form which is transmitted via POST request. Two parameters are passed: email and action what should arrive is: email=peterb%40sbox.tugraz.at action=Login When perl gets the request the second parameter is truncated [EMAIL PROTECTED] action=Log This happens only if the first parameter contains the "@" character. I suppose the same bug affects the TunnelServlet too. I already informed Orion support about that some time ago, but didn't get a response, and 1.4.7 still doesn't correct this issue. For us this trivial bug is absolutely critical because we need to have orion handle requests and SSL in the front. Certain apps (the IMP PHP webmail) should be tunneled to apache, which still doesn't work! Other URL-encoded characters don't seem to have a negative effect, but the "@" causes the problem with the following parameter. I read on the list that also others have had problems with the Tunnel Servlet and POST requests. Maybe we can track down the bug a bit deeper. I entered it in Bugzilla as Bug Nr. 387 and hope that it finally will be taken care of. Regards, Peter
Internal Server Error
Hi, We're testing our web project (JSPs, Servlets and MS SQL 2000 DB). Orion app server version is v1.4.0. The test tool is MSWeb Application Stress v1.1. It's cool and free anyway, take a look: http://webtool.rte.microsoft.com/ The problem is minor, but it would be nice to clarify. During a 10 hour reliability test, some error appears, but only for POST methods. (The testing is replaying a recorded "browsing" by sending the POST and GET requests to the server, so it's like an average user, just no delay between the requests. FYI: Number of hits: 10798682 Requests per Second: 299.88, so it's quite busy). We have two problematic POSTs: Problem#1: URI: POST /login?action=dologout Hit Count:42018 Result Codes Code Description Count -- 200 OK42001 500 Internal Server Error 17 Problem#2: URI: POST /login?action=login-frommain Hit Count:42018 Result Codes Code Description Count -- 200 OK42010 500 Internal Server Error 8 What is interesting that there are no other POSTs in the test, just GETs, so it's somehow seems to be related to the type of the request. We're doing heavy logs during the test using log4j, so we have the complete log in a file. There is no detected problem in the log. The possible System.outs from Orion are lost, since the window it's running has only 999 line buffer. As you probably noticed, these POST methods are going to a servlet, mapped to /login. Other mappings are used of course, so the problem is not related to servlet mapping. Unfortunately I don't know when those logs coming (at once or in random intervals) My questions: - how to store orion logs? - any ideas what is this problem? - is there any way to catch these kind of errors? Any help would be very nice. Thank you in advance, Adam
SV: MS Server Objects
Title: SV: MS Server Objects One solution would be to use JIntegra for this dirty business. Another option would be to purify your COM objects and turn them into java classes free of sin. Repent! Repent! :) >Hello, >I wonder if a Microsoft Server object can be created with orion. >We have lots of MTS objects to create Active Reports. >In order to reuse those objects, do we really have to go for ASP? >Can orion, jsp, or servlet handle Microsoft objects? >Thanks very much. > >Simon
Re: Orion using Interbase / VerifyError
Hi, I had the same error, but I've downloaded interclient 1.5.1 and then interclient throws a usable error message explaining what really went wrong. Greetings Wim Veninga. - Original Message - From: "Randahl Fink Isaksen" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, April 03, 2001 8:38 AM Subject: RE: Orion using Interbase / VerifyError > Thanks. I am using JDK1.3 and I noticed that the interclient was developed > for 1.2. Might I ask which version of Java you are using? If we are both > using 1.3 then that might be the reason. > > Yours > Randahl > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kiss Tibor > Sent: 2. april 2001 17:38 > To: Orion-Interest > Subject: RE: Orion using Interbase / VerifyError > > > Are you using Interclient2? > > I had the same problem. The workaround was to download the source code > for IC2 and build it for myself. > (It requires some modification, as it will not compile in its current > form.) > AFAIK, not a single line of code has been added between August and > January. > > > -Original Message- > > From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] > > Sent: Monday, April 02, 2001 3:11 PM > > To: Orion-Interest > > Subject: Orion using Interbase / VerifyError > > > > > > I am trying to make Orion work with Interbase. When deploying > > my solution I > > get the error shown below. I have tested my application on > > Hypersoniq, and I > > have tested my Interbase setup, plus I am able to connect to the > > datasource's URL using Interbases built in test tool. Still I get the > > java.lang.VerifyError. > > > > I have noticed that this error is thrown under many different > > circumstances - if you deliberately use a wrong password or an invalid > > database URL in "InterClient Communication Diagnostics", > > Interbase will > > simply throws this error aswell, and tell you that there might be a > > configuration problem (which is not the case). > > > > > > Any suggestions would be highly appreciated. > > > > Randahl > > > > > > > > Auto-deploying ro-ejb.jar (No previous deployment found)... > > Auto-creating table: create table ArchiveEJB (primaryKey > > INTEGER NOT NULL > > PRIMAR > > Y KEY, alias VARCHAR(255) NULL, classRestrictionName > > VARCHAR(255) NULL) > > java.lang.VerifyError: (class: > > interbase/interclient/ErrorKey, method: _$372 > > sig > > nature: (Ljava/lang/String;Ljava/lang/String;I)V) Expecting to find > > unitialized > > object on stack > > at > > interbase.interclient.SQLException.(SQLException.java:96) > > at > > interbase.interclient.RecvMessage.createSQLException(RecvMessage.java > > :694) > > at > > interbase.interclient.RecvMessage.makeSQLException(RecvMessage.java:5 > > 93) > > at > > interbase.interclient.RecvMessage.get_EXCEPTIONS(RecvMessage.java:554 > > ) > > at > > interbase.interclient.Statement._$121578(Statement.java:282) > > at > > interbase.interclient.Statement.executeUpdate(Statement.java:261) > > at com.evermind.sql.am.executeUpdate(JAX) > > at com.evermind.sql.am.executeUpdate(JAX) > > at com.evermind.server.ejb.compilation.ga.ahq(JAX) > > at com.evermind.server.ejb.compilation.f4.ahq(JAX) > > at com.evermind.server.ejb.compilation.f4.s_(JAX) > > at com.evermind.server.ejb.compilation.ga.s_(JAX) > > at com.evermind.server.ejb.EJBContainer.bz(JAX) > > at com.evermind.server.Application.bz(JAX) > > at com.evermind.server.Application.gf(JAX) > > at com.evermind.server.ApplicationServer.rv(JAX) > > at com.evermind.server.ApplicationServer.aqb(JAX) > > at com.evermind.server.ApplicationServer.gf(JAX) > > at com.evermind.server.hg.run(JAX) > > at java.lang.Thread.run(Thread.java:484) > > at com.evermind.util.f.run(JAX) > > > > > > > >
SV: Friendly error messages from Microsoft get in the way (was Er ror pages defined in web.xml not found / activated)
Title: SV: Friendly error messages from Microsoft get in the way (was Er ror pages defined in web.xml not found / activated) Never underestimate the creativity of M$ :) Just thinking that milions of people gladly install their OS obfuscator worldwide .. :) I bet Bill is part of the Discordian Society :) > -Ursprungligt meddelande- > Från: Frank Eggink [mailto:[EMAIL PROTECTED]] > Skickat: den 2 april 2001 11:51 > Till: Orion-Interest > Ämne: RE: Friendly error messages from Microsoft get in the > way (was Er > ror pages defined in web.xml not found / activated) > > > At least for development I can switch them off. Users (and > helpdesk) will have to live with it. > > I never knew people could think of developing error message > obfuscators :-( > > On Monday, April 02, 2001 7:14 PM, Juan Lorandi (Chile) > [SMTP:[EMAIL PROTECTED]] wrote: > > the error code is sent on the very first line of the > response header-- and > > orion doesn't allow you to control that > > > > > -Original Message- > > > From: Frank Eggink [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, April 02, 2001 3:56 AM > > > To: Orion-Interest > > > Subject: Friendly error messages from Microsoft get in > the way (was > > > Error pages defined in web.xml not found / activated) > > > > > > > > > Well ... > > > > > > How can you spend your weekend?!? > > > > > > > > > The problem I described looks to be caused by wat's called > > > 'friendly error > > > messages' from the Internet Explorer. All runs fine with > Netscape. > > > Microsoft replaces standard 404 'can not find page' errors > > > with their own > > > page, which is considered (by them) to be more user friendly. > > > > > > Still I do not understand how the Explorer gets the > > > information there is a > > > 404 error. Could this be somewhat less wanted feature of > > > Orion? I certainly > > > would like to have control over this error message. > > > > > > FE > > > > > > On Friday, March 30, 2001 5:48 PM, Frank Eggink > > > [SMTP:[EMAIL PROTECTED]] wrote: > > > > Hi, > > > > > > > > I'm having a problem. I have defined error pages in my web.xml > > > > > > > > I've defined: > > > > > > > > > > > > 404 > > > > /errors/error404.jsp > > > > > > > > > > > > Now I expect to see the error page when I request a non > > > existing page > > > like > > > > http://localhost/my-app/non-existing-page.html, which does > > > not happen. > > > I'm > > > > obviously overlooking something, but what?? > > > > > > > > [When I define the error page in a jsp page with <%@ > > > > errorpage=/errors/error404.jsp %> it does work. So it can > > > find the page, > > > > which gives me the impression I've setup something wrong. What?? > > > > > > > > > > > > FE > > > > > > > > Frank Eggink > > > > Swift Applications > > > > [EMAIL PROTECTED] > > > > +31 6 28847325 (voice) > > > > +31 33 4532464 (fax) > > > > > > > > > > > > > >
SecureRandom and StackOverflowError
Hi I'm trying to generate a SecureRandom number in a sessionbean. Whenever I called the nextInt method I get: nested exception is: java.lang.StackOverflowError. Does somebody have clue of why I'm getting this? I've tried this in a standalone application and it works fine. Here is the code: seeder = new SecureRandom(); int node = seeder.nextInt(); /Theis.
SV: Orion OpenTool to JBuilder 4?
Title: SV: Orion OpenTool to JBuilder 4? One such effort was started, but was closed due to some problems encountered that Borland/Inprise didnt care to respond to. AFAIK, that effort died there. Please go ahead, I would really like such a tool :) WR > -Ursprungligt meddelande- > Från: Robert S. Sfeir [mailto:[EMAIL PROTECTED]] > Skickat: den 2 april 2001 11:02 > Till: Orion-Interest > Ämne: Orion OpenTool to JBuilder 4? > > > I've been trying to find ANY information about pluging in > Orion as part of > the servers inside JBuilder using the OpenTool API. Doesn't > look like > anyone's written one. I've sent an email to the Orion folks, > no response. > > I have a source code example here that shows how to do this > with Tomcat, > and it doesn't look like I need THAT much more work to > convert it over to > make it work with Orion, I just don't want to spin my wheels > doing it if > someone has already done this. > > I know you can use Orion from the run menu, but there seem to > be other > benefits from having it as an application server in JBuilder, > primarily for > deployment purposes. > > Thanks. > R > > > Robert S. Sfeir > Director of Software Development > PERCEPTICON corporation > San Francisco, CA 94123 > w - http://www.percepticon.com/ > e- [EMAIL PROTECTED] > t - (415) 749-2900 x205 > >
RE: Orion using Interbase / VerifyError
I have tried both 1.2 and 1.3. It is a problem with the interclient classes. (At least with version 2, never really tried 1.6) A rebuild from the sources solves the problem. (Although you have to modify a bit of the code, IIRC near XATransaction.) Tibor > -Original Message- > From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 03, 2001 8:38 AM > To: Orion-Interest > Subject: RE: Orion using Interbase / VerifyError > > > Thanks. I am using JDK1.3 and I noticed that the interclient > was developed > for 1.2. Might I ask which version of Java you are using? If > we are both > using 1.3 then that might be the reason. > > Yours > Randahl > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Kiss Tibor > Sent: 2. april 2001 17:38 > To: Orion-Interest > Subject: RE: Orion using Interbase / VerifyError > > > Are you using Interclient2? > > I had the same problem. The workaround was to download the source code > for IC2 and build it for myself. > (It requires some modification, as it will not compile in its current > form.) > AFAIK, not a single line of code has been added between August and > January. > > > -Original Message- > > From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]] > > Sent: Monday, April 02, 2001 3:11 PM > > To: Orion-Interest > > Subject: Orion using Interbase / VerifyError > > > > > > I am trying to make Orion work with Interbase. When deploying > > my solution I > > get the error shown below. I have tested my application on > > Hypersoniq, and I > > have tested my Interbase setup, plus I am able to connect to the > > datasource's URL using Interbases built in test tool. Still > I get the > > java.lang.VerifyError. > > > > I have noticed that this error is thrown under many different > > circumstances - if you deliberately use a wrong password or > an invalid > > database URL in "InterClient Communication Diagnostics", > > Interbase will > > simply throws this error aswell, and tell you that there might be a > > configuration problem (which is not the case). > > > > > > Any suggestions would be highly appreciated. > > > > Randahl > > > > > > > > Auto-deploying ro-ejb.jar (No previous deployment found)... > > Auto-creating table: create table ArchiveEJB (primaryKey > > INTEGER NOT NULL > > PRIMAR > > Y KEY, alias VARCHAR(255) NULL, classRestrictionName > > VARCHAR(255) NULL) > > java.lang.VerifyError: (class: > > interbase/interclient/ErrorKey, method: _$372 > > sig > > nature: (Ljava/lang/String;Ljava/lang/String;I)V) Expecting to find > > unitialized > > object on stack > > at > > interbase.interclient.SQLException.(SQLException.java:96) > > at > > > interbase.interclient.RecvMessage.createSQLException(RecvMessage.java > > :694) > > at > > > interbase.interclient.RecvMessage.makeSQLException(RecvMessage.java:5 > > 93) > > at > > > interbase.interclient.RecvMessage.get_EXCEPTIONS(RecvMessage.java:554 > > ) > > at > > interbase.interclient.Statement._$121578(Statement.java:282) > > at > > interbase.interclient.Statement.executeUpdate(Statement.java:261) > > at com.evermind.sql.am.executeUpdate(JAX) > > at com.evermind.sql.am.executeUpdate(JAX) > > at com.evermind.server.ejb.compilation.ga.ahq(JAX) > > at com.evermind.server.ejb.compilation.f4.ahq(JAX) > > at com.evermind.server.ejb.compilation.f4.s_(JAX) > > at com.evermind.server.ejb.compilation.ga.s_(JAX) > > at com.evermind.server.ejb.EJBContainer.bz(JAX) > > at com.evermind.server.Application.bz(JAX) > > at com.evermind.server.Application.gf(JAX) > > at com.evermind.server.ApplicationServer.rv(JAX) > > at com.evermind.server.ApplicationServer.aqb(JAX) > > at com.evermind.server.ApplicationServer.gf(JAX) > > at com.evermind.server.hg.run(JAX) > > at java.lang.Thread.run(Thread.java:484) > > at com.evermind.util.f.run(JAX) > > > > > > > > >
RE: orion server version 1.4.7
Please, run 'autoupdate'. java -DproxyHost= -DproxyPort= -jar autoupdate.jar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vlad Stinsov Sent: Tuesday, April 03, 2001 1:24 PM To: Orion-Interest Subject: orion server version 1.4.7 Hi! Help me pls. On site www.orionserver.com I find server version 1.4.5, but in mailing list we talk about server version 1.4.7. When I can find it. Vlad Stinsov.
Re: orion server version 1.4.7
Just execute java -jar autoupdate.jar - Original Message - From: "Vlad Stinsov" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Tuesday, April 03, 2001 10:21 AM Subject: orion server version 1.4.7 > Hi! > Help me pls. > On site www.orionserver.com I find server version 1.4.5, but in mailing > list we > talk about server version 1.4.7. > When I can find it. > Vlad Stinsov. > >
Re: orion server version 1.4.7
download version 1.4.5 from www.orionserver.com, install, and then execute java -jar autoupdate.jar That will 'autoupdate' :) your Orion installation. Vlad Stinsov wrote: > > Hi! > Help me pls. > On site www.orionserver.com I find server version 1.4.5, but in mailing > list we > talk about server version 1.4.7. > When I can find it. > Vlad Stinsov. -- - Sergi Baila <[EMAIL PROTECTED]> www.imaginart.es Area de InternetimaginArt Master Distributor Via Augusta, 99 08006 Barcelona SPAIN tel: +34 93.2920770 fax: +34 93.2177651 -
Re: orion server version 1.4.7
use autoupdate: #!/bin/sh java -DproxySet=true -DproxyHost=vcr.vc.esrr.mps -DproxyPort=3128 -jar autoupdate.jar -- /chd Have fun! - Original Message - From: "Vlad Stinsov" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: 3 ÁÐÒÅÌÑ 2001 Ç. 14:21 Subject: orion server version 1.4.7 > Hi! > Help me pls. > On site www.orionserver.com I find server version 1.4.5, but in mailing > list we > talk about server version 1.4.7. > When I can find it. > Vlad Stinsov.
RE: Orion OpenTool to JBuilder 4?
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Robert S. > Sfeir > Sent: Monday, April 02, 2001 8:02 PM > To: Orion-Interest > Subject: Orion OpenTool to JBuilder 4? > > > I've been trying to find ANY information about pluging in > Orion as part of > the servers inside JBuilder using the OpenTool API. Doesn't > look like > anyone's written one. I've sent an email to the Orion folks, > no response. > > I have a source code example here that shows how to do this > with Tomcat, > and it doesn't look like I need THAT much more work to > convert it over to > make it work with Orion, I just don't want to spin my wheels > doing it if > someone has already done this. I haven't, and I think nobody else has since I've been following both the orion list and the jbuilder opentool newsgroup for some time now, but haven't heard of it. It would be nice if you could write it, although I'm quite content using jbuilder4 with the antrunner opentool (available from borland's codecentral). > > I know you can use Orion from the run menu, but there seem to > be other > benefits from having it as an application server in JBuilder, > primarily for > deployment purposes. > > Thanks. > R > > > Robert S. Sfeir > Director of Software Development > PERCEPTICON corporation > San Francisco, CA 94123 > w - http://www.percepticon.com/ > e- [EMAIL PROTECTED] > t - (415) 749-2900 x205 > >