R: Servlet loading twice, Help me, please

2001-02-27 Thread Marco Isella

Hi had the same problem  i resolved with a static Object working as a lock
in the init method. 
The best thing however is to upgrade to 1.4.7 wich does not present this
strange behaviour anymore.

Marco

-Messaggio originale-
Da: Vinh Chu Xuan [mailto:[EMAIL PROTECTED]]
Inviato: luned, 26. febbraio 2001 17:06
A: Orion-Interest
Oggetto: Re: Servlet loading twice, Help me, please


Hi Phong,
I am now at home,so i do not have the source code here.
In this case you should use global Java Bean.
I will send you the sample.
Hope that will help you.
Talk to you later.
Best regards,
Vinh Chu Xuan
Vietnam Data Communication Company
Software RD Department
1E Truong Chinh - Hanoi - Vietnam
http://home.vnn.vn/vdc/index_e.html
Office : +84 4 8699112-307
Cell phone : +84 91 21 6116

- Original Message -
From: Phong Quoc Tran [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 8:37 AM
Subject: Servlet loading twice, Help me, please


Hi,

I have a servlet as a front component in my webapp; the servlet has also the
task of saving a Object in static variable (for example : a integer value )
during his inizialization.
When I start orion server, I set new value for static variable (for example
new value = 20 )
and I call the servlet  n  times ( n = 2 ) I see 2 servlet instance created
(see the output below)

Please help me, how to make only 1 servlet instance.

I have done a small example so that i can explain me in a more clear way :

my web.xml
  servlet
servlet-nameMyServlet/servlet-name
servlet-classMyServlet/servlet-class
load-on-startup0/load-on-startup
   /servlet

the code of the my object is
class  MyObject extends Object {
private static int myvar = 10;
public static void setVar(int var) {
myvar = var;
}
public void myprint() {
System.out.println("I'm a Object : " + this + " and my
variable : " + myvar);
}
}

the code of the servlet is:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class MyServlet extends HttpServlet {
public void init(ServletConfig conf) throws ServletException {
MyObject myObject = new MyObject();
myObject.myprint();
MyObject.setVar(20);
System.out.println("Done " + this);
}
public void service(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
doGet( request, response );
}
public void doGet(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
}
public void doPost(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
doGet( request, response );
}
}

now, if I start the server  i call the servlet n times (n = 2 ) i can see
2 servlet instance created (see the output below)
D:\webserver\Orionjava -jar orion.jar
I'm a Object : MyObject@7c1f2a88 and my variable : 10
Done MyServlet@66732a88
Orion/1.4.4 initialized
I'm a Object : MyObject@e86f2a8a and my variable : 10
Done MyServlet@c34f2a8a


I using Orion server 1.44,  and Please help me, how to make only 1 servlet
instance.
Thanks,
Phong Quoc Tran



===
Tran Quoc Phong

Paragon Solutions Vietnam (PSV)
26-28 Dong Du Street, District 1, HoChiMinh City, Vietnam
Phone  : (84-8) 8 251 250  (ext 181 or 182)
Office email  : [EMAIL PROTECTED]
Private email : [EMAIL PROTECTED]
Web site  : http://www.psv.com.vn






SV: JNDI Lookup Failure

2001-02-27 Thread Magnus Rydin



You 
would probably want to use the defined ejb-ref name that you have setup in your 
web.xml.
I 
would gess that that name would not end in *Home?
WR

  -Ursprungligt meddelande-Från: Phan Anh Tran 
  [mailto:[EMAIL PROTECTED]]Skickat: den 26 februari 2001 
  22:14Till: Orion-InterestÄmne: JNDI Lookup 
  Failure
  How's the deployed EJB mapped to the JNDI 
  context? 
  
  1. EJB = 
  trantech.ejb.TestSession,TestSessionHome,TestSessionBean.
  2. Is the JNDI lookup string 
  "java:comp/env/ejb/trantech/ejb/TestSessionHome" ?
  
  I keep getting the following exception in my JSP 
  page:
  
  javax.naming.NameNotFoundException: 
  ejb/trantech/ejb/TestSessionHome notfound in 
  Test-Web at 
  com.evermind.util.t.lookup(JAX) 
  at 
  com.evermind.server.hm.f4(JAX) 
  at 
  com.evermind.server.hm.lookup(JAX) 
  at javax.naming.InitialContext.lookup(Unknown 
  Source) at 
  __jspPage1_testejb_jsp._jspService(__jspPage1_testejb_jsp.java:33) 
  at 
  com.orionserver.http.OrionHttpJspPage.service(JAX) 
  at 
  com.evermind.server.http.HttpApplication.xj(JAX) 
  at 
  com.evermind.server.http.JSPServlet.service(JAX) 
  at 
  com.evermind.server.http.d3.sw(JAX) 
  at 
  com.evermind.server.http.d3.su(JAX) 
  at 
  com.evermind.server.http.ef.s1(JAX) 
  at 
  com.evermind.server.http.ef.do(JAX) 
  at com.evermind.util.f.run(JAX)
  
  Any insights into the problem?
  
  Thanks,
  Anh
  


RE: Intro to Orion Tutorial

2001-02-27 Thread Chris Wright

James,

Excellent tutorial - and great timing - I was just about to
start work on getting the Sun tool to cooperate with Orion...

Chris Wright
Senior Technical Consultant
Clockwork Web
23/4 The Coda Centre
189 Munster Road
London SW6 6AW

Tel: 020 7471 0770
Fax: 020 7471 0771


-Original Message-
From: James Halloran [mailto:[EMAIL PROTECTED]]
Sent: 27 February 2001 01:36
To: Orion-Interest
Subject: Intro to Orion Tutorial


I don't know about everyone else, but I had a real difficult time getting 
started with Orion (coming from WebLogic).  It seemed like I was stumped at 
every turn.  I know there are a few tutorials, but I found them difficult to

follow.  Plus, I would rather use standard utilities like Sun's deploytool, 
rather than something like Ant.

I really like Orion and I would hate to see people turned off from it just 
because they can't get it to work right away.  For newbies, it's really more

of a problem with the complexity of J2EE than anything Orion-specific, or at

least it seems that way to me.  For us WebLogic users, it is because we are 
used to the very non-standard way WebLogic does things. ;)  That is why I 
decided to write up my own little Orion tutorial.  For now, it can be found 
at the following URL:

http://www.4degreez.com/intro.html

I wanted to write a tutorial that even a J2EE newbie could follow.  It shows

how to use Sun's deploytool to assemble the application, followed by the 
ultra-simple instructions for deploying it on Orion.

I just typed it up now, and tested the code.  But it's definately a little 
sloppy in some places, and I hope I got all the terminology right.  I was 
hoping some of you could take a look and comment, and then eventually maybe 
it could be posted on orionsupport.  I tried to copy their style a bit.  I 
intend to write a Part 2 to this tutorial, explaining helper classes and how

to connect to Oracle...which is another common question here, and one that 
I've asked about myself!

Well, what do you think?
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





login issue after restart of application

2001-02-27 Thread Lawrence Fry

Dear group,

I have noticed that if I restart an application to redeployI am no
longer able to login into my site. What causes this...and is there a work
around. I am using 1.2.9.

Regards,

Elephantwalker





RE: New site for everyone...

2001-02-27 Thread Randahl Fink Isaksen

At least now we all know a web site everyone at this list will never want to
use because the company behind it abuse our mailing list by sending
commercial spam.

I guess when you run out of marketing ideas you can always try annoying
people to see if you get some response. It is sad.


Randahl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jim
Sent: 27. februar 2001 06:28
To: Orion-Interest
Subject: New site for everyone...


Hi all
I found a new site for designing your jacket.Design your jacket online and
beat the cold...

http://www.webjacket.com

don't mistake me
bye then take care
Jimmy



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





No Subject

2001-02-27 Thread elephantwalker

Dear group,

I have noticed that if I restart an application to redeployI am no
longer able to login into my site. What causes this...and is there a work
around. I am using 1.2.9.

Regards,

Elephantwalker





Extending Orion with JCE 1.2.1

2001-02-27 Thread Smith Jason

Has anybody tried to use Java Cryptography Extension (JCE) 1.2.1 with Orion?
I am able to use the JCE libraries by placing all of the JCE jars in one
directory, setting the jars in my classpath and dynamically registering the
provider like this: java.security.Security.addProvider(new
com.sun.crypto.provider.SunJCE());.

Take a look at the class file further down - I can run that from the command
prompt with no probs. However, I would like to be able to submit the
arguments via Orion/jsp. The point of this exercise is to encrypt / decrypt
server side files based on a password. 

I have tried copying all of the JCE jar files to the orion/lib folder. It
seems like Orion is picking up the jar files ok. However, I can't get it to
work right. 

Also, I tried setting the class path using the -cp argument when starting
Orion, but the result was that Orion did not pick up the JCE jar files at
all. 

Sometimes I get this error. 

500 Internal Server Error
java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot
set up certs for trusted CAs
at javax.crypto.b.clinit([DashoPro-V1.2-120198])
at javax.crypto.SecretKeyFactory.getInstance([DashoPro-V1.2-120198])
at test.jce.Password.doEncrypt(Password.java:47)
at test.jce.Password.main(Password.java:29)
at /jsp/Encrypt.jsp._jspService(/jsp/Encrypt.jsp.java:39) (JSP page
line 11)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xj(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.sw(JAX)
at com.evermind.server.http.d3.su(JAX)
at com.evermind.server.http.ef.s1(JAX)
at com.evermind.server.http.ef.do(JAX)
at com.evermind.util.f.run(JAX)

Other times I get this error. 

500 Internal Server Error
java.lang.NoClassDefFoundError
at javax.crypto.SecretKeyFactory.getInstance([DashoPro-V1.2-120198])
at test.jce.Password.doEncrypt(Password.java:47)
at test.jce.Password.main(Password.java:29)
at /jsp/Encrypt.jsp._jspService(/jsp/Encrypt.jsp.java:39) (JSP page
line 11)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xj(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.sw(JAX)
at com.evermind.server.http.d3.su(JAX)
at com.evermind.server.http.ef.s1(JAX)
at com.evermind.server.http.ef.do(JAX)
at com.evermind.util.f.run(JAX)

I am pretty much clueless on this one...

Help!

Here is all the code. 

Thanks,

Jason
--JSP--
%@ page language="java" import="java.util.*,test.jce.*"%
%
try{
if(request.getParameter("txtCommand") != null)
{
test.jce.Password password = new test.jce.Password();
String[] args = {request.getParameter("txtCommand"),
request.getParameter("txtPassword"),
request.getParameter("txtFileIn"),
request.getParameter("txtFileOut")};
password.main(args);
}
}catch(Exception e)
{
System.out.println("Error: " + e);

}


%
html
headtitleJSP Page/title/head
body
center
form action="Encrypt.jsp" method="post"
table
trtd
Command:/tdtdinput type="text" name=txtCommand/td
trtd
Password:/tdtdinput type="text" name=txtPassword/td/tr
trtd
FileOut:/tdtdinput type="text" name=txtFileOut/td/tr
trtd
FileIn:/tdtdinput type="text" name=txtFileIn/td/tr
trtd
input type=submit value=submit/td/tr
/form
/center
/body
/html
END JSP

Password Class
/*
 * Password.java
 *
 * Created on February 26, 2001, 10:56 AM
 */

package test.jce;
import javax.crypto.spec.*;
import javax.crypto.*;
import java.io.*;
import javax.crypto.CipherOutputStream;

/**
 *
 * @author  jasm
 * @version
 */
public class Password extends Object {

/** Creates new Password */
public Password() {
}

/**
 * @param args the command line arguments
 */
public static void main (String args[]) throws Exception{
if(args[0].equalsIgnoreCase("encrypt"))
doEncrypt(args[1],args[2],args[3]);
if(args[0].equalsIgnoreCase("decrypt"))
doDecrypt(args[1],args[2],args[3]);
if(args.length == 0)
{System.out.println("usage: decrypt password inputFile
outputFile");
System.out.println("OR");
System.out.println("usage: encrypt password inputFile
outputFile");
}
}
public static void doEncrypt(String password,String inputFile, String
outputFile) throws Exception
{
java.security.Security.addProvider(new
com.sun.crypto.provider.SunJCE());
byte[] salt = {(byte)0xc9, (byte)0x36, (byte)0x78, (byte)0x99,
(byte)0x52,(byte)0x3e,(byte)0xea, (byte)0xf2};
PBEParameterSpec paramSpec = new PBEParameterSpec(salt,20);
 

RE: Intro to Orion Tutorial

2001-02-27 Thread Julian Richardson

 I don't know about everyone else, but I had a real difficult time
getting 
 started with Orion (coming from WebLogic).  It seemed like I was
stumped at 
 every turn.  I know there are a few tutorials, but I found them
difficult to 
 follow.  Plus, I would rather use standard utilities like Sun's
deploytool, 
 rather than something like Ant.

That depends on your background though. I'm new to the whole EJB thing, but
the only product I tried to use before Orion was a combination of  Visualage
/ Websphere, and I didn't get on with those at all - far too confusing. The
no-nonsense approach of Orion is pretty refreshing, and this mailing list
seems pretty darn useful too.

 I really like Orion and I would hate to see people turned off from
it just 
 because they can't get it to work right away.  

Did you get Weblogic to work the first time you tried it? I think a certain
amount of pain is to be expected at first :-)

 For newbies, it's really more 
 of a problem with the complexity of J2EE than anything
Orion-specific, or at 
 least it seems that way to me.  

Yes, absolutely. I don't think you can do much about that - at least I can
pretty much see what Orion's doing behind the scenes, unlike a lot of other
products where you just have to press a button or something and it does
everything for you - fine when it works, but a complete disaster when it
suddenly breaks for whatever reason.

 http://www.4degreez.com/intro.html

I'll take a look. Coming from what's pretty much an open-source background
it's nice to see people taking the time to do things like this - Orion feels
very much like an open-source product (wish it was ;) what with good (IMHO
opinion) information on the website, small efficient footprint, mailing
lists, support sites etc.

cheers

Jules







ormi and security

2001-02-27 Thread John Miller

Does anyone have any experience of using the Orion remote management console
to get access to Orion which is behind a firewall? 

I want to use the console to get remote access a collocated Linux box which
is behind a firewall. Anyone know the best way to configure the firewall for
this? I know one option is to open up a port on the firewall and restrict
access to it via the users IP, does anyone have any other ideas?

Any information, examples or tips would be appreciated.

Thanks,

Johnny


BUY YOUR 2001 ISA AT INTERACTIVE INVESTOR'S NEW ISA CENTRE - visit 
http://www.iii.co.uk/isa for a choice of 400+ funds, market leading
discounts 
and access to expert advice. 

FANCY A FREE ISA? Enter our competition now at http://www.iii.co.uk/isa 
Terms and Conditions apply and are available online. 
Issued by Interactive Investor Trading Limited, regulated by the SFA.




reference to a bean of another application

2001-02-27 Thread Jordi Daroca


Can a Bean of one application see a Bean of another application??

When I try to do it, i get the error:

javax.naming.NamingException: Error instantiating web-app JNDI-context:
No locat
ion specified and no suitable instance of the type 'ants.aws.Mediator'
found for
 the ejb-ref Mediator


In the ejb-jar.xml the reference to Mediator is explicited:

session
display-nameEventManager/display-name
ejb-nameEventManager/ejb-name
homeem.EventManagerHome/home
remoteem.EventManager/remote
ejb-classem.EventManagerEJB/ejb-class
session-typeStatefull/session-type
transaction-typeContainer/transaction-type
ejb-ref
ejb-ref-nameMediator/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homeants.aws.MediatorHome/home
remoteants.aws.Mediator/remote
ejb-linkMediator/ejb-link
/ejb-ref
/session

and also in the application-client.xml .

If the modules are packed in only one application there are no problem.




RE: jsp form-based authentication

2001-02-27 Thread Ernie Phelps



Roland,

Hope 
you are asking what I think you are. :) If this is about setting up your own 
user manager and calling it from role manager, keep reading. I am still trying 
to work out all the kinks on this for myself, but there is a message in the 
archivesby Chris Miller, "Re: custom user management" onOct 17, 2000 
that really got me started on this. He explains what to implement and override, 
with notes on methods that require special attention. There are a few things 
missing, be careful to implement shells of all the methods instead of just the 
ones he lists as needing special attention, but otherwise it is very concise. 
HTH,

- 
Ernie

-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Roland 
DongSent: Tuesday, February 27, 2001 3:07 AMTo: 
Orion-InterestSubject: RE: jsp form-based 
authentication

  Has 
  anyone responded to this message? I am also interested in 
  that...
  
  Roland
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Vaskin 
KissoyanSent: Friday, February 23, 2001 10:46 AMTo: 
Orion-InterestSubject: jsp form-based 
authentication
I need a good example of looking up 
username/password in a database, how do you override the security so that it 
checks a database instead of checking the internal web.xml file and 
principals.xml?




RE: How do I map a .doc extension to a .jsp execution

2001-02-27 Thread Christian Billen

I haven't tried this but try to modify the config/global-web-application.xml
and add a mapping for the jsp servlet:
servlet-mapping
servlet-namejsp/servlet-name
url-pattern/*.doc/url-pattern
/servlet-mapping


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christian
 Kvalheim
 Sent: Monday, February 26, 2001 3:31 PM
 To: Orion-Interest
 Subject: How do I map a .doc extension to a .jsp execution


 Hello

 I have the following problem. We have a certain number
 of Word documents in out database that we want to
 output to the browser. Everything is fine, we get the
 document as a blob from the database and into the jsp
 variables. However for internet explorer to recognise
 the file as a word document (and start the viewer) we
 need to append a .doc extension. Since the urlcode is
 ...something/mydocument.jsp it does not get
 recognised. How can I make orion treat .doc files as
 .jsp files for execution on the server ?? This would
 allow me to wrap the execution logic into the .doc
 file and let the browser see the document (changing
 acording to which document is fetched from the server)

 Yours

 Christian Amor Kvalheim
 Quality Manager +

 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/








Re: SV: JNDI Lookup Failure

2001-02-27 Thread colin harris
hi,
i have 
defined ejb-ref name in web.xml as -

ejb-ref
   ejb-ref-nameejb/ClientInterface/ejb-ref-name
   ejb-ref-typeSession/ejb-ref-type
   homeserene.ejb.ClientInterfaceHome/home
   remoteserene.ejb.ClientInterface/remote
/ejb-ref

The JNDI lookup should then be java:comp/env/ejb/ClientInterface.

However, i am having problems trying to map this ejb-ref to a bean in another application, on the same orion server,

i use the ejb-ref-mapping in the deployment file orion-web.xml

ejb-ref-mapping name="ejb/ClientInterface" location="ormi://localhost/serene/serene.ejb.ClientInterface" /

if anyone can explain to me how the location bit should work, it would be much appreciated,

regards

colin.



Magnus Rydin wrote:
[EMAIL PROTECTED]">
  You 
would probably want to use the defined ejb-ref name that you have setup in your 
web.xml.
  I 
would gess that that name would not end in *Home?
  WR
  -Ursprungligt meddelande-Frn: Phan Anh Tran 
  [mailto:[EMAIL PROTECTED]]Skickat: den 26 februari 2001 
  22:14Till: Orion-Interestmne: JNDI Lookup 
  FailureHow's the deployed EJB mapped to the JNDI 
  context? 1. EJB = 
  trantech.ejb.TestSession,TestSessionHome,TestSessionBean.2. Is the JNDI lookup string 
  "java:comp/env/ejb/trantech/ejb/TestSessionHome" ?I keep getting the following exception in my JSP 
  page:javax.naming.NameNotFoundException: 
  ejb/trantech/ejb/TestSessionHome notfound in 
  Test-Web at 
  com.evermind.util.t.lookup(JAX) 
  at 
  com.evermind.server.hm.f4(JAX) 
  at 
  com.evermind.server.hm.lookup(JAX) 
  at javax.naming.InitialContext.lookup(Unknown 
  Source) at 
  __jspPage1_testejb_jsp._jspService(__jspPage1_testejb_jsp.java:33) 
  at 
  com.orionserver.http.OrionHttpJspPage.service(JAX) 
  at 
  com.evermind.server.http.HttpApplication.xj(JAX) 
  at 
  com.evermind.server.http.JSPServlet.service(JAX) 
  at 
  com.evermind.server.http.d3.sw(JAX) 
  at 
  com.evermind.server.http.d3.su(JAX) 
  at 
  com.evermind.server.http.ef.s1(JAX) 
  at 
  com.evermind.server.http.ef.do(JAX) 
  at com.evermind.util.f.run(JAX)Any insights into the problem?Thanks,Anh




RE: Intro to Orion Tutorial

2001-02-27 Thread Kemp Randy-W18971

Comment:
   Orion is very much like an open source project, in that they have an
excelling mailing list, offering support.  Sure, some people may think like
this: Gee, I had to read the Sun specs to learn (which are really more
geared to providing a blueprint to building an EJB server, and not how to
use EJB), so why should I help any newcomers?  It reminds me of my father: I
had to walk five miles in the snow, so why do you need a car?  However, I
look at it this way: the more newcomers we can welcome to this J2EE world,
the more competition it will give Uncle Bill.  And the more Orion users it
brings to the fold! 
Randy  

-Original Message-
From: Julian Richardson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 4:15 AM
To: Orion-Interest
Subject: RE: Intro to Orion Tutorial


 I don't know about everyone else, but I had a real difficult time
getting 
 started with Orion (coming from WebLogic).  It seemed like I was
stumped at 
 every turn.  I know there are a few tutorials, but I found them
difficult to 
 follow.  Plus, I would rather use standard utilities like Sun's
deploytool, 
 rather than something like Ant.

That depends on your background though. I'm new to the whole EJB thing, but
the only product I tried to use before Orion was a combination of  Visualage
/ Websphere, and I didn't get on with those at all - far too confusing. The
no-nonsense approach of Orion is pretty refreshing, and this mailing list
seems pretty darn useful too.

 I really like Orion and I would hate to see people turned off from
it just 
 because they can't get it to work right away.  

Did you get Weblogic to work the first time you tried it? I think a certain
amount of pain is to be expected at first :-)

 For newbies, it's really more 
 of a problem with the complexity of J2EE than anything
Orion-specific, or at 
 least it seems that way to me.  

Yes, absolutely. I don't think you can do much about that - at least I can
pretty much see what Orion's doing behind the scenes, unlike a lot of other
products where you just have to press a button or something and it does
everything for you - fine when it works, but a complete disaster when it
suddenly breaks for whatever reason.

 http://www.4degreez.com/intro.html

I'll take a look. Coming from what's pretty much an open-source background
it's nice to see people taking the time to do things like this - Orion feels
very much like an open-source product (wish it was ;) what with good (IMHO
opinion) information on the website, small efficient footprint, mailing
lists, support sites etc.

cheers

Jules







RE: What documentation?

2001-02-27 Thread Kemp Randy-W18971

GUI tools?  Give the guys at Orion some time, and I am sure they will
develop some, or perfect the existing ones.  Same goes with the open source
projects.  They just need some time to mature.  

-Original Message-
From: Gary Shea [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 7:41 PM
To: Orion-Interest
Subject: Re: What documentation?


Today, Danut Prisacaru ([EMAIL PROTECTED]) wrote:
 Well, I still have the same problems and I am asking the same question:
why
 is not possible to use a GUI tool to specify all I want for deploying my
 application? Why do I need to go into the application-deployments folder
 and modify what Orion has alredy deployed. If you are stuck and still do
 not get go and play with Sun's RI or WebLogic and ypu will udnerstand what
 I mean.

The same thing was bothering me, because having to modify orion's
deployment descriptors was getting old.
It turns out that you can make the orion web, ejb, and application
deployment documents be part of your distribution.
I create simplified versions that have just the stuff I care about
in them, for instance:

orion-application
autocreate-tables="false"
treat-zero-as-null="false"

/orion-application

By putting these into the appropriate places in your .ear or
directory heirarchy, orion will find them and incorporate the
information you specify in them into the final deployment
descriptor that lives in the application-deployment directory.
It's pretty slick.

Hope that's useful.

Gary


 Speaking about documentation and RFM please go into
 "orion-application.xml.html" and read this:

 "The deployment info for a J2EE-application. Manually created or
 automatically produced when auto-deploying a J2EE-application (.ear). It
 extends and substitutes the assembly info found in the "

 Where is the rest of the sentence?

 Sayonara!
 Danut





Orion using Apache proxy module

2001-02-27 Thread John Miller

Has anyone used Apache to redirect port: 80 requests to a different port
number? If so, did you experience any problems with sessions or anything
else? If you did could you let me know please.

Thanks,

Johnny


BUY YOUR 2001 ISA AT INTERACTIVE INVESTOR'S NEW ISA CENTRE - visit 
http://www.iii.co.uk/isa for a choice of 400+ funds, market leading
discounts 
and access to expert advice. 

FANCY A FREE ISA? Enter our competition now at http://www.iii.co.uk/isa 
Terms and Conditions apply and are available online. 
Issued by Interactive Investor Trading Limited, regulated by the SFA.




RE: New site for everyone...

2001-02-27 Thread Kemp Randy-W18971

How about a picture of the Orion constellation, along with the logo
sung to the tune -- Sitting on the doc of the bay

Looking for the doc of the day
Watching my problems coming my way.
Looking for the doc of the day,
Wasting time.

I left my Weblogic server,
Headed for the Swedish bay,
With J2EE to live for,
I wonder what will come my way.

But the product is better,
And the price is really OK,
Now that I got it running,
It seems like Orion's here to stay.

So, I'm looking for the doc of the day,
...

  

-Original Message-
From: Phillip Ross [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 6:15 AM
To: Orion-Interest
Subject: Re: New site for everyone...


Yes!  Orion jackets!  That's what we need!  Jimmy you're a genious!

Nevermind thinkgeek.com... they'll never cater to java users because java is
pure evil to the slashdot community.  Anyone with any creative abilities care
to step up and design an orion jacket?  :)


--- Jim [EMAIL PROTECTED] wrote:
 Hi all
 I found a new site for designing your jacket.Design your jacket online and
 beat the cold...
 
 http://www.webjacket.com
 
 don't mistake me
 bye then take care
 Jimmy
 
 
 
 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com
 
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Orion taken over

2001-02-27 Thread John Miller

Have heard that Orion has been bought by someone. Is that true? Is so by
who?

Johnny


BUY YOUR 2001 ISA AT INTERACTIVE INVESTOR'S NEW ISA CENTRE - visit 
http://www.iii.co.uk/isa for a choice of 400+ funds, market leading
discounts 
and access to expert advice. 

FANCY A FREE ISA? Enter our competition now at http://www.iii.co.uk/isa 
Terms and Conditions apply and are available online. 
Issued by Interactive Investor Trading Limited, regulated by the SFA.




RE: Multiple CPUs

2001-02-27 Thread Lieber, Richard

We do much of our testing with two or four processor machines and Windows NT
4. The CPUs seem to all be busy. (although we also have a database and
database middleman server running on the same machine which could account
for that.) I do much of my development on a two processor Windows 2000
machine.

I've not compared identical setups, running the same benchmarks on single
and multiple processors. Probably should sometime...


dick

-Original Message-
From: Robert Hargreaves [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 11:47 AM
To: Orion-Interest
Subject: Multiple CPUs


Anydody running Orion on a machine with more than one CPU? We are purchasing
some new kit and just wondered if its beneficial to have multiple CPU's. 

If it is beneficial, then does the Orion handle the multiple thread/CPU
setup or is this upto the JVM (we'll be using the Windows VM).

TIA

Robert Hargreaves.




Re: relation between component

2001-02-27 Thread Peter Pontbriand

 Hi Peter!

 As I'm not sure if you are on the mailing list (orion) and it was a while
 ago I posted my question, I send this question privately. I hope that this
 will not disturb you.
 Anyway, I succeeded in making relation between jars, but not between ears.
 As I understood it, by your reply, you have succeeded with this. I would
be
 grateful if you could send me an example, the ejb-jar.xml, on this.

 Best regards

 /Theis Meggerle

Sorry, we haven't created any CMRs between components in different
applications. I seriously doubt whether this is possible. For one thing,
both components participating in the relationship would have to be deployed
into the same container for a relationship to be container-managed. It would
be impossible to guarantee this if they were in two different J2EE
applications.

The real question is: Why would you feel the need to have a CMR between two
components in different applications? I think your architecture could
benefit from a re-assessment in this case.

P. Pontbriand
Canlink Interactive Technologies Inc.





RE: Extending Orion with JCE 1.2.1

2001-02-27 Thread Eyal Litman (Kamoon IL)
Title: RE: Extending Orion with JCE 1.2.1





Hi,
I am using
JCE 1.2.1 with orion for the same purpose.
It seems that if you start orion with java -jar orion.jar,
there is a problem with setting the classpath for other jars.
I start orion like this : java -classpath %SERVER_PATH% com.evermind.server.ApplicationServer -console
My %SERVER_PATH% has JCE in it with other jars i use.
Bye,
Eyal Litman
Kamoon software, israel 



-Original Message-
From: Smith Jason [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 11:47 AM
To: Orion-Interest
Subject: Extending Orion with JCE 1.2.1



Has anybody tried to use Java Cryptography Extension (JCE) 1.2.1 with Orion?
I am able to use the JCE libraries by placing all of the JCE jars in one
directory, setting the jars in my classpath and dynamically registering the
provider like this: java.security.Security.addProvider(new
com.sun.crypto.provider.SunJCE());.


Take a look at the class file further down - I can run that from the command
prompt with no probs. However, I would like to be able to submit the
arguments via Orion/jsp. The point of this exercise is to encrypt / decrypt
server side files based on a password. 


I have tried copying all of the JCE jar files to the orion/lib folder. It
seems like Orion is picking up the jar files ok. However, I can't get it to
work right. 


Also, I tried setting the class path using the -cp argument when starting
Orion, but the result was that Orion did not pick up the JCE jar files at
all. 


Sometimes I get this error. 


500 Internal Server Error
java.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannot
set up certs for trusted CAs
 at javax.crypto.b.clinit([DashoPro-V1.2-120198])
 at javax.crypto.SecretKeyFactory.getInstance([DashoPro-V1.2-120198])
 at test.jce.Password.doEncrypt(Password.java:47)
 at test.jce.Password.main(Password.java:29)
 at /jsp/Encrypt.jsp._jspService(/jsp/Encrypt.jsp.java:39) (JSP page
line 11)
 at com.orionserver.http.OrionHttpJspPage.service(JAX)
 at com.evermind.server.http.HttpApplication.xj(JAX)
 at com.evermind.server.http.JSPServlet.service(JAX)
 at com.evermind.server.http.d3.sw(JAX)
 at com.evermind.server.http.d3.su(JAX)
 at com.evermind.server.http.ef.s1(JAX)
 at com.evermind.server.http.ef.do(JAX)
 at com.evermind.util.f.run(JAX)


Other times I get this error. 


500 Internal Server Error
java.lang.NoClassDefFoundError
 at javax.crypto.SecretKeyFactory.getInstance([DashoPro-V1.2-120198])
 at test.jce.Password.doEncrypt(Password.java:47)
 at test.jce.Password.main(Password.java:29)
 at /jsp/Encrypt.jsp._jspService(/jsp/Encrypt.jsp.java:39) (JSP page
line 11)
 at com.orionserver.http.OrionHttpJspPage.service(JAX)
 at com.evermind.server.http.HttpApplication.xj(JAX)
 at com.evermind.server.http.JSPServlet.service(JAX)
 at com.evermind.server.http.d3.sw(JAX)
 at com.evermind.server.http.d3.su(JAX)
 at com.evermind.server.http.ef.s1(JAX)
 at com.evermind.server.http.ef.do(JAX)
 at com.evermind.util.f.run(JAX)


I am pretty much clueless on this one...


Help!


Here is all the code. 


Thanks,


Jason
--JSP--
%@ page language=java import=java.util.*,test.jce.*%
%
 try{
 if(request.getParameter(txtCommand) != null)
 {
 test.jce.Password password = new test.jce.Password();
 String[] args = {request.getParameter(txtCommand),
 request.getParameter(txtPassword),
request.getParameter(txtFileIn),
 request.getParameter(txtFileOut)};
 password.main(args);
 }
 }catch(Exception e)
 {
 System.out.println(Error:  + e);


 }



%
html
headtitleJSP Page/title/head
body
center
form action=Encrypt.jsp method=post
table
trtd
Command:/tdtdinput type=text name=txtCommand/td
trtd
Password:/tdtdinput type=text name=txtPassword/td/tr
trtd
FileOut:/tdtdinput type=text name=txtFileOut/td/tr
trtd
FileIn:/tdtdinput type=text name=txtFileIn/td/tr
trtd
input type=submit value=submit/td/tr
/form
/center
/body
/html
END JSP


Password Class
/*
* Password.java
*
* Created on February 26, 2001, 10:56 AM
*/


package test.jce;
import javax.crypto.spec.*;
import javax.crypto.*;
import java.io.*;
import javax.crypto.CipherOutputStream;


/**
*
* @author jasm
* @version
*/
public class Password extends Object {


 /** Creates new Password */
 public Password() {
 }


 /**
 * @param args the command line arguments
 */
 public static void main (String args[]) throws Exception{
 if(args[0].equalsIgnoreCase(encrypt))
 doEncrypt(args[1],args[2],args[3]);
 if(args[0].equalsIgnoreCase(decrypt)) 
 doDecrypt(args[1],args[2],args[3]);
 if(args.length == 0)
 { System.out.println(usage: decrypt password inputFile
outputFile);
 System.out.println(OR);
 System.out.println(usage: encrypt password inputFile
outputFile);
 }
 }
 public static void doEncrypt(String password,String inputFile, String
outputFile) throws Exception
 {
 java.security.Security.addProvider(new
com.sun.crypto.provider.SunJCE());
 byte[] salt = 

RE: reference to a bean of another application

2001-02-27 Thread Paul Knepper

I'm having a similar problem but I'm trying to access EJBs on one server
from a servlet on another server.  I found this in the mail archives but
still haven't got it working.

http://www.mail-archive.com/orion-interest@orionserver.com/msg02763.html

-Paul

-Original Message-
From: Jordi Daroca [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 3:27 AM
To: Orion-Interest
Subject: reference to a bean of another application



Can a Bean of one application see a Bean of another application??

When I try to do it, i get the error:

javax.naming.NamingException: Error instantiating web-app JNDI-context:
No locat
ion specified and no suitable instance of the type 'ants.aws.Mediator'
found for
 the ejb-ref Mediator


In the ejb-jar.xml the reference to Mediator is explicited:

session
display-nameEventManager/display-name
ejb-nameEventManager/ejb-name
homeem.EventManagerHome/home
remoteem.EventManager/remote
ejb-classem.EventManagerEJB/ejb-class
session-typeStatefull/session-type
transaction-typeContainer/transaction-type
ejb-ref
ejb-ref-nameMediator/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homeants.aws.MediatorHome/home
remoteants.aws.Mediator/remote
ejb-linkMediator/ejb-link
/ejb-ref
/session

and also in the application-client.xml .

If the modules are packed in only one application there are no
problem.




Re: What documentation?

2001-02-27 Thread Danut Prisacaru

Thanks Gary!
It does help.

Danut

At 06:41 PM 2/26/2001 -0700, Gary Shea wrote:
The same thing was bothering me, because having to modify orion's
deployment descriptors was getting old.
It turns out that you can make the orion web, ejb, and application
deployment documents be part of your distribution.
I create simplified versions that have just the stuff I care about
in them, for instance:

orion-application
 autocreate-tables="false"
 treat-zero-as-null="false"
 
/orion-application

By putting these into the appropriate places in your .ear or
directory heirarchy, orion will find them and incorporate the
information you specify in them into the final deployment
descriptor that lives in the application-deployment directory.
It's pretty slick.

Hope that's useful.

 Gary


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





Please change my email

2001-02-27 Thread SureTicket.com



Hello 
Mailing List Administrator,

I dont 
know where to change my mailing list emails.
Could 
u do it for me, or tell me how i can do it myself.

Current email: [EMAIL PROTECTED]
Change 
to: [EMAIL PROTECTED]

Thanks

-Anton 
aka sigg-


Re: Orion taken over

2001-02-27 Thread Ray Harrison

Where did you hear it?



--- John Miller [EMAIL PROTECTED] wrote:
 Have heard that Orion has been bought by someone. Is that true? Is so by
 who?
 
 Johnny
 
 
 BUY YOUR 2001 ISA AT INTERACTIVE INVESTOR'S NEW ISA CENTRE - visit 
 http://www.iii.co.uk/isa for a choice of 400+ funds, market leading
 discounts 
 and access to expert advice. 
 
 FANCY A FREE ISA? Enter our competition now at http://www.iii.co.uk/isa 
 Terms and Conditions apply and are available online. 
 Issued by Interactive Investor Trading Limited, regulated by the SFA.
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Re: simple JSP bug with switch

2001-02-27 Thread Nick Newman

Hi Adam,

I don't think this is a bug, although I agree the messages are 
confusing.  Set the development="true" flag in the orion-web.xml and you 
get the reason explained more fully.  Basically what you have written in 
the broken version produces code like this:

switch(1){
 // write a new line (but can't be reached!)
case 1:
 // write newline, "One", newline
break;
 // write a new line (but can't be reached!)
default:
 // write newline, "Default", newline
break;
 // write a new line (but can't be reached!)
}

and the compiler complains (correctly) that some of the copde can't be reached.

Nick Newman




At 08:11 PM 2/26/01 -0500, you wrote:

Forgive me if this is a known bug, but I didn't see it in the FAQ or 
anywhere on orionsupport.com.

I am using Orion 1.4.7 and I have tried having Orion use Jikes 1.12 as 
well as all three of the 1.30 JDKs
{Sun,IBM,Blackdown}. This is all running on RedHat 7.0 Linux 2.4.2.

fixed version (but I shouldn't have to do this...):

% switch(1) { case 1: %
One
% break; default: %
Default
% break;  } %

broken version:

% switch(1) { %
% case 1: %
One
% break; %
% default: %
Default
% break; %
% } %

Gives the following error (this is the Blackdown error, but they're all 
similar)

500 Internal Server Error
Error parsing JSP page /jsp/test.jsp
Syntax error in source
/jsp/test.jsp.java:29: 'case', 'default' or '}' expected (JSP page line 3)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 0, 1);
 ^
/jsp/test.jsp.java:29: 'case', 'default' or '}' expected (JSP page line 3)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 0, 1);
 
  ^
/jsp/test.jsp.java:30: 'case', 'default' or '}' expected (JSP page line 3)
 else 
 com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
 __staticContent, 0, 1, null);
 
   ^
/jsp/test.jsp.java:35: 'case', 'default' or '}' expected (JSP page line 4)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 1, 5);
 
  ^
/jsp/test.jsp.java:36: 'case', 'default' or '}' expected (JSP page line 4)
 else 
 com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
 __staticContent, 1, 5, null);
 
   ^
/jsp/test.jsp.java:38: 'case', 'default' or '}' expected (JSP page line 4)
  break;
   ^
/jsp/test.jsp.java:41: 'case', 'default' or '}' expected (JSP page line 6)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 6, 1);
 
  ^
/jsp/test.jsp.java:42: 'case', 'default' or '}' expected (JSP page line 6)
 else 
 com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
 __staticContent, 6, 1, null);
 
   ^
/jsp/test.jsp.java:47: 'case', 'default' or '}' expected (JSP page line 7)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 7, 9);
 
  ^
/jsp/test.jsp.java:48: 'case', 'default' or '}' expected (JSP page line 7)
 else 
 com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
 __staticContent, 7, 9, null);
 
   ^
