Re: Orion and JBuilder E 4 Open Tools
Hi. Look at http://www.orionsupport.com There is a tutorial explaining how to use JB4 with Orion. []s Guilherme Ceschiatti On Friday 29 December 2000 00:16, you wrote: > Hello all, > > Looked through the list threads and there seems to be no clear indication > whether anyone has been able to add Orion as one of the Application Servers > available within JBuilder. I read the parts for debugging EJBs with Orion > within JBuilder, and that seems to be working well, though I'm still new at > this and have yet to push anything. > > What I'm interested in is easing our EJB deployments to Orion, and wanted > to know if there was an 'easy' way to simply deploy the EJBs to Orion and > have it take care of everything for us, just like JBuilder does for the > Inprise and WebLogic App Servers. > > I use JBuilder 4 Enterprise, and was hoping the money we spent on it was > not in vain. > > Any SXS anyone may have would be greatly helpful. > > It would also be very cool if the folks at Orion (Evermind?) would write a > 'PlugIn' for JBuilder 4E so Orion will plug into it out of the box. > > Thanks in advance for any info. > > Robert > > > Robert S. Sfeir > Director of Software Development > PERCEPTICON corporation > San Francisco, CA 94123 > w - http://www.percepticon.com/ > e- [EMAIL PROTECTED] > t - (415) 749-2900 x205
Re: Where to put bean property files
Christian, That's what I've been doing and it works fine, but I would love to hear other suggestions. Jay Armstrong [EMAIL PROTECTED] At 10:19 PM 12/28/00 +0100, you wrote: >I'd recommend putting it anywhere below the web application directory (the >one under which WEB-INF is located) and using >servletContext.getResourceAsStream(), e.g. >getResourceAsStream("/myfile.properties") if you put it into the wepapp root > >- Original Message - >From: "John Pletka" <[EMAIL PROTECTED]> >To: "Orion-Interest" <[EMAIL PROTECTED]> >Sent: Thursday, December 28, 2000 7:36 PM >Subject: Where to put bean property files > > >> I have a bean that I'm trying to use in a jsp page that requires a >> .properties file to initialize itself. It looks for the properties file >in >> the current directory (new FileInputStream("fileName.properties")). I've >> tried putting the file in the lib directory, the WEB-INF directory, the >> META-INF directory, in the same directory as the .jsp file and even in the >> jar file of the bean, but I always get "FileNotFound" exceptions. Where >is >> the proper place to put configuration files? >> > > >
Orion and JBuilder E 4 Open Tools
Hello all, Looked through the list threads and there seems to be no clear indication whether anyone has been able to add Orion as one of the Application Servers available within JBuilder. I read the parts for debugging EJBs with Orion within JBuilder, and that seems to be working well, though I'm still new at this and have yet to push anything. What I'm interested in is easing our EJB deployments to Orion, and wanted to know if there was an 'easy' way to simply deploy the EJBs to Orion and have it take care of everything for us, just like JBuilder does for the Inprise and WebLogic App Servers. I use JBuilder 4 Enterprise, and was hoping the money we spent on it was not in vain. Any SXS anyone may have would be greatly helpful. It would also be very cool if the folks at Orion (Evermind?) would write a 'PlugIn' for JBuilder 4E so Orion will plug into it out of the box. Thanks in advance for any info. Robert Robert S. Sfeir Director of Software Development PERCEPTICON corporation San Francisco, CA 94123 w - http://www.percepticon.com/ e- [EMAIL PROTECTED] t - (415) 749-2900 x205
Re: Directories in applications
Forgive me for being stupid, I forgot to add execute permissions to directories. Mark Bernardinis wrote: > > I have created a sample directory underneath an application I created > called samples so that I could test cocoon's abilities. I am able to > browse to that directory but once all files and directories are listed, > their corresponding sizes are all 0KB including the index.xml files. If > I attempt to load any of them I get a resource not found. > > I have checked all the permissions and they seem to be alright. They are > rwx - rw - r with orion as the owner and j2ee as the group. > > Does anyone have any ideas. If I move these files into the root of my > application I have no problem, but once I enter the directory structure > of samples underneath my app the problems start. > > Mark begin:vcard n:Bernardinis;Mark x-mozilla-html:FALSE org:Westfield;eCommerce Development adr:;; version:2.1 email;internet:[EMAIL PROTECTED] x-mozilla-cpt:;0 fn:Mark Bernardinis end:vcard
Re: Where to put bean property files
I'd recommend putting it anywhere below the web application directory (the one under which WEB-INF is located) and using servletContext.getResourceAsStream(), e.g. getResourceAsStream("/myfile.properties") if you put it into the wepapp root - Original Message - From: "John Pletka" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, December 28, 2000 7:36 PM Subject: Where to put bean property files > I have a bean that I'm trying to use in a jsp page that requires a > .properties file to initialize itself. It looks for the properties file in > the current directory (new FileInputStream("fileName.properties")). I've > tried putting the file in the lib directory, the WEB-INF directory, the > META-INF directory, in the same directory as the .jsp file and even in the > jar file of the bean, but I always get "FileNotFound" exceptions. Where is > the proper place to put configuration files? >
Directories in applications
I have created a sample directory underneath an application I created called samples so that I could test cocoon's abilities. I am able to browse to that directory but once all files and directories are listed, their corresponding sizes are all 0KB including the index.xml files. If I attempt to load any of them I get a resource not found. I have checked all the permissions and they seem to be alright. They are rwx - rw - r with orion as the owner and j2ee as the group. Does anyone have any ideas. If I move these files into the root of my application I have no problem, but once I enter the directory structure of samples underneath my app the problems start. Mark begin:vcard n:Bernardinis;Mark x-mozilla-html:FALSE org:Westfield;eCommerce Development adr:;; version:2.1 email;internet:[EMAIL PROTECTED] x-mozilla-cpt:;0 fn:Mark Bernardinis end:vcard
EJB Error Message in Orion Log File
When deploying an ejb application and tables need to be created, no matter which tutorial I follow I seem to get this error included within the logs first time. BEGIN ERROR MESSAGE --- Auto-deploying helios-ejb (ejb-jar.xml had been touched since the previous deployment)... SQL error: ERROR: parser: parse error at or near ")" --- END ERROR MESSAGE >From what I can see, everything else seems to be running fine. The table is created in the DB and there are rows being populated in the tables as well. Server specific information is: Orion v1.4.4 PostgreSQL 7.0.2 Linux 2.2.17 IBM JDK 1.3.0 If there is any more information required please email me. Thanks for your help. Regards, Mark begin:vcard n:Bernardinis;Mark x-mozilla-html:FALSE org:Westfield;eCommerce Development adr:;; version:2.1 email;internet:[EMAIL PROTECTED] x-mozilla-cpt:;0 fn:Mark Bernardinis end:vcard
RE: Where to put bean property files
The 'current working directory' for orion is wherever java is executed to run orion. This can be hidden by the admin utility, but you can check the configuration files and attempt to locate the directory that way. Try putting the .properties file in the directory parent to your server.xml file. i.e. if your server.xml were in /opt/orion/config, put your .properties file in /opt/orion This can get ugly and confusing, if you get multiple '.properties'-like files in that directory. I would suggest having your code look for files in a 'myconfig' or 'files' directory, and making that directory appear where you start orion. I hope this was clear. Tony Wilson -Original Message- From: John Pletka [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 28, 2000 10:37 AM To: Orion-Interest Subject:Where to put bean property files I have a bean that I'm trying to use in a jsp page that requires a .properties file to initialize itself. It looks for the properties file in the current directory (new FileInputStream("fileName.properties")). I've tried putting the file in the lib directory, the WEB-INF directory, the META-INF directory, in the same directory as the .jsp file and even in the jar file of the bean, but I always get "FileNotFound" exceptions. Where is the proper place to put configuration files?
RE: Offtopic:Ant Build scripts
I've attached a buildfile (not the orion-primer buildfile). I wanted the source to mirror the jar file structure (I think this is less confusing) and I didn't like the proliferation of dependencies in the orion-primer example. This is the result. Jeff Schnitzer [EMAIL PROTECTED] >-Original Message- >From: Aniket V U [mailto:[EMAIL PROTECTED]] >Sent: Thursday, December 28, 2000 3:26 AM >To: Orion-Interest >Subject: Offtopic:Ant Build scripts > > >Hi folks, > >can somebody please send me a sample ANT build file for making >ears for orion. > >Thanks > >Aniket > > > >
Where to put bean property files
I have a bean that I'm trying to use in a jsp page that requires a .properties file to initialize itself. It looks for the properties file in the current directory (new FileInputStream("fileName.properties")). I've tried putting the file in the lib directory, the WEB-INF directory, the META-INF directory, in the same directory as the .jsp file and even in the jar file of the bean, but I always get "FileNotFound" exceptions. Where is the proper place to put configuration files?
RE: Can not locate ..... when running orion under Jbuilder?
You are right, they are not. Thanks! I did not realize the cache file was a jar. :) Thanks for setting me straight on that one. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Boris > Gertsberg > Sent: Thursday, December 28, 2000 11:21 AM > To: Orion-Interest > Subject: Re: Can not locate . when running orion under Jbuilder? > > > To Russ: > Wrappers generated by Orion are not JAXed. At least they were not JAXed in > old verisons. > By the way you can use JAD just in case Orion deleted those wrappers too > fast. It is a Java decompiler written on C++, so it is very fast. > > > To Darren: > Orion compiles wrappers, jar them and put to > $ORION_PATH/application-deployments/$your_application_name/$jar_file_name > directory/deployment.cache > It is a jar, don't let the name confuse you. > > - Original Message - > From: "Russ White" <[EMAIL PROTECTED]> > To: "Orion-Interest" <[EMAIL PROTECTED]> > Sent: Thursday, December 28, 2000 8:50 AM > Subject: RE: Can not locate . when running orion under Jbuilder? > > > > The point was that the question was specifically about the wrapper class. > > > > You are right about JBuilder decompiling classes when it can, but you > forget an > > important fact. The Orion classes are JAXed (Obfuscated) so that feature > is > > defeated no matter which debugger you use unless you have the source or > JAX. :) > > > > By the way, NetBeans also is a very nice IDE and I use it and JBuilder > quite a > > lot. It is also very cool that it now includes a slick ANT module. I > mention > > this because it is free, and it does remote debugging pretty well. Also as > you > > mentioned it is very easy to set up JBuilder to run Orion in process and > then > > debug from there. See the how-to on orionsupport.com > > > > Russ > > > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Boris > > > Gertsberg > > > Sent: Wednesday, December 27, 2000 6:16 PM > > > To: Orion-Interest > > > Subject: Re: Can not locate . when running orion under Jbuilder? > > > > > > > > > As I said in my email "there ALMOST no need in sources of Orion wrapper > > > classes". > > > It looks like JBuilder just don't have place where Orion deployed > > > Hello_StatelessSessionBeanWrapper0.class in it's classpath , so it asks > for > > > at least a source of that class. > > > I am not an expert in JBuilder but as I heard JBuilder is one of those > > > Debuggers that do decompile of the classes if needed. > > > > > > Boris > > > > > > - Original Message - > > > From: "Russ White" <[EMAIL PROTECTED]> > > > To: "Orion-Interest" <[EMAIL PROTECTED]> > > > Sent: Wednesday, December 27, 2000 2:15 PM > > > Subject: RE: Can not locate . when running orion under Jbuilder? > > > > > > > > > > Boris, > > > > > > > > Your statement is true but irrelevant when you want to debug all of > the > > > classes > > > > your application uses. This of course, would include the wrapper > classes. > > > :) > > > > Sometime you want to see exactly what the wrapper is doing behind the > > > scenes. > > > > Usually I don't bother worrying about the wrappers and debug just the > code > > > I > > > > have written, but read the original question and you will understand > my > > > reply a > > > > little better. Specifically read the "Can not locate > > > > Hello_StatelessSessionBeanWrapper0.java from project source/class > path" > > > part. ;) > > > > By the way, the previous post about copying the files to a source > > > directory > > > > while they do exist (which is any time before compiling if finished by > > > Orion) is > > > > exactly right, and that is what I do when I have to. Sure would be > nice if > > > the > > > > wrappers would just stick around though. :) > > > > > > > > Cheers, > > > > Russ > > > > > -Original Message- > > > > > From: [EMAIL PROTECTED] > > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Boris > > > > > Gertsberg > > > > > Sent: Wednesday, December 27, 2000 12:36 PM > > > > > To: Orion-Interest > > > > > Subject: Re: Can not locate . when running orion under Jbuilder? > > > > > > > > > > > > > > > Actually, there almost no need in sources of Orion wrapper classes. > You > > > can > > > > > do debugging in your debugger if it supports > > > > > JPDA (every debugger that I know of do). You can set breakpoints, > step > > > > > through your code in beans and watch properties just as if it would > be > > > > > usual java application. > > > > > Read Debugging how-to on orionsupport.com to set it up. > > > > > > > > > > Boris > > > > > > > > > > > > > > > - Original Message - > > > > > From: "Russ White" <[EMAIL PROTECTED]> > > > > > To: "Orion-Interest" <[EMAIL PROTECTED]> > > > > > Sent: Wednesday, December 27, 2000 10:27 AM > > > > > Subject: RE: Can not locate . when running orion under Jbuilder? > > > > > > > > > > > > > > > > Good day to all, > > > > > > > > > > > > The
Re: Can not locate ..... when running orion under Jbuilder?
To Russ: Wrappers generated by Orion are not JAXed. At least they were not JAXed in old verisons. By the way you can use JAD just in case Orion deleted those wrappers too fast. It is a Java decompiler written on C++, so it is very fast. To Darren: Orion compiles wrappers, jar them and put to $ORION_PATH/application-deployments/$your_application_name/$jar_file_name directory/deployment.cache It is a jar, don't let the name confuse you. - Original Message - From: "Russ White" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Thursday, December 28, 2000 8:50 AM Subject: RE: Can not locate . when running orion under Jbuilder? > The point was that the question was specifically about the wrapper class. > > You are right about JBuilder decompiling classes when it can, but you forget an > important fact. The Orion classes are JAXed (Obfuscated) so that feature is > defeated no matter which debugger you use unless you have the source or JAX. :) > > By the way, NetBeans also is a very nice IDE and I use it and JBuilder quite a > lot. It is also very cool that it now includes a slick ANT module. I mention > this because it is free, and it does remote debugging pretty well. Also as you > mentioned it is very easy to set up JBuilder to run Orion in process and then > debug from there. See the how-to on orionsupport.com > > Russ > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On Behalf Of Boris > > Gertsberg > > Sent: Wednesday, December 27, 2000 6:16 PM > > To: Orion-Interest > > Subject: Re: Can not locate . when running orion under Jbuilder? > > > > > > As I said in my email "there ALMOST no need in sources of Orion wrapper > > classes". > > It looks like JBuilder just don't have place where Orion deployed > > Hello_StatelessSessionBeanWrapper0.class in it's classpath , so it asks for > > at least a source of that class. > > I am not an expert in JBuilder but as I heard JBuilder is one of those > > Debuggers that do decompile of the classes if needed. > > > > Boris > > > > - Original Message - > > From: "Russ White" <[EMAIL PROTECTED]> > > To: "Orion-Interest" <[EMAIL PROTECTED]> > > Sent: Wednesday, December 27, 2000 2:15 PM > > Subject: RE: Can not locate . when running orion under Jbuilder? > > > > > > > Boris, > > > > > > Your statement is true but irrelevant when you want to debug all of the > > classes > > > your application uses. This of course, would include the wrapper classes. > > :) > > > Sometime you want to see exactly what the wrapper is doing behind the > > scenes. > > > Usually I don't bother worrying about the wrappers and debug just the code > > I > > > have written, but read the original question and you will understand my > > reply a > > > little better. Specifically read the "Can not locate > > > Hello_StatelessSessionBeanWrapper0.java from project source/class path" > > part. ;) > > > By the way, the previous post about copying the files to a source > > directory > > > while they do exist (which is any time before compiling if finished by > > Orion) is > > > exactly right, and that is what I do when I have to. Sure would be nice if > > the > > > wrappers would just stick around though. :) > > > > > > Cheers, > > > Russ > > > > -Original Message- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Boris > > > > Gertsberg > > > > Sent: Wednesday, December 27, 2000 12:36 PM > > > > To: Orion-Interest > > > > Subject: Re: Can not locate . when running orion under Jbuilder? > > > > > > > > > > > > Actually, there almost no need in sources of Orion wrapper classes. You > > can > > > > do debugging in your debugger if it supports > > > > JPDA (every debugger that I know of do). You can set breakpoints, step > > > > through your code in beans and watch properties just as if it would be > > > > usual java application. > > > > Read Debugging how-to on orionsupport.com to set it up. > > > > > > > > Boris > > > > > > > > > > > > - Original Message - > > > > From: "Russ White" <[EMAIL PROTECTED]> > > > > To: "Orion-Interest" <[EMAIL PROTECTED]> > > > > Sent: Wednesday, December 27, 2000 10:27 AM > > > > Subject: RE: Can not locate . when running orion under Jbuilder? > > > > > > > > > > > > > Good day to all, > > > > > > > > > > The cause of your (and my) debugging woes is that orion does make the > > > > source of > > > > > it's wrapper classes available to us developers. There is a split > > second > > > > while > > > > > orion is deploying your app that the source files exist in the orion > > root > > > > > directory, but the they are quickly snatched away from the prying eyes > > of > > > > hard > > > > > working developers. So in short you are seeing the message correctly, > > and > > > > there > > > > > is not a debugger in the world (except for a few that decompile > > classes > > > > for > > > > > you) that can step through source that does not exist. :)
DataSourceUserManager: Deleting users
Hi folks! I use orion 1.3.8 and DataSourceUserManager to authenticate users. It works OK, but after deleting a user, the server recognizes that user. Is this a bug? I've set the property "staleness" to 1, so info has to be refetched every time a user has to be authenticated. Any suggestion?? Bye! -- Juan Fuentes <[EMAIL PROTECTED]>
Re: EJB generator
It's okay, but makes building via ANT or whatever a bit more of a pain, because of yet more classpath issues. On Thu, 28 Dec 2000, Kemp Randy-W18971 wrote: > I have been playing with the EJB generator at http://www.nordija.com (EJB builder) >and it looks pretty good. Has anyone else used it? > --- Joseph B. Ottinger [EMAIL PROTECTED] http://epesh.com/ IT Consultant
RE: URGENT: NullPointerException
Hi all! I've found the cause: a null pointer exception was thrown from my servlet's init method... Still this situation was not properly handled by orion Regards, Savotchkin Egor Web-technologies department eMail: [EMAIL PROTECTED] CJSC "SoftPro" - Billing systems tel: (+7-095) 755-5655 (3135) web-site: http://www.cboss.ru -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Savotchkin Egor Sent: Wednesday, December 27, 2000 7:19 PM To: Orion-Interest Subject: URGENT: NullPointerException Hi all! I cannot start my application, the following exception is printed: 500 Internal Server Error java.lang.NullPointerException at com.evermind.server.http.HttpApplication.w0(JAX) at com.evermind.server.http.HttpApplication.wi(JAX) at com.evermind.server.http.HttpApplication.ut(JAX) at com.evermind.server.http.eh.s0(JAX) at com.evermind.server.http.eh.do(JAX) at com.evermind.util.f.run(JAX) I use orion 1.4.4 on Windows NT Server 4.0, HotSpot jdk 1.3.0 Does somebody know WHY? Regards, Savotchkin Egor Web-technologies department eMail: [EMAIL PROTECTED] CJSC "SoftPro" - Billing systems tel: (+7-095) 755-5655 (3135) web-site: http://www.cboss.ru
RE: Can not locate ..... when running orion under Jbuilder?
It is in in your classpath. The problem is that is obfuscated (JAXed). > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Darren Pamatat > Sent: Thursday, December 28, 2000 9:06 AM > To: Orion-Interest > Subject: Re: Can not locate . when running orion under Jbuilder? > > > Ok, I know from previous uses of Jbuilder on other > projects, that Jbuilder allows stepping thru code > without having source available. So where does orion > put Hello_StatelessSessionBeanWrapper0.class, so I can > add it to my classpath, and Jbuilder should pick it > up? > > -Darren > > > > --- Boris Gertsberg <[EMAIL PROTECTED]> wrote: > > As I said in my email "there ALMOST no need in > > sources of Orion wrapper > > classes". > > It looks like JBuilder just don't have place where > > Orion deployed > > Hello_StatelessSessionBeanWrapper0.class in it's > > classpath , so it asks for > > at least a source of that class. > > I am not an expert in JBuilder but as I heard > > JBuilder is one of those > > Debuggers that do decompile of the classes if > > needed. > > > > Boris > > > > - Original Message - > > From: "Russ White" <[EMAIL PROTECTED]> > > To: "Orion-Interest" > > <[EMAIL PROTECTED]> > > Sent: Wednesday, December 27, 2000 2:15 PM > > Subject: RE: Can not locate . when running orion > > under Jbuilder? > > > > > > > Boris, > > > > > > Your statement is true but irrelevant when you > > want to debug all of the > > classes > > > your application uses. This of course, would > > include the wrapper classes. > > :) > > > Sometime you want to see exactly what the wrapper > > is doing behind the > > scenes. > > > Usually I don't bother worrying about the wrappers > > and debug just the code > > I > > > have written, but read the original question and > > you will understand my > > reply a > > > little better. Specifically read the "Can not > > locate > > > Hello_StatelessSessionBeanWrapper0.java from > > project source/class path" > > part. ;) > > > By the way, the previous post about copying the > > files to a source > > directory > > > while they do exist (which is any time before > > compiling if finished by > > Orion) is > > > exactly right, and that is what I do when I have > > to. Sure would be nice if > > the > > > wrappers would just stick around though. :) > > > > > > Cheers, > > > Russ > > > > __ > Do You Yahoo!? > Yahoo! Photos - Share your holiday photos online! > http://photos.yahoo.com/ > >
EJB generator
I have been playing with the EJB generator at http://www.nordija.com (EJB builder) and it looks pretty good. Has anyone else used it?
Re: Offtopic:Ant Build scripts
Aniket, You might try downloading the entire Java PetStore (JPS) "blueprint" demo from Sun, which can be rebuilt using ANT. Rather than flood all of orion-interest, I'll try to send the build.xml from JPS1.1 to you directly. Jay Armstrong [EMAIL PROTECTED] At 04:55 PM 12/28/00 +0530, you wrote: >Hi folks, > >can somebody please send me a sample ANT build file for making ears for orion. > >Thanks > >Aniket > > > >
Re: Offtopic:Ant Build scripts
visit www.jollem.com Aniket V U wrote: > Hi folks, > > can somebody please send me a sample ANT build file for making ears > for orion. > > Thanks > > Aniket > > > > > >
Re: Can not locate ..... when running orion under Jbuilder?
Ok, I know from previous uses of Jbuilder on other projects, that Jbuilder allows stepping thru code without having source available. So where does orion put Hello_StatelessSessionBeanWrapper0.class, so I can add it to my classpath, and Jbuilder should pick it up? -Darren --- Boris Gertsberg <[EMAIL PROTECTED]> wrote: > As I said in my email "there ALMOST no need in > sources of Orion wrapper > classes". > It looks like JBuilder just don't have place where > Orion deployed > Hello_StatelessSessionBeanWrapper0.class in it's > classpath , so it asks for > at least a source of that class. > I am not an expert in JBuilder but as I heard > JBuilder is one of those > Debuggers that do decompile of the classes if > needed. > > Boris > > - Original Message - > From: "Russ White" <[EMAIL PROTECTED]> > To: "Orion-Interest" > <[EMAIL PROTECTED]> > Sent: Wednesday, December 27, 2000 2:15 PM > Subject: RE: Can not locate . when running orion > under Jbuilder? > > > > Boris, > > > > Your statement is true but irrelevant when you > want to debug all of the > classes > > your application uses. This of course, would > include the wrapper classes. > :) > > Sometime you want to see exactly what the wrapper > is doing behind the > scenes. > > Usually I don't bother worrying about the wrappers > and debug just the code > I > > have written, but read the original question and > you will understand my > reply a > > little better. Specifically read the "Can not > locate > > Hello_StatelessSessionBeanWrapper0.java from > project source/class path" > part. ;) > > By the way, the previous post about copying the > files to a source > directory > > while they do exist (which is any time before > compiling if finished by > Orion) is > > exactly right, and that is what I do when I have > to. Sure would be nice if > the > > wrappers would just stick around though. :) > > > > Cheers, > > Russ __ Do You Yahoo!? Yahoo! Photos - Share your holiday photos online! http://photos.yahoo.com/
Re: ejbLoad : Error retrieving a picture from DB
[Elhadi barkat] > int imgSize = (int)blobObj.length(); > // Create byte[] data array to store picture data temporarily > // before writing it to a file > image = new byte[imgSize]; > // Retrieve the picture as a binary stream from the Blob object > InputStream is = blobObj.getBinaryStream(); > // Store the binary stream from above into image byte[] array > is.read(image); not related, but in the interest of smaller/better code :) byte[] image = blobObj.getBytes(1,blobObj.length()); I hate 1-based positioning, although I guess I can tolerate it here -- James Manning <[EMAIL PROTECTED]> GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7 9C8E A0BF B026 EEBB F6E4
RE: Offtopic:Ant Build scripts
It can be found in the tutorials at www.jollem.com. -Original Message- From: Aniket V U [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 28, 2000 5:26 AM To: Orion-Interest Subject: Offtopic:Ant Build scripts Hi folks, can somebody please send me a sample ANT build file for making ears for orion. Thanks Aniket
RE: Can not locate ..... when running orion under Jbuilder?
The point was that the question was specifically about the wrapper class. You are right about JBuilder decompiling classes when it can, but you forget an important fact. The Orion classes are JAXed (Obfuscated) so that feature is defeated no matter which debugger you use unless you have the source or JAX. :) By the way, NetBeans also is a very nice IDE and I use it and JBuilder quite a lot. It is also very cool that it now includes a slick ANT module. I mention this because it is free, and it does remote debugging pretty well. Also as you mentioned it is very easy to set up JBuilder to run Orion in process and then debug from there. See the how-to on orionsupport.com Russ > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Boris > Gertsberg > Sent: Wednesday, December 27, 2000 6:16 PM > To: Orion-Interest > Subject: Re: Can not locate . when running orion under Jbuilder? > > > As I said in my email "there ALMOST no need in sources of Orion wrapper > classes". > It looks like JBuilder just don't have place where Orion deployed > Hello_StatelessSessionBeanWrapper0.class in it's classpath , so it asks for > at least a source of that class. > I am not an expert in JBuilder but as I heard JBuilder is one of those > Debuggers that do decompile of the classes if needed. > > Boris > > - Original Message - > From: "Russ White" <[EMAIL PROTECTED]> > To: "Orion-Interest" <[EMAIL PROTECTED]> > Sent: Wednesday, December 27, 2000 2:15 PM > Subject: RE: Can not locate . when running orion under Jbuilder? > > > > Boris, > > > > Your statement is true but irrelevant when you want to debug all of the > classes > > your application uses. This of course, would include the wrapper classes. > :) > > Sometime you want to see exactly what the wrapper is doing behind the > scenes. > > Usually I don't bother worrying about the wrappers and debug just the code > I > > have written, but read the original question and you will understand my > reply a > > little better. Specifically read the "Can not locate > > Hello_StatelessSessionBeanWrapper0.java from project source/class path" > part. ;) > > By the way, the previous post about copying the files to a source > directory > > while they do exist (which is any time before compiling if finished by > Orion) is > > exactly right, and that is what I do when I have to. Sure would be nice if > the > > wrappers would just stick around though. :) > > > > Cheers, > > Russ > > > -Original Message- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Boris > > > Gertsberg > > > Sent: Wednesday, December 27, 2000 12:36 PM > > > To: Orion-Interest > > > Subject: Re: Can not locate . when running orion under Jbuilder? > > > > > > > > > Actually, there almost no need in sources of Orion wrapper classes. You > can > > > do debugging in your debugger if it supports > > > JPDA (every debugger that I know of do). You can set breakpoints, step > > > through your code in beans and watch properties just as if it would be > > > usual java application. > > > Read Debugging how-to on orionsupport.com to set it up. > > > > > > Boris > > > > > > > > > - Original Message - > > > From: "Russ White" <[EMAIL PROTECTED]> > > > To: "Orion-Interest" <[EMAIL PROTECTED]> > > > Sent: Wednesday, December 27, 2000 10:27 AM > > > Subject: RE: Can not locate . when running orion under Jbuilder? > > > > > > > > > > Good day to all, > > > > > > > > The cause of your (and my) debugging woes is that orion does make the > > > source of > > > > it's wrapper classes available to us developers. There is a split > second > > > while > > > > orion is deploying your app that the source files exist in the orion > root > > > > directory, but the they are quickly snatched away from the prying eyes > of > > > hard > > > > working developers. So in short you are seeing the message correctly, > and > > > there > > > > is not a debugger in the world (except for a few that decompile > classes > > > for > > > > you) that can step through source that does not exist. :)what I > generally > > > do in > > > > a case like yours is set a breakpoint directly after the call you are > > > interested > > > > in. That way you can hit F9 when you get your icky message and still > > > monitor the > > > > results of the call. Also placing a break point in the ejb class > itself > > > will > > > > provide a way to step into the ejb. > > > > > > > > HTH > > > > > > > > Russ White > > > > > > > > > -Original Message- > > > > > From: [EMAIL PROTECTED] > > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Darren > Pamatat > > > > > Sent: Wednesday, December 27, 2000 9:12 AM > > > > > To: Orion-Interest > > > > > Subject: Can not locate . when running orion under Jbuilder? > > > > > > > > > > > > > > > I have just started working with orion, and have just > > > > > sucessfully finished getting the orion primer ejb > > > > > example running. All
Re: Offtopic:Ant Build scripts
[Aniket V U] > can somebody please send me a sample ANT build file for making ears for orion. The EJB 2.0 example on orionsupport includes some -- James Manning <[EMAIL PROTECTED]> GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7 9C8E A0BF B026 EEBB F6E4
RE: Offtopic:Ant Build scripts
smime.p7m
Re: Offtopic:Ant Build scripts
Aniket, I suggest you try the Orion Primer: * http://www.jollem.com/orion-primer/ Ernst Aniket V U wrote: > Hi folks, > > can somebody please send me a sample ANT build file for making ears for orion. > > Thanks > > Aniket > > > >
Offtopic:Ant Build scripts
Hi folks, can somebody please send me a sample ANT build file for making ears for orion. Thanks Aniket
Re: Exceptions and businessmethods
> My last mail seems not to show up in the list, so I'll try it again... Strange, my answer didn't show up either, so I'll try again.. maybe you couldn't solve the problem yet. On Tue, 19 Dec 2000, Alexander Sparkowsky wrote: > I've a little trouble using my own exceptions in beans. > > Let's say I have a businessmethod in MySomethingBean: > public void doSomething() throws MyException {...} > > I also define the throws clause in the remoteinterface "MySomething". > > When I throw MyException in the businessmethod I won't get a "MyException" > in the calling method. Insteat I get a RemoteException containing only the > message of MyException. The detail-field of the RemoteException contains > null. Hi, Make sure that MyException isn't a subclass of RemoteException or RuntimeException, since these are used to signal system exceptions. (Note, that EJBException is also a subclass of RuntimeException, so don't use it as a superclass). There is also another issue: If you throw an application exception (such as MyException), the operation won't rollback automatically, so you have to handle this properly. > Thanks, > Alex Bye. Robert.
How can we run JMS server on a different machine
Placed At : BLR Gitanjali Singh@SATYAM 12/14/2000 04:05 PM Can we have JMS server running on a separate machine and Orion server running on another machine?When I run the orion server on one system and from another machine ,I run another machine where the hsot name of JMS server is first machine,then it gives an error of unable to binding to the socket.What is the reason?How is it possible to run the JMS server on a different machine? gitanjali.