mongoose advertisement

2001-10-24 Thread The elephantwalker

Donna,

I am not sure what you are trying to do here, but I hazard to say there is
not one single member of this interest group that is interested in your
product at $35,000 per cpu.

Orion is $1500 per server, and most of us have already created our own
enterprise portal services for Orion.

Good luck on the Weblogic interest listbut you have struck out on the
Orion interest list.

Regards,

the elephantwalker
www.elephantwalker.com





RE: jdbc performance Orion vs. WL

2001-10-24 Thread The elephantwalker

Egor,

Did you use the ejb-location (this is the best)? Also, did you use the
latest 9i jdbc drivers from Oracle? You need to repeat the test with
updating and inserting. Also, create several connections at once to use the
pooling feature.

Drop the stuff about Metadata...not very useful or very real world...and
known to be slow.

I would also drop the i/o, not necessary for this type of test.

Regards,

the elephantwalker
www.elephantwalker.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Savotchkin Egor
Sent: Tuesday, October 23, 2001 11:05 PM
To: Orion-Interest
Subject: jdbc performance Orion vs. WL


Hi all,
decided to find out who is the fastest when working with DB using jdbc. I
wrote a simple servlet that does the following:
1) acquires connection from the App. Server's JNDI tree and selects 7000
records from an Oracle table.
2) acquires connection using DriverManager (OracleDriver) and selects 7000
records from the same table.

The results are
1) WL ~4000 ms vs. Orion ~7000 ms
2) WL ~4000 ms vs. Orion ~6600 ms

I agree that WL outperforms Orion because it is using its own DB Driver. But
why even standard OracleDriver on Orion is working ~3 sec slower than on
Weblogic 6.1?

May be it is possible to tune Orion so that it could outperform WL when
using jdbc?

Egor Savotchkin

try {

System.out.println(
*);
System.out.println(Init ctx ... );
start();
Context ctx = new InitialContext();
end();
System.out.println(Getting DS ...);
start();
DataSource ds = (DataSource) ctx.lookup(JNDI_NAME);
end();
System.out.println(getting connection ...);
start();
Connection conn = ds.getConnection();
end();
System.out.println(Connection :  + conn.getClass());
System.out.println(creating statement ...);
start();
Statement st = conn.createStatement();
end();
String query = SELECT * from logs;
DatabaseMetaData dbmd = conn.getMetaData();
System.out.println(executing :  + query);
start();
ResultSet rs = st.executeQuery(query);
end();
System.out.println(ResultSet :  + rs.getClass());
int i = 0;
System.out.println(rs);
start();
while (rs.next()) {
i++;
}
end();
rs.close();
st.close();
conn.close();
conn = null;
System.out.println(i =  + i);
System.out.println();

System.out.println(getting connection ...);
start();
Class.forName(oracle.jdbc.driver.OracleDriver);
conn = DriverManager.getConnection(
url, xxx, xxx);
end();
System.out.println(Connection :  + conn.getClass());
System.out.println(creating statement ...);
start();
st = conn.createStatement();
end();
System.out.println(executing query :  + query);
start();
rs = st.executeQuery(query);
end();
System.out.println(ResultSet :  + rs.getClass());
i = 0;
System.out.println(rs);
start();
while (rs.next()) {
i++;
}
end();
} catch (Exception ex) {
System.out.println(Exception :  + ex);
}









Orion 1.5.3 API: FilePostParser

2001-10-24 Thread Martin J. Wells

Looks like this has been changed in the API without notice?

  // Constructors
  public FilePostParser(InputStream p0, int p1, String p2) throws
IOException { }

The String p2 seems to be new. Any idea what it's for?


Marty







RE: security-constraint

2001-10-24 Thread Carlos Macías


Thank you very much.

From: The elephantwalker [EMAIL PROTECTED]
Reply-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: RE: security-constraint
Date: Tue, 23 Oct 2001 11:37:34 -0700

Carlos,

You can change these bits in the orion-web.xml. Also, there should be no
need to change the security constraints, since the web.xml uses roles, and
orion-web.xml uses groups.

Why the difference?

Well Karl and Magnus were smart enough to recognize that web modules and
ejb
modules would be written once, and deployed under many different enterprise
applications. But each of these modules would have their own role names for
security-constraints. The hard bit is how to re-use these components
without
rewritting the web.xml.