/jsp/test.jsp.java:50: 'case', 'default' or '}' expected (JSP page line 7)
  break;
   ^
/jsp/test.jsp.java:53: 'case', 'default' or '}' expected (JSP page line 9)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 16, 1);
 
   ^
/jsp/test.jsp.java:54: 'case', 'default' or '}' expected (JSP page line 9)
 else 
 com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
 __staticContent, 16, 1, null);
 
^
13 errors





RE:

2001-02-27 Thread SureTicket.com

You are behind times man, there are many fixes in
new versions.

Get lastest stable release from orionserver.com,
i think its 1.4.5



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of elephantwalker
Sent: Tuesday, February 27, 2001 4:23 AM
To: Orion-Interest
Subject: 


Dear group,

I have noticed that if I restart an application to redeployI am no
longer able to login into my site. What causes this...and is there a work
around. I am using 1.2.9.

Regards,

Elephantwalker







Form based authentication problem

2001-02-27 Thread Jonathan James



I'm trying to get the Java Petstore 1.1.1 (the new 
one) working with Orion. I've read some previous posts and the docs and 
everything is working except that on my login.jsp I have to use form 
action="j_security_check" method=GET instead of  form 
action="j_security_check" method=POST as it is supposed to be. This ends up 
putting the password in the URL. Why doesn't POST work with with 
j_security_check?

