Re: Fw: Cursos de E-Business (6 de Mayo)

2002-04-14 Thread Klaus Thiele


_nice_idea_ to post an ~650mb jpeg (content with unknown language) to a mailing-list 
8-|#.
very nice idea )/(()/()"_:_:;_;:*Ä'+'*


Am Freitag, 12. April 2002 15:58 schrieb Ing. Moisés H. Suarez:
> - Original Message -
> From: jacsin
> To: [EMAIL PROTECTED]
> Sent: Monday, April 08, 2002 2:56 PM
> Subject: Cursos de E-Business (6 de Mayo)

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

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






Re: Lookup EJB's in another application

2002-01-17 Thread Klaus Thiele


> For these very reasons we have decided not to use orion and are probably
> going to use JBoss instead.

i agree with you.
if you can live with the limit of one parent app, orion is a good choice.
the methods described in kb.atlassian.com/... are driving me crazy (bug
#617)
so jboss will be a good choice (but there will be other probs...).

klaus

- Original Message -
From: Carroll, Jim <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Sent: Thursday, January 17, 2002 5:01 PM
Subject: RE: Lookup EJB's in another application


>
> It has been my experience that you CANT call to a different application
> UNLESS the server application is a parent of the client. In the document
> at the link you provided there are two setups: 1) Same application on 2
> servers where the ejbs run on one but the front end runs on another, and
> 2) Where one application calls to a different application but in this
> case the two ARE related by a parent child relationship. Also, once an
> application is connected to using an InitialContext you can NEVER
> connect to another instance of that application running somewhere else.
> (I detailed this problem in several posts to this list a few weeks ago).
> For these very reasons we have decided not to use orion and are probably
> going to use JBoss instead.
>
> -Original Message-
> From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 17, 2002 10:04 AM
> To: Orion-Interest
> Subject: Re: Lookup EJB's in another application
>
>
> Guys,
>
> This is certainly one way to do things (nest the applications) - but
> there
> are some limitations to this method (namely it's Orion specific, and you
> can
> only have one parent app, the apps must be on the same server).
>
> For details on how to do it other ways (proper remote EJBs), see this
> document:
>
> http://kb.atlassian.com/content/orion/docs/remote-access/remote-access.h
> tml
>
> Hope this helps,
>
> Cheers,
> Mike
>
>
> Mike Cannon-Brookes
> [EMAIL PROTECTED]
>
> Atlassian :: www.atlassian.com
> Supporting YOUR world
>
>
> On 17/1/02 2:44 AM, "Klaus Thiele" ([EMAIL PROTECTED]) penned the words:
>
> >
> > server.xml:
> >
> >   >path="../applications/ejbapp.ear"/>
> >   >path="../applications/webapp.ear"/>
> >
> > ... nothing else. webapp can use the ejbs in ejbapp as if they
> > are in its own ear-file.
> >
> > hope that helps
> > klaus
> >
> > Am Donnerstag, 17. Januar 2002 00:47 schrieben Sie:
> >> Hi,
> >>
> >> If you have two applications in the same orion
> >> container. One application with web components and
> >> another with just EJB's. From the application with web
> >> components, I want to lookup an EJB that is deployed
> >> in the other application - is that possible via the
> >> InitialContext or do I have to call it via an URL and
> >> getting the extra RMI call?
> >>
> >> I can get it to work using a provider URL to the other
> >> application, but using the InitialContext, the local
> >> context - it cannot find the bean, or more correct,
> >> the JNDI name could not be found.
> >>
> >> Any help is appreciated !
> >>
> >> Thanks,
> >> Patrik
> >>
> >> __
> >> Do You Yahoo!?
> >> Send FREE video emails in Yahoo! Mail!
> >> http://promo.yahoo.com/videomail/
>
>
> Sent using the Entourage X Test Drive.
>
>
>





Re: Lookup EJB's in another application

2002-01-17 Thread Klaus Thiele


server.xml:

   
   

... nothing else. webapp can use the ejbs in ejbapp as if they 
are in its own ear-file.

hope that helps
  klaus

Am Donnerstag, 17. Januar 2002 00:47 schrieben Sie:
> Hi,
>
> If you have two applications in the same orion
> container. One application with web components and
> another with just EJB's. From the application with web
> components, I want to lookup an EJB that is deployed
> in the other application - is that possible via the
> InitialContext or do I have to call it via an URL and
> getting the extra RMI call?
>
> I can get it to work using a provider URL to the other
> application, but using the InitialContext, the local
> context - it cannot find the bean, or more correct,
> the JNDI name could not be found.
>
> Any help is appreciated !
>
> Thanks,
> Patrik
>
> __
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/

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

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




Re: Urgent :: How to Call EJB from Servlet

2001-10-24 Thread Klaus Thiele

Hi,

sample:

  ejb-jar.xml:

   SettingsBean
   com.PIAG.ejb.session.SettingsHome
   com.PIAG.ejb.session.Settings
   com.PIAG.ejb.session.SettingsEJB
   [...]

 WEB-INF/web.xml:
  
ejb/Settings
Session
com.PIAG.ejb.session.SettingsHome
com.PIAG.ejb.session.Settings
  

 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."




Re: Questions about Orion

2001-09-24 Thread Klaus Thiele

Hi Bill,

ok,ok it was subjective 100-timesbut: 

i'm using Orion-1.5.2 and Borland's ias 4.5.1 on a 1.3GHz Athlon
with 512MB and Sun's jdk1.3.1 for 

one of our applications (.ear) was build with using 'ant'  in 14sec.
(size of the ear-file is 1.8MB)
additional step for ias (java2iiop) takes 4:15min (ear-file is 3.1MB)
fresh deploy on orion takes 25sec.
fresh deploy on ias takes 8min.
new start of orion with the installed application 20sec.
new start of ias with the installed application 3:30min.
HotDeploy does not work all times (depends on the .ear(?)) on
orion _and_ ias.
usually our developers using a local installed orion - no cost!
our Testserver is a 2-CPU (800MHz) Machine with 1GB where are
installed 10 apps and where 2-3 developers (hot)deploy their applications
some times the day or restart the orion some times the day.
i think if we use ias in this environment, the machine will spent the whole
day with "HotSwap" or restarting ;)
(and also we have not tons money to order ias-licenses for our n-CPU servers)

> Next time check and make sure your not in Kansas before making these
> statments.
i spent this morning to check this and i'm definitly not in Kansas :)
but if i be there next time, we will drink some cups of coffee during deploying of 
some apps in ias ;)))

klaus

Am Sonntag, 23. September 2001 22:21 schrieben Sie:
> Klaus,
>
> A hundred times faster? BullFeathers!
>
> That is not possible since one of Borland AppServer's best features
> is "HotSwap" technology for supporting nonstop deployment and nonstop
> updating and maintenance of EJBs.
>
> Next time check and make sure your not in Kansas before making these
> statments.
>
> Bill G...
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Klaus
> Thiele Sent: Saturday, September 22, 2001 8:04 AM
> To: Orion-Interest
> Subject: Re: Questions about Orion
>
>
> I know about Orion _and_ Borland's AppSrv and WebLogic and i'm glad
> to use Orion because the development and turnaround/deploytimes are
> more than hundred times faster.
> Orion runs for us in a production-environment on some Linux
> 1/2/4-CPU- Machines very fast and stable.
>
> klaus
>
> - Original Message -
> From: "Bill G" <[EMAIL PROTECTED]>
> To: "Orion-Interest" <[EMAIL PROTECTED]>
> Sent: Friday, September 21, 2001 9:15 PM
> Subject: RE: Questions about Orion
>
> > Don't know about Orion but I am using MS/SQL Server 2000 with
> > JSQLConnect JDBC drivers with both Borland and WebLogic Appservers.
> > And, it is working very well.
> >
> > Bill G...
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of The
> > elephantwalker
> > Sent: Thursday, September 20, 2001 10:08 PM
> > To: Orion-Interest
> > Subject: RE: Questions about Orion
> >
> >
> > Vlad,
> >
> > Here are the answers as I know them:
> >
> > 1. SQL Server 2000 database --> That's a tough one. I don't know
> > any IT managers recommending this beast. But if you got to live
> > with it ... make sure you test the jdbc drivers with all necessary
> > uses of sql including things like LIMIT, CLOB, BLOB as well as
> > 100's of open connections. These are the key database needs for a
> > appserver servicing the web.
> >
> > 2. Orion uses the Java 1.3 jvm from Sun, IBM or others. As they
> > say, if it runs on one, it runs on all.
> >
> > 3. We use IBM's jvm with absolutely no problems.
> >
> > 4. Scalability is determined by your clustering needs. Orion
> > clusters httpsessions in islands of two to four servers. Statefull
> > Session Beans
>
> are
>
> > not clustered, but entity beans and slsb's are easily set up in a
>
> clustered
>
> > environment. Orion is easily the fastest jsp/servlet engine on the
> > planet, and along with some very good performance numbers on the
> > ejb side, you can out do other app servers by a factor of 3 to 1.
> > By the way, Orion by
>
> itself
>
> > can out do IIS by six to one! Oracle thought so much of the Orion
> > performance, they licensed the software as the core of their j2ee
> > application server.
> >
> >
> > 5. j2ee security is used on Orion, you can implement your own user
>
> security,
>
> > or link up with ldap, or use the builtin usermanagers for
> > databases. SSL
>
> is
>
> > also a feature of Orion, but I would recommend locking down your
> > web
>
> server
>
> > with SSL

Re: Questions about Orion

2001-09-22 Thread Klaus Thiele

I know about Orion _and_ Borland's AppSrv and WebLogic and i'm glad
to use Orion because the development and turnaround/deploytimes are
more than hundred times faster.
Orion runs for us in a production-environment on some Linux 1/2/4-CPU-
Machines very fast and stable.

klaus

- Original Message -
From: "Bill G" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, September 21, 2001 9:15 PM
Subject: RE: Questions about Orion