Groups saved the day. So the usermanager (or the jndi access to the
roleManager) uses Groups to control access. Normally this is transparant to
the developer, since most groups have the same name as the role's in your
web.xml or ejb-jar.xml. But when you don't have the same names, you can use
group/role mapping in your orion-web.xml file to tell orion which roles in
the web.xml file map to which groups used by the usermanager.

roleManager has some great methods for managing your groups, as do the
usermanager's. Use these methods to mangle your groups and users.

I hope this helps.

regards,

the elephantwalker
www.elephantwalker.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Carlos Macías
Sent: Tuesday, October 23, 2001 10:59 AM
To: Orion-Interest
Subject: security-constraint


Hi everybody.
I´ve a big problem:
Somebody know how i can modify and manage the security-constraint (in
web.xml) using the orion API?
Thank you all.

_
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp





_
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp





1.3.8 - 1.5.2

2001-10-24 Thread Alexandru Balut

Hi.

I have an application that works fine on Orion 1.3.8:
(This is from web.xml)

module
ejbweb/WEB-INF/classes/ejb
/module
module
web
web-uriweb/web-uri
context-root//context-root
/web
/module
module
javaweb/WEB-INF/classes/java
/module


The problem is that it doesn't work on Orion 1.5.2. When I try to create 
an UClass entity bean through UClassInterface session bean:


classID = uclassInter.addUClass(uclass).id ;


this error comes up: (at the end of the message)

Any idea why?

Thanx, Alex



com.evermind[Orion/1.5.2 (build 10460)].server.rmi.OrionRemoteException: Error 
(de-)serializing object: com.ctk.ua.cgu.UClassValue  
at com.evermind[Orion/1.5.2 (build 10460)].server.ejb.EJBUtils.cloneObject(Unknown 
Source)  
at 
UClassInterface_StatelessSessionBeanWrapper4.addUClass(UClassInterface_StatelessSessionBeanWrapper4.java:203)

at /class.jsp._jspService(/class.jsp.java:136) (JSP page line 235)  
at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown 
Source) 
at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) 
at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown 
Source)   
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) 
at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)  
at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)  

Nested exception is:java.io.NotSerializableException: com.ctk.ua.cgu.UClassValue   
 
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1161)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:372)  
at com.evermind[Orion/1.5.2 (build 10460)].server.ejb.EJBUtils.cloneObject(Unknown 
Source)  
at 
UClassInterface_StatelessSessionBeanWrapper4.addUClass(UClassInterface_StatelessSessionBeanWrapper4.java:203)

at /class.jsp._jspService(/class.jsp.java:136) (JSP page line 235)  
at com.orionserver[Orion/1.5.2 (build 10460)].http.OrionHttpJspPage.service(Unknown 
Source) 
at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) 
at com.evermind[Orion/1.5.2 (build 10460)].server.http.JSPServlet.service(Unknown 
Source)   
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) 
at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)  
at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)




UTF-8 enconding

2001-10-24 Thread Alberto Vilches

Hello Orion-Interest,

  I'm using UTF-8 enconding in all my servlets/jsp like this :
  
  %@page language=java
  contentType=text/html;charset=utf-8 %
  html
  head
  meta http-equiv=Content-Type content=text/html; charset=UTF-8
  /head
  body
  ...
  ..

  But when I submit a form from a UTF-8 encoded jsp, the parameter data
  doesn't reconvert this data and store this in the DDBB wrong.

  I test this with the same JSP in other App Server (Silverstream) and
  the conversion is automatic.

  What's wrong, Orion or SilverStream? Whats the correct conversion
  process.

-- 
Best regards,
 Alberto  mailto:[EMAIL PROTECTED]





REPOST - Error restoring application state

2001-10-24 Thread Christian . Tellefsen

REPOST - I think my previous attempt failed.


I always get this strange exception when i start Orion after creating a
stateful session bean:

D:\oriontest\orionjava -jar orion.jar
Licensed to Telenor Mobil AS
[...]
Error restoring application state: java.lang.NullPointerException (null)
Orion/1.5.3 initialized