Thanks

Jonathan


RE: jsp form-based authentication

2001-02-27 Thread Danut Prisacaru

Go inside "orion.jar" and extract "EJBUser*.class" files then use reverse 
engeneering to get the java code and you will see exactly what you need to 
implement.

Then go into "orion-application.xml" file and add
 user-manager class="com.acme.security.CustomUserManager"
 property name="blah" value="blah" /
 /user-manager

You also have to pack into a jar all the files (the equivalent of EJBUser* 
files) needed to the security and copy it into the lib folder.

Then go into web.xml and set the proper role names, login-config, the 
constrains, etc.

I hope it helps.
Danut

At 08:02 AM 2/27/2001 -0500, Ernie Phelps wrote:
Roland,

Hope you are asking what I think you are. :) If this is about setting up 
your own user manager and calling it from role manager, keep reading. I am 
still trying to work out all the kinks on this for myself, but there is a 
message in the archives by Chris Miller, "Re: custom user management" on 
Oct 17, 2000 that really got me started on this. He explains what to 
implement and override, with notes on methods that require special 
attention. There are a few things missing, be careful to implement shells 
of all the methods instead of just the ones he lists as needing special 
attention, but otherwise it is very concise. HTH,

- Ernie

  -Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Roland Dong
Sent: Tuesday, February 27, 2001 3:07 AM
To: Orion-Interest
Subject: RE: jsp form-based authentication
Has anyone responded to this message? I am also interested in that...

