SaxParseException-Help out

2001-04-11 Thread p_s_sudhakar

Hi all,

Can anyone help me out.I have a jsp that sends Userid and password to another jsp 
that checks the values with an XML file.If xml parsing is sucessful, the values should 
be put into a JavaBean that has a session scope.So the ensuing jsp pages can make use 
of it.But while parsing I get the following message on the Orion console.I don't even 
have any tag called  in the XML to be parsed.It is rather bewildering.

Thanks.

C:\orion>java -jar orion.jar
Orion/1.4.7 initialized
org.xml.sax.SAXParseException: Expected ""
to terminate element starting on line 1.


Regards,
P.S.Sudhaghar


__
123India.com - India's Premier Portal 
Get your Free Email Account at http://www.123india.com






RE: javax.crypto

2001-04-11 Thread Van Duong



thanks 
a lot. I got it.

  -Original Message-From: Dean Parker 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 11, 2001 
  12:34 PMTo: Orion-InterestSubject: RE: 
  javax.crypto
  That 
  consists of 4 jars known collectively as  JCE (Java Cryptography 
  Extension). The current version is 1.2.1.
   
  jce1_2_1.jar
  local_policy.jar
  sunjce_provider.jar
  US_export_policy.jar
   
  jce1_2_1.jar is the actual API. sunjce_provider.jar is Suns' 
  implementation of their API. It contains the actual algorithms and code that 
  does all the work. Offhand, I don't know of any other 3rd parties that have 
  implemented the API.
   
  These files must be downloaded from Sun's website at this 
  URL..
   
  http://www.java.sun.com/products/jce/index.html
   
  DP
   
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Van 
DuongSent: Wednesday, April 11, 2001 3:40 AMTo: 
Orion-InterestSubject: javax.crypto
Hi,
 
Does anyone can tell me where the 
package javax.crypto is? 
 
Thanks in advance,
 
Van 
Duong 


RE: request.getParameter() not working under solaris?

2001-04-11 Thread Taavi Tiirik

> I had the same problem when loading data from the database ( swedish
> language ). They got messed up on the way. So the resolution in my
case
> was to make sure that the shell running orion supported swedish chars.

Got it working. The solution was to specify environment variable LANG:

export LANG=en_US.UTF-8

And it seems that specifying content type and charset with a meta tag
is not enough. It has to be set using a <%@ page %> directive as well.

Now I have to find out how to define et_EE.UTF-8 for my system.

thanks,
Taavi

:-)

> Hope this helps.
> 
> Johan

it sure did






Re: Management Console...

2001-04-11 Thread Derek M. A. Lee-Wo


> In the same vein, there's a menu item to add a server.  Does this imply
> adding another application server?  Another Orion server?

Yes, e.g, I have the console running on an NT workstation, but I can connect
to an Orion server on another Linux box.

Derek






Kawa 5.0 Ent and Orion 1.4.7

2001-04-11 Thread Kalle Anka

Hi all,
has anyone succesfully been able to configure Kawa 5.0 Enterprise with Orion 
1.4.7 ?
What I'm looking for is all the parameters needed for the EJB serve dialog 
box like EJB Server parameters, Packager, Deployer, Unddeployer and so 
forth.

I've tried Allaire but no answer so far besides read on the FAQ. But there 
is nothing there.

Thanks,
Brynolf
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





Logging

2001-04-11 Thread olivier

Hi,

(That mail could be for Dan who seems to work with log4j.)

I am trying to use log4j to debug my application.
(I could not download opensymphony...the download link is disabled)

This is how I set it up:

  static Category LOG4J = Category.getRoot();
BasicConfigurator.configure();
Layout layout = new PatternLayout("%d{HH:mm:ss} %-5p %c %x - %m%n");

//not sure about the output. I have tried Syste.out as well
LOG4J.addAppender(new FileAppender(layout, System.err));

//no debugging if not set
if((debugPriority = System.getProperty("debugLevel")) == null)
  LOG4J.setPriority(Priority.toPriority("FATAL"));

if(LOG4J.isInfoEnabled()) LOG4J.info("Application started...");



I have 2 problems:
1) The statements are printed twice, but in different format:
The first one is the default one, the second one is the one I specify
0 [ApplicationServerThread] INFO root  - Application started...
20:12:37 INFO  root  - Application started...

2)As is it the log are printed on the console. Is is possible to redired
them to the application.log ???

Thanks,

Olivier





RE: javax.crypto

2001-04-11 Thread Gary Shea

Dean Parker ([EMAIL PROTECTED]) wrote:
> SV: -TagThat consists of 4 jars known collectively as  JCE (Java
> Cryptography Extension). The current version is 1.2.1.
>
> jce1_2_1.jar
> local_policy.jar
> sunjce_provider.jar
> US_export_policy.jar
>
> jce1_2_1.jar is the actual API. sunjce_provider.jar is Suns' implementation
> of their API. It contains the actual algorithms and code that does all the
> work. Offhand, I don't know of any other 3rd parties that have implemented
> the API.

Cryptix (www.cryptix.org)?  They've done some of it I think, but
I am not really up on the JCE.

Gary

>
> These files must be downloaded from Sun's website at this URL..
>
> http://www.java.sun.com/products/jce/index.html
>
> DP
>
>   -Original Message-
>   From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Van Duong
>   Sent: Wednesday, April 11, 2001 3:40 AM
>   To: Orion-Interest
>   Subject: javax.crypto
>
>
>   Hi,
>
>   Does anyone can tell me where the package javax.crypto is?
>
>   Thanks in advance,
>
>   Van Duong
>





RE: Application mapping - how do I know it from within the app?

2001-04-11 Thread elephantwalker



I 
believe that the original servlet spec allowed direct access to root of the web 
site, but these methods were deprecated for security reasons. I have been having 
this problem myself, what a wonderful solution!
 
Regards,
 