> Don't know about Orion but I am using MS/SQL Server 2000 with JSQLConnect
> JDBC drivers with both Borland and WebLogic Appservers. And, it is working
> very well.
>
> Bill G...
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of The
> elephantwalker
> Sent: Thursday, September 20, 2001 10:08 PM
> To: Orion-Interest
> Subject: RE: Questions about Orion
>
>
> Vlad,
>
> Here are the answers as I know them:
>
> 1. SQL Server 2000 database --> That's a tough one. I don't know any IT
> managers recommending this beast. But if you got to live with it ... make
> sure you test the jdbc drivers with all necessary uses of sql including
> things like LIMIT, CLOB, BLOB as well as 100's of open connections. These
> are the key database needs for a appserver servicing the web.
>
> 2. Orion uses the Java 1.3 jvm from Sun, IBM or others. As they say, if it
> runs on one, it runs on all.
>
> 3. We use IBM's jvm with absolutely no problems.
>
> 4. Scalability is determined by your clustering needs. Orion clusters
> httpsessions in islands of two to four servers. Statefull Session Beans
are
> not clustered, but entity beans and slsb's are easily set up in a
clustered
> environment. Orion is easily the fastest jsp/servlet engine on the planet,
> and along with some very good performance numbers on the ejb side, you can
> out do other app servers by a factor of 3 to 1. By the way, Orion by
itself
> can out do IIS by six to one! Oracle thought so much of the Orion
> performance, they licensed the software as the core of their j2ee
> application server.
>
>
> 5. j2ee security is used on Orion, you can implement your own user
security,
> or link up with ldap, or use the builtin usermanagers for databases. SSL
is
> also a feature of Orion, but I would recommend locking down your web
server
> with SSL, or use a hardward accelerator, and proxying Orion outside the
dmz.
> This is how most firms implement appservers.
>
> 6. Like anything, if you run it on Windows, it will be compromised. We
have
> not had any security troubles with Linux RedHat 7.1 and orion.
>
> 7. Ironflare doesn't really provide the technical support that some need.
> With Ironflare's encouragement, companies like Flowsheet Technologies and
> others provide subscription based customer support for Orion. Join our
site,
> www.elephantwalker.com, its free, and sign up for a subscription when you
> need some help. We also provide a course for Orion in the San Francisco
Bay
> Area.
>
> regards,
>
> the elephantwalker
> www.elephantwalker.com
>
>
>
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Vlad
> Vinogradsky
> Sent: Thursday, September 20, 2001 8:22 PM
> To: Orion-Interest
> Subject: Questions about Orion
>
>
> I am evaluating the Orion server for use in a production web site which
> would be hosted by a hosting services provider. It would run on a
> Windows 2000 box alongside other web sites serviced by IIS and will
> manage data in SQL Server 2000 database. I have a few questions I wasn't
> able to find answers to and I wonder if you can help me with them.
>
> 1. I wonder if anybody had any negative experience using Orion server on
> Windows 2000 or with SQL Server 2000? I-Net jdbc products are going to
> be used.
>
> 2. Any comments on performance, scalability and availability of the
> Orion server on Windows 2000?
>
> 3. What VM is best to use to run Orion server?
>
> 4. Does it have auto start and restart features? Do you have to have an
> interactive logon session to start it?
>
> 5. What security context does it run in?
>
> 6. What is Orion server security track record? Has it ever been
> compromised or taken out by DOS attacks?
>
> 7. Any comments on IronFlare's technical support? It looks like there is
> no live tech support - just email.
>
> All input is welcome.
>
> Thanks,
>
> Vlad
>
>
>
>





Re: Problems accessing remote EJBs

2001-09-21 Thread Klaus Thiele

Hi,

just curious:
  jndi_props.put(javax.naming.Context.SECURITY_PRINCIPAL,"oops");
  jndi_props.put(javax.naming.Context.SECURITY_CREDENTIALS,"oops");
  
jndi_props.put(javax.naming.Context.PROVIDER_URL,"ormi://196.129.237.124:23791/testapp");

i entered wrong appname - server hangs forever!

i entered wrong userid/passwd - no effect !?!?!?!?

additional line (dont know exactly what this mean):
 jndi_props.put("dedicated.connection","true");

the wrong userid/passwd throws an exception _not_ in
 "new InitialContext(jndi_props);" as excepted
but in "initial.lookup("ejb/Settings");" ?!?!?

...and nothing works :(

tia
  klaus

Am Donnerstag, 20. September 2001 23:14 schrieben Sie:
> Hi Kesav,
>
> thanks for help, but it does not work (1.5.2 and 1.0.2.2.1)
>
> klaus
>
> Am Donnerstag, 20. September 2001 16:17 schrieben Sie:
> > This is what exactly I also observer long back.
> >
> > In your first senario every thing works fine
> >
> > If you want to access remote ejb from jsp/servlets there is a small
> > difference.
> >
> > 1)The lookup should not be java:comp/env/  the lookup should be
> > directly to the ejb name.
> > 2)You should not use PortableRemoteObject.narrow() after lookup.
> >
> >
> > Example.
> > If your ejb name is ejb/MyEJB
> >
> > Inside jsp/servlet
> > jndi_props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ev
> >er mind.se rver.rmi.RMIInitialContextFactory");
> > 
> > Context ctx = new InitialContext(jndi_props);
> > Home home = (Home)ctx.lookup("ejb/MyEJB");   //You get directly the
> > reference to the home object
> > Remote remote = homre.create();
> > remote.invoke();
> >
> >
> >
> > Kesav Kumar Kolla
> > Voquette Inc
> > 650 356 3740(W)
> > 510 889 6840(R)
> > VoquetteDelivering Sound Information
> >
> >
> > -Original Message-
> > From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 20, 2001 3:02 AM
> > To: Orion-Interest
> > Subject: Problems accessing remote EJBs
> >
> >
> > Hi all,
> > (it drives me crazy...)
> >
> > i'm trying to access some ejbs from my webapp on another
> > orion-server.
> >
> > 1) my application-client (with application-client.xml) works fine.
> >
> > jndi_props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ev
> >er mind.se rver.ApplicationClientInitialContextFactory");
> > ...
> >initial = new InitialContext(jndi_props); => Ok.
> >rootctx = (Context)initial.lookup("java:comp/env");
> >System.out.println("rootctx: "+rootctx.toString());  ==>
> > shows the contents of application-client.xml (=Context), Ok.
> >
> > 2) same source but (servlet or jsp-page(attached))
> >
> > jndi_props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ev
> >er mind.se rver.rmi.RMIInitialContextFactory");
> > ...
> >initial = new InitialContext(jndi_props);  => Ok.
> >rootctx = (Context)initial.lookup("java:comp/env");
> >System.out.println("rootctx: "+rootctx.toString());
> >==> Exception: "java:comp/env
> > not found"
> >
> > Did i miss something? - where to get the Context? - whats
> > wrong?
> >
> > 3) same as 2)  but calling
> >initial = new InitialContext();  => local access
> >rootctx = (Context)initial.lookup("java:comp/env");
> >System.out.println("rootctx: "+rootctx.toString());  ==>
> > shows webapp.war/web.xml (=Context), Ok.
> >
> > tia
> >   klaus
> >
> > btw:
> >   rmi.xml:   > username="admin" password="secure"/>
> >   orion-application.xml:  > path="ejb-jar.jar" /> works (for all ejbs) if _both_ servers are
> > 1.5.2 or
> > oc4j-1.0.2.2.1. but then there are other bugs
> >
> > --
> > Klaus Thiele - Personal & Informatik AG
> > mailto:[EMAIL PROTECTED]
> >
> >  "Your mouse has moved.
> >   Windows must be restarted for the change to take effect."
>
> 
> Content-Type: text/html; charset="iso-8859-1"; name="Anhang: 1"
> Content-Transfer-Encoding: quoted-printable
> Content-Description:
> 

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

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




Re: Problems accessing remote EJBs

2001-09-20 Thread Klaus Thiele

Hi Kesav,

thanks for help, but it does not work (1.5.2 and 1.0.2.2.1)

klaus


Am Donnerstag, 20. September 2001 16:17 schrieben Sie:
> This is what exactly I also observer long back.
>
> In your first senario every thing works fine
>
> If you want to access remote ejb from jsp/servlets there is a small
> difference.
>
> 1)The lookup should not be java:comp/env/  the lookup should be
> directly to the ejb name.
> 2)You should not use PortableRemoteObject.narrow() after lookup.
>
>
> Example.
> If your ejb name is ejb/MyEJB
>
> Inside jsp/servlet
> jndi_props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ever
>mind.se rver.rmi.RMIInitialContextFactory");
> 
> Context ctx = new InitialContext(jndi_props);
> Home home = (Home)ctx.lookup("ejb/MyEJB");   //You get directly the
> reference to the home object
> Remote remote = homre.create();
> remote.invoke();
>
>
>
> Kesav Kumar Kolla
> Voquette Inc
> 650 356 3740(W)
> 510 889 6840(R)
> VoquetteDelivering Sound Information
>
>
> -Original Message-
> From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 20, 2001 3:02 AM
> To: Orion-Interest
> Subject: Problems accessing remote EJBs
>
>
> Hi all,
> (it drives me crazy...)
>
> i'm trying to access some ejbs from my webapp on another
> orion-server.
>
> 1) my application-client (with application-client.xml) works fine.
>
> jndi_props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ever
>mind.se rver.ApplicationClientInitialContextFactory");
> ...
>initial = new InitialContext(jndi_props); => Ok.
>rootctx = (Context)initial.lookup("java:comp/env");
>System.out.println("rootctx: "+rootctx.toString());  ==> shows
> the contents of application-client.xml (=Context), Ok.
>
> 2) same source but (servlet or jsp-page(attached))
>
> jndi_props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.ever
>mind.se rver.rmi.RMIInitialContextFactory");
> ...
>initial = new InitialContext(jndi_props);  => Ok.
>rootctx = (Context)initial.lookup("java:comp/env");
>System.out.println("rootctx: "+rootctx.toString());
>==> Exception: "java:comp/env not
> found"
>
> Did i miss something? - where to get the Context? - whats wrong?
>
> 3) same as 2)  but calling
>initial = new InitialContext();  => local access
>rootctx = (Context)initial.lookup("java:comp/env");
>    System.out.println("rootctx: "+rootctx.toString());  ==> shows
> webapp.war/web.xml (=Context), Ok.
>
> tia
>   klaus
>
> btw:
>   rmi.xml:   username="admin" password="secure"/>
>   orion-application.xml:  /> works (for all ejbs) if _both_ servers are 1.5.2 or
> oc4j-1.0.2.2.1. but then there are other bugs
>
> --
> Klaus Thiele - Personal & Informatik AG
> mailto:[EMAIL PROTECTED]
>
>  "Your mouse has moved.
>   Windows must be restarted for the change to take effect."


Content-Type: text/html; charset="iso-8859-1"; name="Anhang: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description: 


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

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




Problems accessing remote EJBs

2001-09-20 Thread Klaus Thiele

