what happens at startup?
hi all, this morning I've tried to restart my own orion server, with bad result: this is an extract from server.log 05/03/02 8.35 9.0.2.0.0 Stopped (Shutdown executed by admin from 192.168.237.159 (lspd31.largesys.pd)) 05/03/02 8.35 9.0.2.0.0 Started 05/03/02 8.35 Internal error in HttpServer java.lang.NullPointerException: application reference's config was null at com.evermind.server.ApplicationServer.getApplication(ApplicationServer.java: 1925) at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:623) at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:375) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandle r.java:370) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250) at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62) --- ... then it repeats again for every request... any hint? thanx, daniele rizzi
Initial Context Factories
Hi list. We're playing with several orions, connecting applications running in a server with the ones in another. Is there any document which explains _exactly_ the purpose of every Context Factory ?? . com.evermind.server.rmi.RMIInitialContextFactory . com.evermind.server.ApplicationClientContextFactory . com.evermind.server.ApplicationContextFactory . ... By now, we are using a testerror estrategy. But we'd like to know why one works and not the others. Thanks. -- ·· Juan Fuentes Nieto Essi Projects [EMAIL PROTECTED]t +34 977 221 182 http://www.essiprojects.com f +34 977 230 170 ··
pitfalls migrating an app from orion to wls
Hi, just wanted to ask the list if anyone has migrated a compley app from orion to weblogic. we have a customer who wants us to port an app we developed for them from orion to weblogic (corporate policy). so far we have identified security (we have used orion security APIs) and cmp (we use EJB1.1 CMP and weblogic's capabilities in that area really suck) as two areas that need some work. any experiences anyone would like to share? thanks in advance robert p.s.: I sent this message yesterday but it didn't make it through. I hope none of you gets it twice. I checked the archive and it isn't there.
Like Statements in orion-ejb-jar.xml
I would like to perform like Statements in finder methods. Therfor I changed in the orion-ejb-jar.xml the sql Statement to where xxx like ? ! But Orion always overwrites it to where xxx = ? Is there a way to use like statements in Orion or do one have to use sql Queries? Thanks Michael
temporary SSL certificate
Title: Message We are trying to generate our own SSL certificate to be used with orion until our request is processed or our real one. I was able to follow the instructions to get a test cert from Thawte, but I would like to generate my own instead of using a test one. Can anybody point me to some instructions on what is required to do this? Thanks Matt
100 Continue
Hi Im having a propblem sending a POST to a servlet in orion Im trying to send a POST from a PDA with Windows CE installed The servlet just parses the stream and stores the content in a database When the POST is submitted, everything after the 100 Continue response is being stored in the database The data sent before 100 Continue is somehow lost When I try to send the same POST data from an JAVA app, everything is stored in the database and it works fine It seems to me that the PDA client cannot handle the 100 Continue response and continuing sending the POST data and orion is not able to receive it Has anyone any sugesstions? By the way Im using mac OSX with orion 152 Has anyone been able to run a J2EE app with orion 154? Im getting a JVM error (segmentation fault) just by starting it Havent tried with the new MRJ 131 though regards /Linus
RE: pitfalls migrating an app from orion to wls
Hi Robert, indeed many posts seem to just disappear on here, but the guys at Ironflare are working to fix that... In the meantime, I just wanted to offer that I work for a company that develops what we call Portal Lifecycle Management tools (read application lifecycle for the web) on the J2EE platform. We currently support both Orion 1.5.x and WebLogic 6.1 (we require EJB 2.0 compliance), meaning we use a single portal definition and can perform deployment to either platform in a few simple steps (local Orion deployment is fully automated). Since there are many differences in the most recent few releases of both Orion and WL, we could probably have endless discussions on the issues with porting from one to the other, but if you have more specific information (i.e. what versions of Orion the app is from and what version of WL is targeted), I could probably offer additional advice. As far as Security goes, we have written adaptors for managing users and groups in Orion and WL separately -- i.e. we wrote a custom UserManager for Orion and a custom Realm for WL that communicate with our EJB's. Also, if you want to write platform-neutral user management, check out the OSUser module of the OpenSymphony project, which is being developed specifically to address the different user manager implementations (and integrate them with external services such as LDAP or other legacy/proprietary security services) found in vendor J2EE implementations. Also, just FYI, we had many problems with Orion's CMP (wouldn't generate finder queries with multiple parameters) and WL's auto-table generation, so we ended up extending the EJBGEN package to generate both the orion-ejb-jar.xml and SQL scripts so we could create the tables for the CMP beans ourselves. Good luck and if you have questions, I'll be glad to offer additional advice. You might also try out the new forums at Atlassian (http://www.atlassian.com) or The ElephantWalker (http://www.elephantwalker.com) to get additional perspective on the subject. -Jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Krüger Sent: Tuesday, March 05, 2002 2:45 AM To: Orion-Interest Subject: pitfalls migrating an app from orion to wls Hi, just wanted to ask the list if anyone has migrated a compley app from orion to weblogic. we have a customer who wants us to port an app we developed for them from orion to weblogic (corporate policy). so far we have identified security (we have used orion security APIs) and cmp (we use EJB1.1 CMP and weblogic's capabilities in that area really suck) as two areas that need some work. any experiences anyone would like to share? thanks in advance robert p.s.: I sent this message yesterday but it didn't make it through. I hope none of you gets it twice. I checked the archive and it isn't there.
RE: Like Statements in orion-ejb-jar.xml
I have used like statements successfully. Make sure of the following: 1) you have created an orion-ejb.jar.xml file in the META-INF directory of your name-ejb.jar file. This must contain the query. 2) you have deleted the existing orion-ejb.jar file from the deployment directory if you had already deployed your application. If you just overwrite/edit the orion-ejb-jar.xml in the deployment directory then this will not work. WARNING: When orion finally supports EJB-QL, the semantics of LIKE will change. EJB-QL does not allow like to be used with input parameters. Hence specifying an EJB-QL query of the type: "SELECT OBJECT(c) FROM Customer c WHERE c.name LIKE ?1" is illegal. You can only use constants or CMP fields in the like. Therefore if you base the running of your application on a LIKE comparison you will not be able to move to full EJB 2.0 compliance without some major reworks. Chris -Original Message-From: Michael Maurer [mailto:[EMAIL PROTECTED]]Sent: 05 March 2002 11:20To: Orion-InterestSubject: Like Statements in orion-ejb-jar.xml I would like to perform like Statements in finder methods. Therfor I changed in the orion-ejb-jar.xml the sql Statement to where xxx like ? ! But Orion always overwrites it to where xxx = ? Is there a way to use like statements in Orion or do one have to use sql Queries? Thanks Michael_This message has been checked for all known viruses by MessageLabs. _ Alison Associates The information contained in this e-mail and any attached files is intended only for the use of the person(s) to whom it is addressed and may be privileged, confidential and exempt from disclosure under applicable law. The views of the author may not necessarily reflect the views of the Company. If you are not the intended recipient please do not copy or convey this message or any attached files to any other person but delete this message and any attached files and notify us of incorrect receipt via e-mail to [EMAIL PROTECTED] _ This message has been checked for all known viruses by MessageLabs.
InitialContext Issue
Okay everyone I really need some help here We have an issue that I think I have seen before, but I can't seem to find it in the newsgroup or archives Currently we have a ColdFusion server running on our front end(try not to laugh too hard) and Orion running in the back We created a LoginBean Class which resides on the ColfSusion server and validates username and password via a session bean on the orion server This works great until two people try to login at the same time(ie the second tries to login before the first completes the process) When this occurs, the first one to hit the site gets validated and the second throws: NamingException: unable to instantiate comevermindserverApplicationClientInitialContextFactory hen our LoginBean instantiates it calls a private method called getJndiContext() which sets it's member variable jndiContext for use within the class This is where the error is occuring private void getJndiContext() { //get the context if(jndiContext == null) { try { jndiContext = new InitialContext(); -! ERROR Occurs Here ! userHome = (UserHome) PortableRemoteObjectnarrow(jndiContextlookup(User),UserHomeclass); profileHome = (ProfileSessionHome) PortableRemoteObjectnarrow(jndiContextlookup(ProfileSession),ProfileSess ionHomeclass); } catch(NamingException ne) { Logtxt(this, Naming Exception: + negetMessage(), LOGFILE); neprintStackTrace(); } } } I believe the rest of the class is unsbstantial when dealing with this issue So then I thought it could not create multiple instances of the same object on the cold Fusion side So, I created a teb object that implemented Runnable and created a New LoginBean for each instance thinking it would work locally but not in Cold Fusion here is the code for the test object: import javarmiRemoteException; /** User is an EJB containing user information(ie First Name, Last Name, email, etc) */ import comweapiprofileUser; public class RunnableLoginBean implements Runnable { LoginBean login; StringBuffer sb; public RunnableLoginBean() { this(null,null); } public RunnableLoginBean(String u, String p) { login = new LoginBean(); loginsetUserName(u); loginsetPassword(p); sb = new StringBuffer(); } public RunnableLoginBean(String u, String p, StringBuffer sb) { thissb = sb; login = new LoginBean(); loginsetUserName(u); loginsetPassword(p); } public void run() { if(loginisUserValid()) { try { sbappend(Hello : + logingetUser()getFirstName() +\n); } catch(RemoteException re) { sbappend(Error: + regetMessage()); reprintStackTrace(); } } else { sbappend(Login failed for : + logingetUserName() +\n); } } public String test(int count) { for(int i=0; i count;i++) { Thread t1 = new Thread(new RunnableLoginBean(jhogan,password, thissb)); t1start(); } try { Threadsleep(5000); //make sure the threads are done before printing } catch(Exception e) { sbappend(Error waiting: + egetMessage()); eprintStackTrace(); } return thissbtoString(); } public static void main(String[] args) { RunnableLoginBean lb = new RunnableLoginBean(); Systemoutprintln(lbtest(10)); } } This works fine on both my machine and the cold fusion server But if 2 users hit the same page at the same time(ie the second hits before the first is finished), all ten(10) of the first connector's tests pass, and all ten(10) of the second connector's tests throw the instantiation error I seem to remember seeing this problem with JRUN before Since JRun and ColdFusion are built by the same company I am assuming right now they may use the same code for session/object storage and thus the problem may happen on both platforms It's almost as if they have a Singleton Hashtable of classes per object call and thus cannot instantiate more than one instance of a class per application call I am at a loss as to why this would happen Any ideas on why this is happening and what we can do to fix it? Thanx in advance Greg
RE: temporary SSL certificate
Title: Message http://java.sun.com/products/jdk/1.2/docs/tooldocs/solaris/keytool.html Use the -selfcert option. Create your keystore, then do the -selfcert bit. -- Andrew -Original Message-From: Matt McLaurin [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 05, 2002 06:28To: Orion-InterestSubject: temporary SSL certificate We are trying to generate our own SSL certificate to be used with orion until our request is processed or our real one. I was able to follow the instructions to get a test cert from Thawte, but I would like to generate my own instead of using a test one. Can anybody point me to some instructions on what is required to do this? Thanks Matt
RE: what happens at startup?
Check your config files in orion/config. It looks like a tag wasn't properly closed or is missing from server.xml application.xml, or global-web-application.xml. If you still have the originals or the tar ball, re xtract the files to another directory and compare them, or cross reference it with the Orion documentation for those files. Hope this helps. -Original Message- From: daniele rizzi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 1:00 AM To: Orion-Interest Subject: what happens at startup? hi all, this morning I've tried to restart my own orion server, with bad result: this is an extract from server.log 05/03/02 8.35 9.0.2.0.0 Stopped (Shutdown executed by admin from 192.168.237.159 (lspd31.largesys.pd)) 05/03/02 8.35 9.0.2.0.0 Started 05/03/02 8.35 Internal error in HttpServer java.lang.NullPointerException: application reference's config was null at com.evermind.server.ApplicationServer.getApplication(ApplicationServer.java: 1925) at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:623) at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:375) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandle r.java:370) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:250) at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:62) --- ... then it repeats again for every request... any hint? thanx, daniele rizzi
RE: pitfalls migrating an app from orion to wls
We recently completed a full migration, but in the other direction: WebLogic 6.0 to Orion 1.5.2. I think one of the major gotchas we ran across was the fact that WebLogic doesn't deal with .ear files very well, especially when trying to start the server with an existing ear. We were never able to get WebLogic to run pre-existing .ear as the default web application. Apart from that, we found that WebLogic's JNDI and JMS implementations were a lot more fleshed out, so expect improvements there. I don't know about the CMP aspect -- we use BMP. -Original Message- From: Robert Krüger [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 2:45 AM To: Orion-Interest Subject: pitfalls migrating an app from orion to wls Hi, just wanted to ask the list if anyone has migrated a compley app from orion to weblogic. we have a customer who wants us to port an app we developed for them from orion to weblogic (corporate policy). so far we have identified security (we have used orion security APIs) and cmp (we use EJB1.1 CMP and weblogic's capabilities in that area really suck) as two areas that need some work. any experiences anyone would like to share? thanks in advance robert p.s.: I sent this message yesterday but it didn't make it through. I hope none of you gets it twice. I checked the archive and it isn't there.
Re: pitfalls migrating an app from orion to wls
In the meantime, I just wanted to offer that I work for a company that develops what we call Portal Lifecycle Management tools (read application lifecycle for the web) on the J2EE platform. We currently support both Orion 1.5.x and WebLogic 6.1 (we require EJB 2.0 compliance), meaning we use a single portal definition and can perform deployment to either platform in a few simple steps (local Orion deployment is fully automated). we also use our own code generation that abstracts the server-specific stuff (deployment descriptors, database mappings etc.) so the main problem is not the actual transformation of that info but unexpected problems due to our lack of experience with WLS. if it is similar to orion you need some time to find out what features are really reliable/usable and where the problem areas are. Since there are many differences in the most recent few releases of both Orion and WL, we could probably have endless discussions on the issues with porting from one to the other, but if you have more specific information (i.e. what versions of Orion the app is from and what version of WL is targeted), I could probably offer additional advice. the app runs fine on orion 1.4.7 (production) and 1.5.4 (development to see if we can switch). WLS will be 6.1 I think. we currebntly use CMP 1.1 exclusively. As far as Security goes, we have written adaptors for managing users and groups in Orion and WL separately -- i.e. we wrote a custom UserManager for Orion and a custom Realm for WL that communicate with our EJB's. Also, if you want to write platform-neutral user management, check out the OSUser module of the OpenSymphony project, which is being developed specifically to address the different user manager implementations (and integrate them with external services such as LDAP or other legacy/proprietary security services) found in vendor J2EE implementations. I'll look into that. thanks Also, just FYI, we had many problems with Orion's CMP (wouldn't generate finder queries with multiple parameters) and WL's auto-table generation, so we've been using that extensively and never had problems we ended up extending the EJBGEN package to generate both the orion-ejb-jar.xml and SQL scripts so we could create the tables for the CMP beans ourselves. we have automated that part so I don't worry about that. Good luck and if you have questions, I'll be glad to offer additional advice. You might also try out the new forums at Atlassian (http://www.atlassian.com) or The ElephantWalker (http://www.elephantwalker.com) to get additional perspective on the subject. I'll check that out too. thanks robert -Jason
Default autocommit is true or false?
Hi, list! A strange problem. I have a session bean that access a datasource. When a connection is requested and method Connection.getAutoCommit() is called, I always obtain true. The default autocommit isn't false? Stranger! See this code: try { Connection con = getConnection(); //obtain connection in datasource con.setAutoCommit(false); stmt.executeUpdate(sql1); stmt.executeUpdate(sql2); } catch(Exception) { sessionContext.setRollbackOnly(); } When stmt.executeUpdate(sql) throws a SQLException, my session bean calls setRollbackOnly and the transaction should rollback. In fact, I saw that stmt.executeUpdate(sql1) didn't have effect in database just after this method have execute. But after about 1 minute, I turn to database and I saw that the effect of stmt.executeUpdate(sql1) was commited. I repeat the experiment many times, and the same occurred after one minute. It sounds like the container had setted the autocommit true after some timeout. Does anyone knows what is happenning? The default autocommit isn't false? Carlos Roberto da Silva Júnior Engenheiro de Software Ramal - 4631 Qualiti Software Processes - CESAR Soluções para o processo de construção de software http://www.qualiti.com.br +55 81 3272.4700
Delete me
Please delete me. From: Garrett Skelly [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: General Question about Enterprise Deployment of Orion Date: Thu, 28 Feb 2002 18:14:19 - Guys Gals, has anyone deployed Orion in and enterprise environment? While trying to deploy our application we have encountered a MEMORY LEAK TYPE PROBLEM where EJBs are maintained in Memory and not released - in addition the config of the max-instances in memory does not work - this is a fundamental configuration problem when deploying an application. Has anyone encountered it or is my version OC4J 1.0.2.2.1 a gremlin? Garrett _ Hable con sus amigos en línea, pruebe MSN Messenger: http://messenger.msn.es
RE: Default autocommit is true or false?
Title: RE: Default autocommit is true or false? From javadoc: | If a connection is in auto-commit mode, then all its SQL statements | will be executed and committed as individual transactions. Otherwise, | its SQL statements are grouped into transactions that are terminated | by either commit() or rollback(). By default, new connections are | in auto-commit mode. -Andrej -Original Message- From: Carlos Roberto da Silva Junior [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 8:41 PM To: Orion-Interest Subject: Default autocommit is true or false? Hi, list! A strange problem. I have a session bean that access a datasource. When a connection is requested and method Connection.getAutoCommit() is called, I always obtain true. The default autocommit isn't false?
A Question about context-root directive
This is a resend, yesterdays version seems to have vanished... I'll confess, I'm a little confused. Documentation relating to J2EE states that the context-root directive in the application.xml or web.xml files should be used to provide a unique prefix for your web application to be access from: eg: web web-uriMyApp-web/web-uri context-rootweb1/context-root /web Will be accessed via: http://host:port/web1/myFile.jsp However, this setting seems to have no influence on orion, which prefers this sort of this to be set up in the web-site.xml file like: web-app application=MyApp name=MyApp-web root=/web1 / Am I missing something? Does orion ignore this context-root setting? I can't seem to find any document that discusses it. Any help appreciated.
Re: temporary SSL certificate
This article the annotations demonstrate how to -selfcert a certificate. http://kb.atlassian.com/content/atlassian/howto/verisigncertificate.jsp Cheers, Scott Matt McLaurin wrote: We are trying to generate our own SSL certificate to be used with orion until our request is processed or our real one. I was able to follow the instructions to get a test cert from Thawte, but I would like to generate my own instead of using a test one. Can anybody point me to some instructions on what is required to do this? Thanks Matt -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
remove me
Hi: Pls remove me in the mail list. Thx
Using Objects as a parameter with CMP finder methods
Is there a directive to add on the command line to make Orion log all generated SQL statements? Also, if I have a EJB CMP and I am writing a finder method and I want to pass a JavaBean as a parameter, how do I tell the finder which method or variable to use in the where clause? Is it possible to declare a java-Object as a finder parameter with CMP? For Example: where $name = $1getName() Thanks!
Deploying components common to EJB-tier and WEB-tier
Hi, I'm sanjay joining you guys for the first time. Query: -- If I have some components that are common to both web-tier and ejb-tier, which would be the ideal place to store them(other than ../j2ee/home/lib) ?? Can I put them(the .jar file having the common components) in the same ear file as the .jar(for ejbs) and .war(for web components) files and be able to invoke them from both the web tier and ejb tier. Can you please tell me how the components can be invoked if I follow this approach. Thanx in advance, Sanjay **Disclaimer Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited
More help for the newbie - javax.naming.NamingNotFoundException
I'm trying to learn ejb's using Orion's web server. I'm currently running 1.5.4. I appreciate all the help I've gotten so far. Basically, I'm trying to get the CabinBean example from O'Reilly publishings "Enterprise JavaBeans 2nd Edition" working. I think I'm pretty close. I just need to understand a couple things. I'm basically referencing the enterprise beans from an application outside the ejb container (a regualar class with a static void main method). I've got all the required things put together. I have the ejb-jar.xml in the META-INF of the cabin.jar. I have the application.xml in the META-INF of the cabin.ear. I have an application-client.xml in a META-INF of where my application is running. It seems to be looking at the application xml like it should. The problem is, when i do: Context jndiContext = new InitialContext();Object ref = jndiContext.lookup("java:comp/env/ejb/CabinHome"); The client fails on the lookup statement. I get the following error: javax.naming.NamingNotFoundException: ejb/CabinHome not found in Application Client Now, when I look at my beans in the orionconsole, it doesn't look like they are necessarily deployed under comp/env/ejb/. It looks like it's listed under comp. Maybe this doesn't matter. I've done some RMI programming in the past, and understand some things about the naming lookup. For starters, where is it specified where the beans actually get binded to?? For instance, with rmi, if I had a bean called 'whatever', I could explicitly bind it to "newbean/whatever", and then my lookup statement would be: lookup("newbean/whatever"). Could someone explain this to me a bit... Mostly, I'm just trying to get my beans located from my client program. Any insight on this would be greatly appreciated. Also, In my jndi.properties file, I'm using ApplicatonClientInitialContextFactory. When I tried using RMIInitialContextFactory, i got errors. Just curious as to what the differences are, and what the proper factory is, and where it should be used. Thanks again for all of your help. Joe