How can we run JMS server on a different machine

2000-12-28 Thread Gitanjali_Singh


  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.






Offtopic:Ant Build scripts

2000-12-28 Thread Aniket V U

Hi folks,

can somebody please send me a sample ANT build file for making ears for orion.

Thanks

Aniket






Re: Offtopic:Ant Build scripts

2000-12-28 Thread Ernst de Haan

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
 
 
 
 




RE: Offtopic:Ant Build scripts

2000-12-28 Thread Scott Graf
 smime.p7m


Re: Offtopic:Ant Build scripts

2000-12-28 Thread James Manning

[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: Can not locate ..... when running orion under Jbuilder?

2000-12-28 Thread Russ White

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 works fine.

 Now I'm trying to get this to run under the debugger.
 I have setup Jbuilder 4 projects with all the
 necessary orion libs as per doc on setting up JB4 with
 orion, and can run the orion app inside. I have even
 got a simple servlet working where I can step through
 it's 

Re: ejbLoad : Error retrieving a picture from DB

2000-12-28 Thread James Manning

[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: Can not locate ..... when running orion under Jbuilder?

2000-12-28 Thread Darren Pamatat

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: Offtopic:Ant Build scripts

2000-12-28 Thread Jay Armstrong

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









EJB generator

2000-12-28 Thread Kemp Randy-W18971

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: EJB generator

2000-12-28 Thread Joseph B. Ottinger

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





DataSourceUserManager: Deleting users

2000-12-28 Thread Juan Fuentes

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: Can not locate ..... when running orion under Jbuilder?

2000-12-28 Thread Boris Gertsberg

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. :)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 

RE: Can not locate ..... when running orion under Jbuilder?

2000-12-28 Thread Russ White

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 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 

Where to put bean property files

2000-12-28 Thread John Pletka

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

2000-12-28 Thread Jeff Schnitzer

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






?xml version="1.0"?

!--
	$Id: build.xml,v 1.3 2000/12/11 10:57:11 jeff Exp $
	$Source: /usr/local/cvsroot/ServerTest/build.xml,v $
--

project name="servertest" default="app-ear" basedir="."

	property name="name" value="servertest" /

	property name="ejbsrc.dir" value="ejb-src" /
	property name="websrc.dir" value="web-src" /
	property name="appsrc.dir" value="application-src" /

	property name="output.dir" value="out" /
	property name="ejbstaging.dir" value="${output.dir}/ejb-staging" /
	property name="webstaging.dir" value="${output.dir}/web-staging" /
	property name="appstaging.dir" value="${output.dir}/application-staging" /

	property name="orion.dir" value="/java/orion" /

	property name="ejb.cp" value="${orion.dir}/ejb.jar" /
	property name="web.cp" value="${ejbstaging.dir}:${orion.dir}/ejb.jar:${orion.dir}/mail.jar:${orion.dir}/jndi.jar:${orion.dir}/orion.jar" /

	property name="debug" value="on" /

	target name="clean"
		delete dir="${output.dir}" /
	/target

 	target name="ejb-classes"
		mkdir dir="${ejbstaging.dir}" /
		javac srcdir="${ejbsrc.dir}"
destdir="${ejbstaging.dir}"
classpath="${ejb.cp}"
debug="${debug}" /
	/target

	target name="ejb-jar" depends="ejb-classes"
		mkdir dir="${ejbstaging.dir}/META-INF" /
		copy file="${ejbsrc.dir}/META-INF/ejb-jar.xml"
todir="${ejbstaging.dir}/META-INF" /
		jar jarfile="${output.dir}/${name}-ejb.jar"
basedir="${ejbstaging.dir}" /
	/target

	target name="web-classes" depends="ejb-classes"
		mkdir dir="${webstaging.dir}" /
		mkdir dir="${webstaging.dir}/WEB-INF" /
		mkdir dir="${webstaging.dir}/WEB-INF/classes" /
		javac srcdir="${websrc.dir}/WEB-INF/classes"
destdir="${webstaging.dir}/WEB-INF/classes"
classpath="${web.cp}"
debug="${debug}" /
	/target

	target name="web-war" depends="web-classes"
		copy file="${websrc.dir}/WEB-INF/web.xml"
todir="${webstaging.dir}/WEB-INF" /
		copydir src="${websrc.dir}"
	dest="${webstaging.dir}"
	excludes="$**/WEB-INF/**" /
		jar jarfile="${output.dir}/${name}-web.war"
basedir="${webstaging.dir}" /
	/target

	target name="app-ear" depends="ejb-jar, web-war"
		mkdir dir="${appstaging.dir}" /
		mkdir dir="${appstaging.dir}/META-INF" /
		copy file="${appsrc.dir}/META-INF/application.xml"
todir="${appstaging.dir}/META-INF" /
		copy file="${output.dir}/${name}-ejb.jar"
todir="${appstaging.dir}" /
		copy file="${output.dir}/${name}-web.war"
todir="${appstaging.dir}" /
		jar jarfile="${output.dir}/${name}.ear"
basedir="${appstaging.dir}" /
	/target

	target name="deploy" depends="app-ear"
		copy file="${output.dir}/${name}.ear"
todir="${orion.dir}/applications" /
	/target

/project




RE: Where to put bean property files

2000-12-28 Thread Tony Wilson

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?




EJB Error Message in Orion Log File

2000-12-28 Thread Mark Bernardinis

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



Directories in applications

2000-12-28 Thread Mark Bernardinis

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

2000-12-28 Thread Christian Sell

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?






Re: Directories in applications

2000-12-28 Thread Mark Bernardinis

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



Orion and JBuilder E 4 Open Tools

2000-12-28 Thread Robert S. Sfeir

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

2000-12-28 Thread Jay Armstrong

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?









Re: Orion and JBuilder E 4 Open Tools

2000-12-28 Thread Guilherme Ceschiatti

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