Hi all,
(it drives me crazy...)

i'm trying to access some ejbs from my webapp on another orion-server.

1) my application-client (with application-client.xml) works fine.
   
jndi_props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationClientInitialContextFactory");
...
   initial = new InitialContext(jndi_props); => Ok.
   rootctx = (Context)initial.lookup("java:comp/env");
   System.out.println("rootctx: "+rootctx.toString());  ==> shows the contents of 
application-client.xml (=Context), Ok.

2) same source but (servlet or jsp-page(attached))
   
jndi_props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory");
...
   initial = new InitialContext(jndi_props);  => Ok.
   rootctx = (Context)initial.lookup("java:comp/env");
   System.out.println("rootctx: "+rootctx.toString());
   ==> Exception: "java:comp/env not found"

Did i miss something? - where to get the Context? - whats wrong?

3) same as 2)  but calling 
   initial = new InitialContext();  => local access
   rootctx = (Context)initial.lookup("java:comp/env");
   System.out.println("rootctx: "+rootctx.toString());  ==> shows 
webapp.war/web.xml (=Context), Ok.

tia
  klaus

btw:
  rmi.xml:  
  orion-application.xml: 
works (for all ejbs) if _both_ servers are 1.5.2 or oc4j-1.0.2.2.1.
but then there are other bugs

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

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


<%@ page language="java"%>

<%@ page import="java.util.Properties" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="javax.naming.Context" %>
<%@ page import="javax.naming.InitialContext" %>
<%@ page import="javax.rmi.PortableRemoteObject" %>
<%@ page import="javax.ejb.*" %>
<%@ page import="com.PIAG.ejb.entity.*" %>
<%@ page import="com.PIAG.ejb.session.*" %>

<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 1);
%>


  
TestIt
  
  
<%
  Context  initial = null;
  Context  rootctx = null;
  SettingsHome setHome = null;
  Settings set = null;
  Hashtable jndi_props = new Hashtable();

  
jndi_props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory");
  jndi_props.put(javax.naming.Context.SECURITY_PRINCIPAL,"admin");
  jndi_props.put(javax.naming.Context.SECURITY_CREDENTIALS,"secure");
  
jndi_props.put(javax.naming.Context.PROVIDER_URL,"ormi://196.129.237.124:23791/testapp");
  //jndi_props.put("dedicated.connection","true");
  %>
   <%= javax.naming.Context.INITIAL_CONTEXT_FACTORY%>: <%= 
jndi_props.get(javax.naming.Context.INITIAL_CONTEXT_FACTORY)%>
   <%= javax.naming.Context.PROVIDER_URL%>: <%= 
jndi_props.get(javax.naming.Context.PROVIDER_URL)%>
  <%
  try {
 //initial = new InitialContext();
 initial = new InitialContext(jndi_props);
 rootctx = (Context)initial.lookup("java:comp/env");
 %>
  <%=initial.toString()%>
  <%=rootctx.toString()%>
 <%
  } catch (Exception e) {
 %>
  Oops1: <%=e.getMessage()%>
 <%
  }

  try {
 Object objref   = rootctx.lookup("ejb/Settings");
 //Object objref   = initial.lookup("java:comp/env/ejb/Settings");
 setHome = (SettingsHome)PortableRemoteObject.narrow(objref, 
SettingsHome.class);
 %>
  <%=objref.toString()%>
 <%
  } catch (Exception e) {
 %>
  Oops2: <%=e.getMessage()%>
 <%
  }

  Properties props = null;

  try {
 set = setHome.create("ZAPPA", Settings.LOGA);
 %>
  <%=set.toString()%>
 <%

 /* props = set.getProperties();
 %>
  props=<%=props.toString()%>
 <% */

 set.setValue("ak","NET");
 set.setValue("pnr","1");
 set.setValue("vertnr","1");
 set.setValue("naname","Duck");
 set.setValue("vorname","Donald");

 props = set.getProperties();
 %>
  props=<%=props.toString()%>
 <%

 set.save();
 set.remove();
  } catch( Exception e ) {
 %>
  Oops3: <%=e.getMessage()%>
 <%
  }


%>
  




InitialContext: domain was null

2001-09-19 Thread Klaus Thiele

Hello,

i'm trying to access some ejb's from my webapp on another orion-server.

