RE: EJB MAKER
Title: RE: EJB MAKER Hi Kirk. Try to expand the tools work-area as much as possible. WR -Original Message- From: KirkYarina [mailto:[EMAIL PROTECTED]] Sent: den 31 juli 2000 23:19 To: Orion-Interest Subject: Re: EJB MAKER Where does the dependent's section mentioned in the tutorial come from? I have been unable to make this section appear. Kirk Yarina At 09:48 PM 7/31/00 +0200, you wrote: Hello David David Sierra Fernandez wrote: Anyone has used the ejbmaker graphical tool??? I think it is used to map a entity bean to a table in a DB or to generate the code of a entity bean but i'm not sure??? It is used to generate Entity Beans quickly, there is a tutorial about it at http://www.orionserver.com/toolstut/lesson1/ snip
about classpath and other stuff
Hi all When i try to run the examples such as news or atm i get the following exception: java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: cannot instantiate com.netscape.ejb.client.Util minor code: 0 completed: No at javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:308) at javax.rmi.CORBA.Util.clinit(Util.java:54) at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:182) at javax.rmi.PortableRemoteObject.clinit(PortableRemoteObject.java:62) at com.evermind.ejb.taglib.UseHomeTag.doStartTag(UseHomeTag.java:30) at /news.jsp._jspService(/news.jsp.java:47) (JSP page line 5) at com.evermind.server.http.EvermindHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.t5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.di.pw(JAX) at com.evermind.server.http.di.forward(JAX) at com.evermind.server.http.dr.p1(JAX) at com.evermind.server.http.dr.p0(JAX) at com.evermind.util.f.run(JAX) Also i have problems with some tag classes. where should utiltags be exactly ?TIA Mario
UserManager question
I'm writing a custom user manager for Orion. I need to access a file in the J2EE application structure (such as app/META-INF/um.xml or app/webapp/WEB-INF/um.xml) that contains additional settings for the user manager for a specific application. How can I find the application root (or the deployment directory) for the application where the user manager is installed? The default orion user manager seems to do this with principals.xml... /Magnus
class/servlet reloading
hi! i am not using ear/war/-files right now, but i am deploying my applications by putting my packages and classes into the \web-inf\classes directory my question is: is there a possibility to force the container to reload these classes without shutting down (= user sessions should surivive, nearly no denial of service time) could you help me with this? thanks! joe ___ Say Bye to Slow Internet! http://www.home.com/xinbox/signup.html
AW: failed transaction problem - new entity bean not erased
-Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet am: Dienstag, 1. August 2000 00:22 An: Orion-Interest Betreff: failed transaction problem - new entity bean not erased Hi everybody - Hi, i don't know, why it does not work, but some things about transaction handling i was able to figure out... I've got a session bean that creates a new entity bean, pushes some things around in the database, then [on purpose] throws an EJBException to rollback the transaction. When I look at the database, I see that all the stuff the session bean did to the database has been [correctly] rolled back, but the entity bean that was created during the transaction hasn't been removed from the database. Is this proper behavior? Surely this is no proper behaviour if your transaction settings are right. The session bean is stateless and declared as doing bean managed transactions. The session bean 'requires' a transation for all method calls. The UserTransaction.begin() method is called before creating the entity bean. The entity bean does BMP, declares itself as Container managed transactions, and 'supports' transactions. Did you try the same with a transaction setting of required for the entity bean? However, as far as i understand, it should work with "supports" (see the spec). Which datasource are you using for your BMP? The ejb-location? I've been able to retrieve one of these entity beans, modify it's contents, then rollback the transaction and that works perfectly. I threw in some debugging statements, and the 'ejbRemove' method is never called for the entity bean - shouldn't it do that after the transaction is rolled back? I'm actually surprised it wasn't rolled back, because I'm using the DefaultEJBDS. Should I be creating a UserTransaction object for the entity bean and wrapping all operations within begin() and end() calls? As far is i understood, the ejbRemove will never be called on a rollback. The cleanup after a failed transaction seems to be the responsibility of the databases transaction system (if not, it would work with non-transactional databases like mySQL, too). So, no user code will be executed to perform a rollback. Hope that helps to find out more... Jens Stutte
principals.xml in ear file?
Hello, When I deploy my application, packaged in a .ear file, Orion seems to "forget" copying the principals.xml file into the application-deployments directory. Orion starts with this error: Error instantiating application at file:/usr/local/orion/applications/lektor.ear: Couldnt read principals config file: file:/usr/local/orion/application-deployments/lektor/principals.xml for lektor (/usr/local/orion/application-deployments/lektor/principals.xml (No such file or directory)) When i copy the principals.xml by hand to its place in application-deployments everything works fine. It is the same problem both if I have principals path="./principals.xml" / defined in orion-application.xml or if I don't have it defined. Does anyone else have this problem? /Anders A n d e r s B e n g t s s o n [EMAIL PROTECTED] http://www.natakademin.se/
Re: Mapping CMP fields to db columns
At 10:09 01.08.00 , David Sierra Fernandez wrote: You only have to edit the file orion/config/database-schemas/oracle.xml or the db you use. It' very simple. If you have any other db that's not in the list create a new one. Good luck !!! John, that doesn't help if you have an existing schema which I think is the most likely scenario. to map cmp-ejbs to a schema look at the generated orion-ejb-jar.xml and put your table and column names there (replace the ones generated by orion if necessary). the adjustments you make will not be overwritten by orion. 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
Different Web module shares session
My application has many web module , I can I share session? I have set web-app to share="true" , but it doesn't work at all, they are still different session. Regards., Jen Hsien Huang
RE: CMP
Title: RE: CMP The ATM uses the default EJB CMP DB Connection. If you want it to use something else, specify the db-source in orion-ejb-jar.xml Hope this helps, Magnus -Original Message- From: David Sierra Fernandez [mailto:[EMAIL PROTECTED]] Sent: den 1 augusti 2000 13:00 To: Orion-Interest Subject: CMP This is a simple question but it's drving me crazy... The ATM example uses the default DB conection, exactly jdbc/DefaultEJBDS If you change this name you can see it at restarting. My question is where does the ATM example make reference to this name??? I couldn't find this reference in code If it's a default value in Orion CMP ... what happens if you have two or three app with CMP Thank you - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ --
URGENT(!) Cookies
Hi, We have Orion running on port 81, and Apache running on port 80. Apache is set to proxypass documents. The problem is that when we set up virtual hosting on Apache, Orion all-of-a-sudden thinks that there is only one client, and so everybody going through Apache (port 80) gets the same JSESSIONID and consequently the same servlet-side session state. We need to be able to do virtual hosting for logging and security reasons on Apache, and we are also using it to cache static pages. Have you got any ideas as to how to overcome the problem? Regards, James Dodd ZDNet
RE: URLConnection
Be aware that the URLConnection exhibits some strange behavior. If the webserver returns any exception code other than OK (200), the URLConnection will throw an IOException FileNotFound instead of a meaningful Http Exception. clint Amateurs built the ark. Professionals built the Titanic.
Error deploying CMP bean.
I am having trouble deploying a CMP entity bean. The error I get is: Auto-deploying classifieds-ejb... Error compiling file:/C:/Dev/classifieds/classifieds-ejb/: Variable contained illegal space Orion/1.0.3 initialized I have no idea how to find out which 'variable' this is. I have experimented and found out that if I comment out all sections of the ejb-jar.xml file that describes the entity bean, it deploys successfully. Is there any place where I can get more details error messages describing what in the file is wrong. I can't see what might be wrong. I have checked for white space which doesn't seem to belong, and the ejb-jar.xml file checks as valid against its DTD. Thanks John Sinnott
EJBMetaData.isStatelessSession() bug
I followed the Orion Primer from http://www.znerd.demon.nl/ and I got it working fine. I deployed a stateless session bean just fine. The ejb-jar.xml file explicitly says that the bean is a stateless session bean. Then, I tried the following code in my client application (called it from a standalone client, not a servlet): Object home = ejbContext.lookup(jndiName); EJBHome ejbHome = (EJBHome) home; EJBMetaData ejbMetaData = ejbHome.getEJBMetaData(); boolean isStateless = ejbMetaData.isStatelessSession()); boolean isSession = ejbMetaData.isSession(); After running this code, the boolean "isStateless" is most definitely false (incorrect) and "isSession" is true (correct). That is, under OrionServer, the EJBMetaData does not correctly identify the session bean as stateless. Is there way I can submit this as a bug? thanks for any info, david -- David Sims [EMAIL PROTECTED] Sims Computing, Inc. www.simscomputing.com
RE: URLConnection using the method POST
Im using JSSE to do this same thign but with an SSL connection. The test app i worte (just regular java) seems ot take along time to connect and download... Yall know of a way to speed this up? Thanks Brady Moritz Moritz Designs -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Damian Guy Sent: Tuesday, August 01, 2000 5:50 PM To: Orion-Interest Cc: Orion-Interest Subject: Re: URLConnection using the method POST Yep, you can do something like so: URL url = new URL(hostname); HttpURLConnection conn = (HttpURLConnection)url.openConnection(); conn.setDoOutput(true); conn.setRequestMethod("POST"); PrintWriter stream = new PrintWriter(conn.getOutputStream(), true); stream.println("xml=" + URLEncoder.encode(xml)); Regards, Damian HI! I need to make a servlet (or JSP page) to get an external page using the method POST. Is it possible with the URLConnection class? Thanks. Guilherme Ceschiatti