The 
Elephantwalker
 
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Johan 
  FredrikssonSent: Wednesday, April 11, 2001 9:50 AMTo: 
  Orion-InterestSubject: Re: Application mapping - how do I know it 
  from within the app?
  okey, I fígured it out... With a little 
  help.
   
  I hope this function will appear in servlet 2.3 
  version ( and why isn't orion running 2.3?? )
   
  anyways, if anyone else runs into this copy paste 
  this line :
   
  String servletPath = 
  request.getRequestURI().substring(0, 
  request.getRequestURI().indexOf(request.getServletPath()));
   
  Which will return the mapping to the root of your 
  application.
   
   
  Johan
   
   
  
- Original Message - 
From: 
Johan Fredriksson 

To: Orion-Interest 
Sent: Wednesday, April 11, 2001 4:59 
PM
Subject: Application mapping - how do I 
know it from within the app?

I'm using virtual hosts in my development to 
make sure that all links are correctly set, that is I can access the same 
app in two ways, either via
 
appname.localhost
 
or
 
localhost/appname
 
.
 
The problem is that I'm not sure how to figure 
out on a jsp page which entry point was used, and this causes problem when 
I'm trying to map my servlet, since relative paths to servlets does not seem 
to work...
 
String parsing of request.getRequestURI() seems 
like a way to start, but I'm not sure what how to write it, since in the 
future the app might be moved again to
 
appname.serviceprovider.localhost
 
vs
 
localhost/serviceprovider/appname
 
.
 
Is there a way to get pageContext return 
application context?
 
 
 
Johan


RE: javax.crypto

2001-04-11 Thread Dean Parker



That 
consists of 4 jars known collectively as  JCE (Java Cryptography 
Extension). The current version is 1.2.1.
 
jce1_2_1.jar
local_policy.jar
sunjce_provider.jar
US_export_policy.jar
 
jce1_2_1.jar is the actual API. sunjce_provider.jar is Suns' 
implementation of their API. It contains the actual algorithms and code that 
does all the work. Offhand, I don't know of any other 3rd parties that have 
implemented the API.
 
These 
files must be downloaded from Sun's website at this URL..
 
http://www.java.sun.com/products/jce/index.html
 
DP
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Van 
  DuongSent: Wednesday, April 11, 2001 3:40 AMTo: 
  Orion-InterestSubject: javax.crypto
  Hi,
   
  Does 
  anyone can tell me where the 
  package javax.crypto is? 
   
  Thanks in advance,
   
  Van 
  Duong 


Re: Problem (& solution) with ejbStore() and Oracle CLOBs

2001-04-11 Thread Dan North

This is more likely to be to do with isolation level than transactionality 
(although the two are closely related).  You might try setting:

   
 ...
   

in your orion-ejb-jar.xml.

Disclaimer: I could well be wrong, I often am!

Regards,
Dan/tastapod


At 15:48 11/04/2001 +0100, you wrote:

>Hi,
>
>I have a BMP entity bean that maps to an Oracle table with a CLOB field. I
>can read the CLOB in OK but when trying to write to it I get an 'ORA-01002:
>fetch out of sequence' error.
>
>This error can be caused by a commit being called between retrieving the
>CLOB locator with a SELECT... FOR UPDATE and trying to write to the CLOB's
>output stream.
>
>I solved this for ejbCreate() by setting the create() method's transaction
>attribute to 'Required'. However, I can't give the ejbStore() method a
>transaction attribute as it can only be called by the container.
>
>I have got around this like so:
>
>By default, ejbStore() is called by the container after every call to any
>method in the bean instance, whether or not the bean's state is changed.
>Implementing the public boolean isModified() method stops ejbStore() being
>called every time as the container first checks that true is returned by
>this method. Setting a 'Required', 'Requires New' or 'Mandatory' transaction
>attribute for all methods that set the 'modified' boolean to true seems to
>ensure that ejbStore() is now only called inside a transaction.
>
>This seems to solve the problem but I'd like to be sure that my assumptions
>are correct and that this WILL prevent ejbStore() from ever being called
>outside a transaction. Also, is it possible to set a
>transaction attribute for ejbStore()?
>
>Thanks,
>
>Paul
>
>
>
>http://www.iii.co.uk
>Interactive Investor International is a leading UK Internet personal
>finance service that provides individuals with the capability to identify,
>compare, monitor and buy online a number of financial products and services.
>
>Interactive Investor Trading Limited, a subsidiary of Interactive Investor
>International plc, is regulated by the SFA.

--
Dan North
VP Development  -  Cadrion Software Ltd  -  +44 (0)20 7440 9550

CONFIDENTIALITY
This e-mail and any attachments are confidential
and may also be privileged. If you are not the named recipient,
please notify the sender immediately and do not disclose the
contents to another person, use it for any purpose, or store
or copy the information in any medium





Re: Application mapping - how do I know it from within the app?

2001-04-11 Thread Johan Fredriksson



okey, I fígured it out... With a little 
help.
 
I hope this function will appear in servlet 2.3 
version ( and why isn't orion running 2.3?? )
 
anyways, if anyone else runs into this copy paste 
this line :
 
String servletPath = 
request.getRequestURI().substring(0, 
request.getRequestURI().indexOf(request.getServletPath()));
 
Which will return the mapping to the root of your 
application.
 
 
Johan
 
 

  - Original Message - 
  From: 
  Johan Fredriksson 

  To: Orion-Interest 
  Sent: Wednesday, April 11, 2001 4:59 
  PM
  Subject: Application mapping - how do I 
  know it from within the app?
  
  I'm using virtual hosts in my development to make 
  sure that all links are correctly set, that is I can access the same app in 
  two ways, either via
   
  appname.localhost
   
  or
   
  localhost/appname
   
  .
   
  The problem is that I'm not sure how to figure 
  out on a jsp page which entry point was used, and this causes problem when I'm 
  trying to map my servlet, since relative paths to servlets does not seem to 
  work...
   
  String parsing of request.getRequestURI() seems 
  like a way to start, but I'm not sure what how to write it, since in the 
  future the app might be moved again to
   
  appname.serviceprovider.localhost
   
  vs
   
  localhost/serviceprovider/appname
   
  .
   
  Is there a way to get pageContext return 
  application context?
   
   
   
  Johan


Re: Including jar files in my web app ?

2001-04-11 Thread Eddie
Title: SV: Including jar files in my web app ?



Hi Magnus and others ofcourse,
 
It has been a while since this issue passed by, but 
that is because we have been struggling with it since.
I am still not able to include jar files that I put 
in my WEB-INF/lib dir, particular: velocity.jar.
Also someone else in this newsgroup has been busy 
with it, on orion 1.4.7, on the same application on a different machine and has 
the same problem.
BTW: I am able to use the jar when i put it in 
orion/config/application.xml with  it works but it 
contains a static class and I need one for every application.
 Everytime I 
get the error that it can't find the class (ClassDefNotFound).
What I tried:
- Just putting them in the WEB-INF/lib dir, but it 
can't find it.
- putting the velocity.jar in other places, like in 
the root of the application.
- jar file in the WEB-INF/lib and putting the 
following tag in the orion-web.xml:
    

- and also tried 
    

- unpacking the jar and putting it in the WEB-INF/classes dir where the 
servlets are located in packages that I call through servlet ref's
- When I put the WEB-INF/lib/velocity.jar in the CLASSPATH, yes it does 
find it, but then all applications find the same velocity.jar and that doesn't 
work.!!!
- Tried to include the jar int the META-INF/application.xml:
   /opt/Orion/lib/counter.jar  but 
is than complains: 
---
Error auto-deploying application-client at velocity.jar: Unable to 
find/read assembly info for /home/development/sgs/velocity.jar 
(META-INF/application-client.xml)
The file exists and has the necessary tags, only it is empty as I don't 
know what to put in it.
- I find in the newsgroup archive, that solved the problem by starting 
orion with:
com.evermind.server.ApplicationServer insted through orion.jar
- I think I tried some more things but reallu nothing worked.
 
PLEASSE tell me how I can see where Orion looks for the jar file, as this 
problem is really driving my comletely nuts...!!
I found a lot of little things about this subject. I tried about everyting, 
but nothing helped. I lost the logic here, so hope that someone can help me out, 
here, otherwise I .
 
Eddie :(
 
 
 
 
 
 

  - Original Message - 
  From: 
  Magnus 
  Rydin 
  To: Orion-Interest 
  Sent: Thursday, April 05, 2001 11:05 
  AM
  Subject: SV: Including jar files in my 
  web app ?
  
  This is strange.. I have no problem 
  with having a couple of jars in /WEB-INF/lib 
  > -Ursprungligt meddelande- > Från: Court Demas [mailto:[EMAIL PROTECTED]] > Skickat: den 5 april 2001 00:36 > Till: 
  Orion-Interest > Ämne: Re: Including jar files in 
  my web app ? > > 
  > I just had a similar problem.  Orion saw 
  classes *either* in > WEB-INF/classes 
  > *or* in WEB-INF/lib. > 
  > My solution was to either unpack all classes into 
  > WEB-INF/classes (removing the > lib directory), or create one huge JAR file in WEB-INF/lib 
  > (removing the > 
  classes directory). > > 
  I hope there's a better solution! > 
  > court > 
  > > Eddie wrote: 
  > > > I don't seem be able 
  to tell Orion 1.4.7 te read my bla.jar > that is 
  located > > in the WEB-INF/lib ?? 
  > > > > To me it's not 
  really clear how to do that. The bla.jar is > there 
  but it > > keeps giving an ClassDefNotFound 
  error. > > I also tried it with tablib (which is 
  basically for JSP > only not ???) but 
  > > that neither worked: > 
  > --- > 
  >  
  > 
  >  
  bla > 
  >  
  /WEB-INF/lib/bla.jar 
  > > 
   > > --- > > > > What am I doing wrong ? and 
  how can I see more in detail > where is looking 
  ?? > > > > 
  A, > > Eddie > 
  > > >  > > 
  bash-2.04$ pwd > > 
  /home/development/sgs/web/WEB-INF/lib > > 
  bash-2.04$ ll > > total 428 > > -rwxr--r--    1 program  
  users  369846 Apr  4 17:01 bla.jar 
  > > bash-2.04$ > > 
  - > > 
  


SV: Slow performance with large EJB-JAR.XML file...

2001-04-11 Thread Patrik Andersson
Title: SV: Slow performance with large EJB-JAR.XML file...





Splitting into multiple ejb-jar could be a good idea considering that there has to be some functionality in that one and only ejb-jar module of yours that can be factored out to independent packages.

-Ursprungligt meddelande-
Från: Alex Paransky [mailto:[EMAIL PROTECTED]]
Skickat: den 11 april 2001 18:06
Till: Orion-Interest
Ämne: Slow performance with large EJB-JAR.XML file...



We have been putting all our beans in a single ejb-jar.xml.  However, it's
taking Orion noticably slower to deploy new changes.  I am wondering what
(if any) problems associated with splitting each bean into it's own
ejb-jar.xml and treating it as an independent module.  Any help would be
appreciated.


-AP_





Re: Management Console...

2001-04-11 Thread Johan Fredriksson



- Original Message -
From: "Chaya Ramanujam" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 4:58 PM
Subject: Management Console...


> Hi,
>
> I am new to Orion.  I am using the Management Console to deploy an EJB
> archive and a WAR file.
>
> Quick question about the console - when I first launch the console, I get
> three entries in the tree - local, ormi://localhost and ormi://
> Why are there three servers listed when I only have one running?
localhost
> and local seem to be the same - why are they listed twice in the console
and
> what does ormi imply in this context?  I can't even seem to connect to the
> ormi:// -I get an error "Invalid username/password for default()" What
does
> this mean??
>
Did you do a java -jar orion.jar -install prior to trying to connect?
Make sure to uncheck save password from the menu and try again.


> In the same vein, there's a menu item to add a server.  Does this imply
> adding another application server?  Another Orion server?
Yes, you can manage multiple app servers from one tool.

>
> Thanks for any help.
>
> --CR.
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>





JUnitEE test reload problem

2001-04-11 Thread Muly Oved

I installed JUnitEE and have the test class and servlet not part of an *.war
file but just class file on the directory, 

when I modify the test class it does not get reloaded by orion.

Did anyone managed to get the test reload working? 
Does orion check for classes modification?

Muly.




RE: Building an application

2001-04-11 Thread olivier

I had a quick look at log4J, but though it looked very complete, also bit
more difficult to use that the dumb servlet.log()...
I could not download the binaries from opensymphony.

But I when I get some time, I will have a better look at log4j anyway.

thanks.

Olivier
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dan North
Sent: 11 April 2001 13:02
To: Orion-Interest
Subject: RE: Building an application


Logging is something that has been rather overlooked in java.  The proposed
Java 1.4 contains a logging api, but in the meantime, the log4j project at
jakarta.apache.org/log4j is an excellent framework suitable for most
architectures.  We use it all the time in servlets, EJBs, taglibs, etc and
it works very well.

The OpenSymphony open source project (www.opensymphony.com) contains a
class called com.opensymphony.util.Logger in oscore.jar (you can obtain and
build this through anonymous cvs) which conveniently hides all the things
you don't need to know about log4j.  You use it like this:

import com.opensymphony.util.Logger;

public class MyClass {
   private static final Logger logger = new Logger( MyClass.class );
   ...
   public void myMethod() {
 logger.debug( "This is a debug message" );
 logger.info( "This is info" );
 logger.warn( "Guess what this is?" );
 logger.error( "Bad news" );
 logger.fatal( "REALLY bad news" );
 ...


It reads in a properties file which is described in the log4j docs, and is
accessed by
the logger.config system property, eg:

java -Dlogger.config=/path/to/my/logger.properties MyClass

which allows you to switch logging on and off, and record only certain
priorities of logging, send debug to the console and error to syslog or the
Event Logger in NT, etc.

Very clean, simple and nice to use.

Hope that helps,
Dan/tastapod

ps. I have no commercial affiliation in opensymphony, but Logger is
possibly the class I use the most anywhere in java, after java.lang.String
:o)


At 10:09 11/04/2001 +0100, you wrote:
>Thanks everyone,
>
>Switching off the "friendly" message, help me figuring out.
>
>It is now working.
>I had to modify 3 config files (instead of 2...see at the bottom of this
>mail):
>application.xml:
> 
>default-web-site.xml
> 
>server.xml
> 
>
>Does it look allright or redondant ???
>
>
>Is there a way to access a log class in Orion (is is standard to all EJB
>servers ?)
>
>Thanks again,
>
>Olivier
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR
>Sent: 11 April 2001 00:29
>To: Orion-Interest
>Subject: RE: Building an application
>
>
>Two things that might be of interest:
>
> 
> 
>
>in default-web-site.xml .  I assume that you can map an application to root
>by changing that?
>
>Turn off "friendly error messages" in Internet Explorer
>(tools->options->advanced->show friendly http error messages).
>
>A 500 could mean anything.  Once you get the stack trace you might be able
>to determine what the problem is.
>
>Scott
>
>
> >>> [EMAIL PROTECTED] 04/11/01 04:21am >>>
>Dan,
>
>The error I have is 500 (http internal server error), when I type
>http://localhost/taskforce
>If I type http://localhost, I have the orion home page.
>
>This the tree of the applications directory, once expanded by orion.
>
>D:\JAVA\ORION\APPLICATIONS
>taskforce.ear
>\---taskforce
> taskforce.war
> userEJB.jar
> +---META-INF
> application.xml
> \---taskforce
> index.html
> +---images
> +---META-INF
> \---WEB-INF
> +---classes
> |   +---net
> |   |   \---tnt
> |   |   +---user
> |   |   |   \---model
> |   |   +---util
> |   |   \---web
> |   |   +---control
> |   |   \---taglib
> |   \---org
> |   \---apache
> |   \---struts
> |   \---resources
> +---lib
> \---tlds
>
>The server.xml and default-web-site.xml have been modified as mentionned at
>the bottom of this mail.
>
>I have tried to modify the context root to "/" but it did not change.
>
>I have just noticed that you can set the root="/taskforce" in
>default-web-site.xml
>  root="/taskforce"/>
>and also in the /META-INF/application.xml of you
>ear(/taskforce)
>
>I suppose they must be the same (which is the case for me). What is the
role
>of each ?
>
>I guess there are 2 possible source of error
>1) the way I have update the server.xml and default-web-site.xml
> (default-web-site.xml)
>  root="/taskforce"/>
>
> (server.xml)
> 
>
>2) the directory structure (see above)
>
>
>Thanks,
>
>Olivier
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
>Sent: 10 April 2001 07:05
>To: Orion-Interest
>

RE: Using applets in orion

2001-04-11 Thread olivier

Hi Fredrik,

This is working for me

I put this in a jsp. The appletArchive.jar is in the same directory as the
jsp.


  


Olivier
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Fredrik Olsson
Sent: 11 April 2001 14:17
To: Orion-Interest
Subject: Using applets in orion


How do specify the path for an applet in the HTML code

- when the applet is a standalone class file
- when the applet is part of a jar archive

Whatever approach I try I have problems with the relative paths

Thankful for any hints

/Fredrik Olsson
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.






Re: Error starting HTTP server

2001-04-11 Thread Geoffrey Marshall

I bet you are trying to run Orion on a low port, reserved by root.  I 
get that problem if I DO NOT run orion as root on port 80.  My network 
guy was looking into it and I'll let you know if he comes up with a 
solution...

On Tuesday, April 10, 2001, at 02:29 PM, Ashok Banerjee wrote:

> On NT Orion is running great but on Solaris JDK1.2.2 when I do java 
> -jar orion.jar I get an error message flagging a problem with HTTP 
> initialization.
> How do I debug/trouble shoot this.
>
> Are there any debug flags?
> Cheers,
> Ash
>
>
>
> % java -jar orion.jar
> Error starting HTTP-Server: Permission denied
> Orion/1.4.5 initialized
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
>
>

--

Geoffrey W. MarshallDirector of Development
---
t e r r a s c o p ephone (415) 951-4944
54 Mint St #110   direct (415) 625-0349
San Francisco, CA  94103 fax (415) 625-0306
---




Slow performance with large EJB-JAR.XML file...

2001-04-11 Thread Alex Paransky

We have been putting all our beans in a single ejb-jar.xml.  However, it's
taking Orion noticably slower to deploy new changes.  I am wondering what
(if any) problems associated with splitting each bean into it's own
ejb-jar.xml and treating it as an independent module.  Any help would be
appreciated.

-AP_





Re: Application mapping - how do I know it from within the app?

2001-04-11 Thread Hani Suleiman

pageContext.getServletContext().getContextPath()

On Wed, 11 Apr 2001, Johan Fredriksson wrote:

> I'm using virtual hosts in my development to make sure that all links are correctly 
>set, that is I can access the same app in two ways, either via
> 
> appname.localhost
> 
> or
> 
> localhost/appname
> 
> .
> 
> The problem is that I'm not sure how to figure out on a jsp page which entry point 
>was used, and this causes problem when I'm trying to map my servlet, since relative 
>paths to servlets does not seem to work...
> 
> String parsing of request.getRequestURI() seems like a way to start, but I'm not 
>sure what how to write it, since in the future the app might be moved again to
> 
> appname.serviceprovider.localhost
> 
> vs
> 
> localhost/serviceprovider/appname
> 
> .
> 
> Is there a way to get pageContext return application context?
> 
> 
> 
> Johan
> 





Re: Management Console...

2001-04-11 Thread Hani Suleiman



On Wed, 11 Apr 2001, Chaya Ramanujam wrote:

> Hi,
> 
> I am new to Orion.  I am using the Management Console to deploy an EJB 
> archive and a WAR file.
> 
> Quick question about the console - when I first launch the console, I get 
> three entries in the tree - local, ormi://localhost and ormi://
> Why are there three servers listed when I only have one running?  localhost 
> and local seem to be the same - why are they listed twice in the console and 
> what does ormi imply in this context?  I can't even seem to connect to the 
> ormi:// -I get an error "Invalid username/password for default()" What does 
> this mean??
> 
Every time you add a server, the console will 'remember' it and so
reconnect to it when you start up. You can simply remove the extra entries
you have and just leave localhost.

> In the same vein, there's a menu item to add a server.  Does this imply 
> adding another application server?  Another Orion server?
> 
Yes, the console can browse/manage multiple servers.

Hani





Re: request.getParameter() not working under solaris?

2001-04-11 Thread Johan Fredriksson

The problem is that the instance running orion has to have correct tables
installed.

I had the same problem when loading data from the database ( swedish
language ). They got messed up on the way. So the resolution in my case was
to make sure that the shell running orion supported swedish chars.

Hope this helps.

Johan
- Original Message -
From: "Taavi Tiirik" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2001 2:51 PM
Subject: RE: request.getParameter() not working under solaris?


>
> > probably you have to mention the char-set.
> > I am not sure how you do this
>
> Specifying char-set does not help. At least, when I add
> meta tag like this:
>
> 
> 
> 
>
> It does not really matter what charset I use.
> Whenever I ask (int)request.getParameter( "text" ).charAt( 0 ) It gives
> me the very same character code 65533.
>
> Please, any ideas?
>
> with best regards,
> Taavi
>
>
> > I am experiencing strange behaviour of Orion 1.4.5 running on PC
> Solaris
> > 8
> > with jdk1.3.
> >
> > I do not get expected results when calling request.getParameter() on a
> > jsp page. If I submit certain characters like "ä" for example (ie
> > ä)
> > then request.getParameter() returns character with a code 65533.
> >
> > The same jsp page works with following configurations:
> > Orion1.4.5, Win2000, jdk 1.3
> > Tomcat3.2.1, the very same Solaris, jdk 1.3
> > Tomcat3.2.1, Win2000, jdk 1.3
> >
> >  Start of jsp page 
> >
> > 
> >
> > text="<%= request.getParameter( "text" ) %>"
> >
> > 
> > 
> > 
> > 
> >
> > 
> >
> >  End of jsp page --
> >
> > Please, I could really use your help to solve this. If I cannot get
> > orion
> > working under Solaris I will have to change application server ASAP.
> > Any thoughts are welcome.
> >
> > with best regards,
> > Taavi
>
>





Application mapping - how do I know it from within the app?

2001-04-11 Thread Johan Fredriksson



I'm using virtual hosts in my development to make 
sure that all links are correctly set, that is I can access the same app in two 
ways, either via
 
appname.localhost
 
or
 
localhost/appname
 
.
 
The problem is that I'm not sure how to figure out 
on a jsp page which entry point was used, and this causes problem when I'm 
trying to map my servlet, since relative paths to servlets does not seem to 
work...
 
String parsing of request.getRequestURI() seems 
like a way to start, but I'm not sure what how to write it, since in the future 
the app might be moved again to
 
appname.serviceprovider.localhost
 
vs
 
localhost/serviceprovider/appname
 
.
 
Is there a way to get pageContext return 
application context?
 
 
 
Johan


Management Console...

2001-04-11 Thread Chaya Ramanujam

Hi,

I am new to Orion.  I am using the Management Console to deploy an EJB 
archive and a WAR file.

Quick question about the console - when I first launch the console, I get 
three entries in the tree - local, ormi://localhost and ormi://
Why are there three servers listed when I only have one running?  localhost 
and local seem to be the same - why are they listed twice in the console and 
what does ormi imply in this context?  I can't even seem to connect to the 
ormi:// -I get an error "Invalid username/password for default()" What does 
this mean??

In the same vein, there's a menu item to add a server.  Does this imply 
adding another application server?  Another Orion server?

Thanks for any help.

--CR.
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





Problem (& solution) with ejbStore() and Oracle CLOBs

2001-04-11 Thread Paul Medcraft


Hi,

I have a BMP entity bean that maps to an Oracle table with a CLOB field. I
can read the CLOB in OK but when trying to write to it I get an 'ORA-01002:
fetch out of sequence' error. 

This error can be caused by a commit being called between retrieving the
CLOB locator with a SELECT... FOR UPDATE and trying to write to the CLOB's
output stream. 

I solved this for ejbCreate() by setting the create() method's transaction
attribute to 'Required'. However, I can't give the ejbStore() method a
transaction attribute as it can only be called by the container. 

I have got around this like so: 

By default, ejbStore() is called by the container after every call to any
method in the bean instance, whether or not the bean's state is changed.
Implementing the public boolean isModified() method stops ejbStore() being
called every time as the container first checks that true is returned by
this method. Setting a 'Required', 'Requires New' or 'Mandatory' transaction
attribute for all methods that set the 'modified' boolean to true seems to
ensure that ejbStore() is now only called inside a transaction.

This seems to solve the problem but I'd like to be sure that my assumptions
are correct and that this WILL prevent ejbStore() from ever being called
outside a transaction. Also, is it possible to set a 
transaction attribute for ejbStore()?

Thanks,

Paul



http://www.iii.co.uk 
Interactive Investor International is a leading UK Internet personal 
finance service that provides individuals with the capability to identify, 
compare, monitor and buy online a number of financial products and services.

Interactive Investor Trading Limited, a subsidiary of Interactive Investor 
International plc, is regulated by the SFA.




RE: Alternative Deployment

2001-04-11 Thread Dan North

Maybe going off on a tangent here, but why are you using apache as a web 
server?  Orion works perfectly well as a web server as well as an app 
server (and much faster and more robust).  Also, you can plug in support 
for things like php if you need them - see www.orionsupport.com for details.

You could feasibly use jBoss or TomCat as an alternative app server, or 
WebLogic if you've got tons of cash, but I would be surprised if the first 
two are as stable and reliable as orion (your mileage may of course vary), 
never mind scalable.

I haven't used apache for about 6 months now, and I have to say I don't 
really miss it :o)

Cheers,
Dan/tastapod

ps. As for official support, I believe this is something the dev team are 
looking into, but I haven't heard any formal announcements yet.  I find 
that asking around the usual channels - mailing list and irc to name a 
couple - often resolves my problems and even more often gives me new ideas.


At 11:06 11/04/2001 +0100, you wrote:
>Thanks for your input Dan,
>
>The dilemma that we face is not a question of failover. We propose to have a
>hardware loadbalancer such as local director fronting a number of apache
>servers that talk to a cluster of J2EE application servers, which in turn
>talk to a clustered database. This gives us scaleability and reliability.
>
>Our problem is that our users rely on our site being up all of the time. If
>our site is down for even a day we could pottentially to lose all our users.
>
>I understand your suggestion of using orion as a backup, but if we were to
>find a fundamental fault in the server then no matter how many orion servers
>we used we would not get away from it. And at present there is nobody
>(officially) that we could turn to for support to help resolve the issue.
>This makes company directors very nervous and with a big emphasis put on
>uptime and availability of our site they have to buy into the solution.
>
>On a simmilar note. It seems that the orion load balancer app becomes a
>single point of failiure and I have read many accounts of it being buggy and
>slow.
>
>Do you know of any way of replacing this application transparently with an
>alternative and keep session integrity? I read an old posting suggesting a
>product called FOUNDRY. Does any one have any more info on this?
>
>Thanks,
>
>Calvin
>
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Dan North
>Sent: 10 April 2001 10:57
>To: Orion-Interest
>Subject: RE: Alternative Deployment
>
>
>Following up the failover approach,

--
Dan North
VP Development  -  Cadrion Software Ltd  -  +44 (0)20 7440 9550

CONFIDENTIALITY
This e-mail and any attachments are confidential
and may also be privileged. If you are not the named recipient,
please notify the sender immediately and do not disclose the
contents to another person, use it for any purpose, or store
or copy the information in any medium





RE: Alternative Deployment

2001-04-11 Thread Ron White

Do you also have at least two connections to the Web through different ISPs?
If not then you have multiple single points of failure in your system
besides the Load balancing app. A hardware load balancer is a single point
of failure as well.

Thanks,
Ron White

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of calvin
matthews
Sent: Wednesday, April 11, 2001 6:07 AM
To: Orion-Interest
Subject: RE: Alternative Deployment


Thanks for your input Dan,

The dilemma that we face is not a question of failover. We propose to have a
hardware loadbalancer such as local director fronting a number of apache
servers that talk to a cluster of J2EE application servers, which in turn
talk to a clustered database. This gives us scaleability and reliability.

Our problem is that our users rely on our site being up all of the time. If
our site is down for even a day we could pottentially to lose all our users.

I understand your suggestion of using orion as a backup, but if we were to
find a fundamental fault in the server then no matter how many orion servers
we used we would not get away from it. And at present there is nobody
(officially) that we could turn to for support to help resolve the issue.
This makes company directors very nervous and with a big emphasis put on
uptime and availability of our site they have to buy into the solution.

On a simmilar note. It seems that the orion load balancer app becomes a
single point of failiure and I have read many accounts of it being buggy and
slow.

Do you know of any way of replacing this application transparently with an
alternative and keep session integrity? I read an old posting suggesting a
product called FOUNDRY. Does any one have any more info on this?

Thanks,

Calvin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dan North
Sent: 10 April 2001 10:57
To: Orion-Interest
Subject: RE: Alternative Deployment


Following up the failover approach,






Using applets in orion

2001-04-11 Thread Fredrik Olsson

How do specify the path for an applet in the HTML code

- when the applet is a standalone class file
- when the applet is part of a jar archive

Whatever approach I try I have problems with the relative paths

Thankful for any hints

/Fredrik Olsson
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.





RE: request.getParameter() not working under solaris?

2001-04-11 Thread Taavi Tiirik


> probably you have to mention the char-set.
> I am not sure how you do this

Specifying char-set does not help. At least, when I add
meta tag like this:





It does not really matter what charset I use.
Whenever I ask (int)request.getParameter( "text" ).charAt( 0 ) It gives
me the very same character code 65533.

Please, any ideas?

with best regards,
Taavi


> I am experiencing strange behaviour of Orion 1.4.5 running on PC
Solaris
> 8
> with jdk1.3.
> 
> I do not get expected results when calling request.getParameter() on a
> jsp page. If I submit certain characters like "ä" for example (ie
> ä)
> then request.getParameter() returns character with a code 65533.
> 
> The same jsp page works with following configurations:
> Orion1.4.5, Win2000, jdk 1.3
> Tomcat3.2.1, the very same Solaris, jdk 1.3
> Tomcat3.2.1, Win2000, jdk 1.3
> 
>  Start of jsp page 
> 
> 
> 
> text="<%= request.getParameter( "text" ) %>"
> 
> 
> 
> 
> 
> 
> 
> 
>  End of jsp page --
> 
> Please, I could really use your help to solve this. If I cannot get
> orion
> working under Solaris I will have to change application server ASAP.
> Any thoughts are welcome.
> 
> with best regards,
> Taavi






RE: Alternative Deployment

2001-04-11 Thread Hani Suleiman

Well, then don't use J2EE.

BEA support is supposed to be the best, and sure, it's pretty nice in that
if you've spent lots of money, your issue can be escalated quickly, but if
it is a real bug, it'll eventually come down to 'yes, it's a bug, it'll be
fixed in the next service pack', which is often not due for another few
weeks (by the way, this is exactly the situation I was in). I think you'll
find that there are plenty of users on this list who have deployed Orion
on a high-availability site that have been running smoothly for months
now, it's just that when it works, there's very little reason to be loud
and vocal about it.

On Wed, 11 Apr 2001, calvin matthews wrote:

> Thanks for your input Dan,
> 
> The dilemma that we face is not a question of failover. We propose to have a
> hardware loadbalancer such as local director fronting a number of apache
> servers that talk to a cluster of J2EE application servers, which in turn
> talk to a clustered database. This gives us scaleability and reliability.
> 
> Our problem is that our users rely on our site being up all of the time. If
> our site is down for even a day we could pottentially to lose all our users.
> 
> I understand your suggestion of using orion as a backup, but if we were to
> find a fundamental fault in the server then no matter how many orion servers
> we used we would not get away from it. And at present there is nobody
> (officially) that we could turn to for support to help resolve the issue.
> This makes company directors very nervous and with a big emphasis put on
> uptime and availability of our site they have to buy into the solution.
> 
> On a simmilar note. It seems that the orion load balancer app becomes a
> single point of failiure and I have read many accounts of it being buggy and
> slow.
> 
> Do you know of any way of replacing this application transparently with an
> alternative and keep session integrity? I read an old posting suggesting a
> product called FOUNDRY. Does any one have any more info on this?
> 
> Thanks,
> 
> Calvin
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Dan North
> Sent: 10 April 2001 10:57
> To: Orion-Interest
> Subject: RE: Alternative Deployment
> 
> 
> Following up the failover approach,
> 
> 
> 





Generating set methods

2001-04-11 Thread Dominic Hanlan


Hi,
I have a jsp page with the jsp:setProperty tag. How is this linked to
the remote interface of my session bean
so that it automatically generates my set method calls in the generated
page.
I have an application which has been working happily with several such
pages. I now have a new application
with a simple page and it is not generating the set method calls.
I have switched development on and looked at the code in the persistence
directory.
Is the link just in the tag i.e. class="" or is there additional information
required i.e. in the ejb-jar.xml
file. Here the remote interface is defined but it seems to have no
effect ??
Some wise words please.
/Dominic
 

begin:vcard 
n:Hanlan;Dominic
x-mozilla-html:TRUE
org:;VG24
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
note:+32 3 240 8265
x-mozilla-cpt:;-7968
fn:Dominic Hanlan
end:vcard



RE: Building an application

2001-04-11 Thread Dan North

Logging is something that has been rather overlooked in java.  The proposed 
Java 1.4 contains a logging api, but in the meantime, the log4j project at 
jakarta.apache.org/log4j is an excellent framework suitable for most 
architectures.  We use it all the time in servlets, EJBs, taglibs, etc and 
it works very well.

The OpenSymphony open source project (www.opensymphony.com) contains a 
class called com.opensymphony.util.Logger in oscore.jar (you can obtain and 
build this through anonymous cvs) which conveniently hides all the things 
you don't need to know about log4j.  You use it like this:

import com.opensymphony.util.Logger;

public class MyClass {
   private static final Logger logger = new Logger( MyClass.class );
   ...
   public void myMethod() {
 logger.debug( "This is a debug message" );
 logger.info( "This is info" );
 logger.warn( "Guess what this is?" );
 logger.error( "Bad news" );
 logger.fatal( "REALLY bad news" );
 ...


It reads in a properties file which is described in the log4j docs, and is 
accessed by
the logger.config system property, eg:

java -Dlogger.config=/path/to/my/logger.properties MyClass

which allows you to switch logging on and off, and record only certain 
priorities of logging, send debug to the console and error to syslog or the 
Event Logger in NT, etc.

Very clean, simple and nice to use.

Hope that helps,
Dan/tastapod

ps. I have no commercial affiliation in opensymphony, but Logger is 
possibly the class I use the most anywhere in java, after java.lang.String :o)


At 10:09 11/04/2001 +0100, you wrote:
>Thanks everyone,
>
>Switching off the "friendly" message, help me figuring out.
>
>It is now working.
>I had to modify 3 config files (instead of 2...see at the bottom of this
>mail):
>application.xml:
> 
>default-web-site.xml
> 
>server.xml
> 
>
>Does it look allright or redondant ???
>
>
>Is there a way to access a log class in Orion (is is standard to all EJB
>servers ?)
>
>Thanks again,
>
>Olivier
>
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR
>Sent: 11 April 2001 00:29
>To: Orion-Interest
>Subject: RE: Building an application
>
>
>Two things that might be of interest:
>
> 
> 
>
>in default-web-site.xml .  I assume that you can map an application to root
>by changing that?
>
>Turn off "friendly error messages" in Internet Explorer
>(tools->options->advanced->show friendly http error messages).
>
>A 500 could mean anything.  Once you get the stack trace you might be able
>to determine what the problem is.
>
>Scott
>
>
> >>> [EMAIL PROTECTED] 04/11/01 04:21am >>>
>Dan,
>
>The error I have is 500 (http internal server error), when I type
>http://localhost/taskforce
>If I type http://localhost, I have the orion home page.
>
>This the tree of the applications directory, once expanded by orion.
>
>D:\JAVA\ORION\APPLICATIONS
>taskforce.ear
>\---taskforce
> taskforce.war
> userEJB.jar
> +---META-INF
> application.xml
> \---taskforce
> index.html
> +---images
> +---META-INF
> \---WEB-INF
> +---classes
> |   +---net
> |   |   \---tnt
> |   |   +---user
> |   |   |   \---model
> |   |   +---util
> |   |   \---web
> |   |   +---control
> |   |   \---taglib
> |   \---org
> |   \---apache
> |   \---struts
> |   \---resources
> +---lib
> \---tlds
>
>The server.xml and default-web-site.xml have been modified as mentionned at
>the bottom of this mail.
>
>I have tried to modify the context root to "/" but it did not change.
>
>I have just noticed that you can set the root="/taskforce" in
>default-web-site.xml
>  root="/taskforce"/>
>and also in the /META-INF/application.xml of you
>ear(/taskforce)
>
>I suppose they must be the same (which is the case for me). What is the role
>of each ?
>
>I guess there are 2 possible source of error
>1) the way I have update the server.xml and default-web-site.xml
> (default-web-site.xml)
>  root="/taskforce"/>
>
> (server.xml)
> 
>
>2) the directory structure (see above)
>
>
>Thanks,
>
>Olivier
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
>Sent: 10 April 2001 07:05
>To: Orion-Interest
>Subject: Re: Building an application
>
>
>Hi Oliver,
>Last week I was plating with the same thing and I was successful with
>pretty much the same configuration that you have, except that in
>application.xml I set the context root to /
>(/). Which error are you getting ? 404? Can
>you see your .ear file unpackaged?
>regards,
>Dan
>
> > olivier wrote:
> >
> > Hi,
> >
> > I am new to Orion, and I have recently been trying to build an
> > appl