Roland
-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Vaskin Kissoyan
Sent: Friday, February 23, 2001 10:46 AM
To: Orion-Interest
Subject: jsp form-based authentication

I need a good example of looking up username/password in a database, how 
do you override the security so that it checks a database instead of 
checking the internal web.xml file and principals.xml?




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





RE: Orion taken over

2001-02-27 Thread John Miller

off some bloke

-Original Message-
From: Ray Harrison [mailto:[EMAIL PROTECTED]]
Sent: 27 February 2001 16:36
To: Orion-Interest
Subject: Re: Orion taken over


Where did you hear it?



--- John Miller [EMAIL PROTECTED] wrote:
 Have heard that Orion has been bought by someone. Is that true? Is so by
 who?
 
 Johnny
 
 
 BUY YOUR 2001 ISA AT INTERACTIVE INVESTOR'S NEW ISA CENTRE - visit 
 http://www.iii.co.uk/isa for a choice of 400+ funds, market leading
 discounts 
 and access to expert advice. 
 
 FANCY A FREE ISA? Enter our competition now at http://www.iii.co.uk/isa 
 Terms and Conditions apply and are available online. 
 Issued by Interactive Investor Trading Limited, regulated by the SFA.
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/


BUY YOUR 2001 ISA AT INTERACTIVE INVESTOR'S NEW ISA CENTRE - visit 
http://www.iii.co.uk/isa for a choice of 400+ funds, market leading
discounts 
and access to expert advice. 

FANCY A FREE ISA? Enter our competition now at http://www.iii.co.uk/isa 
Terms and Conditions apply and are available online. 
Issued by Interactive Investor Trading Limited, regulated by the SFA.




RE: jsp form-based authentication

2001-02-27 Thread Jeff Schnitzer

You should look in the Orion javadocs for DataSourceUserManager.  Here's
an example of what to put in the orion-application.xml:
 
 user-manager class="com.evermind.sql.DataSourceUserManager"
  property name="table" value="Member" /
  property name="passwordField" value="password" /
  property name="defaultGroups" value="authenticated,god" /
  property name="usernameField" value="name" /
  property name="dataSource" value="jdbc/SimilarityCoreDS" /
  property name="staleness" value="0" /
 /user-manager

Note that you will also need to define your groups in principals.xml
(either the deployment version or the global version).
 
Good luck,
Jeff

 -Original Message-
From: Roland Dong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 12:07 AM
To: Orion-Interest
Subject: RE: jsp form-based authentication



Has anyone responded to this message? I am also interested in that...
 
Roland

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Vaskin
Kissoyan
Sent: Friday, February 23, 2001 10:46 AM
To: Orion-Interest
Subject: jsp form-based authentication


I need a good example of looking up username/password in a database, how
do you override the security so that it checks a database instead of
checking the internal web.xml file and principals.xml?
 
 





RE: How do I map a .doc extension to a .jsp execution

2001-02-27 Thread Jeff Schnitzer

While that would work, you would have to create a separate jsp for each
document... really you should probably create your own servlet, map it
to *.doc in the same way, and use request.getPathInfo() and
request.getPathTranslated() (or just forward to the request to a URL in
a protected directory).

Or better yet, look into filters.  I haven't looked at the Servlet 2.3
specification for filters yet, but I suspect this is exactly the sort of
problem filters are designed to solve.

Jeff

-Original Message-
From: Christian Billen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 5:03 AM
To: Orion-Interest
Subject: RE: How do I map a .doc extension to a .jsp execution


