RE: URGENT! JNI problem on Orion-Could Not Get Class for Java ....

2001-10-04 Thread The elephantwalker

YiYi,

see my answer on www.elephantwalker.com, should fix your problem.

regards,

the elephantwalker
www.elephantwalker.com

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of YiYi Mao
Sent: Wednesday, October 03, 2001 4:35 PM
To: Orion-Interest
Subject: URGENT! JNI problem on Orion-Could Not Get Class for Java 
Importance: High


We're having a problem running JNI (C++) from Orion enviorment. The original
error message is:
C++ CommIFCMSListener::processEvent - Could Not Get Class For Java
CMSListener Object.

The JNI method is called from a Java class, not EJB. The Java application is
deployed into Orion Server.
The JNI code runs fine outside of Orion, as well as on Borland AppServer.

The problem seems to be, not able to find the call back Java enviornment
from native to Java. From Java to native is fine.

We're under pressure now to re-host our application on Orion. Please help as
soon as you can

Sincerely,

YiYi






Aliases in Orion

2001-10-04 Thread Juan Fuentes

Hi list!

Does orion have any tag like the Apache's Alias??

Thanks
-- 
··
Juan Fuentes Nieto   Essi Projects
[EMAIL PROTECTED]t +34 977 221 182
http://www.essiprojects.com  f +34 977 230 170
··




Orion Server with external webserver

2001-10-04 Thread Fredrik Gusting (PAC)

Hi all
I've trouble with my connection from my Tomcat webserver to Orion server.
In tomcat have set upp a servlet which takes a request from a browser and 
then do a lookup for my orionserver that contains a small example of an entitybean 
that simple returns the current time. I've setup everything onmy local machine. Tomcat 
port 8080, and Orion port 8000.
When I try to create my Initialcontext I get LoginException or something. 
Her is a part of my code

public class Dispatcher extends HttpServlet {

  /**Initialize global variables*/

  private static final String CONTENT_TYPE = text/html;
  private Context context = null;

  public void init(ServletConfig config) throws ServletException {

super.init(config);

  }