jndi_props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,...
jndi_props.put(javax.naming.Context.SECURITY_PRINCIPAL,...
jndi_props.put(javax.naming.Context.SECURITY_CREDENTIALS,...
jndi_props.put(javax.naming.Context.PROVIDER_URL,...
try {
   ic = new InitialContext(jndi_props);

but in the 'new InitialContext' i get a 'domain was null' exception!
what's wrong?

tia
  klaus

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

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




Orion/AIX

2001-08-23 Thread Klaus Thiele

Hello,

is anybody running Orion on AIX?
with/without problems ?
which AIX? 4.3.x? required patches?
which jdk?

thanks a lot
  klaus

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

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




Re: Bug??? Orion/SSL + IE loses sessions

2001-07-03 Thread Klaus Thiele

Hi,

in your "secure-web-site.xml" try:

   
   
 ^
hope that helps
   klaus

Am Dienstag,  3. Juli 2001 15:11 schrieben Sie:
> There is definitely a problem or bug with using IE in front of Orion
> with SSL turned on. I lose sessions every 2 minutes or so. When I use
> Netscape, this problem doesn't occur. If I use Weblogic with SSL, I
> don't lose any sessions even though I am using the same browsers. Has
> anyone run into this problem? Is this bug recorded?
>
> Thanks,
> Ozzie Gurkan
> Manheim Interactive
> 404-269-8776


Content-Type: text/html; charset="iso-8859-1"; name="Anhang: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description: 


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

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




Re: UserTransaction

2001-06-18 Thread Klaus Thiele


> Phan Anh Tran wrote:
> > Yeah, but can I do that from a stand-alone APP running in separate

no, you can't.
(and it is a better design to handle transactions on the server side.
for example you can use sessionbeans for your businesslogic(+transactions)
from your standalone-app)

Am Montag, 18. Juni 2001 16:23 schrieben Sie:
> I don't know, I've never tried it. I would try it and let the list
> know the result. You're going to need to set the jndi properties
> using a jndi.properties file in your client. This is well documented
> elsewhere in this list. Once the jndi context is set up correctly, I
> see no reason why it wouldn't work.
>
> Jeff.
>
> Phan Anh Tran wrote:
> > Yeah, but can I do that from a stand-alone APP running in separate
> > VM?
> >
> > Anh
> >
> > - Original Message -
> > From: "Jeff Hubbach" <[EMAIL PROTECTED]>
> > To: "Orion-Interest" <[EMAIL PROTECTED]>
> > Sent: Friday, June 15, 2001 6:05 AM
> > Subject: Re: UserTransaction
> >
> > > Check www.orionserver.com, under the FAQ link:
> > >
> > > How do I get a reference to the TransactionManager?
> > >
> > >
> > >import javax.naming.*;
> > >import javax.transaction.*;
> > >...
> > >TransactionManager manager = (TransactionManager)new
> > > InitialContext().lookup("java:comp/UserTransaction");
> > >
> > > Jeff Hubbach
> > >
> > > Phan Anh Tran wrote:
> > > > With orion, Is it possible to look up a user transaction
> > > > outside an EJB (a stand-alone app for example)?  Thanks
> > >
> > > --
> > > Jeff Hubbach
> > > Internet Developer
> > > New Media Designs, Inc.
> > > www.nmd.com
> >
> > _
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
>
> --
> Jeff Hubbach
> Internet Developer
> New Media Designs, Inc.
> www.nmd.com

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

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




Re: orion + jbuilder4 --> sapdb?

2001-04-05 Thread Klaus Thiele

Hello,

perhaps a little bit misplaced here...

   SAB DB == Adabas
is this right?
thanks
   klaus

Am Donnerstag,  5. April 2001 14:01 schrieben Sie:
> I always like to pitch SapDB, because like Interbase, SAP DB, from
   [...]

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

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




Re: Another request for struts on orion

2001-04-03 Thread Klaus Thiele

Hi

it' easy to set up struts running with orion :)

1) struts-0.5 runs out-of-the-box with orion > 1.3.8
2) struts-1.0:
 - un-jar struts.jar
   - **move** the whole directory org/apache/struts/resources to a save 
place
 - recreate  struts.jar (now without org/apache/struts/resources)
 - put the saved directory org/apache/struts/resources to 
WEB-INF/classes

... and it will work.

hope that helps
  klaus

Am Dienstag,  3. April 2001 23:07 schrieben Sie:
> I am also having a problem running struts on Orion.
>
    [...]
> --Rick Hightower
>
> -Original Message-
> From: Shawn Stephens [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 03, 2001 2:42 PM
> To: [EMAIL PROTECTED]
> Subject: jndi
   [...]
> Shawn Stephens
    [...]

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

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




Re: ejb in other application ?

2001-03-28 Thread Klaus Thiele

Hi Eddi,

yesterday i read in the docu to server.xml:

   
 [...]
 parent - Optional 'parent' application, the default is the global application.
  Children see the namespace of it's parent application.
  This is used in order to share services such as EJBs among multiple 
applications.

but i don't try it myself.

perhaps it helps 
  klaus

ps: if you manage it to work, please drop me a mail.

Am Mittwoch, 28. März 2001 09:39 schrieben Sie:
> Hellu,
> What (extra) do I need to do to be able to call a bean in another
> application (from a servlet/bean in another application)?
> When I call the bean in the same application, everything is ok.
> However when I do the same in another application, Orion isn't able
> to find the Bean. Hh
>
> I think I need to configure something extra, but can't find what.
> Some help please ?
>
> Eddie

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

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




Re: Orion + IE + HTTPS = Trouble

2001-03-26 Thread Klaus Thiele

Hi,

do you have set the parameter "shared="true" in your "secure-web-site.xml"?
i think that solves the problem (reported many times on this list some time ago).

  
>---^^

hope that helps
  klaus

Am Montag, 26. März 2001 17:44 schrieben Sie:
> IE 5.0/5.5 running on 95/98/NT keeps losing it's HTTPS session with
> Orion, which is big trouble if you store logon info there.  By
> default these versions of IE renegotiate their SSL connections every
> two minutes, but this can be changed by adding a DWORD registry
> entry.
>
> HKLM\System\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Clie
>ntCache Time
>
> Adding this entry, and setting it to 0x7FFF has solved all our
> issues with forcing constant logons when running in secure mode, but
> is a major pain because it has to be done for all clients (except
> Win2K and WinME clients)
>
> Since I have never come across this problem when logging on to other
> HTTPS sites on the web, I can't help but wonder if Orion is not
> handling the situation properly (I've tried it on both 1.38 and
> 1.45).  Does anyone else have any experience with this problem, or
> can comment on whether Orion should be handling this without
> modifying every client machine?
>
> Thanks,
>   Bruce
>
> Microsoft reference:
> http://support.microsoft.com/support/kb/articles/Q265/3/69.ASP

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

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




Re: Hardware load balancer

2001-03-26 Thread Klaus Thiele

Hi,

a 'hardware loadbalancer' was  too expensive for us, but we
are using a 'linux virtual server' which do the same thing without
any cost - very good.
look at http://www.linuxvirtualserver.org

klaus

> -Original Message-
> From: calvin matthews [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 26, 2001 3:42 PM
> To: Orion-Interest
> Subject: Hardware load balancer
>
>
> Hi,
>
> How can you replace the loadbalancer application with a hardware load
> balancer, such that all servers are accessing the same application
> and the session integrity is maintained?
>
> Has any one done it?
>
> Thanks,
>
> Calvin

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

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




Re: Orion 1.4.7?

2001-03-09 Thread Klaus Thiele

Am Freitag,  9. März 2001 09:50 schrieben Sie:
> Hello
>
> Anyone could tell me where I can download Orion 1.4.7

$ cd /opt/orion
$ java -jar autoupdate.jar
or via proxy:
$ java -DproxyPort=portnum -DproxyHost=hostname -jar autoupdate.jar

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

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




Re: Orion and SSL

2001-02-13 Thread Klaus Thiele

Hi Daniel,

i think, many people had many stress to get orion work with ssl
(and a real cert from anywhere).

my expirience is: read the archives some hundred times crosswise, test
thousands of things by your own and - at least - it works fine!
i think there is nobody out there, who can give the ultimative answer
on "what-goes-wrong-with-my-certificate".

did you get it work with an test-cert from thawte?

finally i got it work with a "real cert" from thawte in the same
manner as with the test-cert.

i did not got it work with _any_ cert from verisign.
(but some people on the list reported that it do)

hope that helps
   klaus

Daniel Lopez wrote:

> As I've got no answer at all. Should I just suppose you cannot get Orion
> to work with SSL with an already created certificate by Verisign? Did
> the message just get lost somehow? Help, somebody? :)
> Thanks,
> Dan
> 
> Daniel Lopez wrote:
> 
>> Hi,
>> 
>> I've already browsed the list archive and I've seen that many people
>> have had this problem but I didn't find a solution. So my problem is the
>> typical "Error listening to SSLServerSocket: No available certificate
>> corresponds to the SSL cipher suites which are enabled" I already
>> imported the certificate using "keytool -import -trustcacerts -file
>> mycert.der -keystore keystore", the certificate has been granted to the
>> same hostname which is specified in the mysite-web-site.xml file, the
>> certificate is valid until october, created by Verisign, 1024
>> public-key..., SSLv1, it works fine with Apache. So, is there any log
>> file where I can get a more specific error message? Have I forgotten to
>> do something? Any hints?
>> TIA,
>> Dan

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

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





Orion 1.4.7 error with SessionBean

2001-02-06 Thread Klaus Thiele

Hello,

i just trying to run my application with 1.4.7.

in my (stateless)session bean i have following code:

public void setSessionContext(SessionContext context)...
...
ic = new InitialContext();
Context rootCtx = (Context)ic.lookup("java:comp/env");
...

with 1.4.7 i get following exception:
   javax.ejb.EJBException: java:comp/env not found (not inside a J2EE 
   module, for instance a Web-App, EJB, or Application-Client)

whats that!?
did i miss something?

i will better stay at 1.4.0 for a while :(

klaus

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

  "There's got to be more to life than compile-and-go."





How to do...

2001-01-28 Thread Klaus Thiele

Hello,

i have an application "app1" (ejb's,...) deployed in an ear-file to the
orion server.

i want to create a second application "app2" which can access some
ejb's in "app1".

Is this possible? How to do?

please point me in the right direction.

thanks a lot
  klaus

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

  "There's got to be more to life than compile-and-go."





Re: Jikes

2001-01-18 Thread Klaus Thiele

Hi Rabi,

look at config/server.xml:

  
  

klaus

Rabi Satter wrote:

> Has anyone got Jikes to work with Orion? If so how?
> 
> Thanks
> Rabi Satter
> 
> 
> 
> 





Re: How to configure Orion to use Oracle

2001-01-17 Thread Klaus Thiele

Danut Prisacaru wrote:

> I am trying to use Oracle database with Orion. In the "data-source.xml" 
> file I have added:
> 
>   class="com.evermind.sql.DriverManagerDataSource"
>   name="Oracle"
>   schema="database-schemas/oracle.xml"
>   location="jdbc/OracleCoreDS"
>   xa-location="jdbc/xa/OracleXADS"
>   ejb-location="jdbc/Myapollo"
>   connection-driver="oracle.jdbc.driver.OracleDriver"
>   username="system"
>   password="manager"
>   url="jdbc:oracle:oci8:@APOLLO"
>   inactivity-timeout="30"

try:url="jdbc:oracle:thin:@APOLLO:_port_number_:_oracle_sid_"
and put classes111.zip from 8.0.5 or 8.1.6 in orion/lib.

hope that helps.
   klaus

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

  "There's got to be more to life than compile-and-go."





Re: Transaction Based Session Bean

2001-01-12 Thread Klaus Thiele

Santosh Kumar wrote:

>  
> 
> Can anyone mail me a sample non-trivial Transaction-based Stateful session.
> 
> or any links to such programs.

trivial or non-trivial, the transactions work or not
... or what do you mean?

import javax.transaction.*;
   [...]
public class myBean implements SessionBean {
 private UserTransaction ut = null;
   [...]
public void setSessionContext(SessionContext context)
  throws RemoteException
{
  [...]
   try {
 ut = ctx.getUserTransaction();
   } catch (Exception ex) {
  throw new EJBException(ex.getMessage());
   }
  [...]
}
public void myMethod( )
 throws [...]
{
   try {
 ut.begin();
...code...
 ut.commit();}
   } catch

hope that helps
   klaus

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

  "There's got to be more to life than compile-and-go."





Re: Urgent: Orion/SSL with Thawte-Cert

2001-01-12 Thread Klaus Thiele

Hello,

thanks everybody for help!

i discovered that the passwords for the keystore and the
key *must* match.

with my test-certs i always do this.

but the real cert (and keystore) was generated by another person who 
sets two different passwords.

after setting the passwords equal - IT WORKS :)))

thanks
   klaus

PS:
  did anybody who has a orion-licence get response
  from [EMAIL PROTECTED] (or karl/magnus)
  are they still alive?


Klaus Thiele wrote:
[...]

>>> 
>>> after a long time i've got now the real Cert from Thawte.
>>> 
>>> but now I get following error when orion comes up:
>>> 
>>> Error starting HTTP-Server: Unable to intialize 
>>> SSLServerSocketFactory 'com.evermind.ssl.JSSESSLServerSocketFactory': 
>>> Unrecoverable key error: Cannot recover key
>>> 
 [...]

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

  "There's got to be more to life than compile-and-go."





Re: URGENT: Problems with Orion load balancer.

2001-01-10 Thread Klaus Thiele

Tony J Brooks wrote:

> Juan,
> 
> Yes, we are using loadbalancer.jar.  Thanks for letting me know that this
> has known problems.
> It looks as though for deployment we will need an alternative.
> 
> Can anyone recommend hardware/software alternatives that they have used
> successfully with Orion ?

i'm using "LinuxVirtualServer" (LVS) for loadbalancing.
see http://www.linuxvirtualserver.org"

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

  "There's got to be more to life than compile-and-go."





Re: Urgent: Orion/SSL with Thawte-Cert

2001-01-10 Thread Klaus Thiele


thanks, but...
 > 1.0.2 NOT FOR U.S. EXPORT version. This version will support 128bit
this was the version that comes with the last orion-distribution.
ok. i try it with a new copy from sun but the same error :(

what can i do?

thanks
   klaus

Sach Jobb wrote:

> No problem.
> 
> Well, other have got the Thawte SuperCert working before so i think you
> are in good shape. 
> 
> I'm not sure if this is the cause of your error message, but the version
> of the JSSE that comes with orion will only do 40bit encryption so you
> will have to go to http://java.sun.com/products/jsse/ and download the
> 1.0.2 NOT FOR U.S. EXPORT version. This version will support 128bit
> encryption. Simply follow the instructions that come with the download to
> install.
 [...]
>> thanks for responding.
>> 
>> it's a "Thawte SuperCert" (128 bit(?))
>> i'm using the JSSE that comes with orion.
>> 
>> thanks
>>klaus
>> 
>> Sach Jobb wrote:
>> 
>> 
>>> 128bit is a try-your-luck situation. I got it to work with the verisign
>>> netscape 128bit and i heard someone on the list say that they got the
>>> "supercert" (or something like that) with thawte to work too.
>>> 
>>> Sounds like it can't read the keystore, but i think that's a different
>>> error message. Klaus, can you give us more info on the type of cert you
>>> have, which version of the JSSE you are using, etc?
 [...]
>>>> 
>>>> after a long time i've got now the real Cert from Thawte.
>>>> 
>>>> but now I get following error when orion comes up:
>>>> 
>>>> Error starting HTTP-Server: Unable to intialize SSLServerSocketFactory 
>>>> 'com.evermind.ssl.JSSESSLServerSocketFactory': Unrecoverable key error: 
>>>> Cannot recover key
>>>> 
 [...]

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

  "There's got to be more to life than compile-and-go."





Re: Urgent: Orion/SSL with Thawte-Cert

2001-01-09 Thread Klaus Thiele

thanks for responding.

it's a "Thawte SuperCert" (128 bit(?))
i'm using the JSSE that comes with orion.

thanks
   klaus

Sach Jobb wrote:

> 128bit is a try-your-luck situation. I got it to work with the verisign
> netscape 128bit and i heard someone on the list say that they got the
> "supercert" (or something like that) with thawte to work too.
> 
> Sounds like it can't read the keystore, but i think that's a different
> error message. Klaus, can you give us more info on the type of cert you
> have, which version of the JSSE you are using, etc?
> 
> thanks,
> sach
> %s/windows/linux/g
> 
> On Tue, 9 Jan 2001, Juan Lorandi (Chile) wrote:
> 
> 
>> won't it be a 128 bit certificate which orion can't handlewon't
>> it?
>> 
>> JP
>> 
>> -Original Message-
>> From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
>> Sent: Martes, 09 de Enero de 2001 13:09
>> To: Orion-Interest
>> Subject: Urgent: Orion/SSL with Thawte-Cert
>> 
>> 
>> Hello,
>> 
>> after a long time i've got now the real Cert from Thawte.
>> 
>> but now I get following error when orion comes up:
>> 
>> Error starting HTTP-Server: Unable to intialize SSLServerSocketFactory 
>> 'com.evermind.ssl.JSSESSLServerSocketFactory': Unrecoverable key error: 
>> Cannot recover key
>> 
[...]


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

  "There's got to be more to life than compile-and-go."





Urgent: Orion/SSL with Thawte-Cert

2001-01-09 Thread Klaus Thiele

Hello,

after a long time i've got now the real Cert from Thawte.

but now I get following error when orion comes up:

Error starting HTTP-Server: Unable to intialize SSLServerSocketFactory 
'com.evermind.ssl.JSSESSLServerSocketFactory': Unrecoverable key error: 
Cannot recover key

whats that?

please help!

thanks
   klaus

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

  "There's got to be more to life than compile-and-go."





Urgent: Orion/SSL with Thawte-Cert

2001-01-08 Thread Klaus Thiele

Hello,

after a long time i've got now the real Cert from Thawte.

but now I get following error when orion comes up:

Error starting HTTP-Server: Unable to intialize SSLServerSocketFactory 
'com.evermind.ssl.JSSESSLServerSocketFactory': Unrecoverable key error: 
Cannot recover key

whats that?

please help!

thanks
   klaus

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

  "There's got to be more to life than compile-and-go."





Re: Anyone heard from evermind?

2000-12-07 Thread Klaus Thiele

Robert Krueger wrote:

> 
> Hi fellow orion users,
> 
> is it just my imagination or have things become VERY quiet around 
> evermind? I haven't seen a post on this forum in quite some time now 

VRY quiet!

> (ok, it's a community forum but they used to drop in from time to time), 
> no bug status that I registered for notification has changed and no new 
> developer versions of orion. before I'm the 100th person/customer to 
> bombard the support address with "what's up" type of mails, does anyone 
> know what they're up to/working on.

i'm very interested in this too! let's bomb together ;)

klaus

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

  "There's got to be more to life than compile-and-go."





Re: load balancer setup?

2000-12-06 Thread Klaus Thiele

Terence Kwan wrote:

> On a some what unrelated question, anybody know how to setup Linux clustering?

Yes :)
i will go in production with this in some days.

look at
   http://www.linuxvirtualserver.org

bye
   klaus

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

  "There's got to be more to life than compile-and-go."





Re: org.apache.struts.action.MESSAGE exception with orion 1.4

2000-12-06 Thread Klaus Thiele


thanks David,

struts 0.5 is not the problem!
we are talking about 1.0.


David Smith wrote:

> I have struts 0.5 working with Orion - you need to make sure that the 
> struts action sevlet is loaded before any of your other servlets using 
> the load-on-startup attribute in web.xml, and that the application item 
> does actually refer to a valid properties file.
> 
> I was able to take the example web.xml and actions.xml and get a working 
> app in about 15 minutes.
> 
> Klaus Thiele wrote:
> 
> Juan Gargiulo wrote:
> 
>  > Did somebody found a work-around for the "Missing resources" 
> problem in
>  > Orion 1.4?
>  > I tried several different potential solutions but none of them 
> worked. I
>  > really need to get struts 1.0 working with Orion 1.4 ASAP.
> 
> Me too, please!
> 
> klaus
   [...]


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

  "There's got to be more to life than compile-and-go."





Re: org.apache.struts.action.MESSAGE exception with orion 1.4

2000-12-06 Thread Klaus Thiele
on 1.4
>> 
>> Struts 1.0 example (11/15 nightly) is not working on Orion (1.2.9) either.
>> It seems something is wrong with 'jndi' as it use jndi to resolve
>> 'struts-config_1_0.dtd'.
>> 
>> Here is a common exception ...
>> 
>> java.net.MalformedURLException: unknown protocol: jndi
>> at
>> org.apache.struts.digester.Digester.resolveEntity(Digester.java:619)
>> at
>> com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:46)
>> at com.sun.xml.parser.Parser.pushReader(Parser.java:2768)
>> at
>> com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2504)
>> at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
>> at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
>> at com.sun.xml.parser.Parser.parse(Parser.java:284)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
>> at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
>> at org.apache.struts.digester.Digester.parse(Digester.java:754)
>> at
>> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java,
>> Compiled Code)
>> at
>> org.apache.struts.action.ActionServlet.init(ActionServlet.java:393)
>> at javax.servlet.GenericServlet.init(GenericServlet.java)
>> at com.evermind.server.http.HttpApplication.vt(JAX)
>> at com.evermind.server.http.HttpApplication.vc(JAX)
>> at com.evermind.server.http.HttpApplication.tp(JAX, Compiled Code)
>> at com.evermind.server.http.d5.rx(JAX, Compiled Code)
>> at com.evermind.server.http.d5.rw(JAX, Compiled Code)
>> at com.evermind.util.f.run(JAX, Compiled Code)
>> 
>> -Original Message-
>> From: Denis Hanson [mailto:[EMAIL PROTECTED]]
>> Sent: Sunday, November 19, 2000 4:12 PM
>> To: [EMAIL PROTECTED]
>> Subject: org.apache.struts.action.MESSAGE exception with orion 1.4
>> 
>> Hi all,
>> 
>> I've encountered the ever-popular Missing resources attribute
>> org.apache.struts.action.MESSAGE error when trying to access the
>> struts-example application using Win NT, orionserver 1.4, jdk1.3 and
> 
> struts
> 
>> from 13Nov.  I've searched through the struts message archives and tried
> 
> all
> 
>> the suggestions I could find, but still no luck.  (I was able to deploy
> 
> the
> 
>> example on JRun 3.0, but not on orionserver.)
>> 
>> Any help will be greatly appreciated because I definitely want to use
>> orionserver instead of JRun.
>> 
>> Here's the error:
>> 
>> javax.servlet.jsp.JspException: Missing resources attribute
>> org.apache.struts.action.MESSAGE
>> at
>> org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:232)
>> at /index.jsp._jspService(/index.jsp.java:39) (JSP page line 8)
>> at com.orionserver.http.OrionHttpJspPage.service(JAX)
>> at com.evermind.server.http.HttpApplication.xa(JAX)
>> at com.evermind.server.http.JSPServlet.service(JAX)
>> at com.evermind.server.http.d3.so(JAX)
>> at com.evermind.server.http.d3.sm(JAX)
>> at com.evermind.server.http.ef.su(JAX)
>> at com.evermind.server.http.ef.dn(JAX)
>> at com.evermind.util.f.run(JAX)
>> 
>> Here's my application.xml entry:
>> 
>> >  path="d:\struts\webapps\struts-example.war"/>
>> 
>> Here's my default-web-site.xml entry:
>> 
>> >  root="/struts-example"/>
>> 
>> Orion is at d:\orion and struts is at d:\struts.
>> 
>> Thanks,
>> 
>> Denis Hanson

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

  "There's got to be more to life than compile-and-go."





