Re: HttpSession creation

2001-11-22 Thread Greg Matthews



hi, see Kesav Kumar's answer 7:49pm to learn 
somerthing.

  - Original Message - 
  From: 
  Lachezar 
  Dobrev 
  To: Orion-Interest 
  Sent: Thursday, November 22, 2001 6:15 
  PM
  Subject: Re: HttpSession creation
  
     Hello.
     Trying to stop a session from 
  being created is not valid.
     Sessions are not user-dependant. 
  Sessions are a handshake between a server and a client. You should have 
  thought another way to do that. Maybe check if the user HAS 
  authenticated.
   
     .getSession() and 
  .getSession(boolean) methods are to get access to the session, not to create 
  the session. Creation is left to the App server.
     What happens is, that when a 
  client contacts your Server the session IS created. That's it.
     Forget the option to disable that. 
  It has no sense.
     If you REALLY need to do that... 
  Use "session.invalidate()" everytime you see, that the user has not logged. 
  That way a session will be recreated every time the client 
  connects.
   
   
     Lachezar.
   
     P.S. Sessions are good to store 
  info in them. But user management should NOT be connected with 
it.
   
   
  
hi,
 
i'm trying to ensure that the only time a 
session is created is after a successful user login.
 
is there any other way apart from 
HttpServletRequest.getSession( ), or HttpServletRequest.getSession( boolean 
create) that a HttpSession can be created?
 
i've trawled through the J2EE API but haven't 
seen any other methods that might create a session -- was just wondering if 
there was some sort of side-effect way, say, if you redirect a request or 
pass a request through a filter chain or something???
 
thanks,
greg.


Re: Class-Path entries in Manifest.mf for EJBs

2001-11-22 Thread Marcel Schutte

Hi Marc,

Try changing the Class-Path entry to:

Class-Path: lib/ois.jar lib/bo.jar lib/sales.jar

You should address your jars from the 'root' of the ear file.

Marcel

- Original Message -
From: "Marc Eilens" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Thursday, November 22, 2001 10:20 AM
Subject: Class-Path entries in Manifest.mf for EJBs


> Hello,
>
> I've got a problem deploying my EAR file on ORION.
> I packed my two EJBs together with a WAR file into the EAR file. The two
> EJBs share references to classes in a library jar.
> As far as I understand the packaging of EARs I can create a 'lib'
subfolder
> in the EAR and add Class-Path entries in the Manifest files of the EJBs.
>
> The EAR deploys well on JBoss, but not on ORION.
>
> This is my structure in the EAR:
>
> |- bsebos.jar
> |- som.jar
> |- ie.war
> |- appclient.jar (just including an xml descriptor to expose the two beans
> in JNDI)
> |- lib
> |- ois.jar
> |- bo.jar
> |- sales.jar
> |- META-INF
> |- MANIFEST.MF
> |- application.xml
>
> The Manifest file of the bsebos.jar for example looks as follows:
> >>
> Manifest-Version: 1.0
> Created-By: 1.3.0 (Sun Microsystems Inc.)
> Class-Path: ../lib/ois.jar ../lib/bo.jar ../lib/sales.jar
> <<
>
> I did not create Orion-specific descriptors. I think they will be
generated
> automatically on deployment if not existing, aren't they?
> Does anybody had the same problem or knows what I have to do?
>
> I somehow got it to work a few days ago, somehow, but I don't know what to
> do to get it working again. I changed my build scripts a bit and built a
new
> EAR file and it just won't deploy. I always get this error:
> >>
> Auto-unpacking C:\orion\applications\ie.ear... done.
> Auto-unpacking C:\orion\applications\ie\ie.war... done.
> Auto-deploying IE3.6 (New server version detected)...
> Error in application IE3.6: Error loading package at
> file:/C:/orion/applications/ie/som.jar, Error loading class
> 'mpress.ois.modules.sales.order.ejb.SalesOrderManagerEJB':
> java.lang.NoClassDefFoundError: impress/ois/bo/ejb/CEManagerEJB
> Error in application IE3.6: Error loading package at
> file:/C:/orion/applications/ie/bsebos.jar, Error loading class
> 'impress.ois.modules.session.ejb.OISSessionEJB':
> java.lang.NoClassDefFoundError: impress/ois/base/session/ISession
> Installed IE3.6...
> <<
>
> These classes are packed in the jars located in the lib directory in the
EAR
> file and are specified to be included in the classpath in the Manifest
files
> of the EJBs.
> So theoretically, it should work, but it doesn't. They aren't deployed
> correctly.
>
> Additionally, something's not ok with the applicatin client jar, too. As
> said already, I got it to work a few days ago. Then, upon deployment,
ORION
> changed my appclient.jar and added an xml descriptor and a jndi.properties
> to this jar. This also doesn't happen anymore.
>
> So, I'm currently quite confused and appreciate any help.
>
> Regards,
> Marc
>
> Marc Eilens
> Research & Development
> Engineering
>
> IMPRESS SOFTWARE AG
>
> mailto:[EMAIL PROTECTED]
> http://www.IMPRESS.com
>
>






