JMS and MS MQ

2000-10-16 Thread Magnus Rydin



Does 
anyone have a setup involving JMS and Micro$oft MQ?
Would 
be fun to hear your experiences with setting it up.
WR


Re: Deleting cookies with Orion

2000-10-16 Thread Dave Ford

I'm trying to delete a cookie (setMaxAge=0), and calling res.addCookie(),
but it doesn't look like the cookie is being removed from the client. The
exact same code works in another servlet container. 

I am having the same problem. Did you ever solve this??

Thanks in advance.

Dave Ford










setMaxAge(0) does not work correctly

2000-10-16 Thread Dave Ford

To delete a cookie called x, the following should work:

Cookie c = new Cookie("x","bla");
c.setMaxAge(0);
response.addCookie(c);

But it doesn't. Upon inspecting the http response header that was actually
generated, I found this:

Set-Cookie: a=18; Path=

I beleive that setMaxAge should result in a value for "expires" perhaps
something like this:

Set-Cookie: a=18; Expires=some_past_date; Path=

Dave Ford





Steps For Deploying the EJB

2000-10-16 Thread Santosh Kumar



Hi All,
 I am pretty new to EJB. Have started 
with Orion.
 I would like to know the step by 
step procedure
 for deploying an EJB Application on 
the Orion.
 Or atleast a pointer to the same. 
some url site? Some Doc?

Please Help Me!
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: setMaxAge(0) does not work correctly

2000-10-16 Thread Christophe Hartwig

Hi !

I thought setMaxAge(0) was used to set a "transient" cookie, one that
disapears when browser is closed... If you want the cookie to expire, you'll
probably have to set it to a past date explicitely...

Bye
Christophe

 -Original Message-
 From: Dave Ford [mailto:[EMAIL PROTECTED]]
 Sent: Monday, October 16, 2000 10:20 AM
 To: Orion-Interest
 Subject: setMaxAge(0) does not work correctly
 
 
 To delete a cookie called x, the following should work:
 
 Cookie c = new Cookie("x","bla");
 c.setMaxAge(0);
 response.addCookie(c);
 
 But it doesn't. Upon inspecting the http response header that 
 was actually
 generated, I found this:
 
 Set-Cookie: a=18; Path=
 
 I beleive that setMaxAge should result in a value for 
 "expires" perhaps
 something like this:
 
 Set-Cookie: a=18; Expires=some_past_date; Path=
 
 Dave Ford
 
 




Re: setMaxAge(0) does not work correctly

2000-10-16 Thread Robert Krueger

At 01:19 16.10.00 , you wrote:

please file a bug report in bugzilla.

robert

To delete a cookie called x, the following should work:

Cookie c = new Cookie("x","bla");
c.setMaxAge(0);
response.addCookie(c);

But it doesn't. Upon inspecting the http response header that was actually
generated, I found this:

Set-Cookie: a=18; Path=

I beleive that setMaxAge should result in a value for "expires" perhaps
something like this:

Set-Cookie: a=18; Expires=some_past_date; Path=

Dave Ford


(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





Calling EJB from outside an application.

2000-10-16 Thread Chris Randall

Please can you help,

I have written a bean that is in an application, The orion-primer demo.
I can call this bean from inside the application but when I try and call
this 
from another servlet outside the application I get :
javax.naming.NamingException: Error instantiating web-app JNDI-context: 
No location specified and no suitable instance of the type
'hello.ejb.Hello' found for the ejb-ref ejb/HelloHome. 

Can I call ejb's from outside the Application and if yes how.

Many thanks for your help   

Chris Randall






Re: Entity bean ejb/entity/Autor autocreate table

2000-10-16 Thread Sven van 't Veer



Robert Krueger wrote:
 
 At 16:44 14.10.00 , you wrote:
 
 Robert Krueger wrote:
  
   check out orion-ejb-jar.dtd docs. you can change the table names to
   whatever you like.
 I knew that much, but that's created -after- deployment, and only if
 deployment was succesful. I was looking for a way to do this before
 deployment.
 
 only option you have is to write a minimal orion-ejb-jar.xml yourself.
 orion will not overwrite anything you put in there but add some internal
 stuff. that way you can put your table names in there before deployment.
 works well and AFAIK it's the only possible solution.
 
tnks

sven
-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




Re: setMaxAge(0) does not work correctly

2000-10-16 Thread Joel Shellman

Which version of Orion are you using? I know at least one cookie bug that
was recently fixed, so please make sure you are using a new version of
Orion.

Joel Shellman
Chief Software Architect
http://www.ants.com/90589781

- Original Message -
From: "Dave Ford" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Monday, October 16, 2000 1:19 AM
Subject: setMaxAge(0) does not work correctly


 To delete a cookie called x, the following should work:

 Cookie c = new Cookie("x","bla");
 c.setMaxAge(0);
 response.addCookie(c);

 But it doesn't. Upon inspecting the http response header that was actually
 generated, I found this:

 Set-Cookie: a=18; Path=

 I beleive that setMaxAge should result in a value for "expires" perhaps
 something like this:

 Set-Cookie: a=18; Expires=some_past_date; Path=

 Dave Ford








Table Auto-Creation

2000-10-16 Thread S.Badrinarayanan

Hi all

Can anyone tell how to stop the autocreation of tables when deploying an entity bean?

Regards
sb

Chequemail.com - a free web based e-mail service that also pays!!!
http://www.chequemail.com




Re: Table Auto-Creation

2000-10-16 Thread Robert Krueger

check out the dtds. it's autocreate-tables='false' per application in 
orion-application.xml if you never want to use it you can put it in 
global-application as a default for all others.

HTH

robert

At 11:15 16.10.00 , you wrote:
Hi all

Can anyone tell how to stop the autocreation of tables when deploying an 
entity bean?

Regards
sb

Chequemail.com - a free web based e-mail service that also pays!!!
http://www.chequemail.com

(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





RE: Table Auto-Creation

2000-10-16 Thread Mike Cannon-Brookes

Easy one.

Look at orion-ejb-jar.xml and orion-application.xml docs there's an
"autocreate-tables" attribute, just set it to false.

Mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of
 S.Badrinarayanan
 Sent: Monday, October 16, 2000 9:15 PM
 To: Orion-Interest
 Subject: Table Auto-Creation


 Hi all

 Can anyone tell how to stop the autocreation of tables when
 deploying an entity bean?

 Regards
 sb

 Chequemail.com - a free web based e-mail service that also pays!!!
 http://www.chequemail.com







RE: The New Java Pet Store

2000-10-16 Thread Ray Harrison

I thought so too, but -Djsp.tags.reuse=false produces the same error.

--- Mike Cannon-Brookes [EMAIL PROTECTED] wrote:
 I'm thinking it's probably the same bug as in the first pet store,
 concerning tag reuse?
 
 Search the archives, something like -Djsp.tags.reuse=false
 
 Mike
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison
  Sent: Monday, October 16, 2000 5:51 AM
  To: Orion-Interest
  Subject: RE: The New Java Pet Store
 
 
  They've done a bit of re-architecting. They've broken out the EJB
  jars into:
  mailerEjb.jar
  shoppingcartEjb.jar
  petstoreEjb.jar
  customerEjb.jar
  inventoryEjb.jar
 
  as examples. They've added an admin piece to it as well. Anyway -
  I've started looking at the
  error below, but haven't gotten very far. If anyone has seen this
  sort of behaviour before - let
  me know and I will focus on that area.
 
  Cheers
  Ray Harrison
 
 
 
  --- Robert Nicholson [EMAIL PROTECTED] wrote:
   What new about it?
  
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison
Sent: Sunday, October 15, 2000 8:20 AM
To: Orion-Interest
Subject: The New Java Pet Store
   
   
Hi -
Has anyone investigated the new java pet store (came out on
October 11th, I believe)? I just did a
straight deploy - here's the message I receive on "Enter the Store"...
--
---
java.lang.NullPointerException
at
com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getT
agValue(ScreenFlowXmlDAO.java:332)
at
com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.getS
creens(ScreenFlowXmlDAO.java:155)
at
com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowXmlDAO.load
ScreenDefinitions(ScreenFlowXmlDAO.java:97)
at
com.sun.j2ee.blueprints.petstore.control.web.ScreenFlowManager.ini
t(ScreenFlowManager.java:52)
at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.getScreen
FlowManager(MainServlet.java:96)
at
com.sun.j2ee.blueprints.petstore.control.web.MainServlet.init(Main
Servlet.java:37)
at javax.servlet.GenericServlet.init(GenericServlet.java)
at com.evermind.server.http.HttpApplication.wt(JAX)
at com.evermind.server.http.HttpApplication.wb(JAX)
at com.evermind.server.http.HttpApplication.um(JAX)
at com.evermind.server.http.ef.su(JAX)
at com.evermind.server.http.ef.dn(JAX)
at com.evermind.util.f.run(JAX)
   
--
---
Orion Version 1.4.0
Cloudscape data source
AND
MS Sql Server data source (the results are the same - the sources
have worked before
and continue to work on the previous pet store release (1.0.1)...
   
   
Any clues as to where to start looking? I am not THAT interested
in getting it to work, but I am a
bit curious
   
Cheers
Ray Harrison
   
__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/
   
  
 
 
  __
  Do You Yahoo!?
  Yahoo! Messenger - Talk while you surf!  It's FREE.
  http://im.yahoo.com/
 
 
 
 


__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/




RE: Table Auto-Creation

2000-10-16 Thread Arved Sandstrom

Check the Orion docs, specifically the tag descriptions for
"orion-application.xml".

Basically, though, the 'autocreate-tables' property on the top-level
orion-application tag is set to "false" to _not_ have tables automatically
created at deployment time for CMP beans.

Arved Sandstrom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
S.Badrinarayanan
Sent: Monday, October 16, 2000 8:15 AM
To: Orion-Interest
Subject: Table Auto-Creation


Hi all

Can anyone tell how to stop the autocreation of tables when deploying an
entity bean?

Regards
sb

Chequemail.com - a free web based e-mail service that also pays!!!
http://www.chequemail.com






RE: Steps For Deploying the EJB

2000-10-16 Thread Kemp Randy-W18971



Santosh:
 I am new to Orion also, but a couple good 
primers are found in http://www.jollem.com/orion-cmp-primer 
and http://www.znerd.demon.nl/orion-primer.
 
Randy

  -Original Message-From: Santosh Kumar 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, October 09, 2000 3:43 
  AMTo: Orion-InterestSubject: Steps For Deploying the 
  EJB
  Hi All,
   I am pretty new to EJB. Have 
  started with Orion.
   I would like to know the step by 
  step procedure
   for deploying an EJB Application 
  on the Orion.
   Or atleast a pointer to the same. 
  some url site? Some Doc?
  
  Please Help Me!
  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 
   
  


unicode parameters

2000-10-16 Thread Savotchkin Egor

Hi all,
I send an encoded (in unicode by some javascript function from IE )
string of
parameters to orion server from an applet. Each character of the string is
substituted with its unicode value in the form %u, where X is a hex
digit on the client side.
On the server side request.getQueryString() returns a string where each
character like %u00XX is \uXX, which is wrong. Is it an Orion bug? How
Java handles such representation of unicode?

Egor Savotchkin.








RE: Deleting cookies with Orion

2000-10-16 Thread Hani Suleiman
Title: RE: Deleting cookies with Orion





Nope, I implemented a workaround though by setting the value of the cookie to something invalid, and had my servlets treat an invalid cookie as a non-existent one. 

-Original Message-
From: Dave Ford
To: Hani Suleiman; Orion-Interest
Sent: 10/16/2000 12:33 AM
Subject: Re: Deleting cookies with Orion


I'm trying to delete a cookie (setMaxAge=0), and calling
res.addCookie(),
but it doesn't look like the cookie is being removed from the client.
The
exact same code works in another servlet container. 


I am having the same problem. Did you ever solve this??


Thanks in advance.


Dave Ford









Orion 1.3.8 and Servlets

2000-10-16 Thread arjan

Guys,

I have this small problem with my servlets..
whenever I make changes to them and recompile them, I have to 
restart my orion for the changes to take effect.. I know there
is a development mode which auto compiles the files but I suppose
that only applies to JSP's ?

so what I would like to know is whether it is possible to compile
servlets and have the changes take effect immediately without having to
restart, kinda like installing a new .ear or .war file.

sincerely,

Arjan Wijnveen
MarketXS B.V.





EJB-EJB relationship example

2000-10-16 Thread Truong Di Ly

Hi,
has someone a short example with EJB2 which use EJB-EJB relationship.
The atm example doesn't run because i don't have a JMS server installed.
Thanks, Di




Re: Table Auto-Creation

2000-10-16 Thread arjan

well, the orion-application.xml describes a "autocreate=true|false"
the default is true, so setting it to false should do the trick.

Arjan Wijnveen
MarketXS B.V.

On 16 Oct 2000, S.Badrinarayanan wrote:

 Hi all
 
 Can anyone tell how to stop the autocreation of tables when deploying an entity bean?
 
 Regards
 sb
 
 Chequemail.com - a free web based e-mail service that also pays!!!
 http://www.chequemail.com
 





Re: startup / monitor script?

2000-10-16 Thread Mike Atkin

From: "Robert Krueger" [EMAIL PROTECTED]
 At 20:22 15.10.00 , you wrote:
 Klaus - thanks I'll try that.
 
 On my other point, has anyone written a shell or perl script to do the
 following on Linux/Unix:
 
 1) Start Orion
 2) Monitor that the Java process Orion is running in is running
 3) If Orion stops (ie JVM crashes) - restart Orion
 4) Log the starts / stops?
