Problems with auto-deploy.

2001-12-17 Thread JoseMa



 Hi for all,

 I've 
some applications in one Orion server. One of these applications only have a EJB 
modules and the others only have WAR modules. The war application connect to EJB 
application for use some methods through jndi properties.

  My problem is 
the next:

  WhenI 
modify some method of EJB and I rebuild the ear file and deploy the new ear in 
orion, the war application not detect this changes until I restart the server. I 
read some information about the auto-deploy and I mean that is not necessary 
restart the server. 

  What is the 
problem? Have I forgotten anything?

  
Thanks,




Re: Topic: Weird behaviour with jsp:forward and jsp:param

2001-12-17 Thread Giuseppe Galli

Hi Bernard, you are right: we cannot mix variables with static content.

try:
jsp:forward page=%=nextPage%
jsp:param name=message value=%=The result was  +result%/
/jsp:forward

This is the message from resin:
/0.jsp:13: interpolated runtime values are forbidden by the JSP spec at
`The result was %=result%'
while tomcat 3.5.1 (or its jasper compiler) needs \ chars to escape 
jsp:param name=message value=%=\The result was \ +result%/
HTH
Pino

- Original Message -
From: Bernard Choi
To: Orion-Interest
Sent: Monday, December 17, 2001 5:37 AM
Subject: Topic: Weird behaviour with jsp:forward and jsp:param


I'm running Orion 1.5.3

Wanted to ask if anyone has insight into the following.

I'm trying to do a forward with a parameter. The parameter is something like
a message string.

The following does not work.

%
String result = unsucessful; // retrieved from external source...
hardcoded for example's sake

%
jsp:forward page=%=nextPage%
jsp:param name=message value=The result was %=result%/ // the
%=result% is part of the value tag.
/jsp:forward

I've managed to deduce that the error is in the param value. Apparently, we
cannot mix variables with static values inside the value parameter.

I've managed to get it working by doing this...

%
String result = unsucessful; // retrieved from external source...
hardcoded for example's sake
String message = The result was  + result;
%
jsp:forward page=%=nextPage%
jsp:param name=message value=%=message%/ // there is only
%=message% in the value tag.
/jsp:forward


My question is, is this a bug or is it supposed to be this way ? Can we mix
the value parameters ?





System.exit(0)

2001-12-17 Thread erik

Hi Folks,
I try to exit Orion via System.exit() from within the running
application server. This works fine. My problem is: This works only fine
after Orion has completely initialized and says Orion initialized on
the console. I do start some services within the initialize phase of
Orion and in some cases I want Orion to stop straight away and exit the
VM before finish initializing.
How can I tell Orion to stop initializing and shut down?
many greets to you
Erik Zimmermann


begin:vcard 
n:Zimmermann;Erik
tel;fax:0221 95574-29
tel;work:0221 95574-26
x-mozilla-html:FALSE
org:ixmid Software Technologie GmbH;Softwareentwicklung
adr:;;Eichendorfstr. 32;Köln;;50825;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Erik Zimmermann
end:vcard



Re: System.exit(0)

2001-12-17 Thread Lachezar Dobrev

   Try removing shutdown hooks.
   That may however result in data loss, desync and so on.

   Lachezar

 Hi Folks,
 I try to exit Orion via System.exit() from within the running
 application server. This works fine. My problem is: This works only fine
 after Orion has completely initialized and says Orion initialized on
 the console. I do start some services within the initialize phase of
 Orion and in some cases I want Orion to stop straight away and exit the
 VM before finish initializing.
 How can I tell Orion to stop initializing and shut down?
 many greets to you
 Erik Zimmermann
 





Automated reply from rvirkus@www.scaraboo.com

2001-12-17 Thread rvirkus

Sehr geehrte Damen und Herren,
ich befinde mich vom 18.12.2001 bis 04.01.2002 im Urlaub.
Herr Ochotnicki übernimmt in dieser Zeit meine Aktivitäten.
Bitte senden Sie Ihre E-Mail an [EMAIL PROTECTED]

Vielen Dank
Robert Virkus
Director Mobile Solutions
-
scaraboo GmbH
Georg-Wulf-Str. 4-6
28199 Bremen
-
www.scaraboo.de
[EMAIL PROTECTED]
-
Telefon  +49 421-5967-549
Mobil+49 171-3531 635
Fax  +49 421 5967-576




Re: System.exit(0)

2001-12-17 Thread Namor Taror

How do you start your services before orion has finished its init phase. 
What are those services? servlets or ejbs? I have marked my servlet to be 
loaded on start-up but it happens after the initialization.

Roman


From: erik [EMAIL PROTECTED]
Reply-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: System.exit(0)
Date: Mon, 17 Dec 2001 13:11:06 +0100

Hi Folks,
I try to exit Orion via System.exit() from within the running
application server. This works fine. My problem is: This works only fine
after Orion has completely initialized and says Orion initialized on
the console. I do start some services within the initialize phase of
Orion and in some cases I want Orion to stop straight away and exit the
VM before finish initializing.
How can I tell Orion to stop initializing and shut down?
many greets to you
Erik Zimmermann
 e.zimmermann.vcf 




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





CMP Mapping

2001-12-17 Thread Ed Brown



Monday, 14:01

I have a field in the database that is named LAST_MODIFIED_DATE.

In my bean, the field is named lastModifiedDate.

The ejb-jar.xml entry is:

  cmp-field
field-namelastModifiedDate/field-name
  /cmp-field

The orion-ejb-jar.xml file entry is:

cmp-field-mapping name=lastModifiedDate 
persistence-name=LAST_MODIFIED_DATE
 properties /
/cmp-field-mapping

When I try to access the bean, the following exception is thrown:

com.evermind.server.rmi.OrionRemoteException: Database error: ORA-00904: invalid 
column name

at 
MessagesHome_EntityHomeWrapper46.findExistingEntity(MessagesHome_EntityHomeWrapp
er46.java:54)
at 
MessagesHome_EntityHomeWrapper46.findByPrimaryKey(MessagesHome_EntityHomeWrapper
46.java:306)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind._dh._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)
at connection to localhost/127.0.0.1 as admin

at com.evermind._cd.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(Unknown 
Source)
at com.evermind._cd.invokeMethod(Unknown Source)
at com.evermind._dn.invoke(Unknown Source)
at com.evermind._sa.invoke(Unknown Source)
at __Proxy0.findByPrimaryKey(Unknown Source)
at cmptest.TestMessages.findByPrimaryKey(TestMessages.java:166)
at cmptest.TestMessages.main(TestMessages.java:1158)

Nested exception is:
java.sql.SQLException: ORA-00904: invalid column name

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1330)
at 
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:614)
at 
oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1600)
at 
oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement.java:1758)
at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:180
7)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement
.java:332)
at 
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.
java:283)
at com.evermind._lm.executeQuery(Unknown Source)
at com.evermind._lm.executeQuery(Unknown Source)
at 
Messages_EntityBeanWrapper43.loadState(Messages_EntityBeanWrapper43.java:6576)
at 
MessagesHome_EntityHomeWrapper46.findExistingEntity(MessagesHome_EntityHomeWrapp
er46.java:34)
at 
MessagesHome_EntityHomeWrapper46.findByPrimaryKey(MessagesHome_EntityHomeWrapper
46.java:306)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind._dh._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)
at connection to localhost/127.0.0.1

==

So what is the cause and hwo can I get around this?


Ed Brown


_
This mail sent via toadmail.com, web e-mail @ ToadNet - want to go fast?
http://www.toadmail.com




RE: Very Long Deployment Time

2001-12-17 Thread Peter Dunn



I've 
used delegates for the implementation logic from the EJB classes and created 
abatch file that re-packages the delegate classes into the .jar file. It 
takes less than 5 seconds for redeployment, only when I've changed my interface 
do I redeploy the EJB, I've also done something similiar on the web side 
of things minus the delegate bit. So my deployment looks something like 
this.

ejb 
MyClassDelegate package-name
5 
seconds
web MyClassServlet 
package-name
2-4 
seconds

were 
ejb and web are the names of my batch files.

MyClassEJB
...
 
public void doSomething()
 
{
 delegate.doSomething();
 
}
}

  -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 deployinga 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: Unsubscribe

2001-12-17 Thread Dan Hoyal



Please 
remove me as well. I've also tried several times.

Thank 
you,
Dan

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Matthew 
  PullenSent: Monday, December 17, 2001 7:11 AMTo: 
  Orion-InterestSubject: Unsubsribe
  Even i tried to unsubscribe at the 
  specifed address.It did not work.Please remove my name from the list.
  
  Thank 
  you,
  
  Matthew


RE: System.exit(0)

2001-12-17 Thread Trujillo, Kris


I was faced with a similar problem .. had an executable jar that would get
started before the deployment of the EJBs had finished.  The only thing I
could come up with was to check if the HTTP listener was up.  I've noticed
that the HTTP listener seems to be the last thing started .. unless one of
the war files has a problem deploying then the listener will not be started.

If you find something better please share it.

-Original Message-
From: Namor Taror [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 17, 2001 11:34 AM
To: Orion-Interest
Subject: Re: System.exit(0)


How do you start your services before orion has finished its init phase. 
What are those services? servlets or ejbs? I have marked my servlet to be 
loaded on start-up but it happens after the initialization.

Roman


From: erik [EMAIL PROTECTED]
Reply-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: System.exit(0)
Date: Mon, 17 Dec 2001 13:11:06 +0100

Hi Folks,
I try to exit Orion via System.exit() from within the running
application server. This works fine. My problem is: This works only fine
after Orion has completely initialized and says Orion initialized on
the console. I do start some services within the initialize phase of
Orion and in some cases I want Orion to stop straight away and exit the
VM before finish initializing.
How can I tell Orion to stop initializing and shut down?
many greets to you
Erik Zimmermann
 e.zimmermann.vcf 




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





RE: Very Long Deployment Time

2001-12-17 Thread The elephantwalker



It 
shouldn't take this long. So there is some problem. Make sure that you have 
enough memory, and you aren't paging during the deploy.

I do 
not use jdeveloper to deploy applications during development. I use ant. It 
could be there is some hangup with jdeveloper during the deploy. 


Also, 
separate your ejb entity beans in ejb.jar's from your session ejb.jar's. The 
entity beans do not often change, but the session ejb.jar's do change all the 
time. you can copy the ejb.jar for your session beans directly to your 
enterprise deployment directory (created during the unjaring of the ear file), 
and oc4j/orion will redeploy this jar file, while leaving the other jar files 
alone.

regards,

the 
elephantwalker
www.elephantwalker.com


  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Gustavo 
  CombaSent: Monday, December 17, 2001 8:34 AMTo: 
  Orion-InterestSubject: Very Long Deployment 
  Time
  Hello,
  
   I'm deployinga 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 deployinga 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


How do you shut down orion after it's initialized

2001-12-17 Thread James Beeson


How do you shut down orion after it's initialized?
I've tried several commands, but I can't get any to work.


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





Re: How do you shut down orion after it's initialized

2001-12-17 Thread Chris Callaghan

Make sure you have removed deactivated=true from the admin user in 
config/principals.xml, then use:
java -jar admin.jar ormi://localhost:23791/ admin 123 -shutdown

James Beeson wrote:


 How do you shut down orion after it's initialized?
 I've tried several commands, but I can't get any to work.


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