Re: design question

2001-11-22 Thread Stephen Davidson

Màris Orbidàns wrote:

> Hello
> 
> I have several questions about design, "best practises":
> 
> 1)  Where to store client's profile information (like login name) ?
> session  or system state bean ?
> 
> 2)  How to create and use a system state bean ?
> 
> System state bean should be in scope "session", shouldnt it ?
> 
> 3) Where to put business logic (where I invoke JDBC) ?  
>   Should business logic class be a bean ?
> 
> thanx in advance
> Maris Orbidans
>   

Hi Màris.
1) I am using an Entity Bean.

2) The following links would be good places to start;
http://java.sun.com/j2ee/?frontpage-javaplatform
http://www.orionserver.com/docs/index.html
http://kb.atlassian.com - both the tutorials and the link on Entity EJB's.

3) Business logic in Entity Bean, Data Access Logic in DataAccessObject (generally a 
singleton), which entity bean has a reference to.

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





[no subject]

2001-11-22 Thread Julio Lorenzo

I need to know if I can map a Business Entity, like CMP,
to more than a table.
example:
I have a Entity TestBean with three fields (id,field_a,field_b),
and in the DB I have two tables like this:
A=(id,field_a)
B=(id,field_b)

I need to map this Entity to this tables, but I believe that that
is impossible, because orion-ejb-jar.dtd does not support that some
fields of the entity can be mappings to a different table.
I am forced to use BMP for this??






Orion 1.5.2, Tomcat 4.0 and JMS

2001-11-22 Thread Dan Haley

Has anybody used these two successfully to send JMS messages? Other
combinations of Orion (1.4.5) and Tomcat (3.2.1) work fine, but this
particular combination throws an IllegalAccessError when one Orion class
calls another Orion class (to send a JMS message):

java.lang.IllegalAccessError: try to access field
com.evermind.server.jms.EvermindQueueConnection._pwb from class
com.evermind._eeb
at com.evermind._eeb.send(Unknown Source)
at com.evermind._eeb.send(Unknown Source)
at com.evermind._eeb.send(Unknown Source)
at com.xxx...

Using Mocha I can see that the field _pwd is a "static int", so it can only
be accessed from classes/subclasses within the same package.
com.evermind._eeb is not in the same package so it isn't allowed access! I
cannot explain why I am able to get this same version of Orion working in
other situations given that the above access violation seems unavoidable.
BTW I have put orion.jar, jaas.jar and ejb.jar into my web-app's WEB-INF/lib
directory.

Thanks for any ideas,

Dan
[EMAIL PROTECTED]


_

Alison Associates

The information contained in this e-mail and any attached files is intended only for 
the use of the person(s) to whom it is addressed and may be privileged, confidential 
and exempt from disclosure under applicable law. The views of the author may not 
necessarily reflect the views of the Company. If you are not the intended recipient 
please do not copy or convey this message or any attached files to any other person 
but delete this message and any attached files and notify us of incorrect receipt via 
e-mail to [EMAIL PROTECTED] 

_
This message has been checked for all known viruses by MessageLabs.




RE: orion-ejb-jar and other such descriptors

2001-11-22 Thread geoff

Hrm.  That's unfortunate.  Our Ant build script largely works unmodified on
a number of different application servers thus far, but now I'll have to
have an orion-specific extra clean step, since removing the EAR does not, in
and of itself, clear out the rest of the application as it does elsewhere.