Re: org.apache.struts.action.MESSAGE exception with orion 1.4

2000-11-23 Thread Klaus Thiele

Hello,

Craig R. McClanahan wrote:

   [...] 
> I would suggest instead that Orion fix their buggy classloader.  This particular
> issue has nothing to do with the servlet specification -- Orion is not
> implementing the getResource() method of java.lang.ClassLoader, which is used by
> the ResourceBundle classes of the JDK, correctly.

i'd like to switch my application from struts-0.5 to 1.0.

it is possible to get 1.0 work with orion 1.4.x?

i tried a patch posted on this list:

 > > > seems be caused from the following line in ActionServlet.java > line
 > > 881):
 > > > > URL url = this.getClass().getResource(registrations[i+1]);
 > > > > when this is replaced with:
 > > > > URL url =
 > getServletContext().getResource(registrations[i+1]);
 > > > > the dtd is found and everything works.

but then the request to struts-example "hangs" forever.

thanks for help
   klaus

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

  "There's got to be more to life than compile-and-go."





Re: EJB Performance Question.

2000-11-14 Thread Klaus Thiele

Hi ±èöȸ,


>  public Vector EJBToRow(Dir dir) throws Exception {
[...]
>   row.add(dir.getId());
>   row.add(new Long(dir.getPId()));
>   row.add(dir.getName());
>   row.add(new Long(dir.getSerial()));
>   row.add(new Long(dir.getChildCount()));
>   row.add(new Long(dir.getDepth()));
[...]

> What's the key problem?

thats not a problem, thats a feature!
(each remote call runs within an transaction...)

study all the EJB-docs you can get and redesign your app.

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

"There's got to be more to life than compile-and-go."





Re: dual cpu linux problems

2000-11-10 Thread Klaus Thiele

Rob Lapensee wrote:
> 
> Hello all,
> 
> Has anyone tested Orion with dual CPU on Linux?
> We have purchased and deployed Orion on several DELL 1300's with
   [...]

i'm running Orion 1.4.0 on RH 6.2
(without any patches, but with Standard-Kernel 2.2.17)
and Sun's JDK1.3 on two cpu without problems.

$java -server -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Java HotSpot(TM) Server VM (build 1.3.0, mixed mode)

next week i will setup an four cpu dell and i hope
also to have no problems.

bye
  klaus

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

 "There's got to be more to life than compile-and-go."




Re: EJB Clustering in Orion

2000-11-02 Thread Klaus Thiele

Julian Khoo wrote:

> Does anyone have any experience clustering Orion EJB servers
> successfully in a production (or even development) environment? I've tried
> clustering a web application and it generally seems OK. However, in order to
> eliminate single points of failure in deployment, I assume that I would have
> to cluster the EJBs as well. To do that, I've tried running multiple copies
> of Orion on separate machines, all of them accessing a common set of ejb
> class files, jsp files, etc from a shared location as well as a common
> datasource with exclusive-write-access="false" in the orion-ejb-jar.xml
> files.

i'm running some Orion Servers in an "Linux Virtual Server" Cluster
(http://www.linuxvirtualserver.org) currently only in my development
environment but in short also in production.
  Linux 2.2.17, Orion 1.4.0, Sun JDK 1.3, Oracle 8.0.5/8.1.6

bye
  klaus

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

 "There's got to be more to life than compile-and-go."




Re: Orion/SSL and InternetExplorer

2000-10-26 Thread Klaus Thiele

Hi,

thanks for the quick answer.
but this has no effect :(

> 
> It's appearently a problem with the SSL implementaion (Sun code).
> 
> Make sure in your $ORION/config/[name]-web-site.xml you set the
> shared="true" for your web app.
> 
> 
> 
> BTW: This is in the mail list archives, atleast a half dozen times.
> 
> > -Original Message-
> > From: Klaus Thiele [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, October 26, 2000 5:45 AM
> > To: Orion-Interest
> > Subject: Orion/SSL and InternetExplorer
[...]
> >
> > it seems, that the configured timeout value was
> > completly ignored - after 1-2 min, the session was lost!
> >
[...]

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

 "There's got to be more to life than compile-and-go."




Orion/SSL and InternetExplorer

2000-10-26 Thread Klaus Thiele

Hi,

has anyone else also strange problems with
Orion/SSL and M$ IE 4.x/5.x?

it seems, that the configured timeout value was
completly ignored - after 1-2 min, the session was lost!

this does not happen with netscape or not using SSL.

thanks
  klaus

PS:
is the Orion-Team completly on holidays?
since a few days i send some requests to
[EMAIL PROTECTED] [priority:CMR...] but no response!

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

 "There's got to be more to life than compile-and-go."




get reference to UserTransaction fails

2000-10-24 Thread Klaus Thiele

Hello,

i'm using transactions within servlets, sessionbeans
with no problems.

now i'm trying this from an ordinary app-client but it
caught an exception:
   "java:comp/UserTransaction not found"

what goes wrong?

thanks a lot
  klaus


 import javax.naming.*; 
 import javax.transaction.*; 
 ... 
 TransactionManager tm =
   (TransactionManager)new
InitialContext().lookup("java:comp/UserTransaction");

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

 "There's got to be more to life than compile-and-go."




Re: Deployment platforms

2000-10-14 Thread Klaus Thiele

Mike Cannon-Brookes wrote:
> 
[...]
> > > 6. What has been your experience (stability, performance, managability,
> > > etc) - mainly of the underlying platform, not orion.
> Perfect, we've never had any problems with the OS or the DB (Sybase
> 11.0.3.3). Our only problem now is twofold:
> 1) Finding a way for Orion effectively to run as something other than root.

some time ago there was a nice tip from a guy on this list:

Linux kernel configuration:
  Networking options  --->
[*] IP: firewalling
[*] IP: transparent proxy support

and then a small startup-script:
   [...]
   start)
   echo -n "Redirect port 80"
   /sbin/ipchains -A input -p tcp -s 0/0 -d 0/0 80 -j REDIRECT 8000
this should also work (https):
   /sbin/ipchains -A input -p tcp -s 0/0 -d 0/0 443 -j REDIRECT 8443
   [...]

then you can run orion as any user you want.

hope that helps
  klaus

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

 "There's got to be more to life than compile-and-go."




Re: How to pass parameters to JVM

2000-10-11 Thread Klaus Thiele

Dumitru Sbenghe wrote:
> 
> How to config orion to pass parameters to java.exe.
> 
> Example from jserv config
> wrapper.bin.parameters=-mx128m -Dapp.config=c:/windows/etc/app.conf

try
  java -Xmx128m _and_other_java_parms_ -jar orion.jar 

java -? or java -X shows available parameters ;)

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

 "There's got to be more to life than compile-and-go."