war and ear

2001-04-11 Thread Johan Fredriksson



I got the script working to build an ear file. Now 
I'd like to use the 
 
D:\orion>java -jar admin.jar 
ormi://192.168.1.123/ admin utv -deploy -file d:\orion\deployment\aller.ear 
-deploymentName aller > deploy.txt
 
command line to deploy the updated application but 
I get 
 
D:\orion>more 
deploy.txtjava.lang.StackOverflowError    
at 
com.evermind.server.ThreadState.getCurrentState(JAX)    
at 
com.evermind.server.ApplicationServerSystemProperties.getProperty(JAX)
 
and an eternal loop.
 
I'm using 
 
D:\orion>java -jar orion.jar 
-versionOrion/1.4.7 (build 10011)
 
What do I do wrong? Or is it a bug in 
1.4.7?
 
Saw in the archives that it was indeed a bug in 
1.3.8, but was solved with 1.4.5. Is the bug back in 1.4.7?
 
Johan


Re: request.getParameter() not working under solaris?

2001-04-11 Thread Santosh Kumar

probably you have to mention the char-set.
I am not sure how you do this

santosh
-Original Message-
From: Taavi Tiirik <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Date: Wednesday, April 11, 2001 3:40 PM
Subject: request.getParameter() not working under solaris?