  /**Process the HTTP Get request*/
  public void doGet(HttpServletRequest request, HttpServletResponse response) throws 
ServletException, IOException {

try
{

  Properties h = new Properties();
  
h.put(Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.ApplicationClientInitialContextFactory);
  h.put(Context.PROVIDER_URL,ormi://localhost:80/time);
  h.put(Context.SECURITY_PRINCIPAL, admin);
  h.put(Context.SECURITY_CREDENTIALS, 123);

  Context context = new InitialContext(h);  // HERE IT CRASHES

  Object ref = (PerfectTimeHome)context.lookup(PerfectTimeHome);


Do I have to configure orion for login, how???
Has anybody got an external webserver to work with orion. Sample of that please!

Regards
Fredrik
Fredrik Gusting(mailto: [EMAIL PROTECTED])
System Designer
Ericsson Process  Application Consulting
Kistagången 4  Phone:  +46 8 568 63 189
SE-125 82 Kista   Mobile: +46 70 52 63 189





RE: Orion Server with external webserver

2001-10-04 Thread The elephantwalker


its the port...the ormi port is 23791, not 80.

regards,

the elephantwalker
www.elephantwalker.com
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Fredrik
Gusting (PAC)
Sent: Thursday, October 04, 2001 12:38 AM
To: Orion-Interest
Subject: Orion Server with external webserver


Hi all
I've trouble with my connection from my Tomcat webserver to Orion server.
In tomcat have set upp a servlet which takes a request from a browser and
then do a lookup for my orionserver that contains a small example of an
entitybean that simple returns the current time. I've setup everything onmy
local machine. Tomcat port 8080, and Orion port 8000.
When I try to create my Initialcontext I get LoginException or something.
Her is a part of my code

public class Dispatcher extends HttpServlet {

  /**Initialize global variables*/

  private static final String CONTENT_TYPE = text/html;
  private Context context = null;

  public void init(ServletConfig config) throws ServletException {

super.init(config);

  }

  /**Process the HTTP Get request*/
  public void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {

try
{

  Properties h = new Properties();

h.put(Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.ApplicationClient
InitialContextFactory);
  h.put(Context.PROVIDER_URL,ormi://localhost:80/time);
  h.put(Context.SECURITY_PRINCIPAL, admin);
  h.put(Context.SECURITY_CREDENTIALS, 123);

  Context context = new InitialContext(h);  // HERE IT CRASHES

  Object ref = (PerfectTimeHome)context.lookup(PerfectTimeHome);


Do I have to configure orion for login, how???
Has anybody got an external webserver to work with orion. Sample of that
please!

Regards
Fredrik
Fredrik Gusting(mailto: [EMAIL PROTECTED])
System Designer
Ericsson Process  Application Consulting
Kistagången 4  Phone:  +46 8 568 63 189
SE-125 82 Kista   Mobile: +46 70 52 63 189







RE: Protocol violation w/ Oracle

2001-10-04 Thread Gavin Spurling

I would guess you're using (or have in your classpath) classes111.zip. Make
sure your using classes12.zip (I'm assuming your using Oracle 8.16, or
8.17).

Gavin.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Chad Cromwell
Sent: 03 October 2001 16:57
To: Orion-Interest
Subject: Protocol violation w/ Oracle


Does any noe know why i would get this error

servlet to session bean to oracle db

i do get a connection then when i try to create a
preparedStatement this happens


thanks chad

java.sql.SQLException: Protocol violation
at
oracle.jdbc.dbaccess.DBError.check_error(DBError.java:631)
at
oracle.jdbc.ttc7.O3log.receive2nd(O3log.java, Compiled
Code)
at
oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:214)
at
oracle.jdbc.driver.OracleConnection.init(OracleConnection.java:142)

at
oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.ja
va:214)
at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:193)
at
com.evermind.sql.DriverManagerDataSource.getConnection(Unknown
Source
)
at
com.evermind.sql.DriverManagerConnectionPoolDataSource.getPooledConne
ction(Unknown Source)
at
com.evermind.sql.OrionPooledDataSource._bgb(Unknown
Source)
at com.evermind._jb._bgb(Unknown Source)
at
com.evermind.sql.OrionPooledDataSource.getConnection(Unknown
Source)
at
com.evermind.sql.DriverManagerXADataSource._bvc(Unknown
Source)
at com.evermind._vn._bl(Unknown Source)
at com.evermind._lo.createStatement(Unknown
Source)
at com.evermind._lo.createStatement(Unknown
Source)
at
com.dumc.servlet.AddContact.doPost(AddContact.java,
Compiled Code)
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._cxb._abe(Unknown Source)
at com.evermind._cxb._uec(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)
OrionCMTConnection not closed, check your code!
LogicalDriverManagerXAConnection not closed, check
your code!
Created at:
java.lang.Throwable: OrionCMTConnection created
at com.evermind._wp.init(Unknown Source)
at
com.evermind.sql.OrionCMTDataSource.getConnection(Unknown
Source)
at
com.dumc.servlet.AddContact.doPost(AddContact.java,
Compiled Code)
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._cxb._abe(Unknown Source)
at com.evermind._cxb._uec(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)



__
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com





AW: Orion Server with external webserver

2001-10-04 Thread t . hegyi

Hi, 

   h.put(Context.PROVIDER_URL,ormi://localhost:80/time);

Make sure that the RMI port is correct. The default is not 80, but 23791.
Check your orion dir/config/rmi.xml file for the port setting. If nothing
is specified, use 23791 (or nothing) instead of 80, like
ormi://localhost:23791/time. (port 80 for http requests, while you're
trying to make an ormi access on Orion).

HTH, 

Tibor Hegyi

webmiles AG
Ridlerstr. 31b
80339 München
Tel. 089/ 12469-461
Fax 089/ 12469 - 222
e-mail: [EMAIL PROTECTED] 

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]Im Auftrag von Fredrik
 Gusting (PAC)
 Gesendet: Donnerstag, 4. Oktober 2001 09:38
 An: Orion-Interest
 Betreff: Orion Server with external webserver
 
 
 Hi all
 I've trouble with my connection from my Tomcat webserver to 
 Orion server.
 In tomcat have set upp a servlet which takes a request from a 
 browser and 
 then do a lookup for my orionserver that contains a small 
 example of an entitybean that simple returns the current 
 time. I've setup everything onmy local machine. Tomcat port 
 8080, and Orion port 8000.
 When I try to create my Initialcontext I get LoginException 
 or something. 
 Her is a part of my code
 
 public class Dispatcher extends HttpServlet {
 
   /**Initialize global variables*/
 
   private static final String CONTENT_TYPE = text/html;
   private Context context = null;
 
   public void init(ServletConfig config) throws ServletException {
 
 super.init(config);
 
   }
 
   /**Process the HTTP Get request*/
   public void doGet(HttpServletRequest request, 
 HttpServletResponse response) throws ServletException, IOException {
 
 try
 {
 
   Properties h = new Properties();
   
 h.put(Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.App
 licationClientInitialContextFactory);
   h.put(Context.PROVIDER_URL,ormi://localhost:80/time);
   h.put(Context.SECURITY_PRINCIPAL, admin);
   h.put(Context.SECURITY_CREDENTIALS, 123);
 
   Context context = new InitialContext(h);  // HERE IT CRASHES
 
   Object ref = (PerfectTimeHome)context.lookup(PerfectTimeHome);
 
 
 Do I have to configure orion for login, how???
 Has anybody got an external webserver to work with orion. 
 Sample of that please!
 
 Regards
 Fredrik
 Fredrik Gusting(mailto: [EMAIL PROTECTED])
 System Designer
 Ericsson Process  Application Consulting
 Kistagången 4  Phone:  +46 8 568 63 189
 SE-125 82 Kista   Mobile: +46 70 52 63 189
 




RE: Orion Server with external webserver

2001-10-04 Thread Hanlan, Dominic - Senior Developer

Is Admin enabled in principles.xml

-Original Message-
From: Fredrik Gusting (PAC) [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2001 08:38
To: Orion-Interest
Subject: Orion Server with external webserver


Hi all
I've trouble with my connection from my Tomcat webserver to Orion server.
In tomcat have set upp a servlet which takes a request from a browser and 
then do a lookup for my orionserver that contains a small example of an
entitybean that simple returns the current time. I've setup everything onmy
local machine. Tomcat port 8080, and Orion port 8000.
When I try to create my Initialcontext I get LoginException or something. 
Her is a part of my code

public class Dispatcher extends HttpServlet {

  /**Initialize global variables*/

  private static final String CONTENT_TYPE = text/html;
  private Context context = null;

  public void init(ServletConfig config) throws ServletException {

super.init(config);

  }

  /**Process the HTTP Get request*/
  public void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {

try
{

  Properties h = new Properties();
 
h.put(Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.ApplicationClient
InitialContextFactory);
  h.put(Context.PROVIDER_URL,ormi://localhost:80/time);
  h.put(Context.SECURITY_PRINCIPAL, admin);
  h.put(Context.SECURITY_CREDENTIALS, 123);

  Context context = new InitialContext(h);  // HERE IT CRASHES

  Object ref = (PerfectTimeHome)context.lookup(PerfectTimeHome);


Do I have to configure orion for login, how???
Has anybody got an external webserver to work with orion. Sample of that
please!

Regards
Fredrik
Fredrik Gusting(mailto: [EMAIL PROTECTED])
System Designer
Ericsson Process  Application Consulting
Kistagången 4  Phone:  +46 8 568 63 189
SE-125 82 Kista   Mobile: +46 70 52 63 189





RE: Orion Server with external webserver

2001-10-04 Thread Fredrik Gusting (PAC)

Hi
Thanks
It still seems to be problems.

java.lang.NoClassDefFoundError: javax/security/auth/login/LoginException
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:199)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:49)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:660)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
at javax.naming.InitialContext.init(InitialContext.java:226)
at javax.naming.InitialContext.(InitialContext.java:202)
at se.ejb.Dispatcher.doGet(Dispatcher.java:53)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, 
Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, 
Compiled Code)
at java.lang.Thread.run(Thread.java:479)

Do I have to configure orion or Tomcat for this kind of external webserver connections 
??
Like security restrictions in Orion or something??

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 11:28 AM
To: Orion-Interest
Subject: AW: Orion Server with external webserver


Hi, 

   h.put(Context.PROVIDER_URL,ormi://localhost:80/time);

Make sure that the RMI port is correct. The default is not 80, but 23791.
Check your orion dir/config/rmi.xml file for the port setting. If nothing
is specified, use 23791 (or nothing) instead of 80, like
ormi://localhost:23791/time. (port 80 for http requests, while you're
trying to make an ormi access on Orion).

HTH, 

Tibor Hegyi

webmiles AG
Ridlerstr. 31b
80339 München
Tel. 089/ 12469-461
Fax 089/ 12469 - 222
e-mail: [EMAIL PROTECTED] 

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]Im Auftrag von Fredrik
 Gusting (PAC)
 Gesendet: Donnerstag, 4. Oktober 2001 09:38
 An: Orion-Interest
 Betreff: Orion Server with external webserver
 
 
 Hi all
 I've trouble with my connection from my Tomcat webserver to 
 Orion server.
 In tomcat have set upp a servlet which takes a request from a 
 browser and 
 then do a lookup for my orionserver that contains a small 
 example of an entitybean that simple returns the current 
 time. I've setup everything onmy local machine. Tomcat port 
 8080, and Orion port 8000.
 When I try to create my Initialcontext I get LoginException 
 or something. 
 Her is a part of my code
 
 public class Dispatcher extends HttpServlet {
 
   /**Initialize global variables*/
 
   private static final String CONTENT_TYPE = text/html;
   private Context context = null;
 
   public void init(ServletConfig config) throws ServletException {
 
 super.init(config);
 
   }
 
   /**Process the HTTP Get request*/
   public void doGet(HttpServletRequest request, 
 HttpServletResponse response) throws ServletException, IOException {
 
 try
 {
 
   Properties h = new Properties();
   
 h.put(Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.App
 licationClientInitialContextFactory);
   h.put(Context.PROVIDER_URL,ormi://localhost:80/time);
   h.put(Context.SECURITY_PRINCIPAL, admin);
   h.put(Context.SECURITY_CREDENTIALS, 123);
 
   Context context = new InitialContext(h);  // HERE IT CRASHES
 
   Object ref = (PerfectTimeHome)context.lookup(PerfectTimeHome);
 
 
 Do I have to configure orion for login, how???
 Has anybody got an external webserver to work with orion. 
 Sample of that please!
 
 Regards
 Fredrik
 Fredrik Gusting(mailto: [EMAIL PROTECTED])
 System Designer
 Ericsson Process  Application Consulting
 Kistagången 4  Phone:  +46 8 568 63 189
 SE-125 82 Kista   Mobile: +46 70 52 63 189
 




Re: Aliases in Orion

2001-10-04 Thread Juan Fuentes



Juan Fuentes wrote:
 
 Hi list!
 
 Does orion have any tag like the Apache's Alias??

Maybe using the virtual-directory tag ??

 
 Thanks
 --
 ··
 Juan Fuentes Nieto   Essi Projects
 [EMAIL PROTECTED]t +34 977 221 182
 http://www.essiprojects.com  f +34 977 230 170
 ··

-- 
··
Juan Fuentes Nieto   Essi Projects
[EMAIL PROTECTED]t +34 977 221 182
http://www.essiprojects.com  f +34 977 230 170
··




RE: Aliases in Orion

2001-10-04 Thread Mike Fontenot

In the orion-web.xml file, something like this:

virtual-directory virtual-path=/reports real-path=/usr/develop/reports
/

THis file is in the application-deployments/default/defaultWebApp directory

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Juan Fuentes
Sent: Thursday, October 04, 2001 7:56 AM
To: Orion-Interest
Subject: Re: Aliases in Orion




Juan Fuentes wrote:

 Hi list!

 Does orion have any tag like the Apache's Alias??

Maybe using the virtual-directory tag ??


 Thanks
 --
 ··
 Juan Fuentes Nieto   Essi Projects
 [EMAIL PROTECTED]t +34 977 221 182
 http://www.essiprojects.com  f +34 977 230 170
 ··

--
··
Juan Fuentes Nieto   Essi Projects
[EMAIL PROTECTED]t +34 977 221 182
http://www.essiprojects.com  f +34 977 230 170
··






RE: Orion Server with external webserver

2001-10-04 Thread Fredrik Gusting (PAC)



Hi
 
The generated principes.xml (in orion/application-deployments/time)is empty though 
but that
should be empty i think. Ther is nothing I can do about it. 

My principles.xml in orion/config.
looks like this. This should be correct or ?

?xml version=1.0?
!DOCTYPE principals PUBLIC //Evermind - Orion Principals// 
http://www.orionserver.com/dtds/principals.dtd;

principals
groups
group name=administrators
descriptionadministrators/description
permission name=administration /
permission 
name=com.evermind.server.AdministrationPermission /
/group
group name=guests
descriptionguests/description
/group
group name=users
descriptionusers/description
permission name=rmi:login /
permission name=com.evermind.server.rmi.RMIPermission /
/group
/groups
users
user username=admin password=123
descriptionThe default administrator/description
group-membership group=administrators /
group-membership group=guests /
group-membership group=users /
/user
user username=user password=456 deactivated=true
descriptionThe default user/description
group-membership group=guests /
group-membership group=users /
/user
user username=anonymous password=
descriptionThe default guest/anonyomous user/description
group-membership group=guests /
/user
/users
/principals
-Original Message-
From: Hanlan, Dominic - Senior Developer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 1:46 PM
To: Orion-Interest
Subject: RE: Orion Server with external webserver


Is Admin enabled in principles.xml

-Original Message-
From: Fredrik Gusting (PAC) [mailto:[EMAIL PROTECTED]]
Sent: 04 October 2001 08:38
To: Orion-Interest
Subject: Orion Server with external webserver


Hi all
I've trouble with my connection from my Tomcat webserver to Orion server.
In tomcat have set upp a servlet which takes a request from a browser and 
then do a lookup for my orionserver that contains a small example of an
entitybean that simple returns the current time. I've setup everything onmy
local machine. Tomcat port 8080, and Orion port 8000.
When I try to create my Initialcontext I get LoginException or something. 
Her is a part of my code

public class Dispatcher extends HttpServlet {

  /**Initialize global variables*/

  private static final String CONTENT_TYPE = text/html;
  private Context context = null;

  public void init(ServletConfig config) throws ServletException {

super.init(config);

  }

  /**Process the HTTP Get request*/
  public void doGet(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {

try
{

  Properties h = new Properties();
 
h.put(Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.ApplicationClient
InitialContextFactory);
  h.put(Context.PROVIDER_URL,ormi://localhost:80/time);
  h.put(Context.SECURITY_PRINCIPAL, admin);
  h.put(Context.SECURITY_CREDENTIALS, 123);

  Context context = new InitialContext(h);  // HERE IT CRASHES

  Object ref = (PerfectTimeHome)context.lookup(PerfectTimeHome);


Do I have to configure orion for login, how???
Has anybody got an external webserver to work with orion. Sample of that
please!

Regards
Fredrik
Fredrik Gusting(mailto: [EMAIL PROTECTED])
System Designer
Ericsson Process  Application Consulting
Kistagången 4  Phone:  +46 8 568 63 189
SE-125 82 Kista   Mobile: +46 70 52 63 189





Deployment performance

2001-10-04 Thread Alex Bairov

Hello,

  We are deploying .ear containing 12 ejb .jars and 1 .war. It
  takes 3 minutes to deploy, even if I have changed only one .jar.
  Could I speed this up somehow?

-- 
Best regards,
Alex Bairov





RE: How to access Orion EJBs from C++ ?

2001-10-04 Thread Alex Paransky

There is no direct way that I know of, however, there are a lot of indirect
ways. For example:

1. Wrap a JSP/XML layer around the beans, so that you can submit requests
via http, this providing a WEB service type of an approach to your
interface.  You can then use HTTP from C to execute calls.

2. Wrap your stateless session beans with a CORBA wrapper using a TIE
approach, then you can use CORBA to interface to the beans.

3. You can always use JNI to start a runtime in your C environment, and
proceed to call various functions, kind of cumbersome, but possible if you
need to do this.

Quite frankly, I prefer method (1), since after you are done with it, you
can use the services from different environments including Visual Basic,
C/C++.  We are using the above mechanism as an interface from Flash, since
our client is written in Flash and we need to talk to our EJB services.

-AP_

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of J.D. Bertron
Sent: Thursday, October 04, 2001 5:30 AM
To: Orion-Interest
Subject: How to access Orion EJBs from C++ ?
Sensitivity: Private


I need a way to access my EJBs on Orion using C++.
Normally I would try RMI over IIOP, but Orion doesn't support that.
Should I look into OC4J ?

Thanks.





RE: Help with HTTP Internal Server Error

2001-10-04 Thread Alex Paransky

Disable IE's friendly error messages, then you should see a stack trace...

-AP_

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, October 04, 2001 7:09 AM
To: Orion-Interest
Subject: Help with HTTP Internal Server Error





Hi

I'm getting a HTTP 500 Internal Server error when I try to access one of my
JSP
pages.

The following is written to the web-access.log file, but no other errors are
reported anywhere.

GET /budgeting/Test?event=accountSummaryaccType=SAVNG HTTP/1.1 500 482

Does the 482 at the end mean something or is there anywhere else where I
could
get more information about the error.

Just to make things interesting, the page works fine if I run it through
Tomcat.

Thanks

Derek Hardy







E-mail communication is not secure and may be intercepted by a third party.
This
message is confidential to the intended addressee. If you are not the
intended
addressee, please inform us immediately and then delete this message. Virgin
Direct does not accept responsibility for changes made to this message after
it
was sent. Although Virgin Direct believes this e-mail is free of any virus
or other
defect which may affect a computer, it is the responsibility of the
recipient to ensure
that it is virus free and Virgin Direct does not accept any responsibility
for any loss
or damage arising in any way from it's use.

Virgin Direct Personal Financial Service Ltd is regulated by the Personal
Investment Authority for life insurance, pension and unit trust business and
represents only the Virgin Direct marketing group. Registered office:
Discovery
House, Whiting Road, Norwich NR4 6EJ, UK. Registered in England No. 3072766.

The Virgin One account is a secured personal bank account with The Royal
Bank
of Scotland plc. It is provided by Virgin Direct Personal Finance Ltd which
is
a representative only of Virgin Direct Personal Financial Service Ltd.
Registered office: Waterhouse Square, 138-142 Holborn, London EC1N 2TH, UK.
Registered in England no 3414708.

The Virgin Deposit Account is a personal deposit account with The Royal Bank
of
Scotland plc administered by Virgin Direct Personal Financial Service Ltd.

All telephone calls are recorded and may be monitored.









RE: Orion Server with external webserver

2001-10-04 Thread Khaled Alakhras

Try the following context factory:
h.put(
Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.rmi.RMIInitialContextFactory
);

I have some sample clients that work OK with this.

Good Luck,
Khaled

--- Fredrik Gusting (PAC)
[EMAIL PROTECTED] wrote:
 Hi
 Thanks
 It still seems to be problems.

 java.lang.NoClassDefFoundError:
 javax/security/auth/login/LoginException
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:199)
   at

com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:49)
   at

javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:660)
   at

javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
   at

javax.naming.InitialContext.init(InitialContext.java:226)
   at

javax.naming.InitialContext.(InitialContext.java:202)
   at se.ejb.Dispatcher.doGet(Dispatcher.java:53)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
   at

org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at

org.apache.tomcat.core.Handler.service(Handler.java:287)
   at

org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
   at

org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
   at

org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
   at

org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
   at

org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java,
 Compiled Code)
   at java.lang.Thread.run(Thread.java:479)

 Do I have to configure orion or Tomcat for this kind
 of external webserver connections ??
 Like security restrictions in Orion or something??

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, October 04, 2001 11:28 AM
 To: Orion-Interest
 Subject: AW: Orion Server with external webserver


 Hi,

 

h.put(Context.PROVIDER_URL,ormi://localhost:80/time);

 Make sure that the RMI port is correct. The default
 is not 80, but 23791.
 Check your orion dir/config/rmi.xml file for the
 port setting. If nothing
 is specified, use 23791 (or nothing) instead of 80,
 like
 ormi://localhost:23791/time. (port 80 for http
 requests, while you're
 trying to make an ormi access on Orion).

 HTH,

 Tibor Hegyi

 webmiles AG
 Ridlerstr. 31b
 80339 München
 Tel. 089/ 12469-461
 Fax 089/ 12469 - 222
 e-mail: [EMAIL PROTECTED]

  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]Im
 Auftrag von Fredrik
  Gusting (PAC)
  Gesendet: Donnerstag, 4. Oktober 2001 09:38
  An: Orion-Interest
  Betreff: Orion Server with external webserver
 
 
  Hi all
  I've trouble with my connection from my Tomcat
 webserver to
  Orion server.
  In tomcat have set upp a servlet which takes a
 request from a
  browser and
  then do a lookup for my orionserver that contains
 a small
  example of an entitybean that simple returns the
 current
  time. I've setup everything onmy local machine.
 Tomcat port
  8080, and Orion port 8000.
  When I try to create my Initialcontext I get
 LoginException
  or something.
  Her is a part of my code
 
  public class Dispatcher extends HttpServlet {
 
/**Initialize global variables*/
 
private static final String CONTENT_TYPE  text/html;
private Context context = null;
 
public void init(ServletConfig config) throws
 ServletException {
 
  super.init(config);
 
}
 
/**Process the HTTP Get request*/
public void doGet(HttpServletRequest request,
  HttpServletResponse response) throws
 ServletException, IOException {
 
  try
  {
 
Properties h = new Properties();
 
 

h.put(Context.INITIAL_CONTEXT_FACTORY,com.evermind.server.App
  licationClientInitialContextFactory);
 

h.put(Context.PROVIDER_URL,ormi://localhost:80/time);
h.put(Context.SECURITY_PRINCIPAL, admin);
h.put(Context.SECURITY_CREDENTIALS, 123);
 
Context context = new InitialContext(h);  //
 HERE IT CRASHES
 
Object ref  (PerfectTimeHome)context.lookup(PerfectTimeHome);
 
 
  Do I have to configure orion for login, how???
  Has anybody got an external webserver to work with
 orion.
  Sample of that please!
 
  Regards
  Fredrik
  Fredrik Gusting(mailto:
 [EMAIL PROTECTED])
  System Designer
  Ericsson Process  Application Consulting
  Kistagången 4  Phone:  +46 8 568 63 189
  SE-125 82 Kista   Mobile: +46 70 52 63 189
 



__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1




RE: Deployment performance

2001-10-04 Thread Komal Kandi (Contractor)

Try with jikes it will be help u speed up deployement.


-Original Message-
From: Alex Bairov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 9:36 AM
To: Orion-Interest
Subject: Deployment performance


Hello,

  We are deploying .ear containing 12 ejb .jars and 1 .war. It
  takes 3 minutes to deploy, even if I have changed only one .jar.
  Could I speed this up somehow?

-- 
Best regards,
Alex Bairov








Re: Deployment performance

2001-10-04 Thread Stephen Davidson

Alex Bairov wrote:
 
 Hello,
 
   We are deploying .ear containing 12 ejb .jars and 1 .war. It
   takes 3 minutes to deploy, even if I have changed only one .jar.
   Could I speed this up somehow?
 
 --
 Best regards,
 Alex Bairov

Hi Alex.
When you do your builds, make sure that your unchanged jars are not
touched.  I have my Ant script check to see if the files in a particular
Jar have been updated before it builds that jar.  If it doesn't need to
be rebuilt, the Ant script skips on to the next jar.

-Steve
-- 
Stephen Davidson
Java Consultant
Delphi Consultants, LLC
http://www.delphis.com
Phone: 214-696-6224 x208




EJB Primary Key of int

2001-10-04 Thread Marc Rabil

I can not figure out how to get Orion's EJB CMP to work when the primary key
is an 'int'.  In the deployment descriptor (ejb-jar.xml), the code is:

prim-key-classint/prim-key-class

When starting up Orion, I get:

Class 'int' not found

Any help will be greatly appreciated,

Marc





EJB Workings Question

2001-10-04 Thread Nusairat, Joseph F.
Title: EJB Workings Question





I am trying to figure out why i am getting marshalling exceptions in preparing hte bean insteance.


And was wondering could someone explain the order things go in so i can attempt to figure out whats happening


Like if i do a set from a servlet to an entity bean


this is what happening when it errors:
Set entity context
EJB Findby PK
EJB STORE
start of set PMMain(in servlet)
Start of setAll(in ejb set)
End of setAll (end of that ejb set)
EJB STORE
EJB LOAD
RETURN of LOAD
Exception:ProjectEdit.savePMMain(): Transaction was rolled back: Error preparing bean instance: com.evermind.transaction.MarshallingXAException; nested exception is: 

 com.evermind.transaction.MarshallingXAException
Insert PMMain Returning(return from servlet ... should have had 1 more line after the set)



This is when it is succucessful:
EJB STORE
Set entity context
EJB Findby PK
EJB STORE
start of set PMMain (again in servlet)
Start of setAll (set in EJB)
End of setAll (end of set in ejb)
EJB STORE
End of setAll Call (in servlet)
Insert PMMain Returning
EJB STORE


also no errors:
start of set PMMain
Start of setAll
End of setAll
EJB STORE
End of setAll Call
Insert PMMain Returning
EJB STORE
EJB LOAD
HERE
THERE
RETURN of LOAD
EJB STORE



Any ideas whats going on??


The only thing i can see .. is that it doesnt seem like to do the ejb load in the middle of the setAll call  but i cant control that.




Re: EJB Primary Key of int

2001-10-04 Thread Nick Newman

int is not a valid primary key - it has to be an object, not a primitive. 
Use Integer instead.

Nick

At 04:56 PM 10/4/01 -0400, you wrote:
I can not figure out how to get Orion's EJB CMP to work when the primary key
is an 'int'.  In the deployment descriptor (ejb-jar.xml), the code is:

prim-key-classint/prim-key-class

When starting up Orion, I get:

Class 'int' not found

Any help will be greatly appreciated,

Marc





Date conversion problem ??

2001-10-04 Thread Ed Bras

Hellu,

I retrieve a datetime  field from the Ms SQL server. With a win sql client I
see:
2001-10-03 19:33:10.257

When I print the field in an EJB (I use CMP) the millisecond part is zero
!!!:
Wed Oct 03 19:33:10 GMT+02:00 2001
In milliseconds: 100213039

I had the same problem with the Postgres driver so I don't think it is the
JDBC driver (Opta driver of i-net)

Has anyone any idea what is happening and how I can solve this ??
Hope to get an answer, otherwise I have to convert the datetime fields in
the database to a long to store it in milliseconds, which isn't very elegant
I think !?

Eddie








Re: EJB Primary Key of int

2001-10-04 Thread Fredrik Lindgren

You need to use Integer as PK Class. PK must extend Object

Marc Rabil wrote:

 I can not figure out how to get Orion's EJB CMP to work when the primary key
 is an 'int'.  In the deployment descriptor (ejb-jar.xml), the code is:
 
 prim-key-classint/prim-key-class
 
 When starting up Orion, I get:
 
 Class 'int' not found
 
 Any help will be greatly appreciated,
 
 Marc
 
 
 
 






RE: EJB Primary Key of int

2001-10-04 Thread Alex Paransky

User Integer...

-AP_

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Marc Rabil
Sent: Thursday, October 04, 2001 1:56 PM
To: Orion-Interest
Subject: EJB Primary Key of int


I can not figure out how to get Orion's EJB CMP to work when the primary key
is an 'int'.  In the deployment descriptor (ejb-jar.xml), the code is:

prim-key-classint/prim-key-class

When starting up Orion, I get:

Class 'int' not found

Any help will be greatly appreciated,

Marc





Re: EJB Primary Key of int

2001-10-04 Thread Ray Harrison

You will want to use Integer not int

--- Marc Rabil [EMAIL PROTECTED] wrote:
 I can not figure out how to get Orion's EJB CMP to work when the primary key
 is an 'int'.  In the deployment descriptor (ejb-jar.xml), the code is:
 
 prim-key-classint/prim-key-class
 
 When starting up Orion, I get:
 
 Class 'int' not found
 
 Any help will be greatly appreciated,
 
 Marc
 
 


__
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1




Re: Date conversion problem ??

2001-10-04 Thread Sarathy Mattaparti

use java.util.Timestamp instead of Date that will solve your problem.

Sarathy


Hellu,

I retrieve a datetime  field from the Ms SQL server. With a win sql client 
I
see:
2001-10-03 19:33:10.257

When I print the field in an EJB (I use CMP) the millisecond part is zero
!!!:
Wed Oct 03 19:33:10 GMT+02:00 2001
In milliseconds: 100213039

I had the same problem with the Postgres driver so I don't think it is the
JDBC driver (Opta driver of i-net)

Has anyone any idea what is happening and how I can solve this ??
Hope to get an answer, otherwise I have to convert the datetime fields in
the database to a long to store it in milliseconds, which isn't very 
elegant
I think !?

Eddie







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





Re: Why can't orion respond to their customers? (was RE: FW: Logging in to server twice does not work.)

2001-10-04 Thread Yashasree

Hi Christian.

We r in the same boat at u were and suffer from the same problem of logging
in to the server twice not working.
Did u find any workaround? Or did the orion guys respond

Awaiting eagerly for a positive response

Thanks in advance
Yash


- Original Message -
From: [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, August 08, 2001 8:52 PM
Subject: Why can't orion respond to their customers? (was RE: FW: Logging in
to server twice does not work.)


 My God, this is frustrating.

 I have tried reporting the bug in bugzilla.
 I have tried mailing to the list.
 I have tried mailing Orion directly.

 All I have received from Orion is complete and utter silence. I have not
 even gotten a reply saying that the matter is being looked at, or even
that
 my mail has been received. If I had gotten any respnse at all I would not
 have said this publicly, but since you refuse to acknowledge my mails, I
 have to ask:

 Why do you not take your paying customers seriously? Your support is
 extremely bad. We have production systems running on your server, and we
 need to know when the bugs will be fixed.

 yours
 Christian.

 Does anyone have any email address the Orion guys will respond to?

 -Original Message-
 From: Mike Weissman [mailto:[EMAIL PROTECTED]]
 Sent: 8. august 2001 15:34
 To: Orion-Interest
 Subject: Re: FW: Logging in to server twice does not work.


 Christian,

 We never found a way around this, we run from an applet.  we were able
 to use the RMIContextfactory and have repeated login attempts.  We have
 also abandoned rmi lookups due to performance and are going towards a
 messaging paradigm for communication.
 mike

 [EMAIL PROTECTED] wrote:
 
  In think the message was lost again, trying one more time. Sorry for the
  repost...
 
   Does anyone know how to login again when the first attempt fails?
  
   Logging in twice seems to be impossible. How to reproduce:
  
   import javax.naming.*;
   import java.util.*;
  
   /**
* InitialContext reconnection test.
* @author Christian Tellefsen
*/
  
   // Make sure you:
   // a) Have a META-INF/application-client.xml in the right place.
   // b) Replace the server name below.
  
   public class ContextTest {
   static void connect() {
   Hashtable env = new Hashtable();
   env.put(
   java.naming.factory.initial,
  
 com.evermind.server.ApplicationClientInitialContextFactory);
   env.put(
   java.naming.provider.url,
   ormi://localhost/appit); // replace with your server
   try{
   // This will show the login box the first time,
   // but not the second time.
   new InitialContext(env);
   }
   catch(Exception e) {e.printStackTrace();}
   }
  
   public static void main(String[] s) {
   connect();
   System.out.println(Once more unto the breach...);
   connect();
   }
   }
  
   Obviously I would like the login box to appear again. I cannot find
any
   way to tell the server to replace the old principal and credential. I
 feel
   weird telling my users that sorry, if you enter the wrong password you
   have to restart the program. Obviously this is a showstopper.
  
   I see that other people have asked the same question, but no answers.
I
 am
   also reporting this as a bug (#577) in bugzilla.
  
   Any help or workarounds would be greatly appreciated.
  
   yours
   Christian Tellefsen
  

 --
 ##
 Michael Weissman e-mail: [EMAIL PROTECTED]
 Clarent Corporation 303-734-5003 Fax 303-734-4244
 1221 W. Mineral Ave.  Littleton, Co 80120
 In the land of the dark, the ship of the sun is
 drawn by the grateful dead -- Egyptian Book of the Dead
 ##