load-balancing limitations?

2000-10-09 Thread Klaus Thiele

Hello,

i just set up load-balancing as described in the documentation.

i testet with "default-web-app" and some servlets and it seems
to work fine.

then i tried my struts-based application and i got following exception:

---snipp-
java.lang.IllegalArgumentException: Only java.io.Serializable, 
  javax.ejb.EJBObject and javax.ejb.EJBHome instances can be bound 
  to a session in a distributable web-application
at com.evermind.server.http.ClusteredHttpSession.setAttribute(JAX)
at com.evermind.server.http.EvermindHttpSession.putValue(JAX)
at com.evermind.server.http.EvermindPageContext.setAttribute(JAX)
 -> at org.apache.struts.taglib.FormTag.doStartTag(FormTag.java:510)
<-
at /logon.jsp._jspService(/logon.jsp.java:73) (JSP page line 27)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xa(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.so(JAX)
at com.evermind.server.http.d3.sm(JAX)
at com.evermind.server.http.ef.su(JAX)
at com.evermind.server.http.ef.dn(JAX)
at com.evermind.util.f.run(JAX)
---snipp-
FormTag.java:510
pageContext.setAttribute(name, bean, scope);
---snipp-

whats the problem?

thanks a lot
  klaus

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

 "There's got to be more to life than compile-and-go."




Re: Announcement: simple Application Generator

2000-09-29 Thread Klaus Thiele

Paolo Sommaruga wrote:
> 
> I am interested in further information
> 
> Paolo Sommaruga
> 
> Garda Access
> Garda, Verona
> Italy
> http://www.garda-access.com/
> 

attached.
good luck ;)

klaus

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

 "There's got to be more to life than compile-and-go."
 ejbgen.tar.gz


Re: Announcement: simple Application Generator

2000-09-28 Thread Klaus Thiele

ishpal wrote:
> 
> Hi,
> 
> I'd be interested in a copy :-)

attached.
good luck ;)

klaus

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

 "There's got to be more to life than compile-and-go."
 ejbgen.tar.gz


Announcement: simple Application Generator

2000-09-28 Thread Klaus Thiele

Hello,

we have just finished our first
  _very_simple_ "Application Generator"

from an existing database-table (with primarykey) it generates
following files:

--- Enterprise JavaBean (BMP) ---
table.java   - EJB RemoteInterface
tableHome.java   - EJB HomeInterface
tableEJB.java - EJB Implementation
tablePK.java   - EJB PrimaryKey Class
tableData.java - DataObject

--- Jakarta_Struts Files ---
EditTableAction.java -  struts edit action
SaveTableAction.java   -  struts save action
TableForm.java-  form bean
TableHelper.java  -  interface to ejbean
 table.jsp -  jsp page (not jet finished)

it does not generate "plug'n play" code, you have to do _many_ things manually.
but the output  is very usefull to develop new struts-based ejb-applications.

requirements:
  jdk, jakarta-ant (for building), jakarta-struts
  JSP/EJB/Servlet Container
  Database: PostgreSQL, Informix, Oracle (perhaps HypersonicSQL, ODBC)

where_to_get:
   send me a mail, i'll send you the whole thing.

bye
  klaus

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

 "There's got to be more to life than compile-and-go."




Re: Where to put orion-ejb-jar.xml in the jar file

2000-09-27 Thread Klaus Thiele

Hello,

> I have been able to successfully deploy some CMP EJBs on Orion server. The
> issue is that I have to copy the orion-ejb-jar.xml file to the
> application-deployments directory if I change this file. Is it possible to
> include this file in the jar file for EJBs. I tried adding this file to
> these directories in the jar file: META-INF, orion, META-INF\orion and it
> didn't work.

ejb-jar.jar:
 --+ /META-INF
   |ejb-jar.xml
   + /orion
orion-ejb-jar.xml

webapp.war:
 --+ /WEB-INF
web.xml
orion-web.xml

hope that helps
  klaus

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

 "There's got to be more to life than compile-and-go."




Re: Postgres Datasource

2000-09-06 Thread Klaus Thiele

Hi Michel,

> 
> How could I configure a datasource for postgres ?
> 

    


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

 "There's got to be more to life than compile-and-go."




Re: Strange error with Netscape

2000-09-06 Thread Klaus Thiele

Hello,

> HTTP/1.1 413 Request Entity Too Large Date: Wed, 06 Sep 2000 13:17:26
> GMT Server: Orion/1.3.1 Connection: Close Content-Type: text/html
> 413 Request Entity Too Large

me too, also with IE.

and _tons_ of...

Auto-deploying ejb-jar.jar (New server version detected)... 
Found 6 semantic errors compiling "mandantHome_EntityHomeWrapper13.java":
   195.   addedNow = transaction != null;
  <->
*** Error: No field named "transaction" was found in type 
"mandantHome_EntityHomeWrapper13". However, there is an accessible field 
"transactionManager" whose name closely matches the name "transaction".

...messages for each ejb at startup.

klaus

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

 "There's got to be more to life than compile-and-go."




deploying orion-web.xml

2000-09-04 Thread Klaus Thiele

Hello,

i know how to deploy an "orion-ejb-jar.xml" - and it works fine.

is it also possible to deploy an "orion-web.xml"?
i'd like to set "development and directory-browsing" parameters at deploy-time.

adding an "orion/orion-web.xml" to the .war file does not work.

any hints?
thanks in advantage

klaus

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

 "There's got to be more to life than compile-and-go."




Re: Something changed in 1.2.4 for client-module auto-start

2000-08-25 Thread Klaus Thiele

Am Fre, 25 Aug 2000 schrieben Sie:

> I just updated to 1.2.4 and noticed that a configuration that was
> working under 1.2.0 is not working under 1.2.4.  I get the error: No

where can i get orion.1.2.4.jar???

thanks
  klaus

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

 "There's got to be more to life than compile-and-go."




ejbLoad missing

2000-08-22 Thread Klaus Thiele

Hello,

i just discovered, that the ejbLoad() method was
NOT called at the second (and subsequent) calls to the
remote methods (BMP).
(until an passivation or ejbStore is done).

yes, i checked the ejb-jar.xml for correct container-transaction's.
with the j2sdkee it works correct!

first call:
== pgrdatEJB: setEntityContext()
== pgrdatEJB: ejbFindByPrimaryKey(002|006|3330|1999-01-01)
== pgrdatEJB: ejbActivate(2063956369, PK = 002|006|3330|1999-01-01)
== pgrdatEJB: ejbLoad(2063956369, PK = 002|006|3330|1999-01-01)

 ... changing the row from outside ...

next call(s):
== pgrdatEJB: setEntityContext()
== pgrdatEJB: ejbFindByPrimaryKey(002|006|3330|1999-01-01)
thats  it!!!  - the client got the old data!!!

any hints?

thanks a lot
   klaus

ps: tested with 1.0.3b and 1.2.0

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

 "There's got to be more to life than compile-and-go."




Orion on IBM AS/400