...and my stateful sessions are lost. Does anyone have any experience with
this problem? The error message is unfortunately too nondescriptive, a stack
trace might have helped a lot here.

This has never worked for us with earlier Orion versions either, so it's not
a 1.5.3 thing.

Yours,
Christian.





Re: Orion 1.5.3 API: FilePostParser

2001-10-24 Thread Scott Farquhar

Martin,

This parameter takes the encoding of the file.

Thanks to Hani Suleiman for his annotation to our knowledge base:
http://kb.atlassian.com/content/orionsupport/articles/fileupload.html

I would expect the old API to remain though.  If the old method doesn't 
exist, then I would file that as a bug in bugzilla.

Cheers,
Scott

-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World


Martin J. Wells wrote:

 Looks like this has been changed in the API without notice?
 
   // Constructors
   public FilePostParser(InputStream p0, int p1, String p2) throws
 IOException { }
 
 The String p2 seems to be new. Any idea what it's for?
 
 
 Marty
 
 
 
 
 
 






url-pattern

2001-10-24 Thread Carlos Macías

Hi everybody.

I'm new working with orionderver and I've a problem:

It's possible modify the url-pattern tag programatically?

Thanks you all.

_
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp





RE: jdbc performance Orion vs. WL

2001-10-24 Thread Curt Smith

 Did you use the ejb-location (this is the best)? Also, did you use the
 latest 9i jdbc drivers from Oracle? You need to repeat the test with
 updating and inserting. Also, create several connections at once 
 to use the
 pooling feature.

ejb-location ??  I'm interested in what you're saying here?

re: your benchmarking; another poster also gave thoughts to configure
a connection pool, data-sources.xml, and set min connections to be
a reasonable number.

- To better stress the container vs just see DB performance or JDBC driver
memory thrashing on the result set performance, why not have a test
fixture that hit your servlet with 100 simultaneous requests.I think
this is where WLS will be much heavier.  WLS would also be at more of
a disadvantage in EJB, especially Entity, performance. 

I believe this test is more of a JDBC / DB performance measure and the
7 sec is due to the 8i thin driver.Lets see if anyone gives perf
comparisons between 9i thick vs thin??

Anybody have subjective comparison between 8i thick/thin  VS 
9i thick/thin drivers??   

How about useful new features in the 9i thick/thin drivers?

Thanks,

curt





Problem using Orions JMS ExceptionListener

2001-10-24 Thread Yuval_Goldstein

Hi All,

I wonder if anyone could tell me whether the Orions implementation of JMS
consider 'losing connection to jms server' as an exception that is reported
to an assigned ExceptionListener (Sun says not any provider does so).
Ive tried to write such code, and noticed that nothing happens when i drop
the server down while my consumer is still up.

Please help,
Thanks in advanced,


Yuval Goldstein
VocalTec Communications Ltd
Tel: 972-9-9707771, TGID: yuvalg





Re: Urgent :: How to Call EJB from Servlet

2001-10-24 Thread Michael Simons

Lomesh Contractor wrote:

 Hi,
 
   I am not able to call EJB from servlet, though I am able to call EJB from 
standalone application client.
 
   So, What I have to configure and which xml files I need to change. 
   
   If you can send me sample xml (Configuration) files, that would be great help 
for me.
 
 Waiting for Quick Reply.
 
 Lomesh
 
 

Take a look at a href=http://www.jollem.com/orion-primer/;the Orion Primer/a. 
There's a complete example with a servlet calling 
a session bean with all files needed.

michael

-- 
Dipl.-Math. (fh) Michael Simons
UNIOPT AG // unique logistic optimization
Maximilianstr. 29; D-93047 Regensburg
phone: ++49(0)941/59578-0
http://www.uniopt.net/





Running Orion as Win 2000 services ???

2001-10-24 Thread Eddie



Hellu,

Some time ago I got the advise to use JNT to run 
Orion as a service.
I finally got to use it and have some problems with 
it.
I got JNT to start Orion, but the applications 
aren't deployed, neither does any web application work.

I used to following command to install Orion as a 
service:
---
C:\jnt "/InstallAsService:Orion" 
"/SDC:\ProgramFiles\Orion"-jar orion.jar
---

