Re: urgent: error accessing jar file
then you will have to employ the same solution: go back to JDK 1.2.2 or unpack the ecs.properties file into your (the webapps) classpath -Original Message- From: Juan Pablo Lorandi [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Montag, 19. Juni 2000 19:53 Subject: RE: urgent: error accessing jar file I have the exact same problem
JSP extends directive - has anybody tried it?
Hello List, We are currently trying to port our complete JSP (1.0-style) application to Orion. For historical reasons our application uses the JSP extends directive, for example: %@ page extends="com.finatec.services.servlet.ISecureServlet" % We have converted our ISecureServlet class so that it itself extends the Orion implementation class com.evermind.server.http.EvermindHttpJspPage. We have previously ported our application to Resin, which also has a JSP 1.1 engine, using the same technique. However, when we now access the containing JSP page it compiles but fails during processing with the error "Superclass of the JSP page does not implement HttpJspPage, invalid extends attribute" We've traced the problem down to the point (in dn.class) where Orion checks to see (we believe) whether the generated JSP Servlet class is assignable (via the Class.isAssignableFrom method) from the class that we are extending, namely ISecureServlet. The classes are not assignable, hence the error message. With this in mind, I have two questions: 1. Is the assignment check the right way around? Shouldn't we instead check to see if ISecureServlet is assignable from our generated servlet? 2. Otherwise, has anybody successfully used the extends directive? If so, what class did you inherit, and do you have any other tips that might help us out? Regards, Geoff Lewis Finatec Financial Software Solutions AG Tel: +49 9371 97860 Fax: +49 9371 403381 Web: http://www.finatec.com Email: [EMAIL PROTECTED]
RE: Solaris
We had this kind of behaviour until we upgraded to the absolute latest JDK for our Solaris (which is 2.8). I think it was the 1_2_2_05 JDK. I think you said you had a slightly older version of Solaris, so you'll have some JDK patching to do if you upgrade, but it may do the trick. Arved Sandstrom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joel Shellman Sent: Monday, June 19, 2000 4:49 PM To: Orion-Interest Subject: Re: Solaris Rick Bos wrote: When I try to run the news example on Solaris, I get this error: Auto-deploying news-ejb.jar... SIGBUS10* bus errorsi_signo [10]: SIGBUS10* bus error Rick Bos OCAS Research and Development Engineer http://www.ocas.on.ca 1-888-892-2228 x241 Are you using a JIT? You might try running with the JIT disabled and see if you get the same error. -- Joel Shellman Chief Software Architect The virally-driven B2B marketplace for outsourcing projects http://www.ants.com/90589781
Remote Restart
I am using Orion 1.0. I remotely modified the data-sources.xml file. Then I remotely issued a restart command as follows: java -jar admin.jar ormi://myHost admin admin -restart Problem is, the new datasource that I added is not recognized by my jsp pages. Thus, it seems that the restart didn't work. Any suggestions? Is thus a bug? Dave
RE: Sessions And SSL
Sessions tracking is based on cookies, so if your two domains (http and https) aren't the same (i.e. using a shared SSL certificate) then you'll lose your state. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Peter Sent: Sunday, June 18, 2000 6:50 AM To: Orion-Interest Subject: Sessions And SSL Hi there, I am developing an e-commerce application. Some of the storefront pages such as checkout, order status etc. must be secured. So I configured two web-sites in config.xml: default-web-site(localhost:80) and secure-web-site(localhost:439). Now I must jump from shoppingcart.jsp ( unsecure page) to checkout.jsp ( secure page ). The problem is: the session ( and all the data ) is lost ! I tried to encode session id in the url, but i guess the session isn't shared by different web-sites... am I wrong ? Any idea or solution ? Peter
RE: Sessions And SSL
At 11:03 20.06.00 , you wrote: Sessions tracking is based on cookies, so if your two domains (http and https) aren't the same (i.e. using a shared SSL certificate) then you'll lose your state. could you elaborate what you mean by "shared" SSL certifcate? why would the http url be associated with a certificate? regards, robert (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de
Orion 1.0 PetStore Demo DB
What is the datasource for Orion's website implentation of the PetStore? I've been using hsql but the catalog query doesn't execute properly. I've been using JDBCTest to test the query stmt but something isn't quite right. Kirk S. Kalvar, Software Engineer DRS Electronic Systems Group
Isolation level of transactions
Hi, i have an application, in which multiple clients will concurrently modify the same entity bean instances, with which i experienced heavy problems. The database backend sometimes throws exceptions as if there were concurrent locks on the same resources. I tried to experiment with the isolation level settings in the orion-ejb-jar.xml, but this seems to have no effect. As far as i have understood the EJB concept, an entity bean could be considered as a sort of "serialization bottleneck" for concurrent transactions. There is only one instance which sequentially satisfies the clients requests (and if the isolation level is set to "repeatable_read", it should "serialize" the requests on a per transaction basis, i assume, ie do not let anyone else read or write the bean until the transaction has finished). Orion instead seems to run the ejbXXX functions in concurrent threads simultanously and the isolation level setting does not seem to have any effect. Could someone please clearify how it is assumed to be following the spec (the above is only my interpretation) and how it is implemented in orion (and which transaction related settings work and which not)? In this context i'd like to mention the "max-tx-retries" setting, which either does not work or i do not know for which type of exception it does work. The transaction behaviour is very important for me, since i don't use EJB as another (read) access type to existing databases, but in a very dynamic, heavily changing data environment with many concurrent transactions. Thanx in advance for any reply, Jens Stutte P.S.: Last week i posted a bug with the subject "Different home class type returned by local than by remote client". Are there any news on this issue? [EMAIL PROTECTED], http://www.netmedia.de NetMedia GmbH Neugrabenweg 5-7 66123 Saarbruecken Germany fon: +49 (0) 681 - 3 79 88 - 0 fax: +49 (0) 681 - 3 79 88 - 99
FEDERATION !!!
Hi again, In ORION/CONFIG/RMI.XML What is the use of the server tag ? server host="the.remote.server.com" password="123" port="23791" username="admin" / Specifies a remote (point to point) RMI-server to communicate with. host - Hostname of the remote server. password - The password to log in with. port - Port of the remote server, default is 23791. username - The username to log in with. I do not understand what it is aimed for. What I want is to create a security domain between two Orion servers. When EJB in Orion A connects to EJB in Orion B, 1) Orion B does not know this user and 2) Tries to find it in Orion A. 3) and then authenticates. Can I do this with Orion ? Regards, Pedro
Error trying to deploy web application
I am trying to deploy my own web application but keep getting the following error: Error initializing server: Error instantiating application at file:/home/joel/app/orion/applications/test.ear: Unable to find/read assembly info for /home/joel/app/orion/applications/test (META-INF/application.xml) What exactly does this error mean? Which file do I need to fix? Also, are there any tools to make it easier to create the directory structure necessary for building a new web application? A template, script, or anything? Thanks, -- Joel Shellman Chief Software Architect The virally-driven B2B marketplace for outsourcing projects http://www.ants.com/90589781
Applet and Orion. Please help!
Hallo! This question is perhaps not orion specific, but bear with me. I am a bit desperate. This is the case: I have an application running as an applet inside jave-plugin version 1.3. I have signed the .jar files which are used with a self made certificate and jarsigner -verify says it's good. Applet and orion is on the same computer and addressed through the same dns name. I also have GIS-engine running on the same machin, which is also addressed, from the applet and works through sockets. It works fine from the applet. And if I run the program in like java -jar app.jar it works. Now to the problem, when I try to make a connection through to the naming server in orion from the applet I get a security failure. This is what the java console gives me: java.security.AccessControlException: access denied (java.util.PropertyPermission xml.validate read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPropertyAccess(Unknown Source) at java.lang.System.getProperty(Unknown Source) at com.evermind.server.XMLConfig.init(JAX) at com.evermind.server.ServerComponent.init(JAX) at com.evermind.server.deployment.ApplicationClientArchive.init(JAX) at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (JAX) at javax.naming.spi.NamingManager.getInitialContext(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at javax.naming.InitialContext.init(Unknown Source) at com.telenor.mobil.planit.pakka.Pakka.loadDatabaseData(Pakka.java:165) at com.telenor.mobil.planit.pakka.Pakka.init(Pakka.java:75) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) The source code which gives this is: // Put this applet instance into the environment Hashtable env = new Hashtable(); env.put(Context.APPLET, this); System.out.println("pip"); Context ctx = new InitialContext(env); System.out.println("pip"); // List objects NamingEnumeration enum = ctx.list(""); System.out.println("pip"); while (enum.hasMore()) { System.out.println(enum.next()); } System.out.println("pip"); ActivityHome home = (ActivityHome) ctx.lookup("ejb/pakka/Activity"); Applet start code is:: jsp:param name="java.naming.factory.initial" value="com.evermind.server.ApplicationClientInitialContextFactory" / jsp:param name="java.naming.provider.url" value="ormi://localhost/appit" / jsp:param name="java.naming.security.principal" value="appit" / jsp:param name="java.naming.security.credentials" value="appit00" / This gives in html: PARAM NAME="java.naming.factory.initial" VALUE="com.evermind.server.ApplicationClientInitialContextFactory" PARAM NAME="java.naming.provider.url" VALUE="ormi://localhost/appit" PARAM NAME="java.naming.security.principal" VALUE="appit" PARAM NAME="java.naming.security.credentials" VALUE="appit00" Everything looks fine except from that dammed exception. And I have of'course made an application-client.xml that refers to the ejb session beans in question. Since everything works standalone I am lost. Since I signed the applet too I am really lost. I would be most grateful for any help... Regards, Torgeir Lerkerød
java.lang.SecurityException when attempting to run ejb sample app
Any thoughts appreciated on the following problem. thnx. -dm E:\java\orion\demo\ejb\productls META-INF ProductEJB.class ProductServlet.java Product.class ProductEJB.java jndi.properties Product.java ProductHome.class orion-product.jar ProductClient.class ProductHome.java product.skeleton ProductClient.javaProductServlet.class E:\java\orion\demo\ejb\producte:\java\jdk1.2.2\bin\java -classpath ../../../ori on.jar;../../../ejb.jar;../../jndi.jar;. ProductClient Exception in thread "main" java.lang.SecurityException: Invalid username/passwor d for ejbsamples (admin) at com.evermind.server.rmi.a8.fd(JAX) at com.evermind.server.rmi.a8.fd(JAX) at com.evermind.server.rmi.a8.ez(JAX) at com.evermind.server.rmi.RMIServer.ez(JAX, Compiled Code) at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.Application.ajt(JAX, Compiled Code) at com.evermind.server.ApplicationClientInitialContextFactory.getInitial Context(JAX, Compiled Code) at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 72) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250 ) at javax.naming.InitialContext.init(InitialContext.java:226) at javax.naming.InitialContext.init(InitialContext.java:182) at ProductClient.main(ProductClient.java:18) Dan MalksSun Java Center Enterprise Java Architect703.208.5794
Re: Error trying to deploy web application
Thank you very much. That does help. It ends up I had META_INF instead of META-INF so it wasn't working. What are the GUI tools? Are they documented anywhere? How do I use them? I agree with you, but I'd like to graduate and use the GUI tools now :) Thanks, -- Joel Shellman Chief Software Architect The virally-driven B2B marketplace for outsourcing projects http://www.ants.com/90589781 Arved Sandstrom wrote: As you currently have your server.xml and default-web-site.xml config files set up, the top-level directory of your application is "/home/joel/app/orion/applications/test", and the server expects to find a directory "META-INF", containing your "application.xml" file, inside that top-level application directory. Your application.xml file would specify either a directory or a jarfile inside the "/home/joel/app/orion/applications/test" application directory, identifying it with the module web.../web /module tag. As far as the file structure of a web app (the web component) goes, this is spelled out in the Servlet spec. In brief, the directory containing everything pertaining to your web component contains content (HTML, JSP, image) files and a "WEB-INF" directory containing a "web.xml" deployment descriptor _and_ a "classes" folder, which contains servlet and JavaBean classes. WEB-INF may also contain a lib directory if you're including taglib jars. Hope this helps. I recommend reading the J2EE, EJB and Servlet specs for the file structure information. The Orion docs include all of these PDFs. Arved Sandstrom P.S. Orion includes GUI tools for doing all of this. I have found that GUI tools for _any_ app server are best used _after_ an individual is able to assemble an application manually, including writing the descriptors by hand. This just results in more knowledgeable team members.
Complex Primary Key problem
I have a Primary Key class defined for my entity bean. The table only has one primary key, and the key class only has one attribute. When I deploy and attempt to invoke 'findByPrimaryKey(pk)', I get an abstractMethodError. Deploying an entity bean with a table of two primary keys and a class that has the two attributes, it works fine. Same for deploying a bean with a table that has one primary key, and using an equivalent java object as the primary key(and no seperate class). Does Orion have a 'rule' that you cannot have a primary key class that has only one attribute? Does it mandate that you simply use the equivalent java object type of the primary key like BigDecimal? This is a huge showstopper for us, so any feedback would be great. Thanks! James Birchfield Senior Software Engineer Ironmax.com LLC a better way to buy, sell and rent construction equipment 5 Corporate Center 9960 Corporate Campus Drive, Suite 2000 Louisville, KY 40223
RE: Sessions And SSL
Sure, often with ISPs you get secure server access, and you can either use their certificate, or purchase your own from Verisign, etc. So, if you are using a shared certificate, even though your non-secure domain could be http://www.yourdomain.com, your secure domain would be https://www.myisp.com/~yourdomain/. Thus, you can't share cookies between your HTTP and HTTPS by default. Neal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Robert Krueger Sent: Tuesday, June 20, 2000 11:37 AM To: Orion-Interest Subject: RE: Sessions And SSL At 11:03 20.06.00 , you wrote: Sessions tracking is based on cookies, so if your two domains (http and https) aren't the same (i.e. using a shared SSL certificate) then you'll lose your state. could you elaborate what you mean by "shared" SSL certifcate? why would the http url be associated with a certificate? regards, robert (-) Robert Krüger (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt, (-) Tel: 06151 665401, Fax: 06151 665373 (-) [EMAIL PROTECTED], www.signal7.de