Thanks,

- Geoffrey

: -Original Message-
: From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]]
: Sent: Wednesday, November 21, 2001 6:00 PM
: To: Orion-Interest
: Subject: Re: orion-ejb-jar and other such descriptors
: 
: 
: Geoffrey,
: 
: This is the expected behaviour. The deployment descriptors are only
: copied from the EAR after a clean deploy. Otherwise Orion might
: overwrite deployment descriptors that you had edited.
: 
: Cheers,
: Mike
: 
: -- 
: Mike Cannon-Brookes :: [EMAIL PROTECTED]
: 
: Atlassian :: http://www.atlassian.com
:  Supporting YOUR J2EE World
: 
: 
: On Thu, 2001-11-22 at 07:03, [EMAIL PROTECTED] wrote:
: > I've put an orion-ejb-jar.xml in the EJB Jar's META-INF.  
: If I clean out the
: > Orion/application-deployment and Orion/applications versions of the
: > application, and deploy to Orion, the file copies into the 
: appropriate place
: > and takes effect.  If I deploy on top of an existing EAR, 
: the redeploy
: > process doesn't seem to replace the existing 
: orion-ejb-jar.xml file.  I
: > suspect this is probably happening with other descriptors, 
: but this is the
: > one that I just tested thoroughly recently, to ensure that I wasn't
: > imagining that.
: > 
: > Is there any way to ensure that the file does get deployed 
: along with the
: > rest of the EAR?  Am I missing something?
: > 
: > - Geoffrey
: > __
: > Geoffrey Wiseman: Internet Applications Manager
: > Medium One
: > t. 416.977.2101 x. 529
: > http://www.mediumone.com/
: > __
: > Think it.  Build it.  Work it.
: > 
: > 
: > 
: 
: 
: 




design question

2001-11-22 Thread Màris Orbidàns


Hello

I have several questions about design, "best practises":

1)  Where to store client's profile information (like login name) ?
session  or system state bean ?

2)  How to create and use a system state bean ?

System state bean should be in scope "session", shouldnt it ?

3) Where to put business logic (where I invoke JDBC) ?  
Should business logic class be a bean ?

thanx in advance
Maris Orbidans






Re: MySQL and JDBC

2001-11-22 Thread Scott Farquhar

Harald,

This link has many examples that you can install on Orion:
   http://kb.atlassian.com/directory/examples

Can I suggest the Orion CMP Primer?

Cheers,
Scott

-- 
Scott Farquhar :: [EMAIL PROTECTED]

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


Harald Kirschner wrote:

> Folks,
> 
> I am new to Orion and look for a brief example of an EJB that accesses a 
> database table. Who can send me and example like this?
> 
> Thanks,
>Harald
> 
> 
> 






RE: Class-Path entries in Manifest.mf for EJBs

2001-11-22 Thread Justin Crosbie

Hi Marc,

Have you tried adding a  entry in your Orion
application.xml. This should point to the directory that Orion unpacks your
library files to.

HTH,
Justin

-Original Message-
From: Marc Eilens [mailto:[EMAIL PROTECTED]]
Sent: 22 November 2001 09:20
To: Orion-Interest
Subject: Class-Path entries in Manifest.mf for EJBs


Hello,

I've got a problem deploying my EAR file on ORION.
I packed my two EJBs together with a WAR file into the EAR file. The two
EJBs share references to classes in a library jar.
As far as I understand the packaging of EARs I can create a 'lib' subfolder
in the EAR and add Class-Path entries in the Manifest files of the EJBs.

The EAR deploys well on JBoss, but not on ORION.

This is my structure in the EAR:

|- bsebos.jar
|- som.jar
|- ie.war
|- appclient.jar (just including an xml descriptor to expose the two beans
in JNDI)
|- lib
|- ois.jar
|- bo.jar
|- sales.jar
|- META-INF
|- MANIFEST.MF 
|- application.xml

The Manifest file of the bsebos.jar for example looks as follows:
>>
Manifest-Version: 1.0
Created-By: 1.3.0 (Sun Microsystems Inc.)
Class-Path: ../lib/ois.jar ../lib/bo.jar ../lib/sales.jar
<<