I haven't tried this but try to modify the 
config/global-web-application.xml
and add a mapping for the jsp servlet:
servlet-mapping
   servlet-namejsp/servlet-name
   url-pattern/*.doc/url-pattern
   /servlet-mapping


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christian
 Kvalheim
 Sent: Monday, February 26, 2001 3:31 PM
 To: Orion-Interest
 Subject: How do I map a .doc extension to a .jsp execution


 Hello

 I have the following problem. We have a certain number
 of Word documents in out database that we want to
 output to the browser. Everything is fine, we get the
 document as a blob from the database and into the jsp
 variables. However for internet explorer to recognise
 the file as a word document (and start the viewer) we
 need to append a .doc extension. Since the urlcode is
 ...something/mydocument.jsp it does not get
 recognised. How can I make orion treat .doc files as
 .jsp files for execution on the server ?? This would
 allow me to wrap the execution logic into the .doc
 file and let the browser see the document (changing
 acording to which document is fetched from the server)

 Yours

 Christian Amor Kvalheim
 Quality Manager +

 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/










Re: Intro to Orion Tutorial

2001-02-27 Thread varada rajan

You're doing really a great job. I hope more to come
on this site,(databases etc) on this site soon.


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Re[2]: What documentation?

2001-02-27 Thread Rafael Alvarez

Hello Danut.
Monday, February 26, 2001, 8:14:16 PM, you wrote:

NN At 05:37 PM 2/26/01 -0600, you wrote:
A few weeks ago after I asked some questions and posted some opinion I was 
sent by some guys to RFM.
Very inpolite

Well, I still have the same problems and I am asking the same question: 
why is not possible to use a GUI tool to specify all I want for deploying 
my application?
You need to code it yourself, because there are lot of orion-specific
things, and they haven't code a good deployment tool for that.

Speaking about documentation and RFM please go into 
"The deployment info for a J2EE-application. Manually created or
automatically produced when auto-deploying a J2EE-application (.ear). It 
extends and substitutes the assembly info found in the "
application.xml file

If you want that orion uses your own orion-application.xml (and fill
the blanks you left) put it under $(APP-HOME)/orion directory. You can
do that for the orion-ejb-jar.xml (  $(APP-HOME)/$(EJB-MODULE)/orion
), and I think you can do it for orion-web.xml but I'm not sure where
it goes. At some place in the archives of this list is a message with
the whole dir structure.


-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






Re: problem in accessing ejb from a bean in web-inf/classes directory .

2001-02-27 Thread Rafael Alvarez

Hello Prabahkar,

Monday, February 26, 2001, 7:38:40 PM, you wrote:

Try using
Object hdrObj = cntx.lookup("B2BOrderHeader");

I think I remember vagely a thread in this list about java:comp/,
but that was 3000 messages ago :). Anyway, this works fine for me.

-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






RE: Orion taken over

2001-02-27 Thread Ray Harrison

I know that they have been forming a new company called IronFlare or something to that 
effect.
Currently www.ironflare.com=www.orionserver.com
I have not heard anything about them being taken over..

--- John Miller [EMAIL PROTECTED] wrote:
 off some bloke
 
 -Original Message-
 From: Ray Harrison [mailto:[EMAIL PROTECTED]]
 Sent: 27 February 2001 16:36
 To: Orion-Interest
 Subject: Re: Orion taken over
 
 
 Where did you hear it?
 
 
 
 --- John Miller [EMAIL PROTECTED] wrote:
  Have heard that Orion has been bought by someone. Is that true? Is so by
  who?
  
  Johnny
  
  
  BUY YOUR 2001 ISA AT INTERACTIVE INVESTOR'S NEW ISA CENTRE - visit 
  http://www.iii.co.uk/isa for a choice of 400+ funds, market leading
  discounts 
  and access to expert advice. 
  
  FANCY A FREE ISA? Enter our competition now at http://www.iii.co.uk/isa 
  Terms and Conditions apply and are available online. 
  Issued by Interactive Investor Trading Limited, regulated by the SFA.
  
 
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail. 
 http://personal.mail.yahoo.com/
 
 
 BUY YOUR 2001 ISA AT INTERACTIVE INVESTOR'S NEW ISA CENTRE - visit 
 http://www.iii.co.uk/isa for a choice of 400+ funds, market leading
 discounts 
 and access to expert advice. 
 
 FANCY A FREE ISA? Enter our competition now at http://www.iii.co.uk/isa 
 Terms and Conditions apply and are available online. 
 Issued by Interactive Investor Trading Limited, regulated by the SFA.
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




I switch from X to Orion because:

2001-02-27 Thread Vaskin Kissoyan



Please fill in the blank as you see 
fit.




RE: How do I map a .doc extension to a .jsp execution

2001-02-27 Thread Fyffe Carl

Guys,

I could be wrong here, but you may want to try just setting the mime type
that is sent to the browser.  I don't believe that the .doc extension is
required to get IE to display the file as a word document.  Just send the
mime type back as: application/msword and it will see the file as a word
document.  This will also cause netscape to try to save the file instead of
read it.  Hope this helps.

Carl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer
Sent: Tuesday, February 27, 2001 12:54 PM
To: Orion-Interest
Subject: RE: How do I map a .doc extension to a .jsp execution


While that would work, you would have to create a separate jsp for each
document... really you should probably create your own servlet, map it
to *.doc in the same way, and use request.getPathInfo() and
request.getPathTranslated() (or just forward to the request to a URL in
a protected directory).

Or better yet, look into filters.  I haven't looked at the Servlet 2.3
specification for filters yet, but I suspect this is exactly the sort of
problem filters are designed to solve.

Jeff

-Original Message-
From: Christian Billen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 5:03 AM
To: Orion-Interest
Subject: RE: How do I map a .doc extension to a .jsp execution


I haven't tried this but try to modify the
config/global-web-application.xml
and add a mapping for the jsp servlet:
servlet-mapping
   servlet-namejsp/servlet-name
   url-pattern/*.doc/url-pattern
   /servlet-mapping


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Christian
 Kvalheim
 Sent: Monday, February 26, 2001 3:31 PM
 To: Orion-Interest
 Subject: How do I map a .doc extension to a .jsp execution


 Hello

 I have the following problem. We have a certain number
 of Word documents in out database that we want to
 output to the browser. Everything is fine, we get the
 document as a blob from the database and into the jsp
 variables. However for internet explorer to recognise
 the file as a word document (and start the viewer) we
 need to append a .doc extension. Since the urlcode is
 ...something/mydocument.jsp it does not get
 recognised. How can I make orion treat .doc files as
 .jsp files for execution on the server ?? This would
 allow me to wrap the execution logic into the .doc
 file and let the browser see the document (changing
 acording to which document is fetched from the server)

 Yours

 Christian Amor Kvalheim
 Quality Manager +

 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/












ONCE AGAIN !!!! PK.class CMP beans in ORION

2001-02-27 Thread faisal

Hi All
I already asked  this question long time ago.Including the pk class in Orion
ejb.jar seems to be beyond my intelligence.I ve been trying to apply Roman
e-commerce application from his book "Mastering Java Enterprise beans"
.May be there is another way of making the primary key in CMP bean available
to the rest of bean classes ...Any suggestion please..
Again the problem is : when I include the pk.class among the cmp bean CMP
FIELDS -the deployment descriptor can 't recognise the PK class  of the CMP
bean







RE: I switch from X to Orion because:

2001-02-27 Thread Russ White



X is 
to slow to implement new J2EE specs while Orion is moving at a nice pace. And 
once you understand the spec, and take a little familiarization time Orion 
simply works like a dream. Granted documentation is lacking, but the product is 
solid and feature rich.

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Vaskin 
  KissoyanSent: Tuesday, February 27, 2001 2:05 PMTo: 
  Orion-InterestSubject: I switch from X to Orion because: 
  
  Please fill in the blank as you see 
  fit.
  
  


Re: New site for everyone...

2001-02-27 Thread Christian Sell

wonderful. The orion anthem is here

- Original Message -
From: "Kemp Randy-W18971" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, February 27, 2001 3:35 PM
Subject: RE: New site for everyone...


 How about a picture of the Orion constellation, along with the logo
 sung to the tune -- Sitting on the doc of the bay

 Looking for the doc of the day
 Watching my problems coming my way.
 Looking for the doc of the day,
 Wasting time.

 I left my Weblogic server,
 Headed for the Swedish bay,
 With J2EE to live for,
 I wonder what will come my way.

 But the product is better,
 And the price is really OK,
 Now that I got it running,
 It seems like Orion's here to stay.

 So, I'm looking for the doc of the day,
 ...



 -Original Message-
 From: Phillip Ross [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 27, 2001 6:15 AM
 To: Orion-Interest
 Subject: Re: New site for everyone...


 Yes!  Orion jackets!  That's what we need!  Jimmy you're a genious!

 Nevermind thinkgeek.com... they'll never cater to java users because java
is
 pure evil to the slashdot community.  Anyone with any creative abilities
care
 to step up and design an orion jacket?  :)


 --- Jim [EMAIL PROTECTED] wrote:
  Hi all
  I found a new site for designing your jacket.Design your jacket online
and
  beat the cold...
 
  http://www.webjacket.com
 
  don't mistake me
  bye then take care
  Jimmy
 
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 


 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/






RE: problem in accessing ejb from a bean in web-inf/classesdirec tory .

2001-02-27 Thread Prabahkar Subramaniam

I tried the following 2 ways and get the same error:

Object hdrObj = cntx.lookup("java:comp/env/B2BOrderHeader");
headerHome = (B2BOrderHeaderHome)
 and 
headerHome = (B2BOrderHeaderHome)cntx.lookup("B2BOrderHeader");

error:

javax.naming.NameNotFoundException: B2BOrderHeader not found
at com.evermind.server.rmi.RMIContext.lookup(JAX)
at com.evermind.server.hl.f3(JAX)
at com.evermind.server.hl.lookup(JAX)
at javax.naming.InitialContext.lookup(Unknown Source)
at replacement.OrderBeanWrapper.loadOrder(OrderBeanWrapper.java:142)
at
__jspPage1_replacement_loadorder_jsp._jspService(__jspPage1_replacement_load
order_jsp.java:44)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xa(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.so(JAX)
at com.evermind.server.http.d3.sm(JAX)
at com.evermind.server.http.ef.su(JAX)
at com.evermind.server.http.ef.dn(JAX)
at com.evermind.util.f.run(JAX)

The line 142 is:
 headerHome = (B2BOrderHeaderHome) cntx.lookup("B2BOrderHeader");

Thanks in advance for your help
Prabahkar

-Original Message-
From: Rafael Alvarez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 10:59 AM
To: Orion-Interest
Subject: Re: problem in accessing ejb from a bean in web-inf/classes
directory .


Hello Prabahkar,

Monday, February 26, 2001, 7:38:40 PM, you wrote:

Try using
Object hdrObj = cntx.lookup("B2BOrderHeader");

I think I remember vagely a thread in this list about java:comp/,
but that was 3000 messages ago :). Anyway, this works fine for me.

-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]








RE: Extending Orion with JCE 1.2.1

2001-02-27 Thread jbirchfield
We use OpenJCE and just add the appropriate zip/jar files to the bootclasspath(i.e. java -Xbootclasspath/p:\lib\jce.zip -jar orion.jar)James BirchfieldIronmaxa better way to buy, sell and rent construction equipment5 Corporate Center9960 Corporate Campus Drive, Suite 2000Louisville, KY 40223Dean Parker [EMAIL PROTECTED]Sent by: [EMAIL PROTECTED]02/27/2001 03:30 PMPlease respond to Orion-Interest To: Orion-Interest [EMAIL PROTECTED] cc:  bcc:  Subject: RE: Extending Orion with JCE 1.2.1 I don't use Orion on the job but I use Weblogic 6.0. I do, in fact, use JCEand in order to avoid these errors you must place the 4 jars in the../jre/lib/ext/ directory of the virtual machine you used to run the Orionserver.For example if you ese c:\jdk1.3\bin\java.exe to start Orion, then place the4 jars in c:\jdk1.3\jre\lib\ext directory.Good luck!-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]]On Behalf Of Smith JasonSent: Tuesday, February 27, 2001 4:47 AMTo: Orion-InterestSubject: Extending Orion with JCE 1.2.1Has anybody tried to use Java Cryptography Extension (JCE) 1.2.1 with Orion?I am able to use the JCE libraries by placing all of the JCE jars in onedirectory, setting the jars in my classpath and dynamically registering theprovider like this: java.security.Security.addProvider(newcom.sun.crypto.provider.SunJCE());.Take a look at the class file further down - I can run that from the commandprompt with no probs. However, I would like to be able to submit thearguments via Orion/jsp. The point of this exercise is to encrypt / decryptserver side files based on a password.I have tried copying all of the JCE jar files to the orion/lib folder. Itseems like Orion is picking up the jar files ok. However, I can't get it towork right.Also, I tried setting the class path using the -cp argument when startingOrion, but the result was that Orion did not pick up the JCE jar files atall.Sometimes I get this error.500 Internal Server Errorjava.lang.ExceptionInInitializerError: java.lang.SecurityException: Cannotset up certs for trusted CAsat javax.crypto.b.clinit([DashoPro-V1.2-120198])at javax.crypto.SecretKeyFactory.getInstance([DashoPro-V1.2-120198])at test.jce.Password.doEncrypt(Password.java:47)at test.jce.Password.main(Password.java:29)at /jsp/Encrypt.jsp._jspService(/jsp/Encrypt.jsp.java:39) (JSP pageline 11)at com.orionserver.http.OrionHttpJspPage.service(JAX)at com.evermind.server.http.HttpApplication.xj(JAX)at com.evermind.server.http.JSPServlet.service(JAX)at com.evermind.server.http.d3.sw(JAX)at com.evermind.server.http.d3.su(JAX)at com.evermind.server.http.ef.s1(JAX)at com.evermind.server.http.ef.do(JAX)at com.evermind.util.f.run(JAX)Other times I get this error.500 Internal Server Errorjava.lang.NoClassDefFoundErrorat javax.crypto.SecretKeyFactory.getInstance([DashoPro-V1.2-120198])at test.jce.Password.doEncrypt(Password.java:47)at test.jce.Password.main(Password.java:29)at /jsp/Encrypt.jsp._jspService(/jsp/Encrypt.jsp.java:39) (JSP pageline 11)at com.orionserver.http.OrionHttpJspPage.service(JAX)at com.evermind.server.http.HttpApplication.xj(JAX)at com.evermind.server.http.JSPServlet.service(JAX)at com.evermind.server.http.d3.sw(JAX)at com.evermind.server.http.d3.su(JAX)at com.evermind.server.http.ef.s1(JAX)at com.evermind.server.http.ef.do(JAX)at com.evermind.util.f.run(JAX)I am pretty much clueless on this one...Help!Here is all the code.Thanks,Jason--JSP--%@ page language=java import=java.util.*,test.jce.*%%  try{if(request.getParameter(txtCommand) != null){  test.jce.Password password = new test.jce.Password();  String[] args = {request.getParameter(txtCommand),  request.getParameter(txtPassword),request.getParameter(txtFileIn),  request.getParameter(txtFileOut)};  password.main(args);}  }catch(Exception e)  {System.out.println(Error:  + e);  }%htmlheadtitleJSP Page/title/headbodycenterform action=Encrypt.jsp method=posttabletrtdCommand:/tdtdinput type=text name=txtCommand/tdtrtdPassword:/tdtdinput type=text name=txtPassword/td/trtrtdFileOut:/tdtdinput type=text name=txtFileOut/td/trtrtdFileIn:/tdtdinput type=text name=txtFileIn/td/trtrtdinput type=submit value=submit/td/tr/form/center/body/htmlEND JSPPassword Class/* * Password.java * * Created on February 26, 2001, 10:56 AM */package test.jce;import javax.crypto.spec.*;import javax.crypto.*;import java.io.*;import javax.crypto.CipherOutputStream;/** * * @author jasm * @version */public class Password extends Object {  /** Creates new Password */  public Password() {  }  /**   * @param args the command line arguments   */  public static void main (String args[]) throws Exception{if(args[0].equalsIgnoreCase(encrypt))  doEncrypt(args[1],args[2],args[3]);if(args[0].equalsIgnoreCase(decrypt))  doDecrypt(args[1],args[2],args[3]);if(args.length == 0){  System.out.println(usage: decrypt 

Good tutorial

2001-02-27 Thread Kemp Randy-W18971

This is a nice tutorial at www.4degreez.com and now that I am used to ant, the sun 
tools are much easier.  And I, for one, and all for making my life easier.




RE: ONCE AGAIN !!!! PK.class CMP beans in ORION

2001-02-27 Thread Jeff Schnitzer

It's difficult to tell without seeing your deployment descriptor, but it
sounds like you're trying to use the PK class as a cmp-field.

You should not be doing this.  You should instead have cmp-fields for
each of the fields in the PK.  The only mention of the PK class in the
ejb-jar.xml should be the prim-key-class element.

I've found that it's pretty much necessary to read the DTDs for the
deployment descriptors.

Jeff

-Original Message-
From: faisal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 11:09 AM
To: Orion-Interest
Subject: ONCE AGAIN  PK.class  CMP beans in ORION


Hi All
I already asked  this question long time ago.Including the pk 
class in Orion
ejb.jar seems to be beyond my intelligence.I ve been trying to 
apply Roman
e-commerce application from his book "Mastering Java Enterprise beans"
.May be there is another way of making the primary key in CMP 
bean available
to the rest of bean classes ...Any suggestion please..
Again the problem is : when I include the pk.class among the 
cmp bean CMP
FIELDS -the deployment descriptor can 't recognise the PK 
class  of the CMP
bean









RE: simple JSP bug with switch

2001-02-27 Thread Margulies, Adam
Title: RE: simple JSP bug with switch





OK, thanks, I understand that (which is how I fixed the code).


However, I believe this isn't the proper behaviour for JSP.
Orion should eat that newline. This is how other JSP engines behave,
including Sun's reference engine.


It shouldn't break the java code by inserting an erroneous println...
or am I smoking crack?



adam


-Original Message-
From: Nick Newman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 11:40 AM
To: Orion-Interest
Subject: Re: simple JSP bug with switch



Hi Adam,


I don't think this is a bug, although I agree the messages are 
confusing. Set the development=true flag in the orion-web.xml and you 
get the reason explained more fully. Basically what you have written in 
the broken version produces code like this:


switch(1){
 // write a new line (but can't be reached!)
case 1:
 // write newline, One, newline
break;
 // write a new line (but can't be reached!)
default:
 // write newline, Default, newline
break;
 // write a new line (but can't be reached!)
}


and the compiler complains (correctly) that some of the copde can't be reached.


Nick Newman





At 08:11 PM 2/26/01 -0500, you wrote:


Forgive me if this is a known bug, but I didn't see it in the FAQ or 
anywhere on orionsupport.com.

I am using Orion 1.4.7 and I have tried having Orion use Jikes 1.12 as 
well as all three of the 1.30 JDKs
{Sun,IBM,Blackdown}. This is all running on RedHat 7.0 Linux 2.4.2.

fixed version (but I shouldn't have to do this...):

% switch(1) { case 1: %
One
% break; default: %
Default
% break; } %

broken version:

% switch(1) { %
% case 1: %
One
% break; %
% default: %
Default
% break; %
% } %

Gives the following error (this is the Blackdown error, but they're all 
similar)

500 Internal Server Error
Error parsing JSP page /jsp/test.jsp
Syntax error in source
/jsp/test.jsp.java:29: 'case', 'default' or '}' expected (JSP page line 3)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 0, 1);
 ^
/jsp/test.jsp.java:29: 'case', 'default' or '}' expected (JSP page line 3)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 0, 1);
 
 ^
/jsp/test.jsp.java:30: 'case', 'default' or '}' expected (JSP page line 3)
 else 
 com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
 __staticContent, 0, 1, null);
 
 ^
/jsp/test.jsp.java:35: 'case', 'default' or '}' expected (JSP page line 4)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 1, 5);
 
 ^
/jsp/test.jsp.java:36: 'case', 'default' or '}' expected (JSP page line 4)
 else 
 com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
 __staticContent, 1, 5, null);
 
 ^
