Internal Error - product Sample EJB
Running Orion rc1 and getting exception with EJBs. Any Help.. Gary D:\Orion\demo\ejb\product>java -cp .;d:\orion\orion.jar ProductClientEnter the id (integer) of the product you want to add: 23456Enter the name for item 23456: two 3456Enter the cost for two 3456: 3456Exception in thread "main" java.lang.InternalError: Object was null but still part of the cache at com.evermind.server.rmi.a7.invokeMethod(JAX) at com.evermind.server.rmi.az.invoke(JAX) at com.evermind.server.rmi.a_.invoke(JAX) at __Proxy0.create(Unknown Source) at ProductClient.main(ProductClient.java:45)
Session bean time out
Is there any way for me to set the timeout interval for an EJB? Thanks Eric
Servlet API problem
Hello, I'm trying to compile JetSpeed (http://java.apache.org/jetspeed/site/overview.html) with Orion jars and I'm having a problem: /home/yann/java/jetspeed/bin/src/org/apache/jetspeed/util/servlet/JetspeedServletRequest.java:132: Method removeAttribute(java.lang.String) not found in interface javax.servlet.http.HttpServletRequest. req.removeAttribute(name); According to the specs, this method should exist ... Any idea ? -- Yann Doussot <[EMAIL PROTECTED]> Grey Interactive - France - http://www.gifrance.com/
I have problem with the Taglib.tld
hi! I tried creating a TAG called Counter.But when I tried using the Tag I got the following error: 500 Internal Server Error: Error parsing JSP page /jsp/hello.jsp line 1 Error loading taglib at file:/C:/orion/applications/JSPTest/JSPTest-web/jsp/mytags.jar: META-INF/taglib.tld The Contents of the taglib.tld is: *** 1.0 1.1 mt http://localhost/JSPTest/jsp/mytags.jar My first Tag library helloWorld com.acme.mytags.HelloWorld empty A Hello world Tag Counter com.acme.mytags.Counter empty A counter Please Tell me whats the problem, I guess there is some problem in the Taglib.tld.. Thanks, Kumar Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Ant build files
Would anyone be so kind to show/send me some build files that generate a .ear file, containing all the necessary META-INF directories, XML files, .jar files, .war files, etc. ? Perhaps we can develop a single build.xml file for use in most J2EE projects. Ernst -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Java Architect fn:Ernst de Haan end:vcard
RE: Makefiles
Can we get these make files (generic J2EE ejb-jar.xml ones) or are they proprietary? Would seem like a good thing to include in the Orion download now that Ant is becoming more popular? I used it daily to build everything, taglibs, ears, jars etc... Mike > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: Wednesday, 17 May 2000 12:20 > To: Orion-Interest > Subject: Re: Makefiles > > > > > > > > Hi Ernst, > > > However, I find ant less powerful than make, because with the > > Makefile I am building I just have to change the name of the application > > and the names of the beans in order to get a new makefile for a > different > > EJB application. > > I would contend that Ant can be as powerful as you can be bothered to make > it - you can write your own Tasks and there are plenty of helper classes > available. > Case in point: the Task I wrote to generate the ejb-jar.xml needs only to > be told where the application package root is - I don't even specify the > names or types of the EJBs. > It enumerates over the classes in the application, loading classes up, and > using reflection to tell what they are, before spitting out the > appropriate > XML. > > > Although ant seems very nice at first glance, I don't > > think it is powerful enough. What I am missing is `patsubst' > > functionality. It may be in there, but I haven't found it yet. /:) > > There's regexp (http://jakarta.apache.org/regexp/index.html) if > you want to > pattern match generally, and if you want to apply some algorithm to a > certain subset of files in a hierarchy, then the DirectoryScanner class in > the ant package hierarchy is a good bet. > > Regards, > > James Dodd > > ZDNet > > > >
RE: Makefiles
Well, then why make everyone suffer... make your ant code public, and become a hero :) > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 16, 2000 10:20 AM > To: Orion-Interest > Subject: Re: Makefiles > > > > > > > > Hi Ernst, > > > However, I find ant less powerful than make, because with the > > Makefile I am building I just have to change the name of > the application > > and the names of the beans in order to get a new makefile > for a different > > EJB application. > > I would contend that Ant can be as powerful as you can be > bothered to make > it - you can write your own Tasks and there are plenty of > helper classes > available. > Case in point: the Task I wrote to generate the ejb-jar.xml > needs only to > be told where the application package root is - I don't even > specify the > names or types of the EJBs. > It enumerates over the classes in the application, loading > classes up, and > using reflection to tell what they are, before spitting out > the appropriate > XML. > > > Although ant seems very nice at first glance, I don't > > think it is powerful enough. What I am missing is `patsubst' > > functionality. It may be in there, but I haven't found it yet. /:) > > There's regexp (http://jakarta.apache.org/regexp/index.html) > if you want to > pattern match generally, and if you want to apply some algorithm to a > certain subset of files in a hierarchy, then the > DirectoryScanner class in > the ant package hierarchy is a good bet. > > Regards, > > James Dodd > > ZDNet > > >
Clustering
Hi! My name is Roy Lou. I am new to orion-interest. Could you shed some light on the topic of how to set up clustering for servlet and jsp? Is there any document about how to do it? Thanks. Roy Lou SPSS Inc.
Re: Makefiles
Hi Ernst, > However, I find ant less powerful than make, because with the > Makefile I am building I just have to change the name of the application > and the names of the beans in order to get a new makefile for a different > EJB application. I would contend that Ant can be as powerful as you can be bothered to make it - you can write your own Tasks and there are plenty of helper classes available. Case in point: the Task I wrote to generate the ejb-jar.xml needs only to be told where the application package root is - I don't even specify the names or types of the EJBs. It enumerates over the classes in the application, loading classes up, and using reflection to tell what they are, before spitting out the appropriate XML. > Although ant seems very nice at first glance, I don't > think it is powerful enough. What I am missing is `patsubst' > functionality. It may be in there, but I haven't found it yet. /:) There's regexp (http://jakarta.apache.org/regexp/index.html) if you want to pattern match generally, and if you want to apply some algorithm to a certain subset of files in a hierarchy, then the DirectoryScanner class in the ant package hierarchy is a good bet. Regards, James Dodd ZDNet
Re: Makefiles
Hi James, Thank you very much for the pointer to Ant. I am evaluating it as we speak. However, I find ant less powerful than make, because with the Makefile I am building I just have to change the name of the application and the names of the beans in order to get a new makefile for a different EJB application. Although ant seems very nice at first glance, I don't think it is powerful enough. What I am missing is `patsubst' functionality. It may be in there, but I haven't found it yet. /:) Ernst [EMAIL PROTECTED] wrote: > > Take a look at Jakarta Ant > > http://jakarta.apache.org/ant/index.html > > Written in Java, uses an XML makefile format... very nice! Our build is > entirely automated using Ant and our customised Tasks. > > Regards, > > James Dodd > > ZDNet > > Ernst de Haan <[EMAIL PROTECTED]> on 05/16/2000 01:25:40 PM > > To: Orion-Interest <[EMAIL PROTECTED]> > cc:(bcc: James Dodd/ZDNet/LON/ZDEUR) > > Subject: Makefiles > > Is ne1 using Makefiles with Orion? > > Currently I am setting up a generic Makefile that will generate the EJB > class files, Web class files, EJB jar file, Web jar file and the .ear > file, but I'm still struggling. :) > > Ernst > > -- > Ernst de Haan > Freelance Java Architect > > "Come to me all who are weary and burdened, > and I will give you rest" -- Jesus Christ -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Java Architect fn:Ernst de Haan end:vcard
Re: Makefiles
Take a look at Jakarta Ant http://jakarta.apache.org/ant/index.html Written in Java, uses an XML makefile format... very nice! Our build is entirely automated using Ant and our customised Tasks. Regards, James Dodd ZDNet Ernst de Haan <[EMAIL PROTECTED]> on 05/16/2000 01:25:40 PM To: Orion-Interest <[EMAIL PROTECTED]> cc:(bcc: James Dodd/ZDNet/LON/ZDEUR) Subject: Makefiles Is ne1 using Makefiles with Orion? Currently I am setting up a generic Makefile that will generate the EJB class files, Web class files, EJB jar file, Web jar file and the .ear file, but I'm still struggling. :) Ernst -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ ernst.vcf
Datasource definitions and the meaning of their location attributes
Title: Datasource definitions and the meaning of their location attributes Hi, A datasource is defined in Orion's data-sources.xml something like this: name="Test" class="com.evermind.sql.ConnectionDataSource" location="jdbc/Test" pooled-location="jdbc/TestPool" xa-location="jdbc/xa/TestXA" ejb-location="jdbc/TestEJB" url="jdbc:oracle:thin:@Test:1521:Test" connection-driver="oracle.jdbc.driver.OracleDriver" /> Could somebody explain what the different types of location attributes are used for? The Orion docs are rather terse in this regard. I've tried making an entity use one of the other locations for getting it's DataSource and thus Connection but I get various exceptions. The entity only works when it uses the name defined in the plain location attribute. Thanks, Gordon --- Codito, ergo sum - "I code, therefore I am" --- Gordon Tyler <[EMAIL PROTECTED]> Abraxas IT Services - Component Based Devleopment Tel: +27-(0)21-6803412 PGP key available on request or finger [EMAIL PROTECTED] "Official IT Partner to the Two Oceans Marathon" http://www.twooceansmarathon.org.za
Makefiles
Is ne1 using Makefiles with Orion? Currently I am setting up a generic Makefile that will generate the EJB class files, Web class files, EJB jar file, Web jar file and the .ear file, but I'm still struggling. :) Ernst -- Ernst de Haan Freelance Java Architect "Come to me all who are weary and burdened, and I will give you rest" -- Jesus Christ begin:vcard n:de Haan;Ernst tel;fax:+31 (0)26 3645634 tel;work:+31 (0)26 3623895 x-mozilla-html:FALSE url:http://www.znerd.demon.nl/ org:Jollem adr:;;Rozendaalselaan 35;Velp;GLD;6881 KZ;Netherlands version:2.1 email;internet:[EMAIL PROTECTED] title:Java Architect fn:Ernst de Haan end:vcard
RE: Referring to a datasource in EJB deployment
Here's a little more info on Orion not finding my datasource, when deploying my container managed entity bean. In orion-ejb-jar.xml I haven't used , instead I have used . According to the docs you are able to specify the name of the datasource there, which is declared in data-sources.xml (). This worked in 0.9.4, but it isn't working in 1.0rc1. Anyone out there expiriencing the same problem, anyone got any solution? /Esa > > > I have gone from Orion 0.9.4 to 1.0rc1 and in this latest > > release > Orion > > can't find the datasource that I have specified in the > deployment > descriptor > > for my container managed entity bean. I have tried adding the > > datasource > > to config\data-sources.xml and pointing out this file in > > config\server.xml, > > but it doesn't work. I have also tried pointing out the > > confg\data-sources.xml > > in the application deployment descriptor, but it doesn't > work either. > > > If I don't specify a datasource in in the deployment > descriptor for > my > > container managed entity bean Orion uses the default > > datasource, but > it's > > commented out in the data-sources.xml !!! > > > Anyone got any ideas on this subject? > > It seems that the data-sources tag in config\server.xml has > > disappeared in > > Orion 1.0rc1 and that it should be specified in the > application > deployment > > descriptor !? > > > /Esa > > > > >