I did not create Orion-specific descriptors. I think they will be generated
automatically on deployment if not existing, aren't they?
Does anybody had the same problem or knows what I have to do?

I somehow got it to work a few days ago, somehow, but I don't know what to
do to get it working again. I changed my build scripts a bit and built a new
EAR file and it just won't deploy. I always get this error:
>>
Auto-unpacking C:\orion\applications\ie.ear... done.
Auto-unpacking C:\orion\applications\ie\ie.war... done.
Auto-deploying IE3.6 (New server version detected)...
Error in application IE3.6: Error loading package at
file:/C:/orion/applications/ie/som.jar, Error loading class
'mpress.ois.modules.sales.order.ejb.SalesOrderManagerEJB':
java.lang.NoClassDefFoundError: impress/ois/bo/ejb/CEManagerEJB
Error in application IE3.6: Error loading package at
file:/C:/orion/applications/ie/bsebos.jar, Error loading class
'impress.ois.modules.session.ejb.OISSessionEJB':
java.lang.NoClassDefFoundError: impress/ois/base/session/ISession
Installed IE3.6...
<<

These classes are packed in the jars located in the lib directory in the EAR
file and are specified to be included in the classpath in the Manifest files
of the EJBs.
So theoretically, it should work, but it doesn't. They aren't deployed
correctly.

Additionally, something's not ok with the applicatin client jar, too. As
said already, I got it to work a few days ago. Then, upon deployment, ORION
changed my appclient.jar and added an xml descriptor and a jndi.properties
to this jar. This also doesn't happen anymore.

So, I'm currently quite confused and appreciate any help.

Regards,
Marc

Marc Eilens
Research & Development
Engineering

IMPRESS SOFTWARE AG

mailto:[EMAIL PROTECTED]
http://www.IMPRESS.com





http 1.1 put and delete and orion

2001-11-22 Thread Davanzo Luca

Hi all,
Does orion handle http 1.1 put and post? are these enabled by default or
not? how do I enable/disable them?
I dint find mentioned in the docs





NT authentication

2001-11-22 Thread Mulder, Frans

Can anybody point me to a source where I can find how to use NT
authentication from a custom pluggable UserManager within Orion? Thanks in
advance!




Problem using Oracle SDO Java API in an EJB

2001-11-22 Thread Montebove Luciano

Hi,

I' m trying to use the Oracle SDO Java API in an EJB with container managed
transactions without success.
The problem raise with the following code:

InitialContext ctx=new InitialContext();
DataSource ds=(DataSource)ctx.lookup("jdbc/sitdemo");
Conn=ds.getConnection();
sdo = OraSpatialManager.getGeometryAdapter("SDO", "8.1.6", 
STRUCT.class, STRUCT.class, null,Conn);

This last call give me a null pointer when I use the DataSource at the 
ejb-location "jdbc/sitdemo" (I need it for CMT) while using the location
"jdbc/sitdemoCoreDS" I get the Oracle GeometryAdapter.
The problem seems to be that the DataSource received in this last case is of
type oracle.jdbc.driver.OracleConnection so it works. The Oracle SDO API
doesn't give a requirement for a specific kind of Connection, but the jdbc
connection returned from the DataSource at the ejb-location doesn't work.

This is my datasource:



Thanks,

Luciano Montebove






MySQL and JDBC

2001-11-22 Thread Harald Kirschner

Folks,

I am new to Orion and look for a brief example of an EJB that accesses a 
database table. Who can send me and example like this?

Thanks,
   Harald




SV: Class-Path entries in Manifest.mf for EJBs

2001-11-22 Thread Magnus Rydin

Hi Marc,

the spec states that you use the standard jar extensssion mechanism for
utiliy jars.
Put the helper/utility jars on the same level as your ejb.jar:s and be sure
to reference them from the manifests of your ejb.jars.

WR