I am experiencing strange behaviour of Orion 1.4.5 running on PC Solaris
8
with jdk1.3.

I do not get expected results when calling request.getParameter() on a
jsp page. If I submit certain characters like "ä" for example (ie
ä)
then request.getParameter() returns character with a code 65533.

The same jsp page works with following configurations:
Orion1.4.5, Win2000, jdk 1.3
Tomcat3.2.1, the very same Solaris, jdk 1.3
Tomcat3.2.1, Win2000, jdk 1.3

 Start of jsp page 



text="<%= request.getParameter( "text" ) %>"








 End of jsp page --

Please, I could really use your help to solve this. If I cannot get
orion
working under Solaris I will have to change application server ASAP.
Any thoughts are welcome.

with best regards,
Taavi









RE: Alternative Deployment

2001-04-11 Thread calvin matthews

Randy,

Thanks for the info on flashline. I have already looked there and read a
number of the reviews. That is how I stumbled across orion. My original idea
was to consider orion as the main server with JRun as a potential 'swap in'
backup. But there are so many app servers available and there isn't the time
to evaluate them all so I wanted to make sure that I had not missed any
gems.

Q. How do jboss/jetty, jboss/tomcat stand up against orion?
Q. Randy you mentioned that Oracle 8I comes with EJB technology. What
support do they provide? and with what product?