I did also put the path C:\Program Files\Orion in 
my enivorment PATH variable.
I also added the server.xml config file, which also 
didn't work:
---
C:\jnt "/InstallAsService:Orion" 
"/SDC:\ProgramFiles\Orion" -jar orion.jar -config "C:\Program 
Files\Orion\config\server.xml"
---
(I tried some moresimilair 
possibilities)
In the server.log and global-application.log there 
do appear entries that the server/default web site is started, but nothing works 
(from the command line it does).

I think that it doesn't find the config files, like 
the server.xml such that orion isn't correctly initialized.
What am I doing wrong ??

The problem I am also having is that I don't know 
how I can see what Orion does.
That is, in Linux and from the Windows command 
line, I start Orion with "orion.jar  log/out.log", but how do I do this 
with JNT ?? I tried something but it doesn't work. The only thing I succeeded is 
that JNT did put his output in the out.log !!!

Please some help ?

Eddie



API XMLUserManager

2001-10-24 Thread Carlos Macías

Hi everybody again.

Somebody know where can I get documentation about the XMLUserManager 
(methods,API,etc)

Thanks you all.

_
Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp





SQL monitoring

2001-10-24 Thread Alberto Vilches

Hello Orion-Interest,

  Anybody knows how to force Orion to show to console all the sql generated by
  the EJB?
  Thanks.

-- 
Best regards,
 Alberto  mailto:[EMAIL PROTECTED]





Re: Urgent :: How to Call EJB from Servlet

2001-10-24 Thread Klaus Thiele

Hi,

sample:

  ejb-jar.xml:
session
   ejb-nameSettingsBean/ejb-name
   homecom.PIAG.ejb.session.SettingsHome/home
   remotecom.PIAG.ejb.session.Settings/remote
   ejb-classcom.PIAG.ejb.session.SettingsEJB/ejb-class
   [...]

 WEB-INF/web.xml:
  ejb-ref
ejb-ref-nameejb/Settings/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homecom.PIAG.ejb.session.SettingsHome/home
remotecom.PIAG.ejb.session.Settings/remote
  /ejb-ref

 java-code:
 [...]
 initial = new InitialContext();
 Object objref   = initial.lookup(java:comp/env/ejb/Settings);
 setHome = (SettingsHome)PortableRemoteObject.narrow(objref, 
SettingsHome.class);
 [...]

hope that helps.

   klaus  

Am Mittwoch, 24. Oktober 2001 11:22 schrieben Sie:
 Hi,

   I am not able to call EJB from servlet, though I am able to call EJB
 from standalone application client.

   So, What I have to configure and which xml files I need to change.

   If you can send me sample xml (Configuration) files, that would be
 great help for me.

 Waiting for Quick Reply.

 Lomesh


--
Klaus Thiele - Personal  Informatik AG
mailto:[EMAIL PROTECTED]

 Your mouse has moved.
  Windows must be restarted for the change to take effect.




StreamCorruptedException and EOFException

2001-10-24 Thread Mathias Ohlsson

Hello,

(I dont think my other mail went through so I try it again. If this is a repost I 
apologise).

I need some help with a little problem I have. I have a client which talks to a 
servlet. The servlet in its turn handles communication with some beans. The 
communication between the client and the servlet is handled by opening a URLConnection 
which is then mapped into a ObjectOutputStream. The problem is that a lot of the times 
I try to send things to the servlet I get either a StreamCorruptedException or a 
EOFException in the servlet. I can't understand what the problem is. The object I send 
through is serializabled.