> -Ursprungligt meddelande-
> Från: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]För Marc Eilens
> Skickat: den 22 november 2001 10:20
> Till: Orion-Interest
> Ämne: Class-Path entries in Manifest.mf for EJBs
>
>
> Hello,
>
> I've got a problem deploying my EAR file on ORION.
> I packed my two EJBs together with a WAR file into the EAR file. The two
> EJBs share references to classes in a library jar.
> As far as I understand the packaging of EARs I can create a 'lib'
> subfolder
> in the EAR and add Class-Path entries in the Manifest files of the EJBs.
>
> The EAR deploys well on JBoss, but not on ORION.
>
> This is my structure in the EAR:
>
> |- bsebos.jar
> |- som.jar
> |- ie.war
> |- appclient.jar (just including an xml descriptor to expose the two beans
> in JNDI)
> |- lib
> |- ois.jar
> |- bo.jar
> |- sales.jar
> |- META-INF
> |- MANIFEST.MF
> |- application.xml
>
> The Manifest file of the bsebos.jar for example looks as follows:
> >>
> Manifest-Version: 1.0
> Created-By: 1.3.0 (Sun Microsystems Inc.)
> Class-Path: ../lib/ois.jar ../lib/bo.jar ../lib/sales.jar
> <<
>
> I did not create Orion-specific descriptors. I think they will be
> generated
> automatically on deployment if not existing, aren't they?
> Does anybody had the same problem or knows what I have to do?
>
> I somehow got it to work a few days ago, somehow, but I don't know what to
> do to get it working again. I changed my build scripts a bit and
> built a new
> EAR file and it just won't deploy. I always get this error:
> >>
> Auto-unpacking C:\orion\applications\ie.ear... done.
> Auto-unpacking C:\orion\applications\ie\ie.war... done.
> Auto-deploying IE3.6 (New server version detected)...
> Error in application IE3.6: Error loading package at
> file:/C:/orion/applications/ie/som.jar, Error loading class
> 'mpress.ois.modules.sales.order.ejb.SalesOrderManagerEJB':
> java.lang.NoClassDefFoundError: impress/ois/bo/ejb/CEManagerEJB
> Error in application IE3.6: Error loading package at
> file:/C:/orion/applications/ie/bsebos.jar, Error loading class
> 'impress.ois.modules.session.ejb.OISSessionEJB':
> java.lang.NoClassDefFoundError: impress/ois/base/session/ISession
> Installed IE3.6...
> <<
>
> These classes are packed in the jars located in the lib directory
> in the EAR
> file and are specified to be included in the classpath in the
> Manifest files
> of the EJBs.
> So theoretically, it should work, but it doesn't. They aren't deployed
> correctly.
>
> Additionally, something's not ok with the applicatin client jar, too. As
> said already, I got it to work a few days ago. Then, upon
> deployment, ORION
> changed my appclient.jar and added an xml descriptor and a jndi.properties
> to this jar. This also doesn't happen anymore.
>
> So, I'm currently quite confused and appreciate any help.
>
> Regards,
> Marc
>
> Marc Eilens
> Research & Development
> Engineering
>
> IMPRESS SOFTWARE AG
>
> mailto:[EMAIL PROTECTED]
> http://www.IMPRESS.com
>





Re: having prolems with CMP, PostgreSQL, and Serializable

2001-11-22 Thread Marcus Ahnve

I stand corrected. Last time I looked, which actually was longer ago
than it seemed - time flies, the setBinaryStream() threw the exception
directly. When people in our organization tried out new versions they
informed me that the code had changed, but it still didn't work. My bad.

/Marcus

