Re: HINT: One possible way to cure an internal error on deployment
I've done something kind of similar. I found through experimentation that the Orion-generated file orion-web.xml, which lives in the app-specific subdirectories beneath application-deployments, had gotten stale -- out of sync with my deployment descriptors. When you shutdown Orion and blow away that file, Orion generates a new one with correct values. Similar to your experience, that stopped the 500 Internal Errors. Just noting this so you can experiment with it in future. Hope this helps! --Mark Jim Archer [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 10/23/00 09:11 PM Please respond to Orion-Interest To:Orion-Interest [EMAIL PROTECTED] cc: Subject:HINT: One possible way to cure an internal error on deployment Hi All... I just thought I would put this out in case anyone finds it usefull to tuck away for future use. For about an hour now, I have been getting an Internal error on deployment. The error complained that the persistence type was not set for one of my fields in an EB that participated in an EJB 2.0 CMP relationship. I don't know what made me do it, but I went over to application-deploymnts and blew away the entire application folder. Then I started Orion and the app deployed like a champ. If I could reproduce this, I would bugzilla it, but I can't, so I'm just offering this hint. Jim
New howto on OrionSupport: Virtual Hosts
Setting up Virtual Hosts on Orion http://www.orionsupport.com/articles/vhosts.html Step by step guide to deploying 2 web-sites with different virtual hosts on the same server. Thanks to Damian Van Dooren for contributing this. -Joe Walnes
get reference to UserTransaction fails
Hello, i'm using transactions within servlets, sessionbeans with no problems. now i'm trying this from an ordinary app-client but it caught an exception: "java:comp/UserTransaction not found" what goes wrong? thanks a lot klaus import javax.naming.*; import javax.transaction.*; ... TransactionManager tm = (TransactionManager)new InitialContext().lookup("java:comp/UserTransaction"); -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] "There's got to be more to life than compile-and-go."
LDAPUserManager?
Hello, I read in the mailing list archive some talks about an upcoming LDAPUserManager class? Any ideas when it might be (or it is already?) available? Greetings, Philippe.
Problem using JavaMail with Orion
500 Internal Server Error java.lang.NoClassDefFoundError: javax/activation/DataHandler This class comes with Orion and also is located in the Orion library path. What's wrong?
Re: Problem using JavaMail with Orion
If you are using jdk1.3 then push the javamail.jar or mail.jar whatever it is {jar relevant to javamail] into jre/lib/ext folder...The problem should not arise... santosh - Original Message - From: Aleksi Kallio [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, October 24, 2000 4:53 PM Subject: Problem using JavaMail with Orion 500 Internal Server Error java.lang.NoClassDefFoundError: javax/activation/DataHandler This class comes with Orion and also is located in the Orion library path. What's wrong?
New howto on OrionSupport: Using JDBC from Servlets
How to setup a JDBC data-source in Orion and access it using JNDI from Servlets/JSP. http://www.orionsupport.com/articles/jdbc.html -Joe Walnes
New howto on OrionSupport: Virtual Hosts
Setting up Virtual Hosts on Orion http://www.orionsupport.com/articles/vhosts.html Step by step guide to deploying 2 web-sites with different virtual hosts on the same server. Thanks to Damian Van Dooren for contributing this. -Joe Walnes
Re: Data Sources Help
Congratulations Mark, and thanks for the summary! I hadn't looked at how to do that very last line of code yet, I'm happy to see it is so straight-forward. Gary On Yesterday, Mark ([EMAIL PROTECTED]) wrote: Fixed it! Yay! Gary, I tried it again per the suggestion you forwarded from support, but this time by removing the resource-ref from my web.xml and coding my Java as you noted: "jdbc/etc". Also fixed the startup problem by removing a transparently stupid syntax error from data-sources.xml. In case anybody else has been following this thread, here's the working data-source and a code fragment: data-source name="Oracle data source" class="com.evermind.sql.ConnectionDataSource" location="jdbc/OracleDS" pooled-location="jdbc/OraclePooledDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleEJBDS" url="jdbc:oracle:thin:@dracula.smartmonsters.com:1521:DEV" connection-driver="oracle.jdbc.driver.OracleDriver" username="foo" password="bar" schema="database-schemas/oracle.xml" / InitialContext cxt = new InitialContext(); // WRONG: DataSource ds = (DataSource) cxt.lookup("java:comp/env/OracleDS"); DataSource ds = (DataSource) cxt.lookup("jdbc/OracleEJBDS"); // RIGHT Connection c = ds.getConnection(); So the moral of the story seems to be, don't use the syntax "java:comp/env/myDS"; rather, use "jdbc/myDS". Note I've substituted "OracleEJBDS" per the note from support which Gary included earlier in the thread. Finally -- 'cause I'm personally done with this thread for a while, ;-) -- if any of the Evermind folks are taking note, I'd very much like to be able to choose to use networked LDAP for objects such as DataSources. Please consider this an enhancement suggestion. Thanks Gary, Allen and Deepak! --Mark
Re: ssl in production
No, I'm using windows' keystore. - Original Message - From: Juan Lorandi (Chile) To: Orion-Interest Sent: Tuesday, October 24, 2000 3:06 AM Subject: RE: ssl in production Are you using linux? the linux jvm has some keystore certificate problems -Original Message-From: Savotchkin Egor [mailto:[EMAIL PROTECTED]]Sent: Lunes, 23 de Octubre de 2000 15:23To: Orion-InterestSubject: ssl in production I saw the "extended" ssl -how-to on the orionsupport.com, I followed and it works indeed. I have a production certificate from thawte, I import it to the keystore successfully but when I run orion with the keystore containing this real certificate the server issues: Error listening to SSLServerSocket: "No available certificate corresponds to the SSL cipher suites which are enabled". Do you know what does that mean? My test certificates and the real are almost the same, except that the first has 1024bit-length key, and the other - 512! Regards, Savotchkin Egor.
Default isolation level
Hello, does anyone know what the default isolation level for entity beans is? In orion-ejb.jar.xml there is an attribute "isolation". According to the documentation: "The valid values are 'serializable', 'uncommitted', 'committed', 'repeatable_read'." But it doesn't mention what the default value is. Also, is there some way to set the isolation level for an entire EJB application? /Anders A n d e r s B e n g t s s o n[EMAIL PROTECTED] http://www.lecando.com
Debugging EJBs running in Orion with JBuilder
Has anyone out there documented the process of debugging EJBs, via the JBuilder 4 IDE, running within the Orion EJB Continer? If so, could you please mail them to this list. Thanks, Ted Rice
Orion doesn't interpret Javascript correctly
All, I have a fully functional webapp that runs perfectly under Tomcat (albeit a little slow). The main menu bar consists of rollovers that utilize the onmouseover and onmouseout routines of Javascript. For example, one of the tags looks like this: a href="/news/" onmouseout='csne_button.src="/images/lv1-off_04.gif"' onmouseover='csne_button.src="/images/lv1-on_04.gif"' img src="/images/lv1-off_04.gif" alt="" border=0 height=18 name=csne_button width=117 /a which, of course basically changes the image when the mouse pointer crosses it. Anyway, any time I try to view the pages in any browser that are served by Orion, I get tons of javascript errors, complaining about various aspects of the onmouseout and onmouseover calls, most notably of which seems to be a replacement of the single quote delimiters (') with double quotes, such as a href="/news/" onmouseout="csne_button.src="/images/lv1-off_04.gif"" onmouseover="csne_button.src="/images/lv1-on_04.gif"" img src="/images/lv1-off_04.gif" alt="" border=0 height=18 name=csne_button width=117 /a which is obviously wrong, and which was obtained by examining the source of the returned page. It looks like Orion is not keeping the single-quote delimiters properly. Is anyone else having this problem? Better yet, is there some solution? -- Andrew Kidder L3 SW/Support Engineer, IBU Tivoli Systems 512-436-4544 [EMAIL PROTECTED] http://www.tivoli.com
Code generation error at deployment stage.
Hi, I have a session bean in a jar that deploys and runs fine in JBoss. But when deploying in Orion, I get the following in Orion's console.. Auto-deploying MyBean-ejb.jar (No previous deployment found)... MyBean_StatelessSessionBeanWrapper0.java:54: Undefined variable: created methodException = EJBUtils.getUserException(e, !created); (there is a caret ^ under the c of created in the log). I have no such variable in any of the source, so I guess this is an internal OrionServer issue... I am using Orion Server 1.3.8 and JDK 1.3 Regards, - Paul H
RE: EJB 2.0 Dependent bidirectional relationships not working
I can't even get bidirectional relationships between beans working here ... I have a simple one-many relationship, collection in the parent, parent object in the child. When deployed, it correctly puts the backreference field in the child, but never fills it in with the parent's objectID has anyone used *any* bi-directional relationship successfully? john d -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Archer Sent: Monday, October 23, 2000 4:22 PM To: Orion-Interest Subject: EJB 2.0 Dependent bidirectional relationships not working Hi All... As I mentioned in an earlier message, I have some working example code that has an EJB 2.0 CMP entity bean working with both one-to-one and one-to-many unidirectional relationships. Next, I want to change the one-to-many relationship to be bidirectional. I expected this to be a simple change, but it didn't work out that way. I see that the ATM example does not include a dependent object with a bidirectional relationship, so I'm wondering if thie feature is known to work or not. If no one here has used this feature successfully, I'll add a bug report to bugzilla, but I wanted to make sure I did everything right first. To make my changes, I added abstract set/get methods to the dependent object class (EmailDO.java)for the remote interface of the EB it should refer to (Person.java). I also modified the deployment descriptor to have a CMR field in the dependent relationship section and a CMP field in the dependent section. I realize that the presence of the CMP-FIELD tag violates the spec, but Orion will not deploy dependent objects without it (it complaines that it can't instansiate an abstract class that it had generated). It all now looks like the Order-Lineitem example in the PD1 spec. After Orion deployed the app, I ran it and looked at the database. Orion had correctly created a table to hold the dependent (since its a many it needs its own table), but the field for the Person EB remote interface (which is the EB that the dependent is created by and should refer to) was named VALUEPERSON and had null as its value. This seems to indicate that Orion is not understanding that this field is supposed to be a CMR field. I reviewed the spec and there is no requirement that I manually set the Person remote interface in the dependent object, but I doubt thats the problem anyhow, since Orion named the person field "valueperson", indicating it thinks person is just another CMP field. Anyhow, I think I did everything right and I posted the code below. If someone sees something wrong or has any suggestions as to what I should try, I would appreciate you correcting me. Thanks VERY much!! Jim ?xml version="1.0"? !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd" ejb-jar descriptionTest Sample EJB 2.0 EB/description display-namePerson/display-name enterprise-beans entity cmp-version2.0/cmp-version descriptionPerson has an address DO/description display-nameTest20CmpDoOM.eb.Person/display-name ejb-nameTest20CmpDoOM.eb.PersonEJB/ejb-name homeTest20CmpDoOM.eb.PersonHome/home remoteTest20CmpDoOM.eb.Person/remote ejb-classTest20CmpDoOM.eb.PersonEJB/ejb-class persistence-typeContainer/persistence-type prim-key-classjava.lang.String/prim-key-class reentrantTrue/reentrant !-- These lines should not be required (according to the spec) -- !-- but without them deployment fails -- cmp-fieldfield-nameaddrDo/field-name/cmp-field cmp-fieldfield-nameemailDos/field-name/cmp-field cmp-fieldfield-nameuserId/field-name/cmp-field cmp-fieldfield-namefirstName/field-name/cmp-field cmp-fieldfield-namelastName/field-name/cmp-field primkey-fielduserId/primkey-field /entity /enterprise-beans dependents dependent dependent-nameaddrDo/dependent-name dependent-classTest20CmpDoOM.eb.AddrDo/dependent-class cmp-fieldfield-namestreet/field-name/cmp-field cmp-fieldfield-namecity/field-name/cmp-field cmp-fieldfield-namestate/field-name/cmp-field cmp-fieldfield-namezip/field-name/cmp-field /dependent dependent dependent-nameemailDo/dependent-name dependent-classTest20CmpDoOM.eb.EmailDo/dependent-class cmp-fieldfield-nameemail/field-name/cmp-field cmp-fieldfield-nameperson/field-name/cmp-field /dependent /dependents relationships ejb-relation
Re: Code generation error at deployment stage.
This is also a bug in Orion Server 1.4.0 - Paul
New howto on OrionSupport: Using Apache as a front-end to Orion
How to use Orion in an environment where you have to use Apache as the front-line web-server. http://www.orionsupport.com/articles/apachefrontend.html Thanks to Joshua Goodall for this little gem. -Joe Walnes
RE: LDAPUserManager?
Joe, just want to tell you, you're doing a great job there! Thank you. stas@ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Joe Walnes Sent: Tuesday, October 24, 2000 6:14 PM To: Orion-Interest Subject: Re: LDAPUserManager? At 11:28 24/10/2000, you wrote: Hello, I read in the mailing list archive some talks about an upcoming LDAPUserManager class? Any ideas when it might be (or it is already?) available? Greetings, Philippe. I am in the process of writing a UserManager how to for Orionsupport which will ultimately contain an LDAPUserManager as a sample. It is only basic and for educational purposes but there should be enough there to get up and running, and hopefully by the time you've read the tutorial you should be able to customize it yourself :) Anyway, the tutorial and soon the UserManager will appear at the URL below. It's slowly appearing. http://www.orionsupport.com/tutorials/usermanager/ -Joe Walnes
Re: New howto on OrionSupport: Using JDBC from Servlets
I would like to comment the article on one point, its really important to use Try{}Finally{} blocks to ensure that the connection will return to the pool. In the example, if the sql throws an exception, the connection ll never return to the pool. However in this code, the connection ll return to the pool: % Context ctx = (Context) new InitialContext(); DataSource ds = (DataSource) ctx.lookup("jdbc/TestDS"); Connection conn = ds.getConnection(); try { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT name FROM staff"); while ( rs.next() ) out.println( rs.getString("name") + "br" ); } finally { conn.close(); } %
RE: Orion in production
I haven't tried linux jvm yet, but I would think because you can run linux on a limited cheap setup very effectively and its resources are far less than the Win2K (I wouldn't use WinNT..too many crashes), I would deploy to linux over Win2K. However, I think for most things Win2K is easier to setup (at least for now) than linux. I think the GUI of linux is coming along nicely though. -Original Message- From: Russ White [mailto:[EMAIL PROTECTED]] Sent: Monday, October 23, 2000 6:26 AM To: Orion-Interest Subject: RE: Orion in production Indeed with most JVM version the NT/W2K version will be faster than Linux. But now that the 1.3 versions from Sun IBM are out this is no longer true. I now almost exclusively deploy to Linux. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Holmes, George (TWIi London) Sent: Monday, October 23, 2000 6:00 AM To: Orion-Interest Subject: RE: Orion in production I wasn't working on the project myself, and possibly gave a slightly mis-leading impression ;- To the best of my knowledge there were 8-12 Dual P3 500, each loaded with all the necessary EJBs, JSPs et al. and load-balanced using BIG IP from F5 Networks. However, none of the boxes were even touched in terms of resource consumption. Apparently, and this is a definite (sic) Windows NT 4/2000 with a dual-processor running Java out-performs a Linux box of the same spec running Java. Originally, the project was trialled to run on Linux, but it was discovered that NT 4 was faster!!! Has anyone else had any experience of this? I was told that it was due to better MP support in NT 4/2000??? George GEORGE HOLMES TWI Interactive Media House Burlington Lane LONDON W4 2TH ENGLAND TEL: +44 208 233 5631 FAX: +44 208 233 7701 CELL: +44 7968 918813 -Original Message- From: Duffey, Kevin [mailto:[EMAIL PROTECTED]] Sent: 20 October 2000 19:24 To: Orion-Interest Subject: RE: Orion in production Wow! That's pretty impressive results. What sort of hardware are you running? As my performance test showed, on a single PIII650 I was able to generate on average about 4.5million page hits a day (on a simple login process anyways). -Original Message- From: Holmes, George (TWIi London) [mailto:[EMAIL PROTECTED]] Sent: Friday, October 20, 2000 1:14 AM To: Orion-Interest Subject: RE: Orion in production www.opengolf.com This is the official web site for the British Open Golf tournament. Did 30 million page impressions/day (ish) for the four days of the Open. George GEORGE HOLMES TWI Interactive Media House Burlington Lane LONDON W4 2TH ENGLAND TEL: +44 208 233 5631 FAX: +44 208 233 7701 CELL: +44 7968 918813 -Original Message- From: Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]] Sent: 19 October 2000 22:13 To: Orion-Interest Subject: Orion in production Hi! I have been using orion for about 6 months now, and now, as I'm finishing my app, I need to sell orion to my customers... For this, it would be *VERY* valuable to have a list of sites (on the internet or intranets) which use orion... So, basically, what I have in mind is that anybody on this list that wishes to report a site as being partiallly/fully powered by orion, report it to my email address, [EMAIL PROTECTED], so that I can make a list of these, to publish it on WWW I think this will prove useful for us all. TIA, JP
RE: Orion in production
Thats too bad. If your in a hurry, I can understand, but for what you get, you can't go wrong in my book. It is frustrating at times, but these are the growing pains of small companies too. Good luck with WebLogic or something..it took me 3 weeks to get an email back on one SIMPLE question, and to call them would have cost us over $100 an hour. I tried that..and wasted 2.5 hours waiting on the phone. I won't make that mistake again. To be honest, I really don't think any vendor addresses the needs of support very well. It would be grand if they had 1500 people waiting by phones who were actual developers, knew the low-level technical questions that are often the ones asked, and so on. That just isn't the case in any vendor that I have bought software from. I feel bad for you that your not getting responses, but I doubt you'll get much better support with the $15K per cpu WebLogic or any other vendor. Good luck though. -Original Message- From: Gary Shea [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 22, 2000 8:34 PM To: Orion-Interest Subject: RE: Orion in production On Today, Duffey, Kevin ([EMAIL PROTECTED]) wrote: I don't think I could say it better myself. I totally agree with you. The fact is, while a few people in the organization I work for believe a small company has little or no support, Magnus, Karl and a number of competent Orion users have given me far better support than I have got from Allaire or BEA..at least 100x better. I mean this. I get answeres EVERY DAY about things I have questions for. I wish I could say the same. I've asked maybe five questions, and received exactly one answer. That one took a week or so. I've basically given up on the support address. And I'm a paying customer! Not too excited about buying any more licenses at this point. Gary Shea iTransact.com, Inc.
RE: Data Sources Help
On that note, we use several databases. How is this handled? We have a QA database for testing that our qa machines need to be set up to, but we also use two databases at one time for two-phase commit transactions. Is it possible to set up a datasource for two databases and have connections for both? Or is that not supported by J2EE? -Original Message- From: David Kenzik [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 22, 2000 7:17 PM To: Orion-Interest Subject: Data Sources Help Can anyone provide a step-by-step 'hello world' procedure for setting up data-sources.xml properly and calling the resource from within a servlet? Alternatively, can someone review my setup and comment on what might be wrong? The section of my data-sources.xml looks like this: data-source class="com.evermind.sql.DriverManagerDataSource" name="jdbc/d123DS" location="jdbc/d123DS" xa-location="jdbc/xa/d123XADS" ejb-location="jdbc/d123DS" connection-driver="oracle.jdbc.driver.OracleDriver" username="username" password="password" url="jdbc:oracle:thin:my.oracle.host:@dev2:1521:D123DEV" inactivity-timeout="30" / I'm attempting to create a connection within my servlet. Snippets of the relevant code: public class DSTest extends HttpServlet { InitialContext ctx; DataSource ds; ... public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); try { ctx=new InitialContext(); ds = (DataSource) ctx.lookup("java:comp/env/jdbc/d123DS"); con = ds.getConnection(); ... } ... catch (NamingException e) { System.out.println(e); } } It is catching the NamingException, telling me: javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified for resource-ref d123DS So I went and added to my application's web.xml, since this isn't under the default orion application: context-param param-named123DS/param-name param-valuejdbc/d123DS/param-value /context-param resource-ref descriptionTest Data Source/description res-ref-named123DS/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref And it still catches the same exception. Am I missing something simple? I'll gladly write up a tutorial for this for orionsupport.com if I can get this working. My environment: jdk 1.3, orion 1.4.0 Any help would be wonderful. -- David S. Kenzik [EMAIL PROTECTED] - http://kenzik.com Original Music - http://mp3.com/text
Re: Code generation error at deployment stage.
Paul, be sure to bugzilla that, if you don't mind. The Orion folks have said that bad error messages should be Bugzillaed. There is a link to Bugzilla from the OrionServer.com homepage. I have had silmilar trouble with cryptic error messages, so I'm kind of on an unofficial campeign to report all poor error messages. Jim --On Tuesday, October 24, 2000 6:09 PM +0200 Paul Hammant [EMAIL PROTECTED] wrote: OK, It was to do with the transaction type (should have been "Container" for the session bean). I guess the "!created" is short hand for " not created " as in System.err.println("It was not created"); It would be preferable for the Orion stub generator to throw an exception here ... throw new OrionXYZDeploymentException("Session bean's transaction tye not recognized", beanName); ... far more debugable. Regards, - Paul H
Re: Idea for Orion Support - post changes.txt
Jim, Thanks for the idea, (and the others you have posted). We have had an overwhelming response to our documentation cry, and are hard at work making things happen - thank you to everyone who has suggested subjects or written articles. Anyway, it may be helpful to know that at http://www.orionserver.com/orion/ is an unpacked version of the latest Orion distribution. You can view changes.txt at the URL: http://www.orionserver.com/orion/changes.txt This site is useful in situations where you have messed up the configuration for something and you want to look at the original version in the distribution. -Joe Walnes At 14:59 24/10/2000, you wrote: Just an idea for you guys running orionsupport.com... It would be handy to be able to see the changes in the latest version of Orion before I run the auto update tool, so I can decide if I need anything in the new release and so want to risk an upgrade. So, is it possible to keep the latest changes.txt file posted? Just an idea... You guys are doing a great job and we all appreciate it! Jim
Re: get reference to UserTransaction fails
now i'm trying this from an ordinary app-client but it caught an exception: "java:comp/UserTransaction not found" In the JNDI properties, are you specifying the application name as well as the server? e.g. java.naming.provider.url=ormi://localhost/myapp (Correct) java.naming.provider.url=ormi://localhost (Wrong) -Joe Walnes
Re: Code generation error at deployment stage.
File this with bugzilla, http://www.orionserver.com/bugzilla/. -- Jason Rimmer [EMAIL PROTECTED] - Original Message - From: "Paul Hammant" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, October 24, 2000 11:51 AM Subject: Re: Code generation error at deployment stage. This is also a bug in Orion Server 1.4.0 - Paul
RE: get reference to UserTransaction fails
Are your trying to retrieve something from "java:comp" DIRECTLY from code not running on Orion? I have looked (very quickly) at the specs, and I don't think that's allowed(seems pretty unsafe to me) Perhaps you can build a session bean that preforms the lookup, then passes the reference to the client flamebait But I think it's a bad idea anyway... it's kinda like "one and a half" layer programming... /flamebait My 2c, JP -Original Message- From: Klaus Thiele [mailto:[EMAIL PROTECTED]] Sent: Martes, 24 de Octubre de 2000 7:10 To: Orion-Interest Subject: get reference to UserTransaction fails Hello, i'm using transactions within servlets, sessionbeans with no problems. now i'm trying this from an ordinary app-client but it caught an exception: "java:comp/UserTransaction not found" what goes wrong? thanks a lot klaus import javax.naming.*; import javax.transaction.*; ... TransactionManager tm = (TransactionManager)new InitialContext().lookup("java:comp/UserTransaction"); -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] "There's got to be more to life than compile-and-go."
RE: EJB 2.0 Dependent bidirectional relationships not working
I have a one-to-one bidirectional relationship between two entity beans that appears to be working correctly. Orion creates a LONGBINARY field in Hypersonac to represent the EB reference and stores some value in there. It seems to be working on both sides. I also have a one-to-many bidirectional relationship between entity beans which seems to be working half way. The sode with just one gets populated, but the table with the many is empty when I look at it. This is odd, since it seems to be the oppisit of what you said. You seemed to say that the "many" table gets populated but not the field for the "one" reference. Am I right? Jim --On Tuesday, October 24, 2000 11:39 AM -0400 John D'Ausilio [EMAIL PROTECTED] wrote: I can't even get bidirectional relationships between beans working here ... I have a simple one-many relationship, collection in the parent, parent object in the child. When deployed, it correctly puts the backreference field in the child, but never fills it in with the parent's objectID has anyone used *any* bi-directional relationship successfully? john d -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Archer Sent: Monday, October 23, 2000 4:22 PM To: Orion-Interest Subject: EJB 2.0 Dependent bidirectional relationships not working Hi All... As I mentioned in an earlier message, I have some working example code that has an EJB 2.0 CMP entity bean working with both one-to-one and one-to-many unidirectional relationships. Next, I want to change the one-to-many relationship to be bidirectional. I expected this to be a simple change, but it didn't work out that way. I see that the ATM example does not include a dependent object with a bidirectional relationship, so I'm wondering if thie feature is known to work or not. If no one here has used this feature successfully, I'll add a bug report to bugzilla, but I wanted to make sure I did everything right first. To make my changes, I added abstract set/get methods to the dependent object class (EmailDO.java)for the remote interface of the EB it should refer to (Person.java). I also modified the deployment descriptor to have a CMR field in the dependent relationship section and a CMP field in the dependent section. I realize that the presence of the CMP-FIELD tag violates the spec, but Orion will not deploy dependent objects without it (it complaines that it can't instansiate an abstract class that it had generated). It all now looks like the Order-Lineitem example in the PD1 spec. After Orion deployed the app, I ran it and looked at the database. Orion had correctly created a table to hold the dependent (since its a many it needs its own table), but the field for the Person EB remote interface (which is the EB that the dependent is created by and should refer to) was named VALUEPERSON and had null as its value. This seems to indicate that Orion is not understanding that this field is supposed to be a CMR field. I reviewed the spec and there is no requirement that I manually set the Person remote interface in the dependent object, but I doubt thats the problem anyhow, since Orion named the person field "valueperson", indicating it thinks person is just another CMP field. Anyhow, I think I did everything right and I posted the code below. If someone sees something wrong or has any suggestions as to what I should try, I would appreciate you correcting me. Thanks VERY much!! Jim ?xml version="1.0"? !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd" ejb-jar descriptionTest Sample EJB 2.0 EB/description display-namePerson/display-name enterprise-beans entity cmp-version2.0/cmp-version descriptionPerson has an address DO/description display-nameTest20CmpDoOM.eb.Person/display-name ejb-nameTest20CmpDoOM.eb.PersonEJB/ejb-name homeTest20CmpDoOM.eb.PersonHome/home remoteTest20CmpDoOM.eb.Person/remote ejb-classTest20CmpDoOM.eb.PersonEJB/ejb-class persistence-typeContainer/persistence-type prim-key-classjava.lang.String/prim-key-class reentrantTrue/reentrant !-- These lines should not be required (according to the spec) -- !-- but without them deployment fails -- cmp-fieldfield-nameaddrDo/field-name/cmp-field cmp-fieldfield-nameemailDos/field-name/cmp-field cmp-fieldfield-nameuserId/field-name/cmp-field cmp-fieldfield-namefirstName/field-name/cmp-field cmp-fieldfield-namelastName/field-name/cmp-field primkey-fielduserId/primkey-field /entity /enterprise-beans dependents dependent
RE: Deploying EJB jars
Hi, I am reposting this meesage. For any application I deploy, i get the following error: Auto-deploying product (No previous deployment found)...java.lang.NoClassDefFoundError: ProductEJB_PersistenceManager1/java Exception in thread "main" Error compiling file:/C:/Orion/demo/ejb/product/: Error in source Auto-deploying cart (No previous deployment found)... java.lang.NoClassDefFoundError: Cart_StatefulSessionBeanWrapper3/java Exception in thread "main" Error compiling file:/C:/Orion/demo/ejb/cart/: Error in source I would appreciate any input.. Thanks
RE: Orion in production
On Mon, 23 Oct 2000, Duffey, Kevin wrote: Thats too bad. If your in a hurry, I can understand, but for what you get, you can't go wrong in my book. It is frustrating at times, but these are the growing pains of small companies too. Good luck with WebLogic or something..it took me 3 weeks to get an email back on one SIMPLE question, and to call them would have cost us over $100 an hour. I tried that..and wasted 2.5 hours waiting on the phone. I won't make that mistake again. To be honest, I really don't think any vendor addresses the needs of support very well. It would be grand if they had 1500 people waiting by phones who were actual developers, knew the low-level technical questions that are often the ones asked, and so on. That just isn't the case in any vendor that I have bought software from. I feel bad for you that your not getting responses, but I doubt you'll get much better support with the $15K per cpu WebLogic or any other vendor. Good luck though. I have worked a bit with Unify; they offer pretty good support. Pretty much under one day, continuous developer presence on their newsgroup. I worked with one other J2EE vendor that also gave good support (sorry, forgot their name). Hence my expectations of decent support. I guess if I'd dealt with the ones you have I might not be so shocked! Gary -Original Message- From: Gary Shea [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 22, 2000 8:34 PM To: Orion-Interest Subject: RE: Orion in production On Today, Duffey, Kevin ([EMAIL PROTECTED]) wrote: I don't think I could say it better myself. I totally agree with you. The fact is, while a few people in the organization I work for believe a small company has little or no support, Magnus, Karl and a number of competent Orion users have given me far better support than I have got from Allaire or BEA..at least 100x better. I mean this. I get answeres EVERY DAY about things I have questions for. I wish I could say the same. I've asked maybe five questions, and received exactly one answer. That one took a week or so. I've basically given up on the support address. And I'm a paying customer! Not too excited about buying any more licenses at this point. Gary Shea iTransact.com, Inc.
Re: get reference to UserTransaction fails
i was trying to do the same thing, and it sort of makes sense that you can't control a transaction (UserTransaction) from outside orion (i.e. the ejb container). it does raise the question however about how you would ever maintain any decent level of control over transactions if entity beans were involved unless you *always*: 1. set the trans-attribute of every entity bean to Mandatory 2. used stateless session beans as a facade to controlling entity beans. i've been using stateless session beans for a while and trying to come up to speed with entity beans. there's probably something stupid i'm doing but i've been unable to find a solid way to control database transaction boundaries unless i use the above pattern (slsb call entity beans). a) does anyone call entity beans directly from a JSP? or do you call stateless server beans which wrap entity beans? b) is it possible to control database transaction boundaries without wrapping EJB methods calls in a UserTransaction.begin() and UserTransaction.commit() ? thanks, greg - Original Message - From: "Juan Lorandi (Chile)" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, October 25, 2000 3:49 AM Subject: RE: get reference to UserTransaction fails Are your trying to retrieve something from "java:comp" DIRECTLY from code not running on Orion? I have looked (very quickly) at the specs, and I don't think that's allowed(seems pretty unsafe to me) Perhaps you can build a session bean that preforms the lookup, then passes the reference to the client flamebait But I think it's a bad idea anyway... it's kinda like "one and a half" layer programming... /flamebait My 2c, JP -Original Message- From: Klaus Thiele [mailto:[EMAIL PROTECTED]] Sent: Martes, 24 de Octubre de 2000 7:10 To: Orion-Interest Subject: get reference to UserTransaction fails Hello, i'm using transactions within servlets, sessionbeans with no problems. now i'm trying this from an ordinary app-client but it caught an exception: "java:comp/UserTransaction not found" what goes wrong? thanks a lot klaus import javax.naming.*; import javax.transaction.*; ... TransactionManager tm = (TransactionManager)new InitialContext().lookup("java:comp/UserTransaction"); -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] "There's got to be more to life than compile-and-go."
RE: Massive CPU useage
Heh..funny..our site does the same thing. Worse, we seem to use about 300MB of ram for a query that only yields about 60 records! Its a joke. We have our own home-brewn persistence layer..which I am quite sure is the culprit. I am hoping that soon we will move to EJB entity beans and what not. I wish I could figure that out as well. -Original Message- From: Gareth White [mailto:[EMAIL PROTECTED]] Sent: Monday, October 23, 2000 10:11 AM To: Orion-Interest Subject: Massive CPU useage Hi, I hope someone here can help me. I'm recently taken over development of a site that's got a database of about 10,000 records, but when I perform a search on them I find my CPU useage rockets to 98% and maintains that level for approximately 30-40 seconds. This will return about 200 records to me matching my search requirements. The search isn't very complex, neither is the data so I'm at a loss as to where my CPU cycles are going. This is my command line for coercing debuging data from Orion: $JAVA -jar -Xms64m -Xmx256m -Dnjava.library.path=$ORION_DIR -Dhttp.session.d ebug=true -Ddatasource.verbose=true -Djdbc.debug=true -Dtransaction.log="con sole" -Drmi.debug=true -Drmi.verbose=true -Dnnative.user=orion -Xdebug -Xnoa gent -Djava.compiler=NONE $ORION_DIR/orion.jar -config $ORION_DIR/config/server.xml -console2 $ORION_DIR/orion.log 21 The orion.log file seems to consist mostly of pages like this: Mon Oct 23 16:24:53 GMT+00:00 2000: 40:1:0:0:0:0:0:0:0:e2:0:e2:62:af:bc:4e: started Mon Oct 23 16:24:53 GMT+00:00 2000: 40:1:0:0:0:0:0:0:0:e2:0:e2:62:af:bc:4e: registered bean GBP Mon Oct 23 16:24:53 GMT+00:00 2000: 40:1:0:0:0:0:0:0:0:e2:0:e2:62:af:bc:4e: commit attempt Mon Oct 23 16:24:53 GMT+00:00 2000: 40:1:0:0:0:0:0:0:0:e2:0:e2:62:af:bc:4e: commit succeeded Mon Oct 23 16:24:53 GMT+00:00 2000: 41:1:0:0:0:0:0:0:0:e2:0:e2:62:af:bc:5e: started Mon Oct 23 16:24:53 GMT+00:00 2000: 41:1:0:0:0:0:0:0:0:e2:0:e2:62:af:bc:5e: registered bean GBP Mon Oct 23 16:24:53 GMT+00:00 2000: 41:1:0:0:0:0:0:0:0:e2:0:e2:62:af:bc:5e: commit attempt Mon Oct 23 16:24:53 GMT+00:00 2000: 41:1:0:0:0:0:0:0:0:e2:0:e2:62:af:bc:5e: commit succeeded new DebugResultSet() new DebugResultSet() new DebugResultSet() new DebugResultSet() To get an idea of the size of this log, I stopped the server and browser connected to it, destroyed the log, started the server up again, connected and performed one search. This resulted in a 303883 byte file, which was 5600 lines long. Most of this output was like the block above. To me this looks like Orion's allocating and freeing massive amounts of memory and dynamically created loads of instances of the GBP bean (GBP = Great Britain Pounds, Sterling currency). Part of the search will be converting from the records native currency to Sterling, so possibly Orion's creating a new GBP bean for each and every record returned from the database. Opinions, suggestions, hints or guesses greatly appreciated. Gareth White.
Re: Creating EAR Files
There are several quick solutions to this, one is to just use jar and make them yourself. This is what we do at work. Al - Original Message - From: Santosh Kumar To: Orion-Interest Sent: Tuesday, October 24, 2000 12:27 AM Subject: Creating EAR Files Hi all, How do i create EAR/WAR/JAR files without using ANT1.1 as required by the ORION PRIMER. When i try to build these using the Orion provided SERVICE CONSOLE tool, it shows error "Class hello.ejb.HelloBean" not found, though it does exist in the same directory where i was pointing to. where ami going wrong? Santosh Santosh Kumar C == Senior Systems Engineer == Wipro Technologies == 1-8-448, Laxmi Building, S.P. Road, == Begumpet, Secunderabad - 500 003 == A.P, India. == Phone@: 91407896008 Ext 4511 == Fax @: 91407896123 == eMail@: [EMAIL PROTECTED] == url @: http://www.wipro.com == The World's First SEI CMM Level 5 Software Services Company
RE: Ok. I feel dumb. Data Sources and MS SQL.
There's a free SQL Server driver at http://www.freetds.org but I've never used it. Good to see Peakhour using Orion ;) Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kimberley Scott Sent: Wednesday, October 25, 2000 11:16 AM To: Orion-Interest Subject: Ok. I feel dumb. Data Sources and MS SQL. Hiya, Feeling real stupid here. I'm examining data sources and getting totally confused. Maybe I'm just burnt out. Haven't had a holiday in five years. Sigh. Back to business. We're *forced* to use Microsoft SQL 7 and Win2K. How do I set up the datasource xml file to handle this? I can't seem to find anything on this in the email lists on in the docs. The only drivers I have are the ODBC bridges (The invisible hidden MS one and the standard Sun one) and I'm not paying for a Type IV driver at the outrageous prices I've been presented with from BEA and the like. Has anyone done this before or can point me in the right direction? A tired developer who's feeling very old and dim... Kimberley Scott Senior Web Developer Peakhour Pty Ltd http://smartoffice.com.au - just built. needs work. ASP/COM Sigh. What can I say? http://peakhour.com.au - corporate site http://www.geocities.com/kimmie_scott -me
Re: Ok. I feel dumb. Data Sources and MS SQL.
Kimberly, Take a look at the FreeTDS JDBC driver for MS SQL Server: http://www.freetds.org/download.html Follow the link to the ftp site. The Jan 2000 jar file appears to be the last 'release' version but it may have some problems depending on the features you need. We've recently used the Sept 2000 snapshot, which as I recall has to be built. There were a few minor changes, declaring certain classes abstract, to get it to compile in our environment. I can dig out the details if you really need it. For the most part we are using HypersonicSQL for prototype and Interbase for production databases. Regards, Earl At 11:15 10/25/2000 +1000, you wrote: Hiya, Feeling real stupid here. I'm examining data sources and getting totally confused. Maybe I'm just burnt out. Haven't had a holiday in five years. Sigh. Back to business. We're *forced* to use Microsoft SQL 7 and Win2K. How do I set up the datasource xml file to handle this? I can't seem to find anything on this in the email lists on in the docs. The only drivers I have are the ODBC bridges (The invisible hidden MS one and the standard Sun one) and I'm not paying for a Type IV driver at the outrageous prices I've been presented with from BEA and the like. Has anyone done this before or can point me in the right direction? A tired developer who's feeling very old and dim... Kimberley Scott Senior Web Developer Peakhour Pty Ltd http://smartoffice.com.au - just built. needs work. ASP/COM Sigh. What can I say? http://peakhour.com.au - corporate site http://www.geocities.com/kimmie_scott -me Earl S. Marwil, Ph.D. / Senior Scientist / SCIENTECH, Inc. __o / TEL: (208) 525-3717 / 1690 International Way -\, / FAX: (208) 529-4721 / Idaho Falls, ID 83402 0/ 0__ / net: [EMAIL PROTECTED]
Re: Ok. I feel dumb. Data Sources and MS SQL.
I haven't got there yet, but I'm going to soon have to set up Orion to use an MS SQL 2000 db. If any of you have any experiences doing this, could you please share them with this group. Thanks in advance. -Rich --- Kimberley Scott [EMAIL PROTECTED] wrote: Hiya, Feeling real stupid here. I'm examining data sources and getting totally confused. Maybe I'm just burnt out. Haven't had a holiday in five years. Sigh. Back to business. We're *forced* to use Microsoft SQL 7 and Win2K. How do I set up the datasource xml file to handle this? I can't seem to find anything on this in the email lists on in the docs. The only drivers I have are the ODBC bridges (The invisible hidden MS one and the standard Sun one) and I'm not paying for a Type IV driver at the outrageous prices I've been presented with from BEA and the like. Has anyone done this before or can point me in the right direction? A tired developer who's feeling very old and dim... Kimberley Scott Senior Web Developer Peakhour Pty Ltd http://smartoffice.com.au - just built. needs work. ASP/COM Sigh. What can I say? http://peakhour.com.au - corporate site http://www.geocities.com/kimmie_scott -me = Richard E. Sansom [EMAIL PROTECTED] __ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/
Re: Orion in production
On Today, Kyle Cordes ([EMAIL PROTECTED]) wrote: often the ones asked, and so on. That just isn't the case in any vendor that I have bought software from. I feel bad for you that your not getting responses, but I doubt you'll get much better support with the $15K per cpu WebLogic or any other vendor. Good luck though. On the other hand, if you call up Orion with a multiple of $15K at your disposal, you could probably arrange a very satisfactory support contract (Just guessing, maybe someone at Orion will state whether support contracts are available.) Kyle Cordes www.kylecordes.com I've approached them about support contracts, but they're looking for external providers, which isn't likely to be all that successful if you ask me, but we'll see. I'd love to pay them for support, but they won't take it. Gary
Installing cocoon with Orion
Can I install the jars into the orion root or the /lib directory? Do I have to explicitly set the classpath myself? --- Robert Nicholson Email: [EMAIL PROTECTED] AOL : rydmerlin
Problem while deploying EJB
I have attached the gif file that contains the snapshot of the error i am getting while deploying the orion-primer example If you dont see the attachment, here is the error Error:loading package at file orion-primer-ejb.jar, Error loading class 'hello.ejb.HelloEJB': java.lang.NoClassDefFoundError (Wrong Name: HelloEJB) santosh Santosh Kumar C == Senior Systems Engineer == Wipro Technologies == 1-8-448, Laxmi Building, S.P. Road, == Begumpet, Secunderabad - 500 003 == A.P, India. == Phone@: 91407896008 Ext 4511 == Fax @: 91407896123 == eMail@: [EMAIL PROTECTED] == url @: http://www.wipro.com == The World's First SEI CMM Level 5 Software Services Company orion-error.gif
Re: Orion doesn't interpret Javascript correctly
Andrew, The reason this is happening, is that when JSPs are compiled, Orion recreates them slightly to insert code for url-rewriting for session-tracking. Obviously it is always recreating the tag with attributes enclosed in "". The short term solution to your problem is to switch around your '' with your "". e.g. from: onmouseout='csne_button.src="/images/lv1-off_04.gif"' to : onmouseout="csne_button.src='/images/lv1-off_04.gif'" The long term solution is to register a bug report with Orion (they do not have time to read all messages on this list). You can do this by using the bug-tracking system at http://www.orionserver.com/bugzilla/, or mailing [EMAIL PROTECTED]. -Joe Walnes At 16:20 24/10/2000, you wrote: All, I have a fully functional webapp that runs perfectly under Tomcat (albeit a little slow). The main menu bar consists of rollovers that utilize the onmouseover and onmouseout routines of Javascript. For example, one of the tags looks like this: a href="/news/" onmouseout='csne_button.src="/images/lv1-off_04.gif"' onmouseover='csne_button.src="/images/lv1-on_04.gif"' img src="/images/lv1-off_04.gif" alt="" border=0 height=18 name=csne_button width=117 /a which, of course basically changes the image when the mouse pointer crosses it. Anyway, any time I try to view the pages in any browser that are served by Orion, I get tons of javascript errors, complaining about various aspects of the onmouseout and onmouseover calls, most notably of which seems to be a replacement of the single quote delimiters (') with double quotes, such as a href="/news/" onmouseout="csne_button.src="/images/lv1-off_04.gif"" onmouseover="csne_button.src="/images/lv1-on_04.gif"" img src="/images/lv1-off_04.gif" alt="" border=0 height=18 name=csne_button width=117 /a which is obviously wrong, and which was obtained by examining the source of the returned page. It looks like Orion is not keeping the single-quote delimiters properly. Is anyone else having this problem? Better yet, is there some solution? -- Andrew Kidder L3 SW/Support Engineer, IBU Tivoli Systems 512-436-4544 [EMAIL PROTECTED] http://www.tivoli.com