Here is the errors I get (they don't appear at the same time, though). And btw, the 
Version Mismatch have different numbers each time.

java.io.StreamCorruptedException: Version Mismatch, Expected 5 and got 58
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.init(Unknown Source)
at com.myproject.Servlet.doPost(Servlet.java:169)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind._bxb._crd(.:501)
at com.evermind._bxb._ukb(.:170)
at com.evermind._cn._uab(.:576)
at com.evermind._cn._fm(.:189)
at com.evermind._bs.run(.:62)

java.io.EOFException
at java.io.DataInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream.readUTFBody(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.inputClassFields(Unknown Source)
at java.io.ObjectInputStream.defaultReadObject(Unknown Source)
at java.io.ObjectInputStream.inputObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at com.myproject.Servlet.doPost(Servlet.java:170)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind._bxb._crd(.:501)
at com.evermind._bxb._ukb(.:170)
at com.evermind._cn._uab(.:576)
at com.evermind._cn._fm(.:189)
at com.evermind._bs.run(.:62)

I would greatly appriciate if someone have inputs in this subject. Thanks in advance!

/Mathias Ohlsson




Re: SOAP w/ Orion

2001-10-24 Thread Michael Simons

Hello Montebove,

I must recognise that I don't understand how to deploy the service You sent.
I tried to deploy by throughing the .jws file in the axis folder and by writing a 
deploy.xml

admin:deploy xmlns:admin=AdminService
  service name=HelloService pivot=RPCDispatcher
   option name=className value=hello.web.HelloServlet/
   option name=methodName value=*/
  /service
/admin:deploy

but nothing worked.

When You use the .jws file how does Axis know of the EJB classes?

BTW: When accessing EJBs by SOAP this way, is it possible to use stateful session 
beans the it's meant to be, i.e., a client always 
gets his session bean?

michael

Montebove Luciano wrote:

 Hi Michael,
 
 I didn't try it with Apache Soap, but with Apache Axis it works.
 Attached a sample jws that calls the simple HelloBean from Orion Primer.
 It works fine also with a Visual Basic client using pocketSoap 1.1.
 If the ejb is part of the same J2EE application as the Axis servlet you
 don't need
 any special coding in the .jws(consider the Axis Web application as an
 additional web-module of your application).
 
 
 Hope this help
 
 Luciano
 
 
 
 
 
 
 -Original Message-
 From: Michael Simons [mailto:[EMAIL PROTECTED]]
 Sent: lunedì 22 ottobre 2001 15.45
 To: Orion-Interest
 Subject: SOAP w/ Orion
 
 
 Hello,
 
 I cannot access an EJB Stateful Session Bean from a Java client using SOAP.
 Trying to do so always ends up with the message:
 
Fault Code   = SOAP-ENV:Server
Fault String = Unable to initialize context
 
 I assume that the context mentioned in the message means the JNDI context,
 but I don't know why Orion can't initialize it.
 
 Accessing the application from a Java client using RMI (ORMI) succeeds!
 Accessing another WebService (no EJB but just a simple Java class) succeeds
 so Orion and SOAP are basically working!
 I can deploy the service by:
 
 java -cp /opt/orion/orion.jar:/home/sim/soap-2_2/lib/soap.jar
 org.apache.soap.server.ServiceManagerClient 
 http://localhost:900/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml
 
 And it's shown in the Apache SOAP Admin Page:
 
 'urn:ejbhello' Service Deployment Descriptor
 Property 
   Details
 ID 
   urn:ejbhello
 Scope 
   Application
 User-Defined Provider Type
 org.apache.soap.providers.StatefulEJBProvider
 Provider ClassHelloService
 Use Static Class  false
 Methods 
   create, hello
 Type Mappings Default
 Mapping Registry Class
 
 Any help is highly appreciated,
 
 michael
 
 
 HelloService.jws
 
 Content-Type:
 
 application/octet-stream
 
 






RE: 1.3.8 - 1.5.2

2001-10-24 Thread Peter Dunn

I believe earlier version of Orion were quite forgiving on serialization.
Orion would serialize a class even if it it did not implement the serialable
interface.  If you make sure everything you are serializing implements the
interface I think that will solve your problem.

-Original Message-
From: Alexandru Balut [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 2:32 AM
To: Orion-Interest
Subject: 1.3.8 - 1.5.2


Hi.

I have an application that works fine on Orion 1.3.8:
(This is from web.xml)

module
ejbweb/WEB-INF/classes/ejb
/module
module
web
web-uriweb/web-uri
context-root//context-root
/web
/module
module
javaweb/WEB-INF/classes/java
/module


The problem is that it doesn't work on Orion 1.5.2. When I try to create 
an UClass entity bean through UClassInterface session bean:


classID = uclassInter.addUClass(uclass).id ;


this error comes up: (at the end of the message)

Any idea why?

Thanx, Alex



com.evermind[Orion/1.5.2 (build 10460)].server.rmi.OrionRemoteException:
Error (de-)serializing object: com.ctk.ua.cgu.UClassValue   
at com.evermind[Orion/1.5.2 (build
10460)].server.ejb.EJBUtils.cloneObject(Unknown Source) 
at
UClassInterface_StatelessSessionBeanWrapper4.addUClass(UClassInterface_State
lessSessionBeanWrapper4.java:203)   
at /class.jsp._jspService(/class.jsp.java:136) (JSP page line 235)  
at com.orionserver[Orion/1.5.2 (build
10460)].http.OrionHttpJspPage.service(Unknown Source)   
at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) 
at com.evermind[Orion/1.5.2 (build
10460)].server.http.JSPServlet.service(Unknown Source)  
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) 
at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)  
at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)  