2000-08-09 Thread Klaus Thiele

Hello,

has anyone running the Orion Server nativ on the AS/400?

i try this, but i got following exception (jdk 1.2.2):
   []
Klasse com/evermind/naming/archive/in.class wird aus /home/LOGAPGMR/orion/orion.jar 
geladen
Klasse com/evermind/naming/memory/ih.class wird aus /home/LOGAPGMR/orion/orion.jar 
geladen
Klasse javax/naming/NameClassPair.class wird aus /home/LOGAPGMR/orion/jndi.jar geladen
Klasse java/text/DateFormat.class wird aus /QIBM/ProdData/Java400/jdk12/lib/rt.jar 
geladen
Klasse com/evermind/server/rmi/RMIPermission.class wird aus 
/home/LOGAPGMR/orion/orion.jar geladen
Klasse java/math/BigInteger.class wird aus /QIBM/ProdData/Java400/jdk12/lib/rt.jar 
geladen
Klasse com/evermind/security/Group.class wird aus /home/LOGAPGMR/orion/orion.jar 
geladen
Klasse com/evermind/server/gb.class wird aus /home/LOGAPGMR/orion/orion.jar geladen
Klasse java/security/cert/X509Certificate.class wird aus 
/QIBM/ProdData/Java400/jdk12/lib/rt.jar geladen
Klasse java/security/cert/X509Extension.class wird aus 
/QIBM/ProdData/Java400/jdk12/lib/rt.jar geladen
Klasse java/util/HashSet.class wird aus /QIBM/ProdData/Java400/jdk12/lib/rt.jar geladen
java.lang.NullPointerException
  java/security/BasicPermission.hashCode()I+4 (BasicPermission.java:203) 
  java/util/HashMap.put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+15 