On Wed, 2001-11-21 at 22:55, Mike Cannon-Brookes wrote:
> Actually the Postgres driver does support blobs in a number of ways. The
> 7.1 driver supports BLOBs using OIDs (a postgres specific measure) and
> the latest driver from CVS (due out with 7.2 shortly) supports bytea
> datatypes (which is a long byte array up to 1 gig in size) which is much
> nicer than an OID.
> 
> The problem is indeed Orion not setting autocommit=false which is needed
> by the Postgres driver. 
> 
> However the overhead involved in using a CMP bean with a large object is
> not a good idea IMHO, I'd create a simple session bean which persists
> your large object via JDBC and retrives it again.
> 
> -mike
> 
> On Thu, 2001-11-22 at 02:19, Marcus Ahnve wrote:
> > A _very_ late answer I know, but it is my firm belief that the reason
> > for this is that Postgresql JDBC driver does not support BLOB:s, it is
> > simply not implemented, hence the message. Check out the WebCVS and see
> > for yourselves.
> > 
> > /Marcus
> > 
> > On Fri, 2001-06-22 at 20:42, Phillip Ross wrote:
> > > Your problem is stemming from the fact that the Postgresql JDBC driver wants
> > > auto commit flag set to false before it can use setBinaryStream() method which
> > > is used to store the stream.  Orion's entity bean wrapper seems to leave the
> > > flag alone and not set it to false explicitly.  So, basicly, that's what causes
> > > it... but the proper solution to workaround or fix it is still something I'm
> > > playing around with.
> > > 
> > > - Phillip
> > > 
> > > 
> > > --- [EMAIL PROTECTED] wrote:
> > > > I am trying to port an application that was running on JBOSS to
> > > > orion.  All my Entity beans are using CMP.  Whenever I try to create a
> > > > bean that has CMP field of type java.io.Serialazable i get the
> > > > following exception:
> > > > 
> > > > javax.ejb.CreateException: Error creating EntityBean: InputStream as
> > > > parameter not supported
> > > > 
> > > > here is the mapping from orion/config/database-schemas that I am
> > > > using:
> > > > 
> > > > 
> > > > 
> > > > I am using postgres 7.1 and orion 1.5.2
> > > > 
> > > > I would appriciate any advice anyone had for me.
> > > > 
> > > > thanks
> > > > 
> > > > mike o'connor
> > > > 
> > > > 
> > > > 
> > > 
> > > 
> > > __
> > > Do You Yahoo!?
> > > Get personalized email addresses from Yahoo! Mail
> > > http://personal.mail.yahoo.com/
> > > 
> > -- 
> > Marcus Ahnve  email: [EMAIL PROTECTED]
> > Lecando AB   Office: +46-(0)8-634 94 18
> > Sweden   Mobile: +46-(0)70-462 19 18
> > www.lecando.comICQ#: 4564879
> > 
> > 
> > 
> 
> 
> 
-- 
Marcus Ahnve  email: [EMAIL PROTECTED]
Lecando AB   Office: +46-(0)8-634 94 18
Sweden   Mobile: +46-(0)70-462 19 18
www.lecando.comICQ#: 4564879






Class-Path entries in Manifest.mf for EJBs

2001-11-22 Thread Marc Eilens

Hello,

I've got a problem deploying my EAR file on ORION.
I packed my two EJBs together with a WAR file into the EAR file. The two
EJBs share references to classes in a library jar.
As far as I understand the packaging of EARs I can create a 'lib' subfolder
in the EAR and add Class-Path entries in the Manifest files of the EJBs.

The EAR deploys well on JBoss, but not on ORION.

This is my structure in the EAR:

|- bsebos.jar
|- som.jar
|- ie.war
|- appclient.jar (just including an xml descriptor to expose the two beans
in JNDI)
|- lib
|- ois.jar
|- bo.jar
|- sales.jar
|- META-INF
|- MANIFEST.MF 
|- application.xml

The Manifest file of the bsebos.jar for example looks as follows:
>>
Manifest-Version: 1.0
Created-By: 1.3.0 (Sun Microsystems Inc.)
Class-Path: ../lib/ois.jar ../lib/bo.jar ../lib/sales.jar
<<

I did not create Orion-specific descriptors. I think they will be generated
automatically on deployment if not existing, aren't they?
Does anybody had the same problem or knows what I have to do?

I somehow got it to work a few days ago, somehow, but I don't know what to
do to get it working again. I changed my build scripts a bit and built a new
EAR file and it just won't deploy. I always get this error:
>>
Auto-unpacking C:\orion\applications\ie.ear... done.
Auto-unpacking C:\orion\applications\ie\ie.war... done.
Auto-deploying IE3.6 (New server version detected)...
Error in application IE3.6: Error loading package at
file:/C:/orion/applications/ie/som.jar, Error loading class
'mpress.ois.modules.sales.order.ejb.SalesOrderManagerEJB':
java.lang.NoClassDefFoundError: impress/ois/bo/ejb/CEManagerEJB
Error in application IE3.6: Error loading package at
file:/C:/orion/applications/ie/bsebos.jar, Error loading class
'impress.ois.modules.session.ejb.OISSessionEJB':
java.lang.NoClassDefFoundError: impress/ois/base/session/ISession
Installed IE3.6...
<<