It would be nice to stick with orion, but at the end of the day the final
choice of server is not my decision and we may end up using the suggested
backup as the main server (because of the support that comes with it) and
consider orion as its backup.


Thank,

Calvin

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kemp
Randy-W18971
Sent: 09 April 2001 18:48
To: Orion-Interest
Subject: RE: Alternative Deployment


Calvin:
  There are approximately 35 servers,





RE: Alternative Deployment

2001-04-11 Thread calvin matthews

Thanks for your input Dan,

The dilemma that we face is not a question of failover. We propose to have a
hardware loadbalancer such as local director fronting a number of apache
servers that talk to a cluster of J2EE application servers, which in turn
talk to a clustered database. This gives us scaleability and reliability.

Our problem is that our users rely on our site being up all of the time. If
our site is down for even a day we could pottentially to lose all our users.

I understand your suggestion of using orion as a backup, but if we were to
find a fundamental fault in the server then no matter how many orion servers
we used we would not get away from it. And at present there is nobody
(officially) that we could turn to for support to help resolve the issue.
This makes company directors very nervous and with a big emphasis put on
uptime and availability of our site they have to buy into the solution.

On a simmilar note. It seems that the orion load balancer app becomes a
single point of failiure and I have read many accounts of it being buggy and
slow.

Do you know of any way of replacing this application transparently with an
alternative and keep session integrity? I read an old posting suggesting a
product called FOUNDRY. Does any one have any more info on this?

Thanks,

Calvin


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Dan North
Sent: 10 April 2001 10:57
To: Orion-Interest
Subject: RE: Alternative Deployment


Following up the failover approach,





request.getParameter() not working under solaris?

2001-04-11 Thread Taavi Tiirik

I am experiencing strange behaviour of Orion 1.4.5 running on PC Solaris
8
with jdk1.3.

I do not get expected results when calling request.getParameter() on a
jsp page. If I submit certain characters like "ä" for example (ie
ä)
then request.getParameter() returns character with a code 65533.

The same jsp page works with following configurations:
Orion1.4.5, Win2000, jdk 1.3
Tomcat3.2.1, the very same Solaris, jdk 1.3
Tomcat3.2.1, Win2000, jdk 1.3

 Start of jsp page 



text="<%= request.getParameter( "text" ) %>"








 End of jsp page --

Please, I could really use your help to solve this. If I cannot get
orion
working under Solaris I will have to change application server ASAP.
Any thoughts are welcome.

with best regards,
Taavi







SV: Building an application

2001-04-11 Thread Magnus Rydin
Title: SV: Building an application





Why do you include taskforce.ear as an web-application in the global application ? (application.xml) ?


> -Ursprungligt meddelande-
> Från: olivier [mailto:[EMAIL PROTECTED]]
> Skickat: den 11 april 2001 02:09
> Till: Orion-Interest
> Ämne: RE: Building an application
> 
> 
> Thanks everyone,
> 
> Switching off the "friendly" message, help me figuring out.
> 
> It is now working.
> I had to modify 3 config files (instead of 2...see at the 
> bottom of this
> mail):
> application.xml:
>   
> path="../applications/taskforce.ear" />
> default-web-site.xml
>   
> root="/taskforce"/>
> server.xml
>   
> path="../applications/taskforce.ear"/>
> 
> Does it look allright or redondant ???
> 
> 
> Is there a way to access a log class in Orion (is is standard 
> to all EJB
> servers ?)
> 
> Thanks again,
> 
> Olivier
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of 
> SCOTT FARQUHAR
> Sent: 11 April 2001 00:29
> To: Orion-Interest
> Subject: RE: Building an application
> 
> 
> Two things that might be of interest:
> 
>   
>   
> 
> in default-web-site.xml .  I assume that you can map an 
> application to root
> by changing that?
> 
> Turn off "friendly error messages" in Internet Explorer
> (tools->options->advanced->show friendly http error messages).
> 
> A 500 could mean anything.  Once you get the stack trace you 
> might be able
> to determine what the problem is.
> 
> Scott
> 
> 
> >>> [EMAIL PROTECTED] 04/11/01 04:21am >>>
> Dan,
> 
> The error I have is 500 (http internal server error), when I type
> http://localhost/taskforce
> If I type http://localhost, I have the orion home page.
> 
> This the tree of the applications directory, once expanded by orion.
> 
> D:\JAVA\ORION\APPLICATIONS
> taskforce.ear
> \---taskforce
>   taskforce.war
>   userEJB.jar
> +---META-INF
>   application.xml
> \---taskforce
>   index.html
> +---images
> +---META-INF
> \---WEB-INF
> +---classes
> |   +---net
> |   |   \---tnt
> |   |   +---user
> |   |   |   \---model
> |   |   +---util
> |   |   \---web
> |   |   +---control
> |   |   \---taglib
> |   \---org
> |   \---apache
> |   \---struts
> |   \---resources
> +---lib
> \---tlds
> 
> The server.xml and default-web-site.xml have been modified as 
> mentionned at
> the bottom of this mail.
> 
> I have tried to modify the context root to "/" but it did not change.
> 
> I have just noticed that you can set the root="/taskforce" in
> default-web-site.xml
>   
> root="/taskforce"/>
> and also in the /META-INF/application.xml of you
> ear(/taskforce)
> 
> I suppose they must be the same (which is the case for me). 
> What is the role
> of each ?
> 
> I guess there are 2 possible source of error
> 1) the way I have update the server.xml and default-web-site.xml
>   (default-web-site.xml)
>   
> root="/taskforce"/>
> 
>   (server.xml)
>   
> path="../applications/taskforce.ear" />
> 
> 2) the directory structure (see above)
> 
> 
> Thanks,
> 
> Olivier
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
> Sent: 10 April 2001 07:05
> To: Orion-Interest
> Subject: Re: Building an application
> 
> 
> Hi Oliver,
> Last week I was plating with the same thing and I was successful with
> pretty much the same configuration that you have, except that in
> application.xml I set the context root to /
> (/). Which error are you getting 
> ? 404? Can
> you see your .ear file unpackaged?
> regards,
> Dan
> 
> > olivier wrote:
> >
> > Hi,
> >
> > I am new to Orion, and I have recently been trying to build an
> > application (ear) with not much success. Basically, Orion seems to
> > deploys all the components, but I can't get the first page 
> to open on
> > the browser.
> > I am using struts as a framework, with the fix I have seen on this
> > site (remove the dtd from the jar and put them under classes), and
> > struts does not seem to be the problem now (especially 
> since my first
> > page is an index.html)
> >
> > The ear is in orion\applications
> >
> > userEjb.jar
> > taskforce.war
> > \META-INF
> > application.xml
> >
> > source of application.xml for the ear
> > 
> >   taskforce
> >   Application description
> >   
> > 
> >   taskforce.war
> >   /taskforce
> > 
> >   
> >   
> > userEjb.jar
> >   
> > 
> >
> > I put this in default-web-site
> >  
> > root="/taskforce"/>
> > this in server.xml
> >  
> path="../applications/taskforce.ear" />
> >
> >
> > I have tried with the news.ear coming with orion, but same problem.
> >
> > Any clue?
> >
> > Thanks,
> >
> > olivier
> 
> 
> 
> 



RE: Building an application

2001-04-11 Thread olivier

Thanks everyone,

Switching off the "friendly" message, help me figuring out.

It is now working.
I had to modify 3 config files (instead of 2...see at the bottom of this
mail):
application.xml:

default-web-site.xml

server.xml


Does it look allright or redondant ???


Is there a way to access a log class in Orion (is is standard to all EJB
servers ?)

Thanks again,

Olivier

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of SCOTT FARQUHAR
Sent: 11 April 2001 00:29
To: Orion-Interest
Subject: RE: Building an application


Two things that might be of interest:




in default-web-site.xml .  I assume that you can map an application to root
by changing that?

Turn off "friendly error messages" in Internet Explorer
(tools->options->advanced->show friendly http error messages).

A 500 could mean anything.  Once you get the stack trace you might be able
to determine what the problem is.

Scott


>>> [EMAIL PROTECTED] 04/11/01 04:21am >>>
Dan,

The error I have is 500 (http internal server error), when I type
http://localhost/taskforce
If I type http://localhost, I have the orion home page.

This the tree of the applications directory, once expanded by orion.

D:\JAVA\ORION\APPLICATIONS
taskforce.ear
\---taskforce
taskforce.war
userEJB.jar
+---META-INF
application.xml
\---taskforce
index.html
+---images
+---META-INF
\---WEB-INF
+---classes
|   +---net
|   |   \---tnt
|   |   +---user
|   |   |   \---model
|   |   +---util
|   |   \---web
|   |   +---control
|   |   \---taglib
|   \---org
|   \---apache
|   \---struts
|   \---resources
+---lib
\---tlds

The server.xml and default-web-site.xml have been modified as mentionned at
the bottom of this mail.

I have tried to modify the context root to "/" but it did not change.

I have just noticed that you can set the root="/taskforce" in
default-web-site.xml

and also in the /META-INF/application.xml of you
ear(/taskforce)

I suppose they must be the same (which is the case for me). What is the role
of each ?

I guess there are 2 possible source of error
1) the way I have update the server.xml and default-web-site.xml
(default-web-site.xml)


(server.xml)


2) the directory structure (see above)


Thanks,

Olivier
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
Sent: 10 April 2001 07:05
To: Orion-Interest
Subject: Re: Building an application


Hi Oliver,
Last week I was plating with the same thing and I was successful with
pretty much the same configuration that you have, except that in
application.xml I set the context root to /
(/). Which error are you getting ? 404? Can
you see your .ear file unpackaged?
regards,
Dan

> olivier wrote:
>
> Hi,
>
> I am new to Orion, and I have recently been trying to build an
> application (ear) with not much success. Basically, Orion seems to
> deploys all the components, but I can't get the first page to open on
> the browser.
> I am using struts as a framework, with the fix I have seen on this
> site (remove the dtd from the jar and put them under classes), and
> struts does not seem to be the problem now (especially since my first
> page is an index.html)
>
> The ear is in orion\applications
>
> userEjb.jar
> taskforce.war
> \META-INF
> application.xml
>
> source of application.xml for the ear
> 
>   taskforce
>   Application description
>   
> 
>   taskforce.war
>   /taskforce
> 
>   
>   
> userEjb.jar
>   
> 
>
> I put this in default-web-site
>   root="/taskforce"/>
> this in server.xml
>  
>
>
> I have tried with the news.ear coming with orion, but same problem.
>
> Any clue?
>
> Thanks,
>
> olivier







javax.crypto

2001-04-11 Thread Van Duong



Hi,
 
Does 
anyone can tell me where the 
package javax.crypto is? 
 
Thanks 
in advance,
 
Van 
Duong 


Re: During development, how to allow only a couple of ips,includingmylocal system, to view the site?

2001-04-11 Thread Daniel Lopez

Hey Kev,

It seems that after that long discussion on the JSP list, each one ended
up building his own MVC framework, remember that? ;) At the beginning, I
also integrated this feature inside my framework but then I realised
that this way I wouldn't be able to re-use it for other applications, or
even for static content. That's the reason why I ended up creating a
filter. But there are some things I don't like about filters: They have
to be configured in the web.xml and they are not easily integrated with
other parts of the framework, unless you share objetcs through the
context or something simliar. What I would love to have is a "feedback"
mechanism to provide the containers with some extra
information/configuration that is not included in the web.xml. This way
I could just configure everything in my own framework configuration file
and then I would give the feedback to the container. Otherwise, if you
use filters for logging, authentication, IP filtering... your web.xml
ends up being extra-large and having the application configured in two
places is error-prone. But well, such a feedback API is not in place
so... ;)
Talking about the IP filter, if you are interested, I can show you my
DTD and even some code as it is nothing extra-complex.
Regards,
Dan


Kevin Duffey wrote:
> 
> Hey Daniel,
> 
> That is a great idea..DUH! ;) I am using my own simple MVC framework, and I
> should just put in a feature in the web.xml that gets read in as an init
> parameter that designates ips that are allowed/now allowed to access the
> application. Its simple enough to do.
> 
> Thanks.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez
> Sent: Monday, April 09, 2001 3:28 AM
> To: Orion-Interest
> Subject: Re: During development, how to allow only a couple of
> ips,including my local system, to view the site?
> 
> Hi Kev,
> 
> I had a similar problem but for my production applications. I wanted my
> solution to be flexible and server independent so what I did was create
> a servlet filter, as someone else has already suggested. I've had it for
> production for almost a month and so far so good.
> I have to admit that I went a little further down the road and I allowed
> to specify the IP/hostnames to be allowed denied through an xml file
> that can be read from a file, a URL or a database. That way I got
> maximum flexibility.
> These are the links that I used to create my filter:
> http://developer.java.sun.com/developer/technicalArticles/Servlets/servletap
> i2.3\
> http://www.orionserver.com/tutorials/filters/
> 
> I hope this helps,
> Dan
> 
> Kevin Duffey wrote:
> >
> > Hi all,
> >
> > I would like to block out ALL ips from viewing my site (using my static
> ip)
> > except for a few ips, which are from co-workers over the internet. Is this
> > possible? If so, how? I read in the orion-web.xml.html file about
> ip-access
> > tag, and when I tried it, it did block off all ips. But when I added when
> to
> > allow it, such as "localhost" or my direct IP, sometimes it wouldn't allow
> > it, and other times the browser sat and spun for about 5 minutes, then
> > reported a time out.
> >
> > Thanks.
> 
> --
> ---
> Daniel Lopez Janariz ([EMAIL PROTECTED])
> Web Services
> Computer Center
> Balearic Islands University
> ---

-- 
---
Daniel Lopez Janariz ([EMAIL PROTECTED])
Web Services
Computer Center
Balearic Islands University
---