Nested exception is:java.io.NotSerializableException:
com.ctk.ua.cgu.UClassValue  
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1161)

at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:372)  
at com.evermind[Orion/1.5.2 (build
10460)].server.ejb.EJBUtils.cloneObject(Unknown Source) 
at
UClassInterface_StatelessSessionBeanWrapper4.addUClass(UClassInterface_State
lessSessionBeanWrapper4.java:203)   
at /class.jsp._jspService(/class.jsp.java:136) (JSP page line 235)  
at com.orionserver[Orion/1.5.2 (build
10460)].http.OrionHttpJspPage.service(Unknown Source)   
at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) 
at com.evermind[Orion/1.5.2 (build
10460)].server.http.JSPServlet.service(Unknown Source)  
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)
at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) 
at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)  
at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)




Re: jdbc performance Orion vs. WL

2001-10-24 Thread Kesav Kumar

Try with Oracle OCI drivers.

- Original Message -
From: Savotchkin Egor [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, October 23, 2001 11:05 PM
Subject: jdbc performance Orion vs. WL


 Hi all,
 decided to find out who is the fastest when working with DB using jdbc. I
wrote a simple servlet that does the following:
 1) acquires connection from the App. Server's JNDI tree and selects 7000
records from an Oracle table.
 2) acquires connection using DriverManager (OracleDriver) and selects 7000
records from the same table.

 The results are
 1) WL ~4000 ms vs. Orion ~7000 ms
 2) WL ~4000 ms vs. Orion ~6600 ms

 I agree that WL outperforms Orion because it is using its own DB Driver.
But why even standard OracleDriver on Orion is working ~3 sec slower than on
Weblogic 6.1?

 May be it is possible to tune Orion so that it could outperform WL when
using jdbc?

 Egor Savotchkin

 try {


System.out.println(
 *);
 System.out.println(Init ctx ... );
 start();
 Context ctx = new InitialContext();
 end();
 System.out.println(Getting DS ...);
 start();
 DataSource ds = (DataSource) ctx.lookup(JNDI_NAME);
 end();
 System.out.println(getting connection ...);
 start();
 Connection conn = ds.getConnection();
 end();
 System.out.println(Connection :  + conn.getClass());
 System.out.println(creating statement ...);
 start();
 Statement st = conn.createStatement();
 end();
 String query = SELECT * from logs;
 DatabaseMetaData dbmd = conn.getMetaData();
 System.out.println(executing :  + query);
 start();
 ResultSet rs = st.executeQuery(query);
 end();
 System.out.println(ResultSet :  + rs.getClass());
 int i = 0;
 System.out.println(rs);
 start();
 while (rs.next()) {
 i++;
 }
 end();
 rs.close();
 st.close();
 conn.close();
 conn = null;
 System.out.println(i =  + i);
 System.out.println();

 System.out.println(getting connection ...);
 start();
 Class.forName(oracle.jdbc.driver.OracleDriver);
 conn = DriverManager.getConnection(
 url, xxx, xxx);
 end();
 System.out.println(Connection :  + conn.getClass());
 System.out.println(creating statement ...);
 start();
 st = conn.createStatement();
 end();
 System.out.println(executing query :  + query);
 start();
 rs = st.executeQuery(query);
 end();
 System.out.println(ResultSet :  + rs.getClass());
 i = 0;
 System.out.println(rs);
 start();
 while (rs.next()) {
 i++;
 }
 end();
 } catch (Exception ex) {
 System.out.println(Exception :  + ex);
 }








