Re: Is xerces.jar too old ?
Yes it is. Get the latest and put it in orion/ and it will work fine. I also use jdom and it works fine. It will not cause side affects since the only difference is the DOM level supported. Matt Boris Erukhimov wrote: Our application uses XML data exchange wrapped into HTTP. It is handled by a servlet running under Orion and doing its own XML parsing and generating. We are using pretty convenient XML API (Jdom ) from http://www.jdom.org which I highly recommend. The jdom.jar bundle comes with the latest (?) xerces.jar which I also copied into /Orion/lib directory. My standalone code worked fine, but after I placed it into servlet it did throw NoSuchMethodException complaining at some xerces code. Apparently Orion's classloader uses xerces.jar from the Orion root directory prior to the one placed in Orion/lib directory. Everything works fine after I replaced the old xerces.jar in the Orion root directory with the new one which came with jdom.jar bundle. I don't like that hack because it's an alteration to Orion distribution and hell knows what side effects it may cause. So, my question are : Is there any way to force servlet in using certain library if there is some naming conflict with the one in Orion root ? Orion team, are you going to update xerces.jar in distribution ? Does it involve any licensing issue ? Thanks ~boris
Re: Mixing secure non-secure pages in the same application
In ${orion_home}/default-web-app make an index.html that redirect to port 443 that should do it. Matt Thomas Pridham wrote: I have jumped through the Verisign hoops and have installed my certificate. Here is my issue: How do you serve both secure and non-secure pages from the same application Right now, my entire application is secure and served from port 443. If someone types in the URL, the server does not respond because I am not running anything on port 80. For a VERY temporary fix, I turned on IIS on the same box, and do a redirect from IIS:80 to Orion:443. My goal is to have one application, serve the splash screen in non-secure mode, and serve the rest of the screens in secure mode. I searched the documentation / mailing list, but did not find anything. Thanks, Tom Pridham Software Engineer Computer Management Consultants 6951 Pistol Range Road Tampa, FL 33536 813-935-7332 ext. 165 813-854-4538 - Fax http://www.cmctpa.com http://www.oakscape.com
Properties for DataSourceUserManager?
Does any one know the properties for the datasourceusermanager. I can get it to work for the username and password, but not the groups. Here is what I have: user-manager class="com.evermind.sql.DataSourceUserManager" property name="dataSource" value="jdbc/HermesCoreDataSource" / property name="table" value="users"/ property name="usernameField" value="name" / property name="passwordField" value="password" / property name="defaultGroups" value="guest" / property name="groupMembershipTable" value="user_groups" / property name="groupMembershipUsernameField" value="name" / property name="groupMembershipGroupField" value="groupname" / property name="staleness" value="3600" / property name="debug" value="true" / /user-manager Thanks, matt
Re: Form Login bouncing me to welcome page!
Is your welcome jsp a protected resource? That should fix it. Matt Gerald Gutierrez wrote: I've searched the mailing list, but there doesn't seem to be information on this. I'm a little desparate now. I'm using a form-based login for my web application. When a user hits Login.jsp, s/he must log in. I have the LoginForm.jsp and LoginError.jsp files in / of my context root. This redirection to the LoginForm.jsp does occur, but regardless of whether the user logged in successfully or not, he is dumped back to the welcome page. The actual logging in is successful, i.e. if he provided the correct credentials, he's logged in, but still dumped back to the welcome page. Here is the relevant portion of my web.xml: security-constraint web-resource-collection web-resource-nameLoginTrigger/web-resource-name descriptionLoginTrigger/description url-pattern/Login.jsp/url-pattern http-methodGET/http-method http-methodPOST/http-method /web-resource-collection auth-constraint role-nameportal_gamer/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method realm-namedefault/realm-name form-login-config form-login-pageLoginForm.jsp/form-login-page form-error-pageLoginError.jsp/form-error-page /form-login-config /login-config security-role role-nameportal_gamer/role-name /security-role Which part of the magic am I missing?
Re: same Error deserializing EJB-session on petstore, anyone help me.
Just glancing at your problem, I think the error is in the petstore app. ModelManager and some other classes for the shoppingclientcontroller do not implement serializable and hence an error. Matt Li You wrote: Hi All, Dear Alexey Ryndin, I find same Error deserializing EJB-session in petstore on Orion,I don't know where i miss ? where petstore miss ? where Orion miss ? where Postgresql miss? and why!? please help me. thanks again, yours Urey . //** errors of perstore on Orion 00-11-2 12:47 Started 00-11-2 12:47 petstore: 1.3.8 Started 00-11-2 12:48 petstore: com.sun.j2ee.blueprints.petstore.control.web.MainServlet: init 00-11-2 12:48 Error deserializing EJB-session java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager at java.io.ObjectInputStream.readObject(ObjectInputStream.java:445) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at com.evermind.server.ejb.gp.ah8(JAX) at com.evermind.server.ejb.EJBContainer.aib(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.server.rmi.bf.h0(JAX) at com.evermind.server.rmi.RMIContext.gr(JAX) at com.evermind.server.rmi.RMIContext.gv(JAX) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.util.t.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at javax.naming.InitialContext.lookup(InitialContext.java:350) at com.sun.j2ee.blueprints.petstore.util.EJBUtil.getSCCHome(EJBUtil.java:47) at com.sun.j2ee.blueprints.petstore.control.web.ModelManager.getSCCEJB(ModelManager.java:124) at com.sun.j2ee.blueprints.petstore.control.web.ShoppingClientControllerWebImpl.init(ShoppingClientControllerWebImpl.java:61) at com.sun.j2ee.blueprints.petstore.control.web.RequestProcessor.processRequest(RequestProcessor.java:96) at com.sun.j2ee.blueprints.petstore.control.web.MainServlet.doGet(MainServlet.java:61) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) 00-11-2 12:48 Error deserializing EJB-session java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager at java.io.ObjectInputStream.readObject(ObjectInputStream.java:445) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262) at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at com.evermind.server.ejb.gp.ah8(JAX) at com.evermind.server.ejb.EJBContainer.aib(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.server.rmi.bf.h0(JAX) at com.evermind.server.rmi.RMIContext.gr(JAX) at com.evermind.server.rmi.RMIContext.gv(JAX) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at com.evermind.server.ejb.gr.fv(JAX) at com.evermind.util.t.lookup(JAX) at com.evermind.server.hi.f_(JAX) at com.evermind.server.hi.lookup(JAX) at javax.naming.InitialContext.lookup(InitialContext.java:350) at
Re: App that runs on OrionServer but throws a java.lang.VerifyError on weblogic 6.0
I am just guessing here, since I don't use weblogic. It may be possible that web logic forces only RMI-IIOP arguements. In which case any thing passed on the wire must be a primitive, Serializable or Remote type. If they are not, they are invalid ant may fail on deployment when weblogic verifies your beans and such. I don't believe that orion forces RMI-IIOP. See javasoft for more info about RMI-IIOP. M Ismael Blesa Part wrote: What does (Is your agruement RMI-IIOP valid) mean?, this class is used from a javabean used from a JSP. Its parameters are two classes from my own and java.lang.String from Sun. We are not using neither clustering neither persistant sessions (at least I think that this is the default configuration) Something that shock me is that it runs fine under Orion, then what could be happening? Matt Bauer wrote: Is your agruement RMI-IIOP valid? M Ismael Blesa Part wrote: We have developed a web application that works fine under OrionServer. It has JSP, JavaBeans and Taglibs. Now we are testing with Bea Weblogic and there are some strange errors thrown by the server. It complains about (java.lang.VerifyError: (class: com/test/logic/integration/connectors/BeanConnector, method: connect signature: com/test/logic/MyData;Lcom/test/logic/Environment;Ljava/lang/String;)V) Incompatible object argument for function call) It is a very strange error, I have compiled all my code with javac (1.3.0_01) and also with jikes last version. I have changed also bea weblogic to point jdk to my installed jdk. The best of all this strange error is that this method is not called. ie: looking on the print messages I have put on the code, execution stops before the invocation of this method. I think that this error comes when the java virtual machine tries to load this class. Anybody has any idea about what is causing this error to appear? Regards, Ismael ([EMAIL PROTECTED])
Re: App that runs on OrionServer but throws a java.lang.VerifyError on weblogic 6.0
Is your agruement RMI-IIOP valid? M Ismael Blesa Part wrote: We have developed a web application that works fine under OrionServer. It has JSP, JavaBeans and Taglibs. Now we are testing with Bea Weblogic and there are some strange errors thrown by the server. It complains about (java.lang.VerifyError: (class: com/test/logic/integration/connectors/BeanConnector, method: connect signature: com/test/logic/MyData;Lcom/test/logic/Environment;Ljava/lang/String;)V) Incompatible object argument for function call) It is a very strange error, I have compiled all my code with javac (1.3.0_01) and also with jikes last version. I have changed also bea weblogic to point jdk to my installed jdk. The best of all this strange error is that this method is not called. ie: looking on the print messages I have put on the code, execution stops before the invocation of this method. I think that this error comes when the java virtual machine tries to load this class. Anybody has any idea about what is causing this error to appear? Regards, Ismael ([EMAIL PROTECTED])
Re: core dump on solaris running on Sun box.
Make sure your using the latest JVM. It fixed my sun box problems. Matt Robert Krueger wrote: At 16:13 25.01.2001 , you wrote: HELP. I have installed orion on a solaris box and trying to deploy and EJB application. The application uses back end informix and utilizes CMP beans. I can login to the application without a problem. As soon as I initiate a function that actually hits the database with a query, i get a core dump over 24MB. I am able to deploy alright to WinNT 4.0 with SP 5. The database is the same Informix. I thought I would be alright with NT development and then deployment should have been OK once I did development on NT. I wish I had tested out the application on the deployment enviornment first. Obviously I can't send the core dump to this mail listing so I will include the ouput from the console window. Where should I send a core dump? try sun. it cannot be a problem with orion as a VM cannot programmatically be crashed. it's a native code problem so it could be VM, OS or native JDBC drivers. nobody will/can help you if you send it here. regards, robert HELP. HELP. (-) Robert Krger (-) SIGNAL 7 Gesellschaft fr Informationstechnologie mbH (-) Brder-Knau-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Re: how do i use EJBUserManager
Where is the EJBUser bean. I found it in the orion.jar, so am I suppose to just grab the needed classes and but them in my jar, or just place the needed descriptions in my ejb-jar.xml? Matt Mike Cannon-Brookes wrote: Have you deployed com.evermind.ejb.EJBUser and an entity bean in your app? It needs to be specified in an ejb-jar.xml file somewhere of course! -mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matt Bauer Sent: Thursday, January 25, 2001 5:24 AM To: Orion-Interest Subject: how do i use EJBUserManager Orion is a nice app server, but poor at documentation. I have this for my orion-application.xml file: orion-application user-manager class="com.evermind.ejb.EJBUserManager" property name="home" value="com.evermind.ejb.EJBUser"/ property name="defaultGroups" value="users"/ /user-manager /orion-application when I start my app I get this exception: Error instantiating application 'hermes' at file:/export/orion/applications/hermes.ear: Error initializing userManager 'com.evermind.ejb.EJBUserManager': NamingException: com.evermind.ejb.EJBUser not found What am I missing? M
problem invalidating servlet
I have this small bit of code that handles a log out. What I want to do is invalidate the session and put a new on in its place. The problem is when I try to set the attribute, I get an exception telling my the session is invalidated. Am I missing something? if (event instanceof LogoutEvent) { request.getSession().invalidate(); HttpSession validSession = request.getSession(); validSession.setAttribute(WebKeys.ModelManagerKey, mm); } Thanks M
how do i use EJBUserManager
Orion is a nice app server, but poor at documentation. I have this for my orion-application.xml file: orion-application user-manager class="com.evermind.ejb.EJBUserManager" property name="home" value="com.evermind.ejb.EJBUser"/ property name="defaultGroups" value="users"/ /user-manager /orion-application when I start my app I get this exception: Error instantiating application 'hermes' at file:/export/orion/applications/hermes.ear: Error initializing userManager 'com.evermind.ejb.EJBUserManager': NamingException: com.evermind.ejb.EJBUser not found What am I missing? M
Re: problem invalidating servlet
Indeed I was Matt Conrad Chan wrote: I think he was trying to invalidate the existing session before setting the attribute. Conrad -Original Message- From: Boris Erukhimov [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 4:05 AM To: Orion-Interest Subject: Re: problem invalidating servlet Try this ... if (event instanceof LogoutEvent) { HttpSession validSession = request.getSession(true); validSession.setAttribute(WebKeys.ModelManagerKey, mm); } ~boris Matt Bauer wrote: I have this small bit of code that handles a log out. What I want to do is invalidate the session and put a new on in its place. The problem is when I try to set the attribute, I get an exception telling my the session is invalidated. Am I missing something? if (event instanceof LogoutEvent) { request.getSession().invalidate(); HttpSession validSession = request.getSession(); validSession.setAttribute(WebKeys.ModelManagerKey, mm); } Thanks M
Problems authenticating
I have a simple app (very similiar to the pet store) that uses form based login. I can created an account and see it created in the appropriate principals.xml file. The problem is every time I use my form based login I get an error: 400 Bad request: HTTP method POST is not supported by this URL. My form uses action="j_security_check" method="post" just like its suppose to. Any one know why this fails. Also, I plan on using EJBUserManager, but the docs for it stink. What do I have to add to my orion-application.xml or other xml files to make this thing work? Thanks M