/jsp/test.jsp.java:38: 'case', 'default' or '}' expected (JSP page line 4)
 break;
 ^
/jsp/test.jsp.java:41: 'case', 'default' or '}' expected (JSP page line 6)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 6, 1);
 
 ^
/jsp/test.jsp.java:42: 'case', 'default' or '}' expected (JSP page line 6)
 else 
 com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
 __staticContent, 6, 1, null);
 
 ^
/jsp/test.jsp.java:47: 'case', 'default' or '}' expected (JSP page line 7)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 7, 9);
 
 ^
/jsp/test.jsp.java:48: 'case', 'default' or '}' expected (JSP page line 7)
 else 
 com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
 __staticContent, 7, 9, null);
 
 ^
/jsp/test.jsp.java:50: 'case', 'default' or '}' expected (JSP page line 7)
 break;
 ^
/jsp/test.jsp.java:53: 'case', 'default' or '}' expected (JSP page line 9)
 if(__coreOut == out) 
 __coreOut.write(__staticContent, 16, 1);
 
 ^
/jsp/test.jsp.java:54: 'case', 'default' or '}' expected (JSP page line 9)
 else 
 com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
 __staticContent, 16, 1, null);
 
 ^
13 errors





RE: JAXP

2001-02-27 Thread Conrad Chan

Have you try to package your version of JAXP files inside your application
archive (ear, war)?  This idea comes from the fact that every class is
identified not only its class name but also which class loader it is loaded
from.  Since Orion supports dynamic loading of application files, it should
be using a custom classloader for every application.  Hence, by theory, you
should be able to use a different JAXP than the one Orion uses.  Of course
it depends on exactly how Orion implements this.  If Orion looks for classes
from the default classloader first, it is still not going to work.  But I
think it does worth a try.

Hope this help

Conrad