Re: Running Orion as Win 2000 services ???

2001-10-24 Thread Scott Farquhar

Eddie,

You may gain some mileage from this article:
http://kb.atlassian.com/content/orionsupport/articles/orserv.html

Also, you can specify a log file for Orion by specifying parameters:
java -jar orion.jar -out file -err file

I would suspect that Orion is finding your server.xml file, or you 
wouldn't end up with anything in the log files at all.

Could it be a permissions problem?

Cheers,
Scott

-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World


Eddie wrote:

 Hellu,
 
  
 
 Some time ago I got the advise to use JNT to run Orion as a service.
 
 I finally got to use it and have some problems with it.
 
 I got JNT to start Orion, but the applications aren't deployed, neither 
 does any web application work.
 
  
 
 I used to following command to install Orion as a service:
 
 ---
 
 C:\jnt /InstallAsService:Orion /SDC:\Program Files\Orion -jar orion.jar
 
 ---
 
  
 
 I did also put the path C:\Program Files\Orion in my enivorment PATH 
 variable.
 
 I also added the server.xml config file, which also didn't work:
 
 ---
 
 C:\jnt /InstallAsService:Orion /SDC:\Program Files\Orion -jar 
 orion.jar -config C:\Program Files\Orion\config
 \server.xml
 
 ---
 
  (I tried some more similair possibilities)
 
 In the server.log and global-application.log there do appear entries 
 that the server/default web site is started, but nothing works (from the 
 command line it does).
 
  
 
 I think that it doesn't find the config files, like the server.xml such 
 that orion isn't correctly initialized.
 
 What am I doing wrong ??
 
  
 
 The problem I am also having is that I don't know how I can see what 
 Orion does.
 
 That is, in Linux and from the Windows command line, I start Orion with 
 orion.jar  log/out.log, but how do I do this with JNT ?? I tried 
 something but it doesn't work. The only thing I succeeded is that JNT 
 did put his output in the out.log !!!
 
  
 
 Please some help ?
 
  
 
 Eddie
 
  
 






RE: SQL monitoring

2001-10-24 Thread Curt Smith


A previous poster announced this tool and it works
-- snoops the JDBC wire as a proxy --

There is a free tool at http://www.provision6.com that
intercepts and logs all database statements of any
application that uses JDBC.  This is particularly
useful, for example, for monitoring the SQL generated
by entity beans.

There are no code changes required to your
application, and setup is very easy.  There are
explicit instructions for installing under Orion.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Alberto
 Vilches
 Sent: Wednesday, October 24, 2001 10:18 AM
 To: Orion-Interest
 Subject: SQL monitoring
 
 
 Hello Orion-Interest,
 
   Anybody knows how to force Orion to show to console all the sql 
 generated by
   the EJB?
   Thanks.
 
 -- 
 Best regards,
  Alberto  mailto:[EMAIL PROTECTED]
 
 




Newbie RMI questions...

2001-10-24 Thread Ross Cohen


Hi, 
What do I have to do in order
to deploy a standard RMI application on Orion?
I have looked through the orion documentation
and have seen nothing to tell me how to
do this.  There is some kind of RMI app in
the demo directory, but it seems to show only
the very beginning stages of a client
connecting to a Remote Object.  In fact it really
only get an InitialContext.  It never actually
gets a reference to a remote object.
Where can I find information on what I have
to set up inside the container (where the classes
go, modifications to XML config files, etc)? 
Coundn't seem to find anything on orionsupport
either.


Thx,
Ross.




Poolman under Orion not working

2001-10-24 Thread Emilio Suarez



Hi all, 

Well, I have read some messages that indicate 
problems running Poolman under Tomcat 4.
But here I am having problems running Poolman under 
Orion. 

I have a Struts application and I was using the 
connection pooling from Struts, but now I am changing it to Poolman. But the 
problem I am getting is that when executing the application, Orion throws the 
following error:

[10/24/01-12:33 PM] GeneralDAO database = 
2[10/24/01-12:33 PM] - Getting connection from 
pool...[10/24/01-12:33 PM] useCount= ConnectionPool: Creating 
instance...org.apache.xerces.parsers.SAXParserjava.lang.ClassNotFoundException: 
org.apache.xerces.parsers.SAXParserjava.lang.ClassNotFoundException: 
org.apache.xerces.parsers.SAXParser 
at java.net.URLClassLoader$1.run(Unknown 
Source) at 
java.security.AccessController.doPrivileged(Native 
Method) at 
java.net.URLClassLoader.findClass(Unknown 
Source) at 
java.lang.ClassLoader.loadClass(Unknown 
Source) at 
sun.misc.Launcher$AppClassLoader.loadClass(Unknown 
Source) at 
java.lang.ClassLoader.loadClass(Unknown 
Source) at 
java.lang.ClassLoader.loadClassInternal(Unknown 
Source) at 
java.lang.Class.forName0(Native 
Method) at 
java.lang.Class.forName(Unknown 
Source) at 
org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:124) 
at 
com.codestudio.management.PoolManConfiguration.parseXML(PoolManConfiguration.java:112) 
at 
com.codestudio.management.PoolManConfiguration.loadConfiguration(PoolManConfiguration.java:75) 
at 
com.codestudio.management.PoolManBootstrap.init(PoolManBootstrap.java:61) 
at 
com.codestudio.util.SQLManager.assertLoaded(SQLManager.java:109) 
at 
com.codestudio.util.SQLManager.getPoolByJNDIName(SQLManager.java:129)

 at 
com.codestudio.sql.PoolMan.findDataSource(PoolMan.java:116)

So it looks like it can't find the parser. 


Well, I just played with different locations and 
nothing works. 

- I put the xerces.jar in the WEB-INF\lib directory 
(where struts.jar and poolman.jar are)
- I replaced the xerces.jar that comes with 
orion

and nothing seems to work. 

Does anybody have any ideas?

Thanks

-emilio


-secure option

2001-10-24 Thread Bruno Baloi

Guys,

I am perplexed, what does the -secure option really do when using it
as part of the command line to start up Orion ??

If I run my app without it the thing works when I apply it, it's
bitching that it can't load certain files...

Any hints ???

Thanks,

Bruno R. Baloi
Lead Software Architect
PlateSpin Inc.




Re: Poolman under Orion not working

2001-10-24 Thread Hani Suleiman

Make sure you're using the latest version of poolman, or even the CVS
version. The JMX management it uses has very screwy (basically,
non-functional outside of tomcat's broken classloader) classloading. Also
try and run it in non-JMX mode. The latest version does not require xerces
and works with JAXP as far as I know (I submitted a patch for that). 

On the other hand, if you're using Orion, why not use Orion's connection
pooling and save yourself from all this pain?

Hani

On Wed, 24 Oct 2001, Emilio Suarez wrote:

 Hi all, 
 
 Well, I have read some messages that indicate problems running Poolman under Tomcat 
4.
 But here I am having problems running Poolman under Orion. 
 
 I have a Struts application and I was using the connection pooling from Struts, but 
now I am changing it to Poolman. But the problem I am getting is that when executing 
the application, Orion throws the following error:
 
 [10/24/01-12:33 PM] GeneralDAO database = 2
 [10/24/01-12:33 PM] - Getting connection from pool...
 [10/24/01-12:33 PM] useCount= ConnectionPool: Creating instance...
 org.apache.xerces.parsers.SAXParser
 java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
 java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:124)
 at com.codestudio.management.PoolManConfiguration.parseXML(PoolManConfig
 uration.java:112)
 at com.codestudio.management.PoolManConfiguration.loadConfiguration(Pool
 ManConfiguration.java:75)
 at com.codestudio.management.PoolManBootstrap.init(PoolManBootstrap.ja
 va:61)
 at com.codestudio.util.SQLManager.assertLoaded(SQLManager.java:109)
 at com.codestudio.util.SQLManager.getPoolByJNDIName(SQLManager.java:129)
 
 at com.codestudio.sql.PoolMan.findDataSource(PoolMan.java:116)
 
 So it looks like it can't find the parser. 
 
 Well, I just played with different locations and nothing works. 
 
 - I put the xerces.jar in the WEB-INF\lib directory (where struts.jar and 
poolman.jar are)
 - I replaced the xerces.jar that comes with orion
 
 and nothing seems to work. 
 
 Does anybody have any ideas?
 
 Thanks
 
 -emilio