(HashMap.java:329) 
  java/util/HashSet.add(Ljava/lang/Object;)Z+8 (HashSet.java:164) 
  com/evermind/server/gb.aib(Ljava/security/Permission;)V+4 (JAX:0) 
  com/evermind/server/XMLUserManager.aes(Lorg/w3c/dom/Node;)V+185 (JAX:0) 
  com/evermind/server/XMLUserManager.aeq(Lorg/w3c/dom/Node;)V+41 (JAX:0) 
  com/evermind/server/XMLUserManager.em(Lorg/w3c/dom/Node;)V+31 (JAX:0) 
  com/evermind/server/XMLConfig.afd(Lorg/w3c/dom/Node;Z)V+153 (JAX:0) 
  com/evermind/server/XMLConfig.cp([BZ)V+128 (JAX:0) 
  com/evermind/server/XMLConfig.cp(Ljava/net/URL;)V+49 (JAX:0) 
  com/evermind/server/XMLServerConfig.aeu(Ljava/lang/String;)V+16 (JAX:0) 
  com/evermind/server/XMLServerConfig.lj()V+364 (JAX:0) 
  com/evermind/server/XMLApplicationServerConfig.lj()V+1 (JAX:0) 
  com/evermind/server/XMLConfig.cp([BZ)V+242 (JAX:0) 
  com/evermind/server/XMLConfig.cp(Ljava/net/URL;)V+49 (JAX:0) 
  com/evermind/server/ga.run()V+23 (JAX:0) 
  java/lang/Thread.run()V+11 (Thread.java:479) 
  com/evermind/util/e.run()V+7 (JAX:0) 

any idea?

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

 "There's got to be more to life than compile-and-go."




How to Directory index

2000-08-04 Thread Klaus Thiele

Hello,

how do i configure "Directory browsing" with Orion?

i got "403 Forbidden - Directory browsing not allowed" if i try to
access a directory.

thanks a lot
  klaus

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

 "There's got to be more to life than compile-and-go."




RE: Session time out TOOOO early!

2000-07-11 Thread Klaus Thiele

Hi,

i'd like to have this featue too.

but it works only for _servlets_,...!!!
NOT for beans which are only used in jsp-pages!!
try to change any bean from the struts-example
(i.e. com/apache/struts/example/...)

klaus

ps: or did i miss some configuration entrys/switches?

On Mit, 12 Jul 2000, Mike Cannon-Brookes wrote:
>Orion does detect changed beans. If you place the source in the classes
>directory, it will also detect changes to the source and automatically
>recompile.
>
>ie alter source ... save... reload page and voila!

>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Tom Wnuk
>Sent: Wednesday, July 12, 2000 8:36 AM
>To: Orion-Interest
>Subject: RE: Session time out T early!
>
>
>Are you saying Orion detects changes in JSP used beans?
>
>That's great if it truly does because most jsp/servlet engines out there do
>Not.  If the JSP page changes then it will be recompiled but that doesn't
>necessarily mean you'll get the new bean unless Orion has their own
>class-loader.  The bean class is already loaded in the JVM, not your
>instance but the class used for creating instances.  I don't know of anyone
>who dynamically reloads the beans.  In order to pick up the new bean the
>server needs to be restarted.
>
>I hope you're right because this has been a big headache in managing changes
>to JSP used beans.
>
>My $0.2.
>
>Tom
>-Original Message-
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Steven Punte
>Sent: Tuesday, July 11, 2000 1:11 PM
>To: Orion-Interest
>Cc: Orion-Interest
>Subject: Re: Session time out T early!
>
>
>If a JSP pages uses a session bean, not EJB but just a server side java
>bean,
>and that bean is recompiled, the server will detect this and reload it,
>but
>it will also dump and re-start a users present session.  This makes
>sense.
>Otherwise there would be an attempt  to use the old session bean object
>in the context of the new compiled session bean.
>
>In summary the session will appear time-out any time a related bean
>being used in session scope is recompiled.
>
>
>STeve Punte
>e-Business Software Architect
>Technologent Inc
>[EMAIL PROTECTED]
>- Original Message -
>From: Porfiriev Sergey
>To: Steven Punte
>Sent: Monday, July 10, 2000 7:24 PM
>Subject: Re: Session time out T early!
>
>
>I have the same problem, mail me if u received solution
>- Original Message -
>From: Steven Punte
>To: Orion-Interest
>Sent: Monday, July 10, 2000 3:19 PM
>Subject: HELP: Session time out T early!
>
>
>Help:
>
>I'm having serious problem with the servlet session timing-out
>way before it should.  I'm running Orion on Solaris, and typically
>only see the problem when development is active (i.e. team
>members changing server side java bean files).
>
>
>I have set the session time-out to 6 hours in the web.xml file as show
>below:
>
>
>
>snoop
>snoop
>SnoopServlet
>
>
>360
>
>
>BASIC
>
>
>
>My JSP file is as simple as possible:
>
><%@ page language="java" session="true" %>
><%@ page import="java.util.*" %>
>
>
><%= "Session Bug" %>
>
>
>
>  Session Information:
>  Last Accessed <%= new Date( session.getLastAccessedTime()) %>
>  Creation Time <%= new Date( session.getCreationTime() ) %>
>  ID <%= session.getId() %>
>  Max Interval <%= session.getMaxInactiveInterval() %>
>
>
>
>In the above examples, the creation time typically only hold from 5
>minutes to 15 minutes,
>and will then move forward to the present time forgetting all other
>session information.
>
>Any suggestion greatly appreciated:
>
>
>STeve Punte
>e-Business Software Architect
>Technologent Inc
>[EMAIL PROTECTED]
-- 
--
Klaus Thiele - Personal & Informatik AG
mailto:[EMAIL PROTECTED]

 "There's got to be more to life than compile-and-go."




Exception propagation, UserTransactions

2000-07-09 Thread Klaus Thiele

Hello,

- i have an EntityBean which throws an
ObjectNotFoundException in its ejbFindByPrimaryKey() method
if the requested record could not be read.

- i have a SessionBean which resolves in its ejbCreate() method
the HomeInterface from some EntityBeans.
!! Container !!

- in one of my methods of the SessionBean, i tried to locate a record
from the EntityBean via a call to home.findByPrimaryKey(newPK).

coding in my SessionBeanmethod getit(String myparam):
   try {
  myPK = new beanPK(myparam);
  sref = shome.findByPrimaryKey(myPK);
  //-> ok, got it
   } catch(Exception ex) {
 //catch all exceptions thrown by the EntityBean
 ... set some default values and 
 ... return to the user, forget the exception.
 return;
   }
   
not very exotic until here!(?)

my client code is also very simple:

   try {
 ref = home.create();
   } catch( ...

   try {
 ref.getit(myparam);
   } catch( ...

i expect now that the exception was caught by the SessionBean if the
record was not found and then normally return to the clientcode.
BUT the exception was propagated to the clientcode:
   Transaction was rolled back:
  javax.ejb.EJBException: ejbFindByPrimaryKey: Row for id ABC not found.;
   nested exception is: 
javax.ejb.EJBException: ejbFindByPrimaryKey: Row for id ABC not found.

with Sun's J2SDKEE and Inprise IAS it works as i expect!

IF I SWITCH my SessionBean to
  Bean
it works with orion too
 (UNTIL you try to use begin(), commit() - NullPointerException).

any hints? 

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

 "There's got to be more to life than compile-and-go."




RE: SSL -> 100% CPU

2000-07-07 Thread Klaus Thiele

Am Don, 06 Jul 2000 schrieb Magnus Rydin:
> 
> We got 2 sites running SSL at this moment.
> Didnt have any problems setting it up.
> 

> afaik, we followed the docs to the point. notice though, that both sites are still 
>using demo-certificates..

thanks for the "hints", but they did not help me very much!

BUT at this time - I GOT IT

_nowhere_ in the "docs" is described, that on
  https://www.thawte.com/cgi/server/test.exe
you have to select at
   "Type of Test Certificate"
   ---> Test SSL Chained CA Cert <---

... then it works

klaus

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

 "There's got to be more to life than compile-and-go."




Re: calling user servlets

2000-07-06 Thread Klaus Thiele

Am Don, 06 Jul 2000 schrieb Klaus Thiele:

> i want to call
>   http://myhost/MYAPP/servlet/_servlet_class_  ?
> what to do?

thanks a lot.
i had "tomatoes on my eyes" :(((

klaus

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

 "There's got to be more to life than compile-and-go."




calling user servlets

2000-07-06 Thread Klaus Thiele

Hello,

in "config/global-web-application.xml" there is following definition:
  http://myhost/servlet/_servlet_class_ 
(which calls default-web-app/WEB-INF/classes/_servlet_class_ )

i want to call
  http://myhost/MYAPP/servlet/_servlet_class_  ?
what to do?

thanks a lot
  klaus

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

 "There's got to be more to life than compile-and-go."




Re: SSL -> 100% CPU

2000-07-05 Thread Klaus Thiele

Hi Mattias,

> Have you found any solution to the SSL problem? I have tried for days now
> without success.

me too :(
i've read your posting and i tried your steps without success.

> step1.bat:keytool -genkey -keyalg "RSA" -alias testalias -keystore mykeystore -dname
> "cn=My Name, ou=MyCompany, o=MyCompany, c=SE" -storepass 123456 -keypass
> 654321 -validity 360

how did you do that?
my keytool does not accept this parameters. i have to remove -alias, -storepass, 
-keypass
and -validity from the commandline and then it works!?!

step2.bat: i got following error
 keytool error: java.lang.Exception: Failed to establish chain from reply
after removing the initial keystore the import works!?!

> Output when running the scripts:
same as yours.

==> https://my_ip_addr
==> SSL -> 100% CPU :((

i tried with WinNT and Linux, jdk 1.2.2, 1.3 and IBM-jdk1.3
all the same result.

perhaps anyone from the orion-team looks for this bug(?)
this is one of the last "kock-out" points which must be cleared
before we will purchase orion.

bye
  klaus

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

 "There's got to be more to life than compile-and-go."




Re: Orion UserTransaction

2000-07-04 Thread Klaus Thiele

Hi Theo,

long time ago i got following answer:

:> We'll check this out, it does seem weird,
:> Regards,Karl Avedal

the problem is not solved yet.

  klaus

> I'm having exactly the same problem as you.
> May I ask you if (and how) you have solved it?

> > Hello,
> >
> > i have a SessionBean:
> >
> >public class PersonBean implements SessionBean {
> >  private UserTransaction ut = null;
> >  private SessionContext ctx;
> > [...]
> >public void ejbCreate() throws RemoteException, CreateException {
> >   ut = ctx.getUserTransaction();
> >
> > ejb-jar.xml:   
> >   Bean
> >
> > when my client calls the create-method, i get following exception:
> > "Only beans with user-managed transaction can invoke getUserTransaction()"
> >
> > did i miss something?

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

 "There's got to be more to life than compile-and-go."




Re: SSL -> 100% CPU

2000-06-29 Thread Klaus Thiele

On Don, 29 Jun 2000, you wrote:
>At last my generation of the server certificate worked.
>Unfortunately, when I start Orion with SSL turned on, the java process takes
>all the CPU time.
>Seems like Orion gets stuck in an endless loop.
>I have tried this on both Orion 1.0 and 1.1.4
>I followed the instruction for setting up a secure site in the
>dokumentation.
>Has anybody experienced something similar?

i have exactley the _same_  experiences!

the faq for setting up an ssl-server is not easy to understand! -
where/how to get an RSA-provider(?) for the jdk?
- i generate a certificate with openssl
- https://www.thawte.com/cgi/server/test.exe
- keytool -import 
=> 100% cpu

klaus

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

 "There's got to be more to life than compile-and-go."




Re: [Fwd: Re: Latest versions?]

2000-06-29 Thread Klaus Thiele


> i wrote:
> 
> > > > I keep coming across references to versions like 1.0.11. Where can I
> > > > find the latest versions?
> > >
> > > cd /path/to/orion
> > > java -jar autoupdate.jar
> >
> > fine.
> > i have go go via proxy, what to do?

thanks for the tons of help :)

 java -DproxyHost=_name_ -DproxyPort=_port_ -jar autoupdate.jar
and
 http://www.orionserver.com/orion/orion.jar

works both fine.

bye
  klaus

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

 "There's got to be more to life than compile-and-go."




Internal Server Error - Orion 1.1.1

2000-06-29 Thread Klaus Thiele

Hello,

i've just upgraded from 1.0 to 1.1.1.

when i try to access my entity-beans a _second_ time from 
my jsp-page, i get following error in the browser:

500 Internal Server Error
java.lang.NullPointerException: 
at com.evermind.server.http.deployment.HttpApplicationDescriptor.nb(JAX)
at com.evermind.server.http.HttpApplication.sd(JAX)
at com.evermind.server.http.HttpApplication.s9(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.dg.o0(JAX)
at com.evermind.server.http.dg.forward(JAX)
at com.evermind.server.http.dp.o6(JAX)
at com.evermind.server.http.dp.o5(JAX)
at com.evermind.util.e.run(JAX)

after this i had to restart the server!
(with 1.0 it works correct!)

what does this mean?
did i must change something else?

thanks a lot
  klaus

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

 "There's got to be more to life than compile-and-go."




Animated gif's

2000-06-29 Thread Klaus Thiele

Hello,

i'm evaluating Orion Orion/1.1.1.

in some of my html-files i display animated gifs.
for *each* cycle of those gif, there was a log-record written!!!
(log/default-web-access.log)

bug?

thanks
  klaus

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

 "There's got to be more to life than compile-and-go."




RE: Latest versions?

2000-06-28 Thread Klaus Thiele


> > I keep coming across references to versions like 1.0.11. Where can I
> > find the latest versions?
> 
> cd /path/to/orion
> java -jar autoupdate.jar

fine.
i have go go via proxy, what to do?

thanks
  klaus

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

 "There's got to be more to life than compile-and-go."




Re: Struts and orion

2000-06-26 Thread Klaus Thiele

Hello again,

once more again...

> > > i just tried to get the example from "Struts-Framwork" to work with orion.
> > > has anyone get this to work?
> 
> whoow!! now i got it work out of the box (the last nightly build 2625)!

the DatabaseServlet.java...
... sometimes it works, sometimes not... ;)

after changing:
  private String pathname() { 
if (this.pathname != null) 
   return (this.pathname); 
else 
return (getServletContext().getRealPath("/") + 
"/WEB-INF/database.xml"); 
} 
to:
   private String pathname() { 
  if (this.pathname != null)
 return (this.pathname);
  } else {
  this.pathname = getServletContext().getRealPath("/") + 
"WEB-INF/database.xml";
  return this.pathname;
  }
   } 

it seems to work with both - orion and tomcat.

thanks
  klaus

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

 "There's got to be more to life than compile-and-go."




Re: Struts and orion

2000-06-26 Thread Klaus Thiele

Hello again,
> 
> > i just tried to get the example from "Struts-Framwork" to work with orion.
> > has anyone get this to work?

whoow!! now i got it work out of the box (the last nightly build 2625)!

i have deployed in following directory structure:
  /opt/orion
  +- struts
 +- struts-example

server.xml:
 

default-web-site.xml:
 mailto:[EMAIL PROTECTED]

 "There's got to be more to life than compile-and-go."




Re: Struts and orion

2000-06-26 Thread Klaus Thiele

Hello again,

> i just tried to get the example from "Struts-Framwork" to work with orion.
> has anyone get this to work?

i think, i am on the wrong way!

_this_ code fails:
InputStream input = getServletContext().getResourceAsStream(config);
if (input == null)
throw new UnavailableException
(internal.getMessage("configMissing", config));

but why?

application.log:
6/26/00 11:23 AM struts-example: org.apache.struts.action.ActionServlet: init
6/26/00 11:23 AM struts-example: org.apache.struts.action.ActionServlet: Loading 
application resources from resource org.apache.struts.example.ApplicationResources
6/26/00 11:23 AM struts-example: org.apache.struts.action.ActionServlet: Initializing 
configuration from resource path /WEB-INF/action.xml
6/26/00 11:23 AM struts-example: Error preloading servlet
javax.servlet.UnavailableException: Missing configuration resource for path 
/WEB-INF/action.xml
at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:567)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:268)
at javax.servlet.GenericServlet.init(GenericServlet.java)

thanks a lot
  klaus

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

 "There's got to be more to life than compile-and-go."




Apache/Jakarta Struts-Framework

2000-06-26 Thread Klaus Thiele

Hi,

i just tried to get the example from "Struts-Framwork"
(http://jakarta.apache.org/struts/index.html) work with orion.
(it works fine with tomcat and resin)

has anyone get this to work?

in the example there is an controller-servlet which does something like
this in its init() routine (load-on-startup):
[...]
 getServletContext().setAttribute( "org.apache.struts.action.MESSAGE" 
,application);

later in the taglib it throws an exception because an null-value in the
doStartTag() routine: 
[...]
   MessageResources resources = (MessageResources)
  pageContext.getAttribute("org.apache.struts.action.MESSAGE", 
PageContext.APPLICATION_SCOPE);
   if (resources == null)
 throw new JspException(messages.getMessage("getMessageTag.resources",
bundle));

is it possible that the code in the taglib did not get the attribute which was
set in the servlet-code?  => Orion-BUG?

thanks
  klaus

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

 "There's got to be more to life than compile-and-go."




UserTransaction not found

2000-06-16 Thread Klaus Thiele

Hello,

as described in your FAQ i tried the
(TransactionManager)context.lookup("java:comp/UserTransaction");
but i get always the exception
   "java:comp/UserTransaction not found"
what goes wrong?

questions:
- why to do
   tm = (TransactionManager)initial.lookup("java:comp/UserTransaction");
and not 
   ut = (UserTransaction)initial.lookup("java:comp/UserTransaction");  ?
- can i change my code to 
   ut = (UserTransaction)tm;  ?

thanks
klaus

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

 "There's got to be more to life than compile-and-go."




UserTransaction

2000-06-14 Thread Klaus Thiele

Hello,

as described in your FAQ i tried the
  (TransactionManager)context.lookup("java:comp/UserTransaction");
but i get always the exception
  "java:comp/UserTransaction not found"

questions:
- why to do
 tm = (TransactionManager)initial.lookup("java:comp/UserTransaction");
   and not 
ut = (UserTransaction)initial.lookup("java:comp/UserTransaction");  ?
- can i change my code to 
ut = (UserTransaction)tm;  ?

thanks
  klaus

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

 "There's got to be more to life than compile-and-go."




UserTransaction in SessionBean

2000-06-14 Thread Klaus Thiele

Hello,

i have a SessionBean:

   public class PersonBean implements SessionBean {
 private UserTransaction ut = null;
 private SessionContext ctx;
[...]
   public void ejbCreate() throws RemoteException, CreateException {
  ut = ctx.getUserTransaction();

ejb-jar.xml:   
  Bean

when my client calls the create-method, i get following exception:
"Only beans with user-managed transaction can invoke getUserTransaction()"

did i miss something?

thanks
  klaus

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

 "There's got to be more to life than compile-and-go."