These classes are packed in the jars located in the lib directory in the EAR
file and are specified to be included in the classpath in the Manifest files
of the EJBs.
So theoretically, it should work, but it doesn't. They aren't deployed
correctly.

Additionally, something's not ok with the applicatin client jar, too. As
said already, I got it to work a few days ago. Then, upon deployment, ORION
changed my appclient.jar and added an xml descriptor and a jndi.properties
to this jar. This also doesn't happen anymore.

So, I'm currently quite confused and appreciate any help.

Regards,
Marc

Marc Eilens
Research & Development
Engineering

IMPRESS SOFTWARE AG

mailto:[EMAIL PROTECTED]
http://www.IMPRESS.com





Re: HttpSession creation

2001-11-22 Thread Lachezar Dobrev



   Hello.
   Trying to stop a session from being 
created is not valid.
   Sessions are not user-dependant. 
Sessions are a handshake between a server and a client. You should have thought 
another way to do that. Maybe check if the user HAS authenticated.
 
   .getSession() and 
.getSession(boolean) methods are to get access to the session, not to create the 
session. Creation is left to the App server.
   What happens is, that when a client 
contacts your Server the session IS created. That's it.
   Forget the option to disable that. 
It has no sense.
   If you REALLY need to do that... Use 
"session.invalidate()" everytime you see, that the user has not logged. That way 
a session will be recreated every time the client connects.
 
 
   Lachezar.
 
   P.S. Sessions are good to store info 
in them. But user management should NOT be connected with it.
 
 

  hi,
   
  i'm trying to ensure that the only time a session 
  is created is after a successful user login.
   
  is there any other way apart from 
  HttpServletRequest.getSession( ), or HttpServletRequest.getSession( boolean 
  create) that a HttpSession can be created?
   
  i've trawled through the J2EE API but haven't 
  seen any other methods that might create a session -- was just wondering if 
  there was some sort of side-effect way, say, if you redirect a request or pass 
  a request through a filter chain or something???
   
  thanks,
  greg.


Re: Announcement of new doc

2001-11-22 Thread Daniel López

Hi Curt,

I don't know if it will help you, but we deploy multiple web components 
inside and orion instance using different .ear. But I guess that if they 
all had to be inside the same .ear, things wouldn't be that different.
What we do is:
in file server.xml, we first define the applications and their origin
...

  




in file web-site.xml (what by default is default-web-site.xml), we 
define the mappings to the applications:
...

 


...
And that's pretty much all. Having different .ear for different modules, 
allows us to update each module independently. And we have an orion 
instance for every two-three modules, so they are even more independent 
in case we have to stop an instance (if the DB goes down, for example).
Supposedly, if you want the different modules inside the .ear file, you 
would just define the different web modules (.war files) and their 
mappings inside the application.xml descriptor, and then define one 
application in orion. Orion should then extract the information from the 
descriptor and define the mappings apropriately, or at least that's what 
I would expect. I haven't verified that, though.
Good luck,
D.



Curt Smith wrote:

>>> My 2 cents worth is this is the order of importance of documentation 
>>> that is
>>> needed right now to do REAL professional deployments and developments 
>>> with Orion/OC4J
>>>
>>>
>>> 1) Orion specific deployment settings explained
>>> these are not really explained anywhere right now.
> 
> My configuration challeng that I haven't figured out is; how to support 
> multiple
> web components.
> 
> I'm prefering the expanded tree deployment where I'd have multiple
> web/WEB-INF/web.xml  trees.   All need to be in the same restricted
> single-signon scope.  I.E.
> 
> root/web1/WEB-INF/web.xml
>  /web2/WEB-INF/web.xml
> 
> 
> 
> The confusion between default-web-site.xml, orion-web.xml, 
> application-name, name
> ...  :-/
> 
> Anybody have configuration to share of multiple .ear in one application 
> or multiple
> web directories??
> 
> Thanks and have a great TG holidays,
> 
> curt