RE: deployment tool

2001-11-20 Thread DeVincentiis Giustino

Hi,
you can try Ant (http://jakarta.apache.org/ant/)

Giustino

  -Original Message-
  From: kamsky@yahoo [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, November 20, 2001 6:54 AM
  To: Orion-Interest
  Subject: deployment tool
  
  
  Hi,
  
  Is there a deployment tool that is easier than j2sdkee1.3?
  What is it?
  
  Thanks
  
  
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
  
  




RE: JUnitee

2001-11-16 Thread DeVincentiis Giustino

Hello Tim,

I have junitee working and do not remember any particular hint. I followed
the instructions at http://junitee.sourceforge.net/tutorial.html and all
works fine. No code added to TestServlet, the only change I have made was to
use a TestForm JSP to dynamically load the package under testing.

Giustino De Vincentiis 

  -Original Message-
  From: Tim Pouyer [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, November 15, 2001 11:25 PM
  To: Orion-Interest
  Subject: JUnitee
  
  
  Anyone know how to set up junitee on orion.  I have seen it 
  working on
  orion before so I know it can work.  I have junit.jar and 
  junitee.jar in
  my orion/lib directory and have set up my TestForm.html in my web
  module.  I have compiled the new TestServlet with the dynamic class
  loader and have set up my ejb-ref's in my web.xml file but i keep
  getting an error that says 'java:comp/env' only available 
  from within a
  J2ee container  when i try to test my ejb.  Is there a 
  property that I
  am supposed to be setting up somewhere or do I have to add 
  some code to
  the TestServlet?  I am at a loss on this one.  Please help.
  Thanks,
  Tim
  
  
  
  




FW: OC4J and Oracle 9i AS product version mappings

2001-09-14 Thread DeVincentiis Giustino



No, it 
isn't 1.0.5, it should be1.5.0.

Bye
Giustino De Vincentiis

  -Messaggio originale-Da: GUNDA, Satish / RSAIFS - 
  IOM [mailto:[EMAIL PROTECTED]]Inviato: venerdì 14 settembre 
  2001 16.39A: Orion-InterestOggetto: RE: OC4J and Oracle 
  9i AS product version mappings
  Thanks Paolo. 
  
  Is 
  it Orion 1.0.5? On the Orion site, I only see versions 1.4.5 (released in 
  January) and 1.5.2 (released in June). 1.0.5 seems to be quite an old 
  release.
  
  Thanks
  Satish
  
  -Original Message-From: Paolo Ramasso 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, September 14, 2001 
  3:22 PMTo: [EMAIL PROTECTED]Subject: Re: OC4J and 
  Oracle 9i AS product version mappingsTHIS MESSAGE ORIGINATED ON THE INTERNET - Please read the detailed 
  disclaimer 
  below.--ciao 
  oc4j v1.0.2.2.1 is based on orion 1.0.5 plus a set of bug fixes 
  oc4j v1.0.2.2 is based on orion 1.0.5 but about the next oc4j releases 
  there will be no more an exact match. ciao Paolo 
  "GUNDA, Satish / RSAIFS - IOM" wrote: 
   
Hi, 
We have a license for Oracle 9iAS. So we 
intend to use Orion server as part of Oracle 9iAS. 
I understand Orion is at version 1.5.2 
now. And 9iAS is at v1.0.2.2.1. Can somebody tell me which version of Orion 
is bundled with 9iAS 1.0.2.2.1 and which version is bundled with 9iAS 
v1.0.2.2. 
Thanks Satish 
P.S - I know this is not an Oracle 
discussion forum, but was not sure if I can get this info from 
Oracle. --The 
  following message has been automatically added by the mail gateway to comply 
  with a Royal  Sun Alliance IT Security requirement:As this email 
  arrived via the Internet you should be cautious about its origin and content. 
  Replies which contain sensitive information or legal/contractual obligations 
  are particularly vulnerable. In these cases you should not reply unless you 
  are authorised to do so, and adequate encryption is employed.If you 
  have any questions, please speak to your local desktop support team or IT 
  security 
  contact.--


R: Orion-Struts (more question)

2001-04-12 Thread DeVincentiis Giustino

In your code fragment there's no "bean:message" tags. Anyway, I've got the
following line in a jsp that works fine:

html:link page="/ricercaSoggetto.do"bean:message
key="index.soggetto.ricerca"//html:link

You need the following init-param in the ActionServlet configuration
(web.xml):

init-param
  param-nameapplication/param-name
  param-valueApplicationResources/param-value
/init-param

and you need, of course, the key "index.soggetto.ricerca" defined in the
file "ApplicationResources.properties" that has to be in
yourWebDirectory/WEB-INF/classes

Good luck!
Giustino De Vincentiis
 

-Messaggio originale-
Da: olivier [mailto:[EMAIL PROTECTED]]
Inviato: gioved 12 aprile 2001 13.13
A: Orion-Interest
Oggetto: Orion-Struts (more question)


Hi,

Thanks to the trick I have seen on this site about how to make struts
working with Orion, I thought that was all good...not exactly.
I can use most of tags I need, except the bean:message one:
html:link
page="/editRegistration.do?action=create"Registration/html:link

(The trick is to remove the dtd from the struts.jar and put them in the
WEB-INF/classes of the application)

This throws the following exception:
javax.servlet.jsp.JspException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at org.apache.struts.util.RequestUtils.message(RequestUtils.java:285)

Any success from someone ??

Thanks,

Olivier






R: EJB 2.0

2001-02-15 Thread DeVincentiis Giustino

It seems to me that Orion does not yet support EJB-QL neither EJB 2.0
many-to-many relationships.
However, if you are interested in EJB 2.0 and finders, you may have a look
at http://www.orionsupport.com/.

Giustino De Vincentiis

-Messaggio originale-
Da: Marc Rabil [mailto:[EMAIL PROTECTED]]
Inviato: gioved 15 febbraio 2001 16.08
A: Orion-Interest
Oggetto: EJB 2.0


It's not clear looking through the documentation how much of EJB 2.0 Orion
currently supports.  Specifically, I am interested in using CMP and EJB QL
to do advanced queries of a multi-table database.  Best I can understand the
current technology, I have 2 choices: 1) use findAll() a lot and combine the
results in Java code or 2) bypass CMP and write my own SQL statements.

Any help/insight will be greatly appreciated.

Marc Rabil





R: Virtual hosts

2001-02-06 Thread DeVincentiis Giustino

There is an example at http://www.orionsupport.com/articles/vhosts.html
Giustino De Vincentiis

-Messaggio originale-
Da: Henrik Skafsgaard Larsen [mailto:[EMAIL PROTECTED]]
Inviato: marted 6 febbraio 2001 14.02
A: Orion-Interest
Oggetto: Virtual hosts


If you have 2 (or more) virtual hosts defined,
should the be defined to different ports
or is it possible for Orion to use the same port?
tia

med venlig hilsen / kind regards
Henrik Skafsgaard Larsen




R: frustrated - jdbc: No suitable driver

2001-01-30 Thread DeVincentiis Giustino

Try initializing the context this way:
...
Properties props = new Properties();
props.setProperty("java.naming.factory.initial","com.evermind.server.Applica
tionClientInitialContextFactory");
props.setProperty("java.naming.provider.url", "ormi://localhost/app-name");
props.setProperty("java.naming.security.principal", "admin");
props.setProperty("java.naming.security.credentials", "123");
InitialContext ctx = new InitialContext(props);
...

Giustino De Vincentiis

-Messaggio originale-
Da: Tom Mitchell [mailto:[EMAIL PROTECTED]]
Inviato: marted 30 gennaio 2001 1.23
A: Orion-Interest
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Oggetto: frustrated - jdbc: No suitable driver


Hi All,

I am used to WebLogic, so please pardon my ignorance...

I am trying to get my WebLogic application to run on Orion.

I have a DataSource set up to PostgreSql.  It seems OK because this
Orion JSP works fine:

  InitialContext ctx = new InitialContext();
  out.print("brContext: " + ctx);
  DataSource ds = (DataSource) ctx.lookup("jdbc/DefaultDS");
  Connection conn = ds.getConnection();

  // Create query and get results
  Statement stmt = conn.createStatement();
  ResultSet rs = stmt.executeQuery("select count(*) FROM
weathersnapshots");

  // List results
  while ( rs.next() ) {
out.println( "br" + rs.getObject(1) + "br");
  }

  // Close connection - important!
  conn.close();

This runs fine and gives me the count of rows in the table.

When I try to get the standalone client to the same DataSource to run, I
get this:

Context: javax.naming.InitialContext@316e52
Exception in thread "main" java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.evermind.sql.DriverManagerDataSource.getConnection(JAX)
at Test.main(Test.java:18)

No errors appear on the server's console.  I can not imagine why I would
want to have a DB driver's jar in my client's classpath (ALTHOUGH I HAVE
TRIED THAT).

I have an application-client.xml:

application-client
/application-client

I have scoured the list archives and can not find the solution.

Remember, within the container, it runs fine.  It is the standalone app
that does not work.

Using:
Orion 1.4.5
JDK 1.3
Win2K

Thanks in advance.

--
Tom Mitchell
[EMAIL PROTECTED]
Very Current Stoneham, MA Weather
http://www.tom.org




R: R: frustrated - jdbc: No suitable driver

2001-01-30 Thread DeVincentiis Giustino

Sorry, the message "No suitable driver" probably means a problem with jdbc
driver.
So if you have into the data-sources.xml the definition:

data-source
class="com.evermind.sql.DriverManagerDataSource"
name="Hypersonic"
location="jdbc/HypersonicCoreDS"
xa-location="jdbc/xa/HypersonicXADS"
ejb-location="jdbc/HypersonicDS"
connection-driver="org.hsql.jdbcDriver"
username="sa"
password=""
url="jdbc:HypersonicSQL:./database/defaultdb"
inactivity-timeout="30"
/

you should lookup "jdbc/HypersonicDS", and you should have the driver
classes in your /orion/lib directory.

Giustino

-Messaggio originale-
Da: Tom Mitchell [mailto:[EMAIL PROTECTED]]
Inviato: marted 30 gennaio 2001 12.24
A: Orion-Interest
Oggetto: Re: R: frustrated - jdbc: No suitable driver


Thanks for the reply.  That is exactly how I am initializing the context
in my client application:

  Hashtable ht = new Hashtable();
  ht.put(Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.ApplicationClientInitialContextFactory");
  ht.put(Context.PROVIDER_URL, "ormi://192.168.1.3");
  ht.put(Context.SECURITY_PRINCIPAL, "someUser");
  ht.put(Context.SECURITY_CREDENTIALS, "secret");
  // Obtain connection
  InitialContext ctx = new InitialContext(ht);


DeVincentiis Giustino wrote:
 
 Try initializing the context this way:
 ...
 Properties props = new Properties();

props.setProperty("java.naming.factory.initial","com.evermind.server.Applica
 tionClientInitialContextFactory");
 props.setProperty("java.naming.provider.url",
"ormi://localhost/app-name");
 props.setProperty("java.naming.security.principal", "admin");
 props.setProperty("java.naming.security.credentials", "123");
 InitialContext ctx = new InitialContext(props);
 ...
 
 Giustino De Vincentiis
 
 -Messaggio originale-
 Da: Tom Mitchell [mailto:[EMAIL PROTECTED]]
 Inviato: marted 30 gennaio 2001 1.23
 A: Orion-Interest
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Oggetto: frustrated - jdbc: No suitable driver
 
 Hi All,
 
 I am used to WebLogic, so please pardon my ignorance...
 
 I am trying to get my WebLogic application to run on Orion.
 
 I have a DataSource set up to PostgreSql.  It seems OK because this
 Orion JSP works fine:
 
   InitialContext ctx = new InitialContext();
   out.print("brContext: " + ctx);
   DataSource ds = (DataSource) ctx.lookup("jdbc/DefaultDS");
   Connection conn = ds.getConnection();
 
   // Create query and get results
   Statement stmt = conn.createStatement();
   ResultSet rs = stmt.executeQuery("select count(*) FROM
 weathersnapshots");
 
   // List results
   while ( rs.next() ) {
 out.println( "br" + rs.getObject(1) + "br");
   }
 
   // Close connection - important!
   conn.close();
 
 This runs fine and gives me the count of rows in the table.
 
 When I try to get the standalone client to the same DataSource to run, I
 get this:
 
 Context: javax.naming.InitialContext@316e52
 Exception in thread "main" java.sql.SQLException: No suitable driver
 at java.sql.DriverManager.getConnection(Unknown Source)
 at java.sql.DriverManager.getConnection(Unknown Source)
 at com.evermind.sql.DriverManagerDataSource.getConnection(JAX)
 at Test.main(Test.java:18)
 
 No errors appear on the server's console.  I can not imagine why I would
 want to have a DB driver's jar in my client's classpath (ALTHOUGH I HAVE
 TRIED THAT).
 
 I have an application-client.xml:
 
 application-client
 /application-client
 
 I have scoured the list archives and can not find the solution.
 
 Remember, within the container, it runs fine.  It is the standalone app
 that does not work.
 
 Using:
 Orion 1.4.5
 JDK 1.3
 Win2K
 
 Thanks in advance.
 
 --
 Tom Mitchell
 [EMAIL PROTECTED]
 Very Current Stoneham, MA Weather
 http://www.tom.org

--
Tom Mitchell
[EMAIL PROTECTED]
Very Current Stoneham, MA Weather
http://www.tom.org




R: Distributed EJB's

2000-12-11 Thread DeVincentiis Giustino

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

Giustino De Vincentiis
e-mail: [EMAIL PROTECTED]

-Messaggio originale-
Da: Karsten Beving [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 11 dicembre 2000 15.16
A: Orion-Interest
Oggetto: Distributed EJB's


Hi.

I have two Orion-Server running on two different PCs. I want to lookup a
bean on the other Orion-Server.
Look at this:

PC  PC
Orion   Orion
lookup  bean, that would connect.


best thanks

- Karsten -




R: Servlet not found

2000-12-06 Thread DeVincentiis Giustino

Hi, looking at orion documentation (web.xml configuration file) the syntax
of url-pattern tag is: 
url-pattern/*.thePattern/url-pattern 
so try adding the '/'...

Giustino De Vincentiis
e-mail: [EMAIL PROTECTED]

-Messaggio originale-
Da: PHiL [mailto:[EMAIL PROTECTED]]
Inviato: mercoledì 6 dicembre 2000 10.31
A: Orion-Interest
Oggetto: TR: Servlet not found


Hi,

I just could not call servlet, 404 error in the browser...

Here is what I've done:

Add the EAR file in the in the server.xml
application name="Webactiv" path="../applications/webactiv.ear" /

Add the application in the default-web-site.xml
web-app application="Webactiv" name="war-ic" root="/webactiv" /

When I start orion, all is ok, auto deploy run and create everything in the
/orion/applications and /orion/application-deployments.
Here is the trace:
C:\orionjava -jar orion.jar
Auto-unpacking C:\orion\applications\webactiv.ear... done.
Auto-unpacking C:\orion\applications\webactiv\war-ic.war... done.
Auto-deploying Webactiv (New server version detected)...
Auto-deploying ejb-jar-ic3.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic2.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic1.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic5975.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic59754.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic597545.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic597.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic6.jar (No previous deployment found)... done.
Auto-deploying ejb-jar-ic5.jar (No previous deployment found)... done.
Orion/1.3.8 initialized
Auto-deploying NWA War (New server version detected)...

When I access to first jsp page: http://localhost:port/webactiv/Login.jsp it
show the page. This page submit Login/passwd to
http://localhost:port/webactiv/LoginServlet. The 404 error is here.

In the war-ic.war file I use the /WEB-INF/web.xml file to declare the
servlet and the alias:
  servlet
servlet-nameLoginServlet/servlet-name
display-nameLoginServlet/display-name
descriptionno description/description

servlet-classcom.stratelia.webactiv.servlets.LoginServlet/servlet-class
  /servlet
  servlet-mapping
servlet-nameLoginServlet/servlet-name
url-patternLoginServlet/url-pattern
  /servlet-mapping

My servlet classes are located in the /WEB-INF/classes/com/.../files.class

The deployed EAR is generated with the SUN deployer tool, and run today for
testing purpose under J2EE-RI test server.

Really need help to get ride of this one...
It's hard job to be new in orion's world!

Thanx

Philippe PAGET.






R: How to use EJBUserManager?

2000-12-04 Thread DeVincentiis Giustino

Hello Alexander, 
if you want to use an EJB named Account you should have the following
classes:

- AccountBean (extending EJBUserBean),
- Account (extending EJBUser),
- AccountHome (extending EJBHome, you have to copy all the definitions from
EJBUserHome modifying the return type, and optionally can add other
finders).

This should work with EJBUserManager.
Good luck!

Giustino De Vincentiis
e-mail: [EMAIL PROTECTED]

-Messaggio originale-
Da: Alexander Sparkowsky [mailto:[EMAIL PROTECTED]]
Inviato: lunedì 4 dicembre 2000 18.16
A: Orion-Interest
Oggetto: How to use EJBUserManager?


Hi,

I want to use the EJBUserManager to lookup the accounts and created an
extended version of the EJBUser because I need more infos for the account to
hold. I created Account which extends the EJBUser and an AccountHome which
extends EJBUserHome so I'm not able to overwrite the findByPrimaryKey Method
to return Account insteat of EJBUserHome. When starting the orion it gives
me an error that findByPrimaryKey() should return Account insteat of
EJBUserHome.

Can anybody help?

Alexander Sparkowsky
LambdaLogic Informationssysteme GmbH, Berlin, Germany
Tel: +49-30-2936385-0, Fax: +49-30-2936385-0
E-Mail: [EMAIL PROTECTED]