-Original Message-
From: Richard Doust [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 4:31 PM
To: Orion-Interest
Subject: JAXP


I have been working on this problem all day. I have posted once before and
no one responded. I will try again.
I'm no Java expert and this is just my ignorance, but can anyone tell me if
I'm correct in my assumptions on this.
I am trying to develop server side code that runs under Orion that uses the
JAXP code that Sun has recently released. There are different versions of
parser.jar, xalan.jar and jaxp.jar distributed with Orion. Older ones. I
have tried replacing the older ones with the newer ones because my code
requires the newer ones and I guess that my code will be running in the same
image as Orion. Orion fails to start due to an exception while trying to
parse its configuration files. Putting the old .jar files back, it works
again. So, now it occurs to me that I'm basically stuck running with
whatever version of support code the tools I'm using are dependent on.
If I'm right, that means I can't use the latest version of JAXP until Orion
does? Is that right?
Anyone?
Thanks,
Rich





Re: Using your own web-site.xml instead of default-web-site.xml

2001-02-27 Thread Rafael Alvarez

Hello Matt,

Monday, February 26, 2001, 8:46:34 PM, you wrote:

MK web-site host="[ALL]" port="80" display-name="boris"
MK default-web-app application="boris" name="boris-web" root="/boris"
MK load-on-startup="true" /
MK access-log path="../log/default-web-access.log" /
MK /web-site
The root parameter has no meaning in the default-web-app tag. It
always points to /.

-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






Classpath

2001-02-27 Thread Luis Javier Beltran



Hi,

Where should specify the classpath I want to use? 
I'm trying to include some classes in another directory, it can't find them. I 
thought adding it in a batch file before calling orion would do it, but it seems 
that's not the way.

Thanks a lot!

Luis Javier


RE: How do I map a .doc extension to a .jsp execution

2001-02-27 Thread Darren Gibbons

Unfortunately, I don't think IE is that smart.  I've run into a similar
issue, and have simply added a parameter to the end of the URL ending with
the file name.

For example ...something/mydocument.jsp becomes
...something/mydocument.jsp?file=filename.doc

Even if you're doing nothing with the file parameter, this should get IE to
treat it properly.  You'll still have to set the mimetype.  An added benefit
of this is the default name in the File-Save As... dialog box *should* be
filename.doc (if I remember correctly).

Good luck,

Darren.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Fyffe Carl
 Sent: Tuesday, February 27, 2001 11:18 AM
 To: Orion-Interest
 Subject: RE: How do I map a .doc extension to a .jsp execution


 Guys,

 I could be wrong here, but you may want to try just setting the mime type
 that is sent to the browser.  I don't believe that the .doc extension is
 required to get IE to display the file as a word document.  Just send the
 mime type back as: application/msword and it will see the file as a word
 document.  This will also cause netscape to try to save the file
 instead of
 read it.  Hope this helps.

 Carl

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Schnitzer
 Sent: Tuesday, February 27, 2001 12:54 PM
 To: Orion-Interest
 Subject: RE: How do I map a .doc extension to a .jsp execution


 While that would work, you would have to create a separate jsp for each
 document... really you should probably create your own servlet, map it
 to *.doc in the same way, and use request.getPathInfo() and
 request.getPathTranslated() (or just forward to the request to a URL in
 a protected directory).

 Or better yet, look into filters.  I haven't looked at the Servlet 2.3
 specification for filters yet, but I suspect this is exactly the sort of
 problem filters are designed to solve.

 Jeff

 -Original Message-
 From: Christian Billen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 27, 2001 5:03 AM
 To: Orion-Interest
 Subject: RE: How do I map a .doc extension to a .jsp execution
 
 
 I haven't tried this but try to modify the
 config/global-web-application.xml
 and add a mapping for the jsp servlet:
 servlet-mapping
  servlet-namejsp/servlet-name
  url-pattern/*.doc/url-pattern
  /servlet-mapping
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Christian
  Kvalheim
  Sent: Monday, February 26, 2001 3:31 PM
  To: Orion-Interest
  Subject: How do I map a .doc extension to a .jsp execution
 
 
  Hello
 
  I have the following problem. We have a certain number
  of Word documents in out database that we want to
  output to the browser. Everything is fine, we get the
  document as a blob from the database and into the jsp
  variables. However for internet explorer to recognise
  the file as a word document (and start the viewer) we
  need to append a .doc extension. Since the urlcode is
  ...something/mydocument.jsp it does not get
  recognised. How can I make orion treat .doc files as
  .jsp files for execution on the server ?? This would
  allow me to wrap the execution logic into the .doc
  file and let the browser see the document (changing
  acording to which document is fetched from the server)
 
  Yours
 
  Christian Amor Kvalheim
  Quality Manager +
 
  __
  Do You Yahoo!?
  Get email at your own domain with Yahoo! Mail.
  http://personal.mail.yahoo.com/
 
 
 
 
 
 









RE: simple JSP bug with switch

2001-02-27 Thread Tim Endres

 OK, thanks, I understand that (which is how I fixed the code).
 
 However, I believe this isn't the proper behaviour for JSP.
 Orion should eat that newline. This is how other JSP engines behave,
 including Sun's reference engine.

Seems that this would depend entirely on the JSP spec. If newlines have
"significance", then Orion is right and the reference implementation is
broken. Unless the spec further stated that newlines between "certain
code segments" would be ignored.

 It shouldn't break the java code by inserting an erroneous println...
 or am I smoking crack?

You may be smoking crack - users are often the last to know.

tim.

 adam
 
 -Original Message-
 From: Nick Newman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 27, 2001 11:40 AM
 To: Orion-Interest
 Subject: Re: simple JSP bug with switch
 
 
 Hi Adam,
 
 I don't think this is a bug, although I agree the messages are 
 confusing.  Set the development="true" flag in the orion-web.xml and you 
 get the reason explained more fully.  Basically what you have written in 
 the broken version produces code like this:
 
 switch(1){
  // write a new line (but can't be reached!)
 case 1:
  // write newline, "One", newline
 break;
  // write a new line (but can't be reached!)
 default:
  // write newline, "Default", newline
 break;
  // write a new line (but can't be reached!)
 }
 
 and the compiler complains (correctly) that some of the copde can't be
 reached.
 
 Nick Newman
 
 
 
 
 At 08:11 PM 2/26/01 -0500, you wrote:
 
 Forgive me if this is a known bug, but I didn't see it in the FAQ or 
 anywhere on orionsupport.com.
 
 I am using Orion 1.4.7 and I have tried having Orion use Jikes 1.12 as 
 well as all three of the 1.30 JDKs
 {Sun,IBM,Blackdown}. This is all running on RedHat 7.0 Linux 2.4.2.
 
 fixed version (but I shouldn't have to do this...):
 
 % switch(1) { case 1: %
 One
 % break; default: %
 Default
 % break;  } %
 
 broken version:
 
 % switch(1) { %
 % case 1: %
 One
 % break; %
 % default: %
 Default
 % break; %
 % } %
 
 Gives the following error (this is the Blackdown error, but they're all 
 similar)
 
 500 Internal Server Error
 Error parsing JSP page /jsp/test.jsp
 Syntax error in source
 /jsp/test.jsp.java:29: 'case', 'default' or '}' expected (JSP page line 3)
  if(__coreOut == out) 
  __coreOut.write(__staticContent, 0, 1);
  ^
 /jsp/test.jsp.java:29: 'case', 'default' or '}' expected (JSP page line 3)
  if(__coreOut == out) 
  __coreOut.write(__staticContent, 0, 1);
  
   ^
 /jsp/test.jsp.java:30: 'case', 'default' or '}' expected (JSP page line 3)
  else 
  com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
  __staticContent, 0, 1, null);
  
^
 /jsp/test.jsp.java:35: 'case', 'default' or '}' expected (JSP page line 4)
  if(__coreOut == out) 
  __coreOut.write(__staticContent, 1, 5);
  
   ^
 /jsp/test.jsp.java:36: 'case', 'default' or '}' expected (JSP page line 4)
  else 
  com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
  __staticContent, 1, 5, null);
  
^
 /jsp/test.jsp.java:38: 'case', 'default' or '}' expected (JSP page line 4)
   break;
^
 /jsp/test.jsp.java:41: 'case', 'default' or '}' expected (JSP page line 6)
  if(__coreOut == out) 
  __coreOut.write(__staticContent, 6, 1);
  
   ^
 /jsp/test.jsp.java:42: 'case', 'default' or '}' expected (JSP page line 6)
  else 
  com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
  __staticContent, 6, 1, null);
  
^
 /jsp/test.jsp.java:47: 'case', 'default' or '}' expected (JSP page line 7)
  if(__coreOut == out) 
  __coreOut.write(__staticContent, 7, 9);
  
   ^
 /jsp/test.jsp.java:48: 'case', 'default' or '}' expected (JSP page line 7)
  else 
  com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
  __staticContent, 7, 9, null);
  
^
 /jsp/test.jsp.java:50: 'case', 'default' or '}' expected (JSP page line 7)
   break;
^
 /jsp/test.jsp.java:53: 'case', 'default' or '}' expected (JSP page line 9)
  if(__coreOut == out) 
  __coreOut.write(__staticContent, 16, 1);
  
^
 /jsp/test.jsp.java:54: 'case', 'default' or '}' expected (JSP page line 9)
  else 
  com.evermind.server.http.EvermindJSPWriter.writeBytes(out, 
  __staticContent, 16, 1, null);
  
 ^
 13 errors
 





Re: Good tutorial

2001-02-27 Thread Ernst de Haan

Hey,

While the Sun tools may be easier to use in the general case of deploying a
J2EE application, Ant is a *generic* and extendible build tool, that can be
used to perform from the simplest (copy, move, rename, delete files, compile,
execute) to the most advanced (deploying complete J2EE applications,
performing unit tests, translating source code to formatted HTML, checking
Javadoc comments for completeness, etc.) And all of that in a
platform-independant manner :)

So IMHO comparing deploytool with Ant is a bit odd.

--
Ernst

Kemp Randy-W18971 wrote:
 This is a nice tutorial at www.4degreez.com and now that I am used to ant,
 the sun tools are much easier.  And I, for one, and all for making my life
 easier.




multiple apps

2001-02-27 Thread Greg Matthews




Dear all,

I'm having some trouble getting multiple copies of 
an app to run where 
i use different appname-web-site.xml 
files.

Idon't have a problem where i configure all 
the information within
server.xml and default-web-site.xml, but i want to 
use different
web-site.xml files so that i can do 
clustering.

Ido the following:

1. copy/paste the application within 
\orion\applications.
 e.g. 
\orion\applications\copy1
  
 \orion\applications\copy2

2. create 2 web-site.xml files

 e.g. 
\orion\config\copy1-web-site.xml
  
 \orion\config\copy2-web-site.xml

3. put a reference to the web-site files in 
server.xml

web-site path="./copy1-web-site.xml" 
/web-site path="./copy2-web-site.xml" /
4. put a reference to the 2 applications in 
server.xml


application name="copy1" 
path="..\applications\copy1"/application name="copy2" 
path="..\applications\copy2"/


Questions


a)I can run the copy1 app in my browser, but 
not copy2.

b)If i comment out copy1, then for some 
reason i can run copy2.

c)If i uncomment copy1, then copy1 starts 
working, and copy2 is not accessible.

d)I don't get any error messages relating to 
not being able to access copy1 or copy2.


Does anyone know what i might be doing 
wrong?

Thanks,
Greg



Re: reference to a bean of another application

2001-02-27 Thread Dmitry Chagin

Hi!

look at server.xml config documentation:

application auto-start="true|false"
deployment-directory="../application-deployments/myapp"
name="anApplication" parent="anotherApplication"
path="../applications/myApplication.ear" /
^^

parent - Optional 'parent' application, the default is the global
application. Children see the namespace of it's parent application.
This is used in order to share services such as EJBs among multiple
applications.


/chd
cc East Siberian RailWay


--- Original Message ---
From: "Jordi Daroca" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Date: 27 ??? 2001 ?. 19:27
Subject: reference to a bean of another application



 Can a Bean of one application see a Bean of another application??

 When I try to do it, i get the error:

 javax.naming.NamingException: Error instantiating web-app
JNDI-context:
 No locat
 ion specified and no suitable instance of the type
'ants.aws.Mediator'
 found for
  the ejb-ref Mediator


 In the ejb-jar.xml the reference to Mediator is explicited:

 session
 display-nameEventManager/display-name
 ejb-nameEventManager/ejb-name
 homeem.EventManagerHome/home
 remoteem.EventManager/remote
 ejb-classem.EventManagerEJB/ejb-class
 session-typeStatefull/session-type
 transaction-typeContainer/transaction-type
 ejb-ref
 ejb-ref-nameMediator/ejb-ref-name
 ejb-ref-typeSession/ejb-ref-type
 homeants.aws.MediatorHome/home
 remoteants.aws.Mediator/remote
 ejb-linkMediator/ejb-link
 /ejb-ref
 /session

 and also in the application-client.xml .

 If the modules are packed in only one application there are no
problem.







RE: problem in accessing ejb from a bean in web-inf/classes direc tory .

2001-02-27 Thread Andre Vanha

Did you define the ejb-refs in your web.xml and link them correctly in
orion-web.xml?
It works fine for me.

Andre


-Original Message-
From: Prabahkar Subramaniam [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 2:14 PM
To: Orion-Interest
Subject: RE: problem in accessing ejb from a bean in web-inf/classes
direc tory .


I tried the following 2 ways and get the same error:

Object hdrObj = cntx.lookup("java:comp/env/B2BOrderHeader");
headerHome = (B2BOrderHeaderHome)
 and 
headerHome = (B2BOrderHeaderHome)cntx.lookup("B2BOrderHeader");

error:

javax.naming.NameNotFoundException: B2BOrderHeader not found
at com.evermind.server.rmi.RMIContext.lookup(JAX)
at com.evermind.server.hl.f3(JAX)
at com.evermind.server.hl.lookup(JAX)
at javax.naming.InitialContext.lookup(Unknown Source)
at replacement.OrderBeanWrapper.loadOrder(OrderBeanWrapper.java:142)
at
__jspPage1_replacement_loadorder_jsp._jspService(__jspPage1_replacement_load
order_jsp.java:44)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xa(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.so(JAX)
at com.evermind.server.http.d3.sm(JAX)
at com.evermind.server.http.ef.su(JAX)
at com.evermind.server.http.ef.dn(JAX)
at com.evermind.util.f.run(JAX)

The line 142 is:
 headerHome = (B2BOrderHeaderHome) cntx.lookup("B2BOrderHeader");

Thanks in advance for your help
Prabahkar

-Original Message-
From: Rafael Alvarez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 10:59 AM
To: Orion-Interest
Subject: Re: problem in accessing ejb from a bean in web-inf/classes
directory .


Hello Prabahkar,

Monday, February 26, 2001, 7:38:40 PM, you wrote:

Try using
Object hdrObj = cntx.lookup("B2BOrderHeader");

I think I remember vagely a thread in this list about java:comp/,
but that was 3000 messages ago :). Anyway, this works fine for me.

-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]








RE: simple JSP bug with switch

2001-02-27 Thread Nick Newman

Sorry if I didn't quite get your point.

It's odd though. The spec VERY specifically says that whitespace must be 
preserved (JSP 1.1 spec, section 2.1.6), so it seems to me that what Orion 
is doing is correct, even if it seems inconvenient.

If I write:

% out.print("one"); %
% out.print("two"); %

then my reading of the spec says that I must get the two words printed on 
different lines (which I believe Orion would do), whereas you seem to be 
saying that Sun's RI would print "onetwo".  Or is Sun's RI somehow clever 
enough to know the difference between my sample and yours? That would take 
some clever examination of what's in the scriptlets, I would think.

Nick Newman

At 04:58 PM 2/27/01 -0500, you wrote:

OK, thanks, I understand that (which is how I fixed the code).

However, I believe this isn't the proper behaviour for JSP.
Orion should eat that newline. This is how other JSP engines behave,
including Sun's reference engine.

It shouldn't break the java code by inserting an erroneous println...
or am I smoking crack?

adam

-Original Message-
From: Nick Newman 
[mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 11:40 AM
To: Orion-Interest
Subject: Re: simple JSP bug with switch

Hi Adam,

I don't think this is a bug, although I agree the messages are
confusing.  Set the development="true" flag in the orion-web.xml and you
get the reason explained more fully.  Basically what you have written in
the broken version produces code like this:

switch(1){
  // write a new line (but can't be reached!)
case 1:
  // write newline, "One", newline
break;
  // write a new line (but can't be reached!)
default:
  // write newline, "Default", newline
break;
  // write a new line (but can't be reached!)
}

and the compiler complains (correctly) that some of the copde can't be 
reached.

Nick Newman



At 08:11 PM 2/26/01 -0500, you wrote:

 Forgive me if this is a known bug, but I didn't see it in the FAQ or
 anywhere on orionsupport.com.
 
 I am using Orion 1.4.7 and I have tried having Orion use Jikes 1.12 as
 well as all three of the 1.30 JDKs
 {Sun,IBM,Blackdown}. This is all running on RedHat 7.0 Linux 2.4.2.
 
 fixed version (but I shouldn't have to do this...):
 
 % switch(1) { case 1: %
 One
 % break; default: %
 Default
 % break;  } %
 
 broken version:
 
 % switch(1) { %
 % case 1: %
 One
 % break; %
 % default: %
 Default
 % break; %
 % } %
 
 Gives the following error (this is the Blackdown error, but they're all
 similar)
 
 500 Internal Server Error
 Error parsing JSP page /jsp/test.jsp
 Syntax error in source
 /jsp/test.jsp.java:29: 'case', 'default' or '}' expected (JSP page line 3)
  if(__coreOut == out)
  __coreOut.write(__staticContent, 0, 1);
  ^
 /jsp/test.jsp.java:29: 'case', 'default' or '}' expected (JSP page line 3)
  if(__coreOut == out)
  __coreOut.write(__staticContent, 0, 1);
 
   ^
 /jsp/test.jsp.java:30: 'case', 'default' or '}' expected (JSP page line 3)
  else
  com.evermind.server.http.EvermindJSPWriter.writeBytes(out,
  __staticContent, 0, 1, null);
 
^
 /jsp/test.jsp.java:35: 'case', 'default' or '}' expected (JSP page line 4)
  if(__coreOut == out)
  __coreOut.write(__staticContent, 1, 5);
 
   ^
 /jsp/test.jsp.java:36: 'case', 'default' or '}' expected (JSP page line 4)
  else
  com.evermind.server.http.EvermindJSPWriter.writeBytes(out,
  __staticContent, 1, 5, null);
 
^
 /jsp/test.jsp.java:38: 'case', 'default' or '}' expected (JSP page line 4)
   break;
^
 /jsp/test.jsp.java:41: 'case', 'default' or '}' expected (JSP page line 6)
  if(__coreOut == out)
  __coreOut.write(__staticContent, 6, 1);
 
   ^
 /jsp/test.jsp.java:42: 'case', 'default' or '}' expected (JSP page line 6)
  else
  com.evermind.server.http.EvermindJSPWriter.writeBytes(out,
  __staticContent, 6, 1, null);
 
^
 /jsp/test.jsp.java:47: 'case', 'default' or '}' expected (JSP page line 7)
  if(__coreOut == out)
  __coreOut.write(__staticContent, 7, 9);
 
   ^
 /jsp/test.jsp.java:48: 'case', 'default' or '}' expected (JSP page line 7)
  else
  com.evermind.server.http.EvermindJSPWriter.writeBytes(out,
  __staticContent, 7, 9, null);
 
^
 /jsp/test.jsp.java:50: 'case', 'default' or '}' expected (JSP page line 7)
   break;
^
 /jsp/test.jsp.java:53: 'case', 'default' or '}' expected (JSP page line 9)
  if(__coreOut == out)
  __coreOut.write(__staticContent, 16, 1);
 
^
 /jsp/test.jsp.java:54: 'case', 'default' or '}' expected (JSP page line 

RE: simple JSP bug with switch

2001-02-27 Thread Tim Endres

It appears to me that Sun's RI is recognizing the "obvious" - that statements
can not appear between "switch" and "case", nor between "break" and "case".
Unless the spec specifically addresses this, it seems that Orion is doing the
correct thing, and Sun is providing a nicety that lulls one into writing bad
JSP code.
tim.

 Sorry if I didn't quite get your point.
 
 It's odd though. The spec VERY specifically says that whitespace must be 
 preserved (JSP 1.1 spec, section 2.1.6), so it seems to me that what Orion 
 is doing is correct, even if it seems inconvenient.
 
 If I write:
 
 % out.print("one"); %
 % out.print("two"); %
 
 then my reading of the spec says that I must get the two words printed on 
 different lines (which I believe Orion would do), whereas you seem to be 
 saying that Sun's RI would print "onetwo".  Or is Sun's RI somehow clever 
 enough to know the difference between my sample and yours? That would take 
 some clever examination of what's in the scriptlets, I would think.
 
 Nick Newman
 
 At 04:58 PM 2/27/01 -0500, you wrote:
 
 OK, thanks, I understand that (which is how I fixed the code).
 
 However, I believe this isn't the proper behaviour for JSP.
 Orion should eat that newline. This is how other JSP engines behave,
 including Sun's reference engine.
 
 It shouldn't break the java code by inserting an erroneous println...
 or am I smoking crack?
 
 adam
 
 -Original Message-
 From: Nick Newman 
 [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, February 27, 2001 11:40 AM
 To: Orion-Interest
 Subject: Re: simple JSP bug with switch
 
 Hi Adam,
 
 I don't think this is a bug, although I agree the messages are
 confusing.  Set the development="true" flag in the orion-web.xml and you
 get the reason explained more fully.  Basically what you have written in
 the broken version produces code like this:
 
 switch(1){
   // write a new line (but can't be reached!)
 case 1:
   // write newline, "One", newline
 break;
   // write a new line (but can't be reached!)
 default:
   // write newline, "Default", newline
 break;
   // write a new line (but can't be reached!)
 }
 
 and the compiler complains (correctly) that some of the copde can't be 
 reached.
 
 Nick Newman
 
 
 
 At 08:11 PM 2/26/01 -0500, you wrote:
 
  Forgive me if this is a known bug, but I didn't see it in the FAQ or
  anywhere on orionsupport.com.
  
  I am using Orion 1.4.7 and I have tried having Orion use Jikes 1.12 as
  well as all three of the 1.30 JDKs
  {Sun,IBM,Blackdown}. This is all running on RedHat 7.0 Linux 2.4.2.
  
  fixed version (but I shouldn't have to do this...):
  
  % switch(1) { case 1: %
  One
  % break; default: %
  Default
  % break;  } %
  
  broken version:
  
  % switch(1) { %
  % case 1: %
  One
  % break; %
  % default: %
  Default
  % break; %
  % } %
  
  Gives the following error (this is the Blackdown error, but they're all
  similar)
  
  500 Internal Server Error
  Error parsing JSP page /jsp/test.jsp
  Syntax error in source
  /jsp/test.jsp.java:29: 'case', 'default' or '}' expected (JSP page line 3)
   if(__coreOut == out)
   __coreOut.write(__staticContent, 0, 1);
   ^
  /jsp/test.jsp.java:29: 'case', 'default' or '}' expected (JSP page line 3)
   if(__coreOut == out)
   __coreOut.write(__staticContent, 0, 1);
  
^
  /jsp/test.jsp.java:30: 'case', 'default' or '}' expected (JSP page line 3)
   else
   com.evermind.server.http.EvermindJSPWriter.writeBytes(out,
   __staticContent, 0, 1, null);
  
 ^
  /jsp/test.jsp.java:35: 'case', 'default' or '}' expected (JSP page line 4)
   if(__coreOut == out)
   __coreOut.write(__staticContent, 1, 5);
  
^
  /jsp/test.jsp.java:36: 'case', 'default' or '}' expected (JSP page line 4)
   else
   com.evermind.server.http.EvermindJSPWriter.writeBytes(out,
   __staticContent, 1, 5, null);
  
 ^
  /jsp/test.jsp.java:38: 'case', 'default' or '}' expected (JSP page line 4)
break;
 ^
  /jsp/test.jsp.java:41: 'case', 'default' or '}' expected (JSP page line 6)
   if(__coreOut == out)
   __coreOut.write(__staticContent, 6, 1);
  
^
  /jsp/test.jsp.java:42: 'case', 'default' or '}' expected (JSP page line 6)
   else
   com.evermind.server.http.EvermindJSPWriter.writeBytes(out,
   __staticContent, 6, 1, null);
  
 ^
  /jsp/test.jsp.java:47: 'case', 'default' or '}' expected (JSP page line 7)
   if(__coreOut == out)
   __coreOut.write(__staticContent, 7, 9);
  
^
  /jsp/test.jsp.java:48: 'case', 'default' or '}' expected (JSP page line 7)
   else
   

RE: I switch from X to Orion because:

2001-02-27 Thread denis despinoy


As a Principal Architect, for me time to market, sky
rocking performance and ease of development were good
enough to investigate and invest 2 of my developers
and myself for 3 days.

After our research and due dilligence (lack of doc so
we learned the hard way !) All the feature we needed
are there and they work fine. We were left with
Weblogic and Orion on our short list as the only
ejb2.0 compliant appserver in the industry. 

Orion hasn't got the impressive references BEA comes
up with in production yet Orion doesn't come up with
the assle one has to deal with when facing the sales
force of BEA and they famous and unrealistic node
locking licenses. Websphere, ATGDynamo, IPlanet and
some others were long gone in phase 2 of our testing
!!!

The results of the above gave us the ultimate winner
across all division of my present company - ORION
:-)) my CFO was the most shiny and happy looking !!!
CTO and VP of RD gave us the bottoms up to roll
development on this server. This left BEA and VITRIA
with they sucky BusinessWare product arguing our
competences and technical abilities...


Dr Denis Eric Despinoy
Principal Architect

PS: thank u to the list while transitionning to
orion...



--- Russ White [EMAIL PROTECTED] wrote:
 X is to slow to implement new J2EE specs while Orion
 is moving at a nice
 pace. And once you understand the spec, and take a
 little familiarization
 time Orion simply works like a dream. Granted
 documentation is lacking, but
 the product is solid and feature rich.
   -Original Message-
   From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Vaskin Kissoyan
   Sent: Tuesday, February 27, 2001 2:05 PM
   To: Orion-Interest
   Subject: I switch from X to Orion because:
 
 
   Please fill in the blank as you see fit.
 
 
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Re: multiple apps

2001-02-27 Thread Aniket V U

Hi,

I seem to be having similar problems. I have 2 application which use a 
common set of JSP's. For one JSP page, I have a problem wherein if I try to 
access that particular page in one application it will work, but will fail 
if used in the second application. The worst part is that both the JSP 
pages are identical. I dont even have different web-site.xml files. All the 
applications are defined in the default-web-site.xml

Any insights would be appreciated

Thanks 'n Regards

Aniket

At 06:57 AM 2/28/2001, you wrote:

Dear all,

I'm having some trouble getting multiple copies of an app to run where
i use different appname-web-site.xml files.

I don't have a problem where i configure all the information within
server.xml and default-web-site.xml, but i want to use different
web-site.xml files so that i can do clustering.

I do the following:

1. copy/paste the application within \orion\applications.
 e.g.\orion\applications\copy1
  \orion\applications\copy2

2. create 2 web-site.xml files

 e.g.\orion\config\copy1-web-site.xml
  \orion\config\copy2-web-site.xml

3. put a reference to the web-site files in server.xml

  web-site path="./copy1-web-site.xml" /
  web-site path="./copy2-web-site.xml" /
4. put a reference to the 2 applications in server.xml

  application name="copy1" path="..\applications\copy1"/
  application name="copy2" path="..\applications\copy2"/


Questions


a) I can run the copy1 app in my browser, but not copy2.

b) If i comment out copy1, then for some reason i can run copy2.

c) If i uncomment copy1, then copy1 starts working, and copy2 is not 
accessible.

d) I don't get any error messages relating to not being able to access 
copy1 or copy2.


Does anyone know what i might be doing wrong?

Thanks,
Greg







Re: multiple apps

2001-02-27 Thread Michael Bosch



Having just gone through learning all the 
configuration details recently the thing that pops out in my mind is whether or 
not you changed the host attribute in your web-site element of the 
copy1-web-site.xml and copy2-web-site.xml files so that they're different? 
It'd make sense that one would run and the other doesn't when they're both 
activated if this were the case. If they're 
both set to [ALL] then the first one would probably override the 2nd. 


-Mike

  - Original Message - 
  From: 
  Greg 
  Matthews 
  To: Orion-Interest 
  Sent: Tuesday, February 27, 2001 5:27 
  PM
  Subject: multiple apps
  
  
  Dear all,
  
  I'm having some trouble getting multiple copies 
  of an app to run where 
  i use different appname-web-site.xml 
  files.
  
  Idon't have a problem where i configure all 
  the information within
  server.xml and default-web-site.xml, but i want 
  to use different
  web-site.xml files so that i can do 
  clustering.
  
  Ido the following:
  
  1. copy/paste the application within 
  \orion\applications.
   e.g. 
  \orion\applications\copy1

   \orion\applications\copy2
  
  2. create 2 web-site.xml files
  
   e.g. 
  \orion\config\copy1-web-site.xml

   \orion\config\copy2-web-site.xml
  
  3. put a reference to the web-site files in 
  server.xml
  
  web-site path="./copy1-web-site.xml" 
  /web-site path="./copy2-web-site.xml" /
  4. put a reference to the 2 applications in 
  server.xml
  
  
  application name="copy1" 
  path="..\applications\copy1"/application name="copy2" 
  path="..\applications\copy2"/
  
  
  Questions
  
  
  a)I can run the copy1 app in my browser, 
  but not copy2.
  
  b)If i comment out copy1, then for some 
  reason i can run copy2.
  
  c)If i uncomment copy1, then copy1 starts 
  working, and copy2 is not accessible.
  
  d)I don't get any error messages relating 
  to not being able to access copy1 or copy2.
  
  
  Does anyone know what i might be doing 
  wrong?
  
  Thanks,
  Greg
  


RE: Classpath

2001-02-27 Thread Eyal Litman (Kamoon IL)
Title: RE: Classpath





Hi,
It seems to me that if you start orion like java -jar orion.jar there is a problem with setting the classpath.
I start orion like this :
set SERVER_PATH=.;%JDBC_PATH%;%OTHER_PATHS%
java -classpath %SERVER_PATH% com.evermind.server.ApplicationServer 


My %SERVER_PATH% has all external jars i use.


Bye,
Eyal Litman
Kamoon software 


-Original Message-
From: Luis Javier Beltran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 7:09 AM
To: Orion-Interest
Subject: Classpath



Hi,


Where should specify the classpath I want to use? I'm trying to include some classes in another directory, it can't find them. I thought adding it in a batch file before calling orion would do it, but it seems that's not the way.

Thanks a lot!


Luis Javier