snip
 this is exactly what supervise (comes with daemontools by the auther of
 qmail, d.j. bernstein) does. we've used it in production systems for the
 exact same task you're describing and are very satisfied with it. the only
 problem it doesn't deal with is when the entire application hangs.
however,
 we haven't had this kind of problem in a long time. at the moment we use
 jdk1.3 by sun, which crashes occasionally and is restarted by supervise.

Has anyone heard of anything similar that can be used on NT e.g. perl script
or native executable

Cheers,

Mike
( wishing he could deploy on Linux )





transport-guarantee

2000-10-16 Thread Savotchkin Egor



Hi all!
 Could somebody please 
explain me what this tag is for in Orion? When I set it to CONFIDENTIAL Orion 
just serves me with a blank page, so how do I use it? 
I thought I could use it to set up somethink 
like ssl to only part of my site... is it so?
Egor 
Savotchkin.


resource factories

2000-10-16 Thread Christian Eichinger

Hi all

Does anyone know how to integrate external resource factories in the
orion container (the EJB Spec 2.0 draft only states that "A tool to
allow the System Adminitrator to add, remove, and configure a resource
manager for the EJB Server" should be provided by the container)

thanks
Christian

begin:vcard 
n:Eichinger;Christian
tel;work:+43 662 22 88 422
x-mozilla-html:FALSE
url:www.salzburgresearch.at
org:Salzburg Research Forschungsgesellschaft m.b.H.;SunTREC
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Jakob-Haringer-Str. 5/III=0D=0A;Salzburg;;5020;Austria
fn:Christian Eichinger
end:vcard



RE: Orion 1.3.8 and Servlets

2000-10-16 Thread Hani Suleiman
Title: RE: Orion 1.3.8 and Servlets





If you 'touch' any of the configuration files for your application (eg, web.xml), then Orion will reload that app. I use an ant build script which after installing the app, uses the touch task to force Orion to reload. 

-Original Message-
From: [EMAIL PROTECTED]
To: Orion-Interest
Sent: 10/16/2000 9:48 AM
Subject: Orion 1.3.8 and Servlets


Guys,


I have this small problem with my servlets..
whenever I make changes to them and recompile them, I have to 
restart my orion for the changes to take effect.. I know there
is a development mode which auto compiles the files but I suppose
that only applies to JSP's ?


so what I would like to know is whether it is possible to compile
servlets and have the changes take effect immediately without having to
restart, kinda like installing a new .ear or .war file.


sincerely,


Arjan Wijnveen
MarketXS B.V.





Re: setMaxAge(0) does not work correctly

2000-10-16 Thread Dave Ford

Which version of Orion are you using?
I am using 1.3.8.

Dave Ford





UserManager and the log file

2000-10-16 Thread jbirchfield


We have implemented our own usermanager, and everything works as expected,
except logging.  After logging in using FORM based authentication,
we can successfully perform a 'request.getRemoteUser()' call to retrieve
the users login information.  I would expect that if the server knows
the remoteUser variable, it would log it in the default-web-access.log
file, but this is not the case.  We need to start doing
trend analysis on our web server usage, and knowing who is doing what is
vital.  Anyway to force the logging with FORM based
authentication?


James Birchfield

Ironmax
a better way to buy, sell and rent construction equipment
5 Corporate Center
9960 Corporate Campus Drive,
Suite 2000
Louisville, KY 40223





RE: Deleting cookies with Orion

2000-10-16 Thread Robert Krueger

At 09:37 16.10.00 , you wrote:

Nope, I implemented a workaround though by setting the value of the cookie 
to something invalid, and had my servlets treat an invalid cookie as a 
non-existent one.

did you ever file this as a bug report in bugzilla? if not PLEASE do. Your 
helping yourself and everyone else. If you just post it here it's likely to 
be forgotten or not even noticed by the orion team. once it's in the bug 
database it will eventually be fixed or you'll get an explanation what 
you're doing wrong.

robert


-Original Message-
From: Dave Ford
To: Hani Suleiman; Orion-Interest
Sent: 10/16/2000 12:33 AM
Subject: Re: Deleting cookies with Orion

I'm trying to delete a cookie (setMaxAge=0), and calling
res.addCookie(),
but it doesn't look like the cookie is being removed from the client.
The
exact same code works in another servlet container. 

I am having the same problem. Did you ever solve this??

Thanks in advance.

Dave Ford




(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





RE: Deleting cookies with Orion

2000-10-16 Thread Hani Suleiman
Title: RE: Deleting cookies with Orion





I just filed it, and included David's Ford header debugging info. Bug #118.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of 
 Robert Krueger
 Sent: Monday, October 16, 2000 11:01 AM
 To: Orion-Interest
 Subject: RE: Deleting cookies with Orion
 
 
 At 09:37 16.10.00 , you wrote:
 
 Nope, I implemented a workaround though by setting the value 
 of the cookie 
 to something invalid, and had my servlets treat an invalid 
 cookie as a 
 non-existent one.
 
 did you ever file this as a bug report in bugzilla? if not 
 PLEASE do. Your 
 helping yourself and everyone else. If you just post it here 
 it's likely to 
 be forgotten or not even noticed by the orion team. once it's 
 in the bug 
 database it will eventually be fixed or you'll get an 
 explanation what 
 you're doing wrong.
 
 robert
 
 
 -Original Message-
 From: Dave Ford
 To: Hani Suleiman; Orion-Interest
 Sent: 10/16/2000 12:33 AM
 Subject: Re: Deleting cookies with Orion
 
 I'm trying to delete a cookie (setMaxAge=0), and calling
 res.addCookie(),
 but it doesn't look like the cookie is being removed from the client.
 The
 exact same code works in another servlet container. 
 
 I am having the same problem. Did you ever solve this??
 
 Thanks in advance.
 
 Dave Ford
 
 
 
 
 (-) Robert Krüger
 (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
 (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
 (-) Tel: 06151 665401, Fax: 06151 665373
 (-) [EMAIL PROTECTED], www.signal7.de
 
 





Re: Steps For Deploying the EJB

2000-10-16 Thread Jim Archer

Check out the Orion primer and Orion CMP primer at:

http://www.jollem.com

These are great starting points for making EJBs and deploying them. In 
particular, pay attention to the ant build files (build.xml) to learn how 
to package up the .ear file and its components.

Good luck.

Jim


--On Monday, October 09, 2000 2:13 PM +0530 Santosh Kumar 
[EMAIL PROTECTED] wrote:


 Hi All,
I am pretty new to EJB. Have started with Orion.
I would like to know the step by step procedure
for deploying an EJB Application on the Orion.
Or atleast a pointer to the same. some url site? Some Doc?

 Please Help Me!

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








dependent object - deepCopy()?

2000-10-16 Thread Tim Drury


I have an EJB, Contact, and a dependent object, Address.
I have the deployment descriptor setup using the dependents
and relationships area (based on another user's post).

When I deploy, Orion throws this message at me:

Error Compiling file ...: The dependent class tfc.Address
should implement a "public abstract tfc.Address deepCopy()
method"

How do I implement this?  Where is the documentation on
this method?

I tried:

public Address deepCopy()
{
   Address a = new Address(this.street1, this.street2, );
   return a;
}

but I still got the same error upon deployment.

Any ideas?

-tim




Re: Orion 1.3.8 and Servlets

2000-10-16 Thread Flemming Seerup

Actually I think it's the default behaviour of Orion
to reload servlets.  (edit ORION-WEB.XML -
development="true")

Most servlet-servers offers this (even weblogic I
think).  The only trick is, that the servlet-classes
must NOT be in the general class-path!  If the classes
is in the classpath, it's the standard JVM
class-loader which have to reload them (and it
doesn't!), and not the Orion class-loader!

have fun!  :-)
Flemming

--- [EMAIL PROTECTED] skrev:  Guys,
 
 I have this small problem with my servlets..
 whenever I make changes to them and recompile them,
 I have to 
 restart my orion for the changes to take effect.. I
 know there
 is a development mode which auto compiles the files
 but I suppose
 that only applies to JSP's ?
 
 so what I would like to know is whether it is
 possible to compile
 servlets and have the changes take effect
 immediately without having to
 restart, kinda like installing a new .ear or .war
 file.
 
 sincerely,
 
 Arjan Wijnveen
 MarketXS B.V.
 
 


__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/




R: transport-guarantee

2000-10-16 Thread Montebove Luciano

transport-guarantee means only that you can't call that component if you
aren't in a secure (SSL) connection.
 
Hope this help.
 
Luciano
 
 
 -Messaggio originale-
Da: Savotchkin Egor [mailto:[EMAIL PROTECTED]]
Inviato: lunedi 16 ottobre 2000 15.57
A: Orion-Interest
Oggetto: transport-guarantee



Hi all!
Could somebody please explain me what this tag is for in Orion? When I
set it to CONFIDENTIAL Orion just serves me with a blank page, so how do I
use it? 
I thought I could use it to set up somethink like ssl to only part of my
site... is it so?

Egor Savotchkin.





Re: dependent object - deepCopy()?

2000-10-16 Thread Nick Newman

Hi Tim,

The important word in the error message is ABSTRACT.  In other words, you
DON'T implement it!  You just write:

public abstract Address deepCopy();

and orion does the rest.

Nick

At 12:13 PM 10/16/00 -0400, you wrote:

I have an EJB, Contact, and a dependent object, Address.
I have the deployment descriptor setup using the dependents
and relationships area (based on another user's post).

When I deploy, Orion throws this message at me:

Error Compiling file ...: The dependent class tfc.Address
should implement a "public abstract tfc.Address deepCopy()
method"

How do I implement this?  Where is the documentation on
this method?

I tried:

public Address deepCopy()
{
   Address a = new Address(this.street1, this.street2, );
   return a;
}

but I still got the same error upon deployment.

Any ideas?

-tim





Multiple Web-apps question

2000-10-16 Thread Michael Nash


My apologies if this is covered elsewhere, but I've dug through the list
archives and the doc  can't quite see this answer

I have two web-applications, the second of which "depends" on the first -
e.g. the first app is for example a series of eCommerce components, the
second app is a catalog manager, which uses the first app as a "base"
(rather like extending a class.)

Both applications have servlets, java classes, JSP pages, etc.

I need the second app to share sessions with the first, and to have access
to the base classes in the first - but I'd rather not simply "include" the
entire first app in the second (which does work).

Is it possible/allowed/recommended to have two "dependant" applications like
this? Any tips/doc on how to go about it?

Thanks!

Mike
Jcorporate Ltd
http://www.javacorporate.com






RE: Deployment platforms

2000-10-16 Thread Duffey, Kevin

We are attempting to deploy our admin site using Orion in a non-clustered
environment. We are having some difficulties however..but not with Orion. At
least I don't think so. Our problem is in our code I am pretty sure. We are
getting connection leaks on occassion especially on large queries. We have a
completely home-brewn persistence layer which I think is part of the
problem. None the less the hardware we are using is a IBM NetFinity 4000r
rack, dual PIII500 with 512MB ram, and raid scsi setup.

Our main site will use 966Mhz dell servers (Single cpu) with scsi raid
setup, in a clustered environment (using Orion). We will use Win2K with JDK
1.3. Traffic wise we are expecting between 100 sessions a day initially to
over 3000 sessions a day in a year or so. That is SMALL compared to busy
sites. We are also co-locating our servers for 24/7 up-time, security, etc.
Stability is fine for Win2K, although I hear its good to reboot the server
every few days anyways..JVM leaks, OS leaks, etc. Besides that, we back up
our database every night, so we reboot at that time anyways..just to be
safe.



 Thanks.
 Todd Renner
 [EMAIL PROTECTED]
 
 Kev Palfreyman wrote:
 
  We're at a planning stage for future deployment of a system 
 which may
  include Orion (certainly a J2EE environment).
 
  I'm looking for information from people out there who have 
 _real_ live
  deployments (not development code) of orion.
 
  1. What Hardware are you running?
  2. Which Operating System?
  3. Which JVM?
  4. Are you running a cluster?  What extra hardware do you 
 use, and what size
  cluster?
  5. What kind of traffic?
  6. What has been your experience (stability, performance, 
 managability,
  etc) - mainly of the underlying platform, not orion.
 
  I do not want to start any religious wars here, just 
 experiences of deployed
  systems.
 
  We are currently looking at Solaris and Win2K, maybe 
 others.  Our J2EE
  platform can be different to the rest of our system (call 
 it legacy - talk
  to it via Corba), but there are then obvious management overheads.
 
  Please - talk to me!
 
  Thanks,
 
  Kev
 
  ---
  Dr. Kevin Palfreyman
   APAMA Ltd, 17 Millers Yard, Mill Lane
   Cambridge CB2 1RQ, United Kingdom
   Email: [EMAIL PROTECTED]
   Phone: +44 1223 706508
   Fax: +44 1223 518859
 




RE: Orion 1.3.8 and Servlets

2000-10-16 Thread Duffey, Kevin
Title: RE: Orion 1.3.8 and Servlets



Actually, in orion-web.xml (located in 
/orion/application-deployments/app_name/web_app_name/orion-web.xml) there is a 
setting for development..which you said. But also there is another option, 
called source-directory="/path/dir" and when development="true" every time you 
save the file, Orion will auto-reload your web-app for you (and I don't think it 
shows you this in its output window..but maybe it does). I have not been able to 
see this work, mostly because if ANY of your HttpSession objects do not 
implement Serializable, it wont' work for some reason. Our code is jacked up 
enough where we do not do it right. Anyways, Orion and Resin are the only two 
servlet engines (Orion being a full J2EE app server too) that auto-reload your 
entire app, even if you change code in a "core" class. Most app servers and 
servlet engines reload only servlets and/or JSPs/javabeans, not core classes, 
and so on. Just make sure when you deploy to production your turn development 
off ("false"). In the /docs folder, look at orion-web.xml.html..it will 
explain this to you.


  -Original Message-From: Hani Suleiman 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, October 16, 2000 7:16 
  AMTo: Orion-InterestSubject: RE: Orion 1.3.8 and 
  Servlets
  If you 'touch' any of the configuration files for your 
  application (eg, web.xml), then Orion will reload that app. I use an ant build 
  script which after installing the app, uses the touch task to force Orion to 
  reload. 
  -Original Message- From: 
  [EMAIL PROTECTED] To: 
  Orion-Interest Sent: 10/16/2000 9:48 AM 
  Subject: Orion 1.3.8 and Servlets 
  Guys, 
  I have this small problem with my servlets.. whenever I make changes to them and recompile them, I have to 
  restart my orion for the changes to take effect.. I 
  know there is a development mode which auto compiles 
  the files but I suppose that only applies to JSP's 
  ? 
  so what I would like to know is whether it is possible to 
  compile servlets and have the changes take effect 
  immediately without having to restart, kinda like 
  installing a new .ear or .war file. 
  sincerely, 
  Arjan Wijnveen MarketXS B.V. 
  


WEB-INF lib files

2000-10-16 Thread Tony Wiegand



 Hi all,

I'm running Orion 1.3.8 on  Redhat 6.2.   When I
   deploy my webapp it doesn't pick up the jar files placed
   in my WEB-INF/lib directory.   I'm trying to use log4j
   with my servlets.  If I place the jar files in the orion lib,
   everything works fine.The error the servlet receives
   is "java.lang.NoClassDefFoundError: org/log4j/Category".


Thanks,
Tony





Connection Pooling

2000-10-16 Thread Amir Peivandi
Title: RE: Deleting cookies with Orion



Hi,

I need 
to use connection pooling in one of my EJB objects and I don't want to use any 
Orion specific code so I can move the EJB from Orion to other application 
servers it works again. 
I was 
reading the Orion mailing list and I couldn't find anything, is there anyone out 
there who could kindly send me a sample code which dose 
this?

Thanks,
Amir



RE: dependent object - deepCopy()?

2000-10-16 Thread Reddy Krishnan

as far as the spec goes deepcopy is an abstract method that is implemented by the EJB 
container.  I have not had any problems with this. 


-Original Message-
From: Tim Drury [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 16, 2000 9:13 AM
To: Orion-Interest
Subject: dependent object - deepCopy()?



I have an EJB, Contact, and a dependent object, Address.
I have the deployment descriptor setup using the dependents
and relationships area (based on another user's post).

When I deploy, Orion throws this message at me:

Error Compiling file ...: The dependent class tfc.Address
should implement a "public abstract tfc.Address deepCopy()
method"

How do I implement this?  Where is the documentation on
this method?

I tried:

public Address deepCopy()
{
   Address a = new Address(this.street1, this.street2, );
   return a;
}

but I still got the same error upon deployment.

Any ideas?

-tim




Compressing the output stream

2000-10-16 Thread Kirby, Nathaniel

On jsp-interest
[http://archives.java.sun.com/cgi-bin/wa?A2=ind9912L=jsp-interestP=R11079
] I read

***

Date: Mon, 6 Dec 1999 12:29:14 +0100
Reply-To: Volker Turau [EMAIL PROTECTED]
Sender:   A mailing list about Java Server Pages specification and
  reference [EMAIL PROTECTED]
From: Volker Turau [EMAIL PROTECTED]
/cgi-bin/wa?A2=ind9912L=jsp-interestD=0P=64939
Subject:  Re: How to compress JSP pages using Content Encoding
Comments: To: Kayser William [EMAIL PROTECTED]
In-Reply-To:  [EMAIL PROTECTED]
Content-Type: TEXT/PLAIN; charset=US-ASCII


You can do content encoding in jsp, I did it. Just make sure that the page
does not access the implicit variable out at all (e.g do not have blanks
outside scripts).


But I think that jsp is not the right tool to do that. The JSP-Container
should do that for you.


The code is roughly:


%@page .%
response.setHeader("Content-Encoding", "gzip");
GZIPOutputStream gos = new
GZIPOutputStream(response.getOutputStream());
byte[] b = "html bla bla .../html".getBytes();
gos.write(b);
gos.close();
%


volker turau
FH Wiesbaden Fachbereich Informatik
Tel.: +49-611-9495-205 FAX +49-611-9495-210
http://www.informatik.fh-wiesbaden.de/~turau


 ==
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

***

Does orion do this automatically ? caus eit doesn't seem to allow me to in a
JSp (I can't assign out to a different stream).  Do I have to do it in a
servlet ?

Anyone out there know ???

TIA,
Nate





Re: Connection Pooling

2000-10-16 Thread Robert Krueger


that's what the datasource absraction hides from you. what else do you 
need? any EJB 1.1 example will do. there are lots of books ou there (a free 
one at www.theserverside.com)

robert

At 14:19 16.10.00 , you wrote:
Hi,

I need to use connection pooling in one of my EJB objects and I don't want 
to use any Orion specific code so I can move the EJB from Orion to other 
application servers it works again.
I was reading the Orion mailing list and I couldn't find anything, is 
there anyone out there who could kindly send me a sample code which dose this?

Thanks,
Amir


(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





URL Pathing

2000-10-16 Thread DMoy

To Whom this may concern:

I have written an application using java and jsp technologies that was
developed around Caucho's Resin web application server.  During my testing,
I've found that I cannot run my code on Orion because in every instance
where I do a redirect, Orion expects that the redirect url is based from
the application context directory and Resin expects that the request is
from the current directory.  I've tried several alternatives but have been
unable to find a solution that will work on either server.  Is there a way
to do this?   I am desperate at this point.   I appreciate any information
you can provide me with.

Sincerely,
Andy






getProperty toString

2000-10-16 Thread Kit Cragin

Hi:

I am trying to access a bean from my JSP code. The property on the bean is
an object. I thought, reading from the spec, that the toString() method
would be called on the object I am trying to access. For instance if I had:

jsp:useBean id="book" class="Book" scope="session" /
...
jsp:getProperty name="book" property="author" /

would print out the author's name if I had the following classes:

public class Book
{
public Author getAuthor()
{
return author;
}
private Author author;
}

public class Author
{
public getName()
{
return name;
}
public toString()
{
return name;
}
private String name;
}

The spec says "The conversion to String is done as in the println() methods,
i.e. the toString() method of the object is used for Object instances, and
the primitive types are converted directly," in section 2.13.3, but this
does not seem to be the case.

If anyone has any ideas, let me know. Thanks.

Kit Cragin
VP of Product Development
Mongoose Technology, Inc.
www.mongoosetech.com





displaying xml

2000-10-16 Thread Derek Akers




Hi all... I am trying to display the contents of an XML 
file to the screen, embedded inside a JSP page. That is, I want to include 
a header and footer on the page (for navigation purposes), with the XML in the 
middle. I want the text to be viewable literally (tags all), 
but I have been unable to find a solution... 

I thought maybe the contentType attribute of the %@ page 
% directive might do it, but it seems not. 

Does anyone know of a way to do this?


Derek Akers

Internet Application DeveloperEldan Software, 
Toronto(416) 341-0070www.eldan.com


log analyzers

2000-10-16 Thread Kemp Randy-W18971

Has anyone used any log analyzer packages with Orion - either on the Windows or Unix 
platforms?  If so, what packages are you using?
   If anyone is setting up CGI with Orion, do you put the CGI scripts in the default 
Orion web directory (like you do the HTML pages)? 




Re: URL Pathing

2000-10-16 Thread Robert Krueger

At 15:54 16.10.00 , you wrote:
To Whom this may concern:

I have written an application using java and jsp technologies that was
developed around Caucho's Resin web application server.  During my testing,
I've found that I cannot run my code on Orion because in every instance
where I do a redirect, Orion expects that the redirect url is based from
the application context directory and Resin expects that the request is
from the current directory.  I've tried several alternatives but have been

they interprete a fuzzy part of the spec differently. IMHO orion's approach 
makes more sense but I know that doesn't help you. We've had the same 
problem and settled for the orion way until the next version of the spec 
clarifies that (I haven't checked servlets 2.3 btw). Best thing I can think 
of is use a system property or servlet param or something similar which you 
set on deployment of you app server that is used to branch that particular 
part of the code and then either use or not use the context path.

there was a thread on this list a while back about this problem. check the 
archive if there's more info in one of the postings there.

HTH,

robert

unable to find a solution that will work on either server.  Is there a way
to do this?   I am desperate at this point.   I appreciate any information
you can provide me with.

Sincerely,
Andy



(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





RE: log analyzers

2000-10-16 Thread Hani Suleiman
Title: RE: log analyzers





Using Webtrends on windows here, and it's working nicely. We're in the process of switching to the enterprise edition (to handle cluster logfiles)

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
 Randy-W18971
 Sent: Monday, October 16, 2000 4:30 PM
 To: Orion-Interest
 Subject: log analyzers
 
 
 Has anyone used any log analyzer packages with Orion - either 
 on the Windows or Unix platforms? If so, what packages are you using?
 If anyone is setting up CGI with Orion, do you put the CGI 
 scripts in the default Orion web directory (like you do the 
 HTML pages)? 
 





Exception thrown on request if content header length 2K

2000-10-16 Thread Roy, Jaideep

I've sent this to bugzilla #120.

If the content header length exceeds 2K Orion throws the following
exception:

Orion 1.3.8 throws an java.lang.ArrayIndexOutOfBoundsException
at com.evermind.server.http.ek.uz(JAX)
at com.evermind.server.http.EvermindHttpServletRequest.yl(JAX)
at com.evermind.server.http.EvermindHttpServletRequest.x8(JAX)
at
com.evermind.server.http.EvermindHttpServletRequest.getParameter(JAX)
at com.evermind.server.http.HttpApplication.w5(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d1.si(JAX)
at com.evermind.server.http.d1.forward(JAX)
at com.evermind.server.http.ed.sp(JAX)
at com.evermind.server.http.ed.so(JAX)
at com.evermind.util.f.run(JAX)

This is the JSP I wrote to test this case: Set the "length for next action"
to 
1000 and hit next a couple of times and you will see the error.

Thanks,
- Jaideep Roy


--- Additional Comments From [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 2000-10-16 22:21 ---
Here's the jsp:

%@ page import="java.io.*" %
%@ page import="java.util.*" %
%@ page import="java.text.*" %
%@ page import="javax.servlet.*" %
%@ page import="javax.servlet.http.*" %
%@ page import="java.net.*" %
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"
HTML
HEAD
META HTTP-EQUIV="pragma" CONTENT="no-cache"
META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:55 GMT"
TITLEMax Url Tester/TITLE
/HEAD
BODY
p This JSP is to test sending URLs.  As the size of the action url
on 
the form 
and the size of the what is stored in the headers nears 2000 bytes, 
Orion has 
problems parsing the data.  This can be easily be reached by
submitting 
the form 
twice while creating an form action of 1000 charactersp
%

SimpleDateFormat formatter
 = new SimpleDateFormat (".MM.dd G 'at' hh:mm:ss a zzz");
Date currentTime_1 = new Date();
String dateString = formatter.format(currentTime_1);
out.print("br Current Time="+dateString); 


// figure out the length of the headers
int headLength = 0;
int refererLength = 0;
Enumeration e = request.getHeaderNames();

for (; e!=null  e.hasMoreElements();)
{
String name = (String)e.nextElement();
headLength += name.length();

Enumeration ev = request.getHeaders(name);

for (; ev!=null  ev.hasMoreElements();)
{
String value = (String)ev.nextElement();
headLength += value.length();
if (name.equalsIgnoreCase("referer")) {
refererLength  += value.length();
}

}

} 
String query = request.getQueryString();
if (query == null) {
query = "";
}
out.println("brheaderLength="+headLength );
out.println("br -- header.refererLength="+refererLength );
int lastQueryLength = 8 + request.getServerName().length()
+request.getServletPath().length()+query.length(); 
out.println("brlast Query Length="+lastQueryLength);


// create next action url
String parm = "abcdefghijklmnopqrstuvwxyz0123456789";
String urlLengthStr = request.getParameter("urllength");
String parmLengthStr = request.getParameter("parmlength");
int urlLength = 600;
int parmLength = 20;
if (urlLengthStr != null  urlLengthStr.length()0) {
urlLengthStr = urlLengthStr.trim();
urlLength = Integer.parseInt(urlLengthStr);
}
if (parmLengthStr != null  parmLengthStr.length()0) {
urlLengthStr = urlLengthStr.trim();
parmLength = Integer.parseInt(parmLengthStr);
if (parmLength  parm.length()) {
parm = parm.substring(0,parmLength);
}

}
StringBuffer action = new StringBuffer();
int i=1;
action.append("http://" + request.getServerName()
+request.getServletPath());
action.append('?');
action.append("parm"+i);
action.append('=');
action.append(parm);
while (action.length()  urlLength) {
action.append('');
action.append("parm"+i);
action.append('=');
action.append(parm);
i++;
}

out.println("brnext action len = "+action.length());
int nextTotal = action.length() + headLength - refererLength + 
lastQueryLength;
out.println("brnext total request len = "+nextTotal);
if (nextTotal  2000) {
out.println("h1Next submit will probably fail/h1");

Re: displaying xml

2000-10-16 Thread Troy E. Echols



Perhaps enclosing the xml in pre> /pre> will work.
Troy Echols
Derek Akers wrote:

Hi all...
I am trying to display the contents of an XML file to the screen, embedded
inside a JSP page. That is, I want to include a header and footer
on the page (for navigation purposes), with the XML in the middle.
I want the text to be viewable literally (tags  all), but I have been
unable to find a solution...I thought maybe
the contentType attribute of the %@ page %> directive might do it,
but it seems not.Does anyone know of a way to
do this?Derek AkersInternet
Application Developer
Eldan Software, Toronto
(416) 341-0070
www.eldan.com







Re: displaying xml

2000-10-16 Thread Joseph B. Ottinger

Use the view taglibrary, attached. You can also see the in16
(jsptags) project on sourceforge.

Usage:
view:escapeBlah blah blah/view:escape

On Mon, 16 Oct 2000, Derek Akers wrote:

 
 Hi all...  I am trying to display the contents of an XML file to the screen, 
embedded inside a JSP page.  That is, I want to include a header and footer on the 
page (for navigation purposes), with the XML in the middle.  I want the text to be 
viewable literally (tags  all), but I have been unable to find a solution... 
 
 I thought maybe the contentType attribute of the %@ page % directive might do it, 
but it seems not.  
 
 Does anyone know of a way to do this?
 
 
 Derek Akers
 
 Internet Application Developer
 Eldan Software, Toronto
 (416) 341-0070
 www.eldan.com
 

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo  HOMES.COM Developer


 viewtags-1.1.jar


RE: Connection Pooling

2000-10-16 Thread Duffey, Kevin
Title: RE: Deleting cookies with Orion



As far 
as I know, you will want to use DataSources, JDBC 2.0 and what not..they are 
standard to J2EE, so they should allow it to work. I know Connection Pooling is 
not Orion specific (in that it implements the J2EE standard for connection 
pooling). Its possible however that Orion has a "better" connection pooling 
mechanism, but it would tie you to the app server.


  -Original Message-From: Amir Peivandi 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, October 16, 2000 
  11:19 AMTo: Orion-InterestSubject: Connection 
  Pooling
  Hi,
  
  I 
  need to use connection pooling in one of my EJB objects and I don't want to 
  use any Orion specific code so I can move the EJB from Orion to other 
  application servers it works again. 
  I 
  was reading the Orion mailing list and I couldn't find anything, is there 
  anyone out there who could kindly send me a sample code which dose 
  this?
  
  Thanks,
  Amir
  


RE: URL Pathing

2000-10-16 Thread Duffey, Kevin

I am not sure about Resin any longer, but it used to work fine for me on
both. I know Orion follows the J2EE specs with Servlet 2.2/JSP 1.1. I would
assume they are both doing so. Needless to say, without any example I am not
quite sure what you mean.

In my web-app, deployed in Orion, I use the following syntax in JSP pages:

a href="/path/file.jsp"click/a

If I have more than one web-app deployed, I do the following in a "header"
scriplet included on every single JSP page:

%
  String contextPath = request.getContextPath();
%

This yields the value of the web-app context, so for example if you deploy a
web app as www.domain.com/my-web-app/index.jsp the contextPath ==
"/my-web-app", therefore my links (as I do them now) would become:

a href="%= contextPath %/path/file.jsp"click/a

This makes sure that what ever context the link I am going to is in, it
always goes relative to the absolute path of the web-app, including the
context. You can even extend this to:

a href="http://www.domain.com/%= contextPath %/path/file.jsp"click/a

This is all according to the Servlet 2.2 specs though...so it should work in
any servlet 2.2 capable servlet engine.

 
 To Whom this may concern:
 
 I have written an application using java and jsp technologies that was
 developed around Caucho's Resin web application server.  
 During my testing,
 I've found that I cannot run my code on Orion because in 
 every instance
 where I do a redirect, Orion expects that the redirect url is 
 based from
 the application context directory and Resin expects that the 
 request is
 from the current directory.  I've tried several alternatives 
 but have been
 unable to find a solution that will work on either server.  
 Is there a way
 to do this?   I am desperate at this point.   I appreciate 
 any information
 you can provide me with.
 
 Sincerely,
 Andy
 
 




RE: orionsupport.com

2000-10-16 Thread Frank Eggink

Joseph,

I think better sources of information then the standard documentation is great and 
very helpful for people
using Orion. I have sometimes great difficulties getting things sorted out to the 
extend I'm wondering whether
I'm on the right track. Assuming I'm not the only one in that situation, I guess more 
documentation and more
easy to understand examples is something a lot of (potential) Orion users will be 
happy with (I wish the guys
of Orion lots of licence sales to be able to spend more resources on better 
documentation).

On contributing: I'm on a tight budget as well. I'm afraid I can't contribute much 
resources in helping you
running the site. I'm happy to contribute an odd example or so, but that is about it. 

Further more I wouldn't be set off when you would accept ads. To be honest I think it 
is good when
someone gets something more in return for a useful contribution then just a pad on the 
sholder. On the
long run that works out better.


Frank


On Monday, October 16, 2000 7:33 PM, Joseph B. Ottinger [SMTP:[EMAIL PROTECTED]] 
wrote:
 Yes, it's me.
 
 I'm considering restarting orionsupport in its current location, although
 I'm aware of at least one effort from someone else to implement it
 independently.
 
 However, I'm still not sure if I want to - originally it was done as a
 service to both myself and the Orion community, and as a capitalist I
 found that the benefit to myself was pretty minor. I refuse ads, so
 there's no profit stream involved - it was a matter of "what can I
 continue to learn about using J2EE and Orion?" Mostly what I learned is
 that people didn't particularly like what I considered to be decent
 (although not great) web design. I received contributions from five or six
 people, which put an undue burden on my limited skill and time, in my
 opinion. Combine that with some other issues, and it benefitted me more to
 detach it than continue with it.
 
 So: the status is "I'm willing to put it back up, but if and only if
 A) You'd rather have mine than someone else's, and B) You're willing to
 actually contribute back some."
 
 It's up to you. Let me know.
 
 ---
 Joseph B. Ottinger   [EMAIL PROTECTED]
 http://cupid.suninternet.com/~joeo  HOMES.COM Developer
 
 




Re: log analyzers

2000-10-16 Thread Joel Shellman

Kemp Randy-W18971 wrote:
 
 Has anyone used any log analyzer packages with Orion - either on the Windows or Unix 
platforms?  If so, what packages are you using?
If anyone is setting up CGI with Orion, do you put the CGI scripts in the default 
Orion web directory (like you do the HTML pages)?

We've used Webtrends and http-analyze.
-- 
Joel Shellman
Chief Software Architect
The virally-driven B2B marketplace for outsourcing projects
http://www.ants.com/90589781




RE: URL Pathing

2000-10-16 Thread Kurt Hoyt
Title: RE: URL Pathing





Yes, stuff the information about the root of your system somewhere so you can change it easily across your JSPs. Apparently, this is a hazy part of the servlet/JSP spec(s) that vendors have chosen to implement differently.

Kurt in Atlanta


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 16, 2000 3:55 PM
To: Orion-Interest
Subject: URL Pathing


To Whom this may concern:

I have written an application using java and jsp technologies that was
developed around Caucho's Resin web application server. 
During my testing,
I've found that I cannot run my code on Orion because in every instance
where I do a redirect, Orion expects that the redirect url is 
based from
the application context directory and Resin expects that the request is
from the current directory. I've tried several alternatives 
but have been
unable to find a solution that will work on either server. Is 
there a way
to do this? I am desperate at this point. I appreciate any 
information
you can provide me with.

Sincerely,
Andy








Re: URL Pathing

2000-10-16 Thread Christian Sell

thats an old story (see list archives). When it comes to sendRedirect, Orion
interprets "/" as denoting the current context root, whereas all other
servlet engines (including Tomcat, the J2EE reference impl) interpret it as
the server document root. When this issue was discussed a while ago, the
conclusion was that, even though the J2EE spec seems to endorse "document
root", the orion way was conceptually cleaner, because it is consistent with
the way "/" is interpreted in other places. Of course, this leaves us with a
nasty compatibility problem. I see 2 choices:

a) dont use sendRedirect. Use RequestDispatcher.forward() instead
b) do something like this:

 if(servletConfig.getServletContext().getServerInfo().startsWith("Orion"))
 ...
else
...

good luck..

-Original Message-
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: Dienstag, 17. Oktober 2000 01:02
Subject: URL Pathing


To Whom this may concern:

I have written an application using java and jsp technologies that was
developed around Caucho's Resin web application server.  During my testing,
I've found that I cannot run my code on Orion because in every instance
where I do a redirect, Orion expects that the redirect url is based from
the application context directory and Resin expects that the request is
from the current directory.  I've tried several alternatives but have been
unable to find a solution that will work on either server.  Is there a way
to do this?   I am desperate at this point.   I appreciate any information
you can provide me with.

Sincerely,
Andy








Re: displaying xml

2000-10-16 Thread Derek Akers



Hi Troy, thanks, but I've already tried. the pre 
/pre tags do preserve the indentation of the XML, but do not allow for 
the displaying of tags for some reason.

  - Original Message - 
  From: 
  Troy E. 
  Echols 
  To: Orion-Interest 
  Sent: Monday, October 16, 2000 5:09 
  PM
  Subject: Re: displaying xml
  Perhaps enclosing the xml in pre /pre will 
  work. 
  Troy Echols 
  Derek Akers wrote: 
  

Hi all... I am trying to display the contents of 
an XML file to the screen, embedded inside a JSP page. That is, I want 
to include a header and footer on the page (for navigation purposes), with 
the XML in the middle. I want the text to be viewable literally (tags 
 all), but I have been unable to find a solution...I thought maybe the contentType attribute of the %@ page % 
directive might do it, but it seems not.Does 
anyone know of a way to do this?Derek 
AkersInternet Application Developer 
Eldan Software, Toronto (416) 
341-0070 www.eldan.com


Tunnel Problem

2000-10-16 Thread David Kenzik

I saw someone mention this in the archive, but there was no response to the
question.

I have my tunnel servlet section setup, and my servlet-mapping setup
properly. I'm merely trying to grab .gif files from my Apache server.

I know the Tunnel class is being called, because it's triggering this error:

java.lang.NoSuchMethodError: java.net.URL: method getPath()Ljava/lang/String; not 
found 
at com.evermind.server.http.TunnelServlet.init(JAX) 
at javax.servlet.GenericServlet.init(GenericServlet.java)   
at com.evermind.server.http.HttpApplication.wt(JAX) 
at com.evermind.server.http.HttpApplication.wb(JAX) 
at com.evermind.server.http.HttpApplication.vv(JAX) 
at com.evermind.server.http.HttpApplication.um(JAX) 
at com.evermind.server.http.ef.su(JAX)  
at com.evermind.server.http.ef.dn(JAX)
at com.evermind.util.f.run(JAX)

I encounter this problem in 1.3.8 and 1.4.0 using jdk 1.2.2.

Any help would be appreciated.

-- 
David S. Kenzik
[EMAIL PROTECTED] - http://kenzik.com
Original Music - http://mp3.com/text




Re: More JMS woes :(

2000-10-16 Thread Simon Harris

Cheers. Will do.

- Original Message -
From: "Robert Krueger" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Sunday, October 15, 2000 10:21 PM
Subject: Re: More JMS woes :(



it's not too unlikely these are bugs as from the impression I get on this
list it could be that not many people have really used jms intensively with
orion and therefore these bugs have not been discovered yet (as has been
the case with several other orion features over the past few months).

please file those as bug reports with bugzilla so you're sure this is
brought to the attention of the orion team (+ you will be notified
automatically when anything has been done about it or it is commented on).
attach a test case if you can. that will speed up things considerably.

robert


At 16:31 15.10.00 , you wrote:
I am having the following problems using orions JMS.

1.I start a transacted queue session in a standalone app and read some
messages but when I call rollback the messages do not re-appear on the
queue;

2.I create a transacted queue session from a stateless session bean
with container managed transaction and a transaction attribute of Required
but when the trasaction commits, the queue session doesn't commit.

If anyone has any idea what I must do to get a) rollback working with
queues and b) get the queue to participate in the transaction, I would be
very grateful.

Simon.

(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de







Re: displaying xml

2000-10-16 Thread Porfiriev Sergey




To Magnus  Karl Avedal:

it will be good idea to open "users contribution" topic at www.OrionServer.com
( like orionsupport was). and as result traffic in 
orion-interest will be decreased :)

- Original Message - 

  From: 
  Derek Akers 
  To: Orion-Interest 
  Sent: Monday, October 16, 2000 6:44 
  PM
  Subject: Re: displaying xml
  
  Hi Troy, thanks, but I've already tried. the 
  pre /pre tags do preserve the indentation of the XML, but do 
  not allow for the displaying of tags for some reason.


1) use xmp /xmp tags - pre can;'t 
help. 

2) use this xsl for XML parsing - ( i use it with 
Salaman's Saxon XSLT engine, but it will work under Orion default XSLT (xerces)) 

 
it will display your XML as HTML with XML reformating and coloring




xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"xsl:output method="html" 
encoding="windows-1251" indent="yes"/

!-- Generic stylesheet for viewing XML 
--!-- This stylesheet has been modified to use modes instead of 
nested templates. --!-- Last Updated by Parf: moved to lotus xsl, 
main tag fix --

 xsl:template 
match="/" HTML 
xsl:apply-templates/  
/HTML /xsl:template

 xsl:template 
match="node()" xsl:if 
test="name()!='xml-stylesheet'" 
bbigxsl:textlt;/xsl:textxsl:value-of 
select="name()"/xsl:textgt;/xsl:text/big/bbr/ 
DIV STYLE="font-family:Courier; font-size:10pt; 
margin-bottom:0em" xsl:apply-templates 
mode="inside"/ /DIV 
bbigxsl:textlt;//xsl:textxsl:value-of 
select="name()"/xsl:textgt;/xsl:text/big/b 
/xsl:if /xsl:template

 xsl:template match="*" 
mode="inside" DIV 
STYLE="margin-left:1em" SPAN 
STYLE="color:blue" 
xsl:textlt;/xsl:text 
bxsl:value-of 
select="name()"//b 
xsl:for-each 
select="@*" 
xsl:call-template 
name="attribute"/ 
/xsl:for-each 
xsl:choose 
xsl:when 
test="self::node()" 
xsl:textgt;/xsl:text 
xsl:apply-templates 
mode="inside"/ 
xsl:textlt;//xsl:text 
xsl:value-of 
select="name()"/ 
xsl:textgt;/xsl:text 
/xsl:when 
xsl:otherwise 
xsl:text/gt;/xsl:text 
/xsl:otherwise 
/xsl:choose  
/SPAN /DIV 
/xsl:template

 xsl:template 
name="attribute" SPAN 
STYLE="color:navy" xsl:text 
/xsl:text 
xsl:value-of select="name()"/ 
xsl:text="/xsl:text SPAN 
STYLE="color:black" 
xsl:value-of select="."/ 
/SPAN 
xsl:text"/xsl:text /SPAN 
/xsl:template

 xsl:template match="comment()" 
mode="inside" SPAN 
STYLE="color:orange" 
xsl:textlt;!--/xsl:textxsl:value-of 
select="."/xsl:text--gt;/xsl:text 
/SPAN /xsl:template

 xsl:template 
match="processing-instruction()" mode="inside" DIV 
STYLE="margin-left:1em; color:maroon" 
xsl:textlt;?/xsl:text 
xsl:value-of select="name"/ 
xsl:text /xsl:text 
xsl:value-of select="."/ 
xsl:text?gt;/xsl:text 
/DIV /xsl:template

 xsl:template match="text()" 
mode="inside" SPAN 
STYLE="color:green" xsl:value-of 
select="."/ /SPAN 
/xsl:template

/xsl:stylesheet


  
- Original Message - 
From: 
Troy E. 
Echols 
To: Orion-Interest 
Sent: Monday, October 16, 2000 5:09 
PM
Subject: Re: displaying xml
Perhaps enclosing the xml in pre /pre will 
work. 
Troy Echols 
Derek Akers wrote: 

  
  Hi all... I am trying to display the contents of 
  an XML file to the screen, embedded inside a JSP page. That is, I 
  want to include a header and footer on the page (for navigation purposes), 
  with the XML in the middle. I want the text to be viewable literally 
  (tags  all), but I have been unable to find a 
  solution...I thought maybe the contentType 
  attribute of the %@ page % directive might do it, but it seems 
  not.Does anyone know of a way to do 
  this?Derek AkersInternet Application Developer Eldan 
  Software, Toronto (416) 341-0070 www.eldan.com


RE: displaying xml

2000-10-16 Thread Hani Suleiman



Or how 
about a faq-o-matic? Seems ideal for this kind of thing.

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Porfiriev 
  SergeySent: Monday, October 16, 2000 8:33 PMTo: 
  Orion-InterestSubject: Re: displaying xml
  
  To Magnus  Karl Avedal:
  
  it will be good idea to open "users contribution" topic at www.OrionServer.com
  ( like orionsupport was). and as result traffic 
  in orion-interest will be decreased :)
  
  - Original Message - 
  
From: 
Derek Akers 

To: Orion-Interest 
Sent: Monday, October 16, 2000 6:44 
PM
Subject: Re: displaying xml

Hi Troy, thanks, but I've already tried. the 
pre /pre tags do preserve the indentation of the XML, but do 
not allow for the displaying of tags for some 
reason.
  
  
  1) use xmp /xmp tags - pre can;'t 
  help. 
  
  2) use this xsl for XML parsing - ( i use it with 
  Salaman's Saxon XSLT engine, but it will work under Orion default XSLT 
  (xerces)) 
   
  it will display your XML as HTML with XML reformating and 
coloring
  
  
  
  
  xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"xsl:output method="html" 
  encoding="windows-1251" indent="yes"/
  
  !-- Generic stylesheet for viewing 
  XML --!-- This stylesheet has been modified to use modes instead 
  of nested templates. --!-- Last Updated by Parf: moved to lotus 
  xsl, main tag fix --
  
   xsl:template 
  match="/" HTML 
  xsl:apply-templates/  
  /HTML /xsl:template
  
   xsl:template 
  match="node()" xsl:if 
  test="name()!='xml-stylesheet'" 
  bbigxsl:textlt;/xsl:textxsl:value-of 
  select="name()"/xsl:textgt;/xsl:text/big/bbr/ 
  DIV STYLE="font-family:Courier; font-size:10pt; 
  margin-bottom:0em" 
  xsl:apply-templates mode="inside"/ 
  /DIV 
  bbigxsl:textlt;//xsl:textxsl:value-of 
  select="name()"/xsl:textgt;/xsl:text/big/b 
  /xsl:if /xsl:template
  
   xsl:template match="*" 
  mode="inside" DIV 
  STYLE="margin-left:1em" SPAN 
  STYLE="color:blue" 
  xsl:textlt;/xsl:text 
  bxsl:value-of 
  select="name()"//b 
  xsl:for-each 
  select="@*" 
  xsl:call-template 
  name="attribute"/ 
  /xsl:for-each 
  xsl:choose 
  xsl:when 
  test="self::node()" 
  xsl:textgt;/xsl:text 
  xsl:apply-templates 
  mode="inside"/ 
  xsl:textlt;//xsl:text 
  xsl:value-of 
  select="name()"/ 
  xsl:textgt;/xsl:text 
  /xsl:when 
  xsl:otherwise 
  xsl:text/gt;/xsl:text 
  /xsl:otherwise 
  /xsl:choose  
  /SPAN /DIV 
  /xsl:template
  
   xsl:template 
  name="attribute" SPAN 
  STYLE="color:navy" xsl:text 
  /xsl:text 
  xsl:value-of select="name()"/ 
  xsl:text="/xsl:text SPAN 
  STYLE="color:black" 
  xsl:value-of select="."/ 
  /SPAN 
  xsl:text"/xsl:text 
  /SPAN /xsl:template
  
   xsl:template match="comment()" 
  mode="inside" SPAN 
  STYLE="color:orange" 
  xsl:textlt;!--/xsl:textxsl:value-of 
  select="."/xsl:text--gt;/xsl:text 
  /SPAN /xsl:template
  
   xsl:template 
  match="processing-instruction()" mode="inside" 
  DIV STYLE="margin-left:1em; 
  color:maroon" 
  xsl:textlt;?/xsl:text 
  xsl:value-of select="name"/ 
  xsl:text /xsl:text 
  xsl:value-of select="."/ 
  xsl:text?gt;/xsl:text 
  /DIV /xsl:template
  
   xsl:template match="text()" 
  mode="inside" SPAN 
  STYLE="color:green" xsl:value-of 
  select="."/ /SPAN 
  /xsl:template
  
  /xsl:stylesheet
  
  

  - Original Message - 
  From: 
  Troy E. 
  Echols 
  To: Orion-Interest 
  Sent: Monday, October 16, 2000 5:09 
  PM
  Subject: Re: displaying xml
  Perhaps enclosing the xml in pre /pre will 
  work. 
  Troy Echols 
  Derek Akers wrote: 
  

Hi all... I am trying to display the contents 
of an XML file to the screen, embedded inside a JSP page. That is, 
I want to include a header and footer on the page (for navigation 
purposes), with the XML in the middle. I want the text to be 
viewable literally (tags  all), but I have been unable to find a 
solution...I thought maybe the contentType 
attribute of the %@ page % directive might do it, but it seems 
not.Does anyone know of a way to do 
this?Derek AkersInternet Application Developer Eldan 
Software, Toronto (416) 341-0070 
www.eldan.com


EJB-lookup problems with moved Product ejb example

2000-10-16 Thread Vivek Iyer



Hello all,

I'm getting a frustrating problem trying to bring up the "Product" entity bean
inside Orion 1.4.0 (after latest autoupdate - though I had the problem with
1.3.4 as well). It only happens _after_ I move the location of the class files
from d:\orion\demo\ejb\product to d:\vivek\pricing\ejb\product.

The error I get is (ultimately):

D:\vivek\pricing\ejb\productjava ProductClient
Communication error: Error reading application-client descriptor: No
location specified and no suitable instance of the type 'Product' found
for the ejb-ref MyProduct

Is this an obvious problem? I can't believe this is just happening because I
change the location of the class files and meta-inf files. I noticed someone
else got this error some time ago, but no solution was posted.  Here's the gory
story, steps 1 through 7:

System: WinNT4 SP6
JDK: 1.2.2
CLASSPATH: .;
d:\orion\orion.jar;d:\orion\jndi.jar;d:\orion\servlet.jar;d:\orion\ejb.jar

1. INITIALIZED ORION, deployed the ejbsamples, and the "ProductClient"
successfully ran, out-of-the-box. All classes are located in
d:\orion\demo\ejb\product\

2. COPIED the jndi.properties, ProductEJB, ProductHome and Product (remote
interface) and ProductClient to d:\vivek\pricing\ejb\product\ and all the
meta-inf files (application-client.xml, ejb-jar.xml,
orion-application-client.xml) _without change_, recompiled all the files. Added
an application.xml file into d:\vivek\pricing\ejb\meta-inf\application.xml with
the following lines -

application
 display-namePricing/display-name
 module
  ejbproduct/ejb
 /module
/application

3. COMMENTED out the "ejbsamples" part of orion's server.xml. Deleted that
application's deployment files. Added the following application to server.xml:

application name="pricing" path="d:\\vivek\\pricing\\ejb" /

4. RESTARTED Orion. Observed that

Auto-deploying pricing (New server version detected)...
Auto-deploying product (No previous deployment found)... done.
Orion/1.4.0 initialized

5. RAN ProductClient, and got this message -

D:\vivek\pricing\ejb\productjava ProductClient
Exception in thread "main" java.lang.SecurityException: No such domain/applicati
on: ejbsamples
at com.evermind.server.rmi.bd.gk(JAX)
at com.evermind.server.rmi.bd.gk(JAX)
at com.evermind.server.rmi.bd.f3(JAX)
at com.evermind.server.rmi.RMIServer.f3(JAX, Compiled Code)
at com.evermind.server.rmi.RMIContext.lookup(JAX)
at com.evermind.server.administration.LazyResourceFinder.f3(JAX)
at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX)

at com.evermind.server.Application.aqo(JAX, Compiled Code)
at com.evermind.server.ApplicationClientInitialContextFactory.getInitial
Context(JAX, Compiled Code)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
72)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250
)
at javax.naming.InitialContext.init(InitialContext.java:226)
at javax.naming.InitialContext.init(InitialContext.java:182)
at ProductClient.main(ProductClient.java:18)

6. ALTERED the second line of jndi.properies:
OLD: java.naming.provider.url=ormi://localhost/ejbsamples
NEW: java.naming.provider.url=ormi://localhost/
(What's up with this, anyway??)

7. RE-RAN ProductClient, and now get the final message -

D:\vivek\pricing\ejb\productjava ProductClient
Communication error: Error reading application-client descriptor: No location sp
ecified and no suitable instance of the type 'Product' found for the ejb-ref MyP
roduct

Any assistance would be appreciated. I'm sure I had this working in a much older
 version
of Orion, and it seems to have broken, dont know why.

Thanks,

Vivek






calling EJBs from outside orion

2000-10-16 Thread Greg Matthews



dear all,

is it possible to call EJBs running in orion from a 
java program started at the DOS command line, i.e from outside 
orion?

i guess i might have to generate the client stubs 
(?). has anyone done this?

this would be useful when building the ejb 
components to be used by the web developers.

thanks,
greg


userThreads + calling EJBs from outside orion.

2000-10-16 Thread Greg Matthews




dear all,

i've started orion 1.40 as follows:

java -jar orion.jar -userThreads

and then tried to get a reference 
totheInitialContext, and received
this stack trace.

f:\dev\scriptjava -classpath 
f:\orion\orion.jar;f:\jdk1.3\jre\lib\rt.jar;f:\classes 
test.OrionTestjavax.naming.NamingException: Not in an application scope - 
start Orion with the-userThreads switch if using user-created 
threads at 
com.evermind.server.g6.bi(JAX) at 
com.evermind.naming.j_.lookup(JAX) 
at 
javax.naming.InitialContext.lookup(InitialContext.java:350) 
at 
test.OrionTest.init(OrionTest.java:18) 
at test.OrionTest.main(OrionTest.java:31)

i'm trying to create a dos shell program that i can 
use to test EJB's
running inside orion.

1. am i starting orion correctly to allow this with 
the userThreads flag?

2. what values should i use to initialise the 
InitialContext? is the following correct?

Hashtable env = new 
Hashtable();env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, 
"com.evermind.server.ApplicationInitialContextFactory");env.put(javax.naming.Context.URL_PKG_PREFIXES, 
"com.evermind.server");Context ctx = new 
InitialContext(env);

i know i shouldn't need to if my classpath is set 
up correctly but i'd like to know what values
should be used anyway.

thanks,
greg



Re: Communication Error with moved Product ejb example

2000-10-16 Thread Jim Archer

Hello Vivek...

--On Monday, October 16, 2000 10:20 PM -0500 Vivek Iyer 
[EMAIL PROTECTED] wrote:

 The error I get is (ultimately):

 D:\vivek\pricing\ejb\productjava ProductClient
 Communication error: Error reading application-client descriptor: No
 location specified and no suitable instance of the type 'Product' found
 for the ejb-ref MyProduct

I have found that the cause of this error is a mistake in the ejb-jar.xml 
file or in your web.xml file. In order for your app to use the nameing 
context like this:

Object obj = context.lookup("java:comp/env/ejb/CreateNewUarHomeSlsb");

You need an entry in the proper deployment descriptor like this:

ejb-ref
  ejb-ref-nameejb/CreateNewUarHomeSlsb/ejb-ref-name
  ejb-ref-typeSession/ejb-ref-type
  homecom.regtek.slsb.CreateNewUARHome/home
  remotecom.regtek.slsb.CreateNewUAR/remote
/ejb-ref


I have these entries in my web.xml file for my servlets that want to access 
EJBs and also in my ejb-jar.xml file for EJBs that want to access other 
EJBs. Often, I mistype some part of this entry to point to a bean that does 
not exist and occasionally I forget this entry entirely. Every time, I get 
the error you described.

Remember, in the ejb-jar.xml file, these references are scopped for a 
particular bean, so that different beans can have the same reference name 
but have it point to somewhere different. Be sure to set these entries in 
that deployment descriptor for each bean, within the EJBs definition. Here 
is an example of a session bean I use:

session
   descriptionCreate a UAR/description
   display-namecom.regtek.slsb.CreateNewUAR/display-name
   ejb-namecom.regtek.slsb.CreateNewUAR/ejb-name
   homecom.regtek.slsb.CreateNewUARHome/home
   remotecom.regtek.slsb.CreateNewUAR/remote
   ejb-classcom.regtek.slsb.CreateNewUARBean/ejb-class
   session-typeStateless/session-type
   transaction-typeContainer/transaction-type
   ejb-ref
  ejb-ref-nameejb/UarHomeEb/ejb-ref-name
  ejb-ref-typeEntity/ejb-ref-type
  homecom.regtek.eb20.UarHome/home
  remotecom.regtek.eb20.Uar/remote
   /ejb-ref
   ejb-ref
  ejb-ref-nameejb/CrHomeEb/ejb-ref-name
  ejb-ref-typeEntity/ejb-ref-type
  homecom.regtek.eb20.CrHome/home
  remotecom.regtek.eb20.Cr/remote
   /ejb-ref
/session

This example allows my EJB session bean called CreateNewUAR to access two 
other entity beans using the references ejb/UarHomeEb and ejb/CrHomeEb.

I hope this helps. Good luck.

Jim





 Is this an obvious problem? I can't believe this is just happening
 because I change the location of the class files and meta-inf files. I
 noticed someone else got this error some time ago, but no solution was
 posted.  Here's the gory story, steps 1 through 7:

 System: WinNT4 SP6
 JDK: 1.2.2
 CLASSPATH: .;
 d:\orion\orion.jar;d:\orion\jndi.jar;d:\orion\servlet.jar;d:\orion\ejb.jar

 1. INITIALIZED ORION, deployed the ejbsamples, and the "ProductClient"
 successfully ran, out-of-the-box. All classes are located in
 d:\orion\demo\ejb\product\

 2. COPIED the jndi.properties, ProductEJB, ProductHome and Product (remote
 interface) and ProductClient to d:\vivek\pricing\ejb\product\ and all the
 meta-inf files (application-client.xml, ejb-jar.xml,
 orion-application-client.xml) _without change_, recompiled all the files.
 Added an application.xml file into
 d:\vivek\pricing\ejb\meta-inf\application.xml with the following lines -

 application
  display-namePricing/display-name
  module
   ejbproduct/ejb
  /module
 /application

 3. COMMENTED out the "ejbsamples" part of orion's server.xml. Deleted that
 application's deployment files. Added the following application to
 server.xml:

 application name="pricing" path="d:\\vivek\\pricing\\ejb" /

 4. RESTARTED Orion. Observed that

 Auto-deploying pricing (New server version detected)...
 Auto-deploying product (No previous deployment found)... done.
 Orion/1.4.0 initialized

 5. RAN ProductClient, and got this message -

 D:\vivek\pricing\ejb\productjava ProductClient
 Exception in thread "main" java.lang.SecurityException: No such
 domain/applicati on: ejbsamples
 at com.evermind.server.rmi.bd.gk(JAX)
 at com.evermind.server.rmi.bd.gk(JAX)
 at com.evermind.server.rmi.bd.f3(JAX)
 at com.evermind.server.rmi.RMIServer.f3(JAX, Compiled Code)
 at com.evermind.server.rmi.RMIContext.lookup(JAX)
 at com.evermind.server.administration.LazyResourceFinder.f3(JAX)
 at
 com.evermind.server.administration.LazyResourceFinder.getEJBHome(
 JAX)

 at com.evermind.server.Application.aqo(JAX, Compiled Code)
 at
 com.evermind.server.ApplicationClientInitialContextFactory.getIni
 tial Context(JAX, Compiled Code)
 at
 javax.naming.spi.NamingManager.getInitialContext(NamingManager.ja
 va:6 72)
 at
 javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java
 :250 

Re: calling EJBs from outside orion

2000-10-16 Thread Jim Archer

Hi Greg...

You won't find this messsage too helpfull, except that I can tell you it 
can be done. I tried it and got it to work. I did so be searching the 
archives.

I no longer have the code I slapped together, or else I would sent it to 
you. Bu the answer is in the mail list archive.

Good luck.

Jim


--On Tuesday, October 17, 2000 2:52 PM +1000 Greg Matthews 
[EMAIL PROTECTED] wrote:


 dear all,

 is it possible to call EJBs running in orion from a java program started
 at the DOS command line, i.e from outside orion?

 i guess i might have to generate the client stubs (?). has anyone done
 this?

 this would be useful when building the ejb components to be used by the
 web developers.

 thanks,
 greg