JSP Compilation

2002-01-03 Thread Rice, Ted

How can one call Orion's built in JSP Compiler 
to do pre-compilation of JSPs? 

I know other applicaiton server's, such as Tomcat 
and WL, distribute and support external JSP Compilation. 
Hopefully, Orion does as well. 

Thanks, 

Ted Rice 




RE: Re: Very Long Deployment Time

2001-12-19 Thread Rice, Ted



you will need to download jikes
from their site and then add a element
in ./orion/config/server.xml similar to:
 

<compiler executable="c:/java/jikes/bin/jikes.exe" classpath="c:/java/jdk1.3.1/jre/lib/rt.jar"/>
./ted 

  -Original Message-From: Gustavo Comba 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, December 19, 2001 
  8:04 AMTo: Orion-InterestSubject: Re: Re: Very Long 
  Deployment Time
  Hello,
   
      Thanks for your answer. I've 
  tryed almost everything! I've added more RAM to my AppServer, now I'm 
  deploying directly from the console, using 
   
  java.exe  -jar admin.jar ormi://ias/ admin 
  x -deploy -file C:\jdev\InfinitumDoor\AppIntranet\IntranetApplication.ear 
  -deploymentName IntranetApplication
   
      but it's taking very long 
  time.
   
      What I don't know is how to 
  use "jikes". I've alwas used the standard Java distribution from Sun. Any 
  clue?
   
      Thanks in 
advance,
   
          
      Gustavo Comba
  
- Original Message - 
From: 
Rice, Ted 

To: Orion-Interest 
Sent: Monday, December 17, 2001 11:50 
PM
Subject: RE: Very Long Deployment 
Time

try using jikes for your compiler inside
of orion. we experience similar delays in
deployment and using jikes cut deployment
time to about 10% of the original time.
 
./ted 

  -Original Message-From: Gustavo Comba 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 17, 
  2001 8:34 AMTo: Orion-InterestSubject: Very Long 
  Deployment Time
  Hello,
   
      I'm deploying a 
  little project with a Client Application Module and a EJB Module with 
  several EJB (about 30 Entity and 5 Session Beans). I'm using JDeveloper 9i 
  Release Cantidate to develop/deploy my project.
   
      My project compiles very 
  fast, but when I do the deployment, it take a very long time (about 10 
  minutes). I'm debugging now, and I'm deploying continously, and it's very 
  anoying!
   
      There is something I can 
  do to accelerate the deployment proccess? Can I copy the .ear file 
  directly into the "applications" directory and start the server again? 
  Help me please!
   
      Thanks in 
  advance,
   
          
      Gustavo 
Comba


RE: Very Long Deployment Time

2001-12-17 Thread Rice, Ted



try using jikes for your compiler inside
of orion. we experience similar delays in
deployment and using jikes cut deployment
time to about 10% of the original time.
 
./ted 

  -Original Message-From: Gustavo Comba 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, December 17, 2001 
  8:34 AMTo: Orion-InterestSubject: Very Long Deployment 
  Time
  Hello,
   
      I'm deploying a little 
  project with a Client Application Module and a EJB Module with several EJB 
  (about 30 Entity and 5 Session Beans). I'm using JDeveloper 9i Release 
  Cantidate to develop/deploy my project.
   
      My project compiles very fast, 
  but when I do the deployment, it take a very long time (about 10 minutes). I'm 
  debugging now, and I'm deploying continously, and it's very 
  anoying!
   
      There is something I can do to 
  accelerate the deployment proccess? Can I copy the .ear file directly into the 
  "applications" directory and start the server again? Help me 
  please!
   
      Thanks in 
advance,
   
          
      Gustavo Comba


Auto Class Reloading

2001-10-12 Thread Rice, Ted

i have read, and re-read, all
of the postings on class 
(re)loading in relation to deployed
applications inside orion. yet, i still
have some unanswered questions.

in my past experience, compiling classes
to the ./WEB-INF/classes directory and
touching either the web.xml or application.xml
file will cause the new classes to be
picked up and used. all objects that are
in session are serialized and available
after the application is re-deployed without
having to re-start orion.

however, i am now experiencing a situation
wherein i'm losing my session information and
being forced to re-login to my application to
continue development.

is there a set of criteria or implemenation details
i'm missing. all objects are obviously serializable
or they would not be able to be stored in a session. 
yet, my latest encounters with class reloading makes
me doubt this assertion.

any ideas/paths i can explore to making my
development life less hell-like?

thanks,

ted rice





[Repost]: Class Reloading in Web-Apps

2001-08-06 Thread Rice, Ted



What are the capabilites of Orion
in terms of class reloading, in
relation to a deployed web application,
while the server is running.

If you change a java file, and recompile
it to the ./WEB-INF/classes directory,
should Orion not detect the change and
use the new class? Are there any
restrictions on whether the class is
reloaded depending upon it's serialization
to a session?

Thanks.

./ted 




RE: Concurrency

2001-07-27 Thread Rice, Ted

you are working with a non-synchronized
collection. if you get an iterator and
attempt to modify the backing list with
multiple threads you will receive a
ConcurrentModificationException. synchronize
on the the iterator or list.

./ted 

-Original Message-
From: Lopez Esteban [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 3:44 AM
To: Orion-Interest
Subject: Concurrency


> Hi
> Please help me. I am working with a stateless EJB and I have about 250
> clients which has to use this EJB.
> When the clients access to the SLEJB concurretly, the Orion crash, and the
> server.log shows:
> 
> 7/4/01 6:45 PM Internal server error
> java.util.ConcurrentModificationException
>   at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
>   at java.util.AbstractList$Itr.next(Unknown Source)
>   at java.util.AbstractCollection.remove(Unknown Source)
>   at com.evermind.server.rmi.RMIServer.gb(JAX)
>   at com.evermind.server.rmi.ba.run(JAX)
>   at com.evermind.util.f.run(JAX)
> 
> Anyone knows something about this.
> Thanks!
> 
> Esteban.
> 




Class Reloading in Web-Apps

2001-07-27 Thread Rice, Ted


What are the capabilites of Orion
in terms of class reloading, in
relation to a deployed web application,
while the server is running.

If you change a java file, and recompile
it to the ./WEB-INF/classes directory,
should Orion not detect the change and
use the new class? Are there any
restrictions on whether the class is
reloaded depending upon it's serialization
to a session?

Thanks.

./ted 




java.security.AccessControlException from Servlet

2001-07-19 Thread Rice, Ted

Has anyone experienced an AccessControlException
while creating and binding an RMI Server from a
Servlet. The particular action it fails on seems
to be random. Sometimes, it's setting a Property
and at other times it fails when binding the RMI
Server to a port.

Here is my java.policy file:

grant {
permission java.security.AllPermission;
};

and i'm setting the policyfile in code

String policyFile = Config.nlRoot.value() + "/conf/common/java.policy";
Security.setProperty("java.security.policy", policyFile);
if (System.getSecurityManager() == null){
System.setSecurityManager(new java.rmi.RMISecurityManager());
}

and i'm setting the codebase in code

String codebase = "file://" + Config.nlRoot.value() + "/WEB-INF/classes/";
Security.setProperty("java.rmi.server.codebase", codebase);

however, an AccessControlException inevitably occurs during
the creation of the RMI Server. I'm being a bit vague here
because the manifestation of my issue is random.

Thanks,

Ted Rice