Path-info null on include.

2001-03-17 Thread Patrik Andersson
Title: Path-info null on include.





I have a command-handling servlet that triggers different commandactions depending on the value of the pathInfo property. I.e. my command-handler servlets has code looking something like:

String pathInfo = request.getPathInfo();
String commandName = getCommandName(pathInfo);
String methodName = getMethodName(commandName);
Method commandMethod = getCommandMethod(methodName);
invokeCommandMethod(commandMethod);


and is invoked using an URI like:
/gunnar/action/ListCategories
where action is the url-pattern mapped for this servlet and gunnar is the context-path for this app. This is how the browser invokes the servlet. When including and forwarding the Context-path is not passed along. And the problem does not lie in the not passing the context-path along the request. I tried both with and without. When having the Context-path on the URI, getRequestDispatcher throws an IllegalArgumentException just as the API documentation denotes.

the problem occurs when I try to jsp:include my servlet from a JSP page. When including the servlet, getPathInfo() on HttpServletRequest returns null. After looking through the Java Servlet Specification 2.3 I found a couple of request attributes that are supposed to exist to let at servlet find out values such as path-info, query-string and so on when having been included by the request target servlet/jsp. But as I read the javax.servlet.include.path_info attribute that the spec talks about I get a null value again.

regards,
Patrik Andersson





Primarkey is 0

2001-03-17 Thread Patrik Andersson
Title: Primarkey is 0





I have a CMP entitybean named Category. It has a name and an id CMP field. I have added a finder method called findAll(),which orion very nicely added a finder-method tag in orion-ejb-jar.xml for me, that returns a java.util.Collection object. When I iterate that collection I get the name property from each Category object correctly read, but the id property is always 0. The SQL type in the database is INT with size 4. The return type of the ejbCreate method is long. The id is primkey-field and cmp-field. primkey-class is java.lang.Long. What am I missing?

regards,
Patrik Andersson





SV: Primarkey is 0

2001-03-17 Thread Patrik Andersson
Title: Primarkey is 0



I did 
further tests. When I do findByPrimarykey on CategoryHome with one of the id:s 
that exist in the database. Get get nothing at all. It throws a RemoteException 
with a nested NPE.

com.evermind.server.rmi.OrionRemoteException: Error in ejbLoad: 
java.lang.NullPointerException at 
CategoryHome_EntityHomeWrapper9.findExistingEntity(CategoryHome_EntityHomeWrapper9.java:69) 
at 
CategoryHome_EntityHomeWrapper9.findByPrimaryKey(CategoryHome_EntityHomeWrapper9.java:224) 
at 
com.cypoint.patrik.gunnar_se.servlet.ControllerServlet.onListCategoriesCommand(ControllerServlet.java:102) 
at java.lang.reflect.Method.invoke(Native 
Method) at 
com.cypoint.patrik.gunnar_se.abstractmanager.servlet.CommandDispatcher.invokeMethod(AbstractManagerServlet.java:169) 
at 
com.cypoint.patrik.gunnar_se.abstractmanager.servlet.CommandDispatcher.dispatchCommand(AbstractManagerServlet.java:288) 
at 
com.cypoint.patrik.gunnar_se.abstractmanager.servlet.AbstractManagerServlet.doGet(AbstractManagerServlet.java:62) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:190) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:302) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:329) 
at 
com.evermind.server.http.d4.s3(JAX) 
at 
com.evermind.server.http.d4.include(JAX) 
at 
com.evermind.server.http.EvermindPageContext.include(JAX) 
at 
__jspPage10_leftFrame_jsp._jspService(__jspPage10_leftFrame_jsp.java:31) 
at 
com.orionserver.http.OrionHttpJspPage.service(JAX) 
at 
com.evermind.server.http.HttpApplication.xu(JAX) 
at 
com.evermind.server.http.JSPServlet.service(JAX) 
at 
com.evermind.server.http.d4.s3(JAX) 
at 
com.evermind.server.http.d4.s1(JAX) 
at 
com.evermind.server.http.eg.s9(JAX) 
at 
com.evermind.server.http.eg.dr(JAX) 
at com.evermind.util.f.run(JAX)

 Nested exception 
is:java.lang.NullPointerException 
at java.io.ObjectInputStream.readFullyInternal(Unknown 
Source) at 
java.io.ObjectInputStream.bufferData(Unknown 
Source) at 
java.io.ObjectInputStream.readShort(Unknown 
Source) at 
java.io.ObjectInputStream.readStreamHeader(Unknown 
Source) at 
java.io.ObjectInputStream.init(Unknown 
Source) at 
com.evermind.io.kq.init(JAX) 
at 
com.evermind.server.ejb.gw.init(JAX) 
at 
com.evermind.server.ejb.EntityEJBObject.deSerialize(JAX) 
at 
Category_EntityBeanWrapper0.loadState(Category_EntityBeanWrapper0.java:665) 
at 
CategoryHome_EntityHomeWrapper9.findExistingEntity(CategoryHome_EntityHomeWrapper9.java:33) 
at 
CategoryHome_EntityHomeWrapper9.findByPrimaryKey(CategoryHome_EntityHomeWrapper9.java:224) 
at 
com.cypoint.patrik.gunnar_se.servlet.ControllerServlet.onListCategoriesCommand(ControllerServlet.java:102) 
at java.lang.reflect.Method.invoke(Native 
Method) at 
com.cypoint.patrik.gunnar_se.abstractmanager.servlet.CommandDispatcher.invokeMethod(AbstractManagerServlet.java:169) 
at 
com.cypoint.patrik.gunnar_se.abstractmanager.servlet.CommandDispatcher.dispatchCommand(AbstractManagerServlet.java:288) 
at 
com.cypoint.patrik.gunnar_se.abstractmanager.servlet.AbstractManagerServlet.doGet(AbstractManagerServlet.java:62) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:190) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:302) 
at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:329) 
at 
com.evermind.server.http.d4.s3(JAX) 
at 
com.evermind.server.http.d4.include(JAX) 
at 
com.evermind.server.http.EvermindPageContext.include(JAX) 
at 
__jspPage10_leftFrame_jsp._jspService(__jspPage10_leftFrame_jsp.java:31) 
at 
com.orionserver.http.OrionHttpJspPage.service(JAX) 
at 
com.evermind.server.http.HttpApplication.xu(JAX) 
at 
com.evermind.server.http.JSPServlet.service(JAX) 
at 
com.evermind.server.http.d4.s3(JAX) 
at 
com.evermind.server.http.d4.s1(JAX) 
at 
com.evermind.server.http.eg.s9(JAX) 
at 
com.evermind.server.http.eg.dr(JAX) 
at com.evermind.util.f.run(JAX)
What 
is this?

regards,
Patrik 
Andersson


SV: Primarkey is 0

2001-03-17 Thread Patrik Andersson
Title: Primarkey is 0



I found yet another thing. When orion 
created tables for two entities in my system. Category has-many Questions. Orion 
added a column to the Category table called questions. That is also the CMP 
field of type java.util.Collection that holds referenses to the questions that 
belong to this category. Only the column is of type VARBINARY and of size 1. A 
call to create on category home threw an exception from my SQL server stating 
that data would be truncated, so I changed the size of the VARBINARY column to 
256 instead.. and now everything seems to 
work.


Re: New article on orionsupport

2001-03-17 Thread Hani Suleiman

Correction, as you all hopefully guessed, the correct URL is 
http://www.orionsupport.com/articles/datasourceusermanager.html


From: Hani Suleiman [EMAIL PROTECTED]
Reply-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: New article on orionsupport
Date: Fri, 16 Mar 2001 22:52:31 -0500 (EST)

To help clear up some of the confusion about user managers, I've submitted
an article to orionsupport.com with a step by step guide on how to
configure DataSourceUserManager. This covers enough of the general
concepts regarding user managers that it'd hopefully be helpful for those
of you trying to configure your own.

I'll be adding/clarifying/modifying the howto based on user feedback over
the next few days.

The url for the howto is
http://www.orionserver.com/articles/datasourceusermanager.html

Hani Suleiman




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





RE: Questions regarding 1-n bi-directional relationships...

2001-03-17 Thread Tim Drury
Title: RE: Questions regarding 1-n bi-directional relationships...






If I recall correctly, bi-directional relationships _do_
work. Did you remember to create a relationship tag
for each direction?


-tim



 -Original Message-
 From: Alex Paransky [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 16, 2001 8:26 PM
 To: Orion-Interest
 Subject: Questions regarding 1-n bi-directional relationships...
 
 
 I have an entity called Account, and User. One Account can 
 have many Users
 (bi-directional relationship). When I add a new User to the 
 Account, the
 relationship table gets updated, but the AccountId field in 
 the User table
 is not updated. Is this normal? It thought that
 account.getUsers().addUser(user) should BOTH update the 
 relationship table
 and configure the accountId field in the User table.
 
 Can someone verify this?
 
 Thanks.
 -AP_
 
 





RE: Dependents in 1-N don't go away

2001-03-17 Thread Tim Drury
Title: RE: Dependents in 1-N don't go away






Dependent objects (DO) do not go away automatically.
There is an un-implemented option in the deployment
descriptor called cascade-delete, but alas, it is
unimplemented.


The DO life-cycle is one of the main issues with DOs
in the spec and one reason they may be changed.


For now, just implement ejbRemove in your entity
and DOs so they call the remove of their children.


-tim



 -Original Message-
 From: Christian Billen [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 16, 2001 7:43 PM
 To: Orion-Interest
 Subject: Dependents in 1-N don't go away
 
 
 Hi everyone,
 
 I am having an issue with my 1-n dependents relationship. My 
 dependents
 don't get deleted when I remove them from the cmr Set.
 
 I have a PhoneNumber dependent class which has a field type, 
 countrycode,
 number, etc...
 
 I implemented the equal method in my class such that two 
 phonenumber having
 the same type are equal, these type being like business, 
 fax, cell,
 etc
 
 Now I have an ejb class, the Customer ejb, which has :
 
 abstract PhoneNumber createPhoneNumber()
 abstract Set getPhoneNumbers()
 abstract void setPhoneNumbers(Phonenumber n)
 void addPhoneNumber(String type, String areaCode, ...)
 {
  PhoneNumber p = createPhoneNumber();
  //Remove an existing phone
  //*1
  getPhoneNumbers().remove(phoneNumber);
  //*2
  getPhoneNumbers().add(phoneNumber);
  //*3
 }
 
 Basically since my phonenumber equals on type, the desired 
 effect is I want
 to wipe out a previous phonenumber of the same type before 
 adding the new
 one.
 
 My problem is that I can see the phoneNumber being 
 successfully removed from
 the list by putting debug calls at *1,*2 and *3 that checks on
 getPhoneNumbers.size() ...and the method commits correctly. 
 But the rows
 are still in the database. Which if I call this method again 
 will cause a
 Duplicate Key exception from my DB.
 
 Anyone knows why the remove() call doesn't seem to affect the db?
 
 Note: I run within container transaction on this method.
 
 Thanks,
 
 Christian
 
 





Re: Custom UserManager - Problem Solved!

2001-03-17 Thread Michael Gantz

I finally got my custom user manager working.  I put an empty 
principals.xml in my application, it only had enough tags to meet the 
DTD, but didn't have any users or groups in it.  I also put an 
orion-application.xml into my application specifying the custom user 
manager, and then packaged all that up into my '.ear' file.

But here is what was causing the problem, orion-1.4.5 does not update 
those files when the application is re-deployed.  I'm not sure if this is 
a bug or configurable somewhere, but ultimately that is what was causing 
my grief!  

I appreciate all the suggestions and was able to incorporate some of them 
in my code already!

Thanks for the help


 Original Message 

On 3/16/01, 3:39:38 PM, Matthew R Bauer [EMAIL PROTECTED] wrote regarding 
Re: Custom UserManager.:


 Don't user setParent.  Just leave it as an empty method. I do that and it
 works just fine.

 Matt

 On Fri, 16 Mar 2001, Michael Gantz wrote:





RE: Custom UserManager - Problem Solved!

2001-03-17 Thread elephantwalker

oops...

I should have told you this little secret. The only way I got my user
manager to work was modifying the application-xml in the deployment
directory. I could never find a configuration that did this automaticly.

Regards,

Elephantwalker

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Michael Gantz
Sent: Saturday, March 17, 2001 7:23 AM
To: Orion-Interest
Subject: Re: Custom UserManager - Problem Solved!


I finally got my custom user manager working.  I put an empty
principals.xml in my application, it only had enough tags to meet the
DTD, but didn't have any users or groups in it.  I also put an
orion-application.xml into my application specifying the custom user
manager, and then packaged all that up into my '.ear' file.

But here is what was causing the problem, orion-1.4.5 does not update
those files when the application is re-deployed.  I'm not sure if this is
a bug or configurable somewhere, but ultimately that is what was causing
my grief!

I appreciate all the suggestions and was able to incorporate some of them
in my code already!

Thanks for the help


 Original Message 

On 3/16/01, 3:39:38 PM, Matthew R Bauer [EMAIL PROTECTED] wrote regarding
Re: Custom UserManager.:


 Don't user setParent.  Just leave it as an empty method. I do that and it
 works just fine.

 Matt

 On Fri, 16 Mar 2001, Michael Gantz wrote:






RE: REFERENCE WAR CLASSES FROM EJB-JAR FILES

2001-03-17 Thread Mike Cannon-Brookes

Yes, put your common classes in the EJB JAR.

EJB JAR's can't see classes in your WAR.
WAR's can see classes in your EJB JAR.

-mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Josh P Motto
 Sent: Saturday, March 17, 2001 10:21 PM
 To: Orion-Interest
 Subject: REFERENCE WAR CLASSES FROM EJB-JAR FILES


 Hello,
 Can anyone help me with this quick question?

 I developed several javabeans (not ejb) that I use to pass data
 to and from
 my EJBs from servlets and Custom Tag Libraries... IE address.java contains
 the standard address address fields like street city, etc.

 I store these "pass by value" regular javabeans in the same directory tree
 as my servlets - and they get compiled successfully into a war file, and
 then I compile my EJBs into several Jar files, and finally into
 an EAR file.

 However, when starting orion, I get a NoClassDefFoundError indicating that
 the EJB jar file cannot succesully import the javabean package
 into the from
 the web war file into the ejb.jar file.

 My question:  IS IT POSSIBLE TO IMPORT (reference) WEB WAR CLASSES (IE
 REGULAR JAVABEANS) STORED IN THE SAME FOLDER AS SERVLETS INTO EJBS (ie war
 file)?

 THANK YOU VERY MUCH



 HERE IS THE ERROR

 Auto-deploying usr-ejb.jar (No previous deployment found)...
 java.lang.NoClassDefFoundError: com/taskpro/web/usr/UsrLoginCredentia
 lsPBV
 at java.lang.Class.getMethods0(Native Method)
 at java.lang.Class.getMethods(Class.java:742)
 at com.evermind.server.ejb.compilation.gb.ah8(JAX)
 at com.evermind.server.ejb.compilation.fm.s_(JAX)
 at com.evermind.server.ejb.compilation.ga.s_(JAX)
 at com.evermind.server.ejb.EJBContainer.bz(JAX)
 at com.evermind.server.Application.bz(JAX)
 at com.evermind.server.Application.gf(JAX)
 at com.evermind.server.ApplicationServer.rv(JAX)
 at com.evermind.server.ApplicationServer.aqb(JAX)
 at com.evermind.server.ApplicationServer.gf(JAX)
 at com.evermind.server.hg.run(JAX)
 at java.lang.Thread.run(Thread.java:484)
 at com.evermind.util.f.run(JAX)


 _
 Do You Yahoo!?
 Get your free @yahoo.com address at http://mail.yahoo.com







RE: REFERENCE WAR CLASSES FROM EJB-JAR FILES

2001-03-17 Thread Gary Shea

Mike Cannon-Brookes ([EMAIL PROTECTED]) wrote:
 Yes, put your common classes in the EJB JAR.

 EJB JAR's can't see classes in your WAR.
 WAR's can see classes in your EJB JAR.

 -mike

I didn't know that... cool!  Is that a J2EE-defined behaviour,
or is it orion-specific?

Yet another solution is possible with Orion;
I am using an entry in the orion-application.xml to specify a library
directory.  Any jars placed in that directory are visible to the
entire application.  Kind of like the orion/lib directory but on
the application level.

Gary


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of Josh P Motto
  Sent: Saturday, March 17, 2001 10:21 PM
  To: Orion-Interest
  Subject: REFERENCE WAR CLASSES FROM EJB-JAR FILES
 
 
  Hello,
  Can anyone help me with this quick question?
 
  I developed several javabeans (not ejb) that I use to pass data
  to and from
  my EJBs from servlets and Custom Tag Libraries... IE address.java contains
  the standard address address fields like street city, etc.
 
  I store these "pass by value" regular javabeans in the same directory tree
  as my servlets - and they get compiled successfully into a war file, and
  then I compile my EJBs into several Jar files, and finally into
  an EAR file.
 
  However, when starting orion, I get a NoClassDefFoundError indicating that
  the EJB jar file cannot succesully import the javabean package
  into the from
  the web war file into the ejb.jar file.
 
  My question:  IS IT POSSIBLE TO IMPORT (reference) WEB WAR CLASSES (IE
  REGULAR JAVABEANS) STORED IN THE SAME FOLDER AS SERVLETS INTO EJBS (ie war
  file)?
 
  THANK YOU VERY MUCH
 
 
 
  HERE IS THE ERROR
 
  Auto-deploying usr-ejb.jar (No previous deployment found)...
  java.lang.NoClassDefFoundError: com/taskpro/web/usr/UsrLoginCredentia
  lsPBV
  at java.lang.Class.getMethods0(Native Method)
  at java.lang.Class.getMethods(Class.java:742)
  at com.evermind.server.ejb.compilation.gb.ah8(JAX)
  at com.evermind.server.ejb.compilation.fm.s_(JAX)
  at com.evermind.server.ejb.compilation.ga.s_(JAX)
  at com.evermind.server.ejb.EJBContainer.bz(JAX)
  at com.evermind.server.Application.bz(JAX)
  at com.evermind.server.Application.gf(JAX)
  at com.evermind.server.ApplicationServer.rv(JAX)
  at com.evermind.server.ApplicationServer.aqb(JAX)
  at com.evermind.server.ApplicationServer.gf(JAX)
  at com.evermind.server.hg.run(JAX)
  at java.lang.Thread.run(Thread.java:484)
  at com.evermind.util.f.run(JAX)
 
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com
 
 








orion-ejb-jar.xml query

2001-03-17 Thread Mangesh Laad

Hi everybody
I am experiencing problem in orion-ejb-jar.xml .
Whenever i try to write a finder method involving 2
fields rather than one, orion overwrites the query in
the finder-method by a findAll equivalent method like
below
finder-method query=""
!-- Generated SQL: "select codes.companyId,  
   codes.categoryName, 
codes.entryValue, 
codes.entryDescription 
 from codes" --

INSTEAD of 
finder-method query="$companyId = $1 
   and $categoryName = $2"

please tell me how to stop orion from overwriting the
finder-method at time of deployment
  I even tried to copy the orion-ejb-jar.xml into the
XXX/lib/ejb/orion/orion-ejb-jar.xml writing a small
copy script in the build.xml and then built the
XXX-ejb.jar out of it thinking that ant will then
automatically copy the orion-ejb-jar.xml in the
application-deployment/XXX/XXX-ejb.jar directory .
XXX is the name of my application.

  Please help me 
Thanks 



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Re: Primarkey is 0

2001-03-17 Thread Mangesh Laad

Hi Patrick
   Just go thru the addressbook example provided in
the Orion CMP Primer within the documentation link on
www.orionserver.com site..what u get from
coolection is RMI objects that have to be collected in
an array and when u iterate thru the array u pick out
each rmi object and invoke its getID method to give u
the correct id..a unique one if UNIQUE index is
set or if its primary key..
  I have a field by datatype NUMBER as i use Oracle
8.0i and its corresponding mapping field is
java.lang.Long ..i don;t see any problem in
mapping
  well try using Long istead of long




--- Patrik Andersson [EMAIL PROTECTED]
wrote:
 I have a CMP entitybean named Category. It has a
 name and an id CMP field. I
 have added a finder method called findAll(),which
 orion very nicely added a
 finder-method tag in orion-ejb-jar.xml for me,
 that returns a
 java.util.Collection object. When I iterate that
 collection I get the name
 property from each Category object correctly read,
 but the id property is
 always 0. The SQL type in the database is INT with
 size 4. The return type
 of the ejbCreate method is long. The id is
 primkey-field and cmp-field.
 primkey-class is java.lang.Long. What am I
 missing?
 
 regards,
 Patrik Andersson
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




Re: SV: Primarkey is 0

2001-03-17 Thread Mangesh Laad

Hi
  I feel u shud try using java.lang.Long instead of
long.the NullPointerException is thrown since the
ejb container is not able to get any rows from the
database for the primary key u specified
  make the change in datatype and try out
--- Patrik Andersson [EMAIL PROTECTED]
wrote:
 I did further tests. When I do findByPrimarykey on
 CategoryHome with one of
 the id:s that exist in the database. Get get nothing
 at all. It throws a
 RemoteException with a nested NPE.
  
 com.evermind.server.rmi.OrionRemoteException: Error
 in ejbLoad:
 java.lang.NullPointerException
 at

CategoryHome_EntityHomeWrapper9.findExistingEntity(CategoryHome_EntityHomeWr
 apper9.java:69)
 at

CategoryHome_EntityHomeWrapper9.findByPrimaryKey(CategoryHome_EntityHomeWrap
 per9.java:224)
 at

com.cypoint.patrik.gunnar_se.servlet.ControllerServlet.onListCategoriesComma
 nd(ControllerServlet.java:102)
 at java.lang.reflect.Method.invoke(Native
 Method)
 at

com.cypoint.patrik.gunnar_se.abstractmanager.servlet.CommandDispatcher.invok
 eMethod(AbstractManagerServlet.java:169)
 at

com.cypoint.patrik.gunnar_se.abstractmanager.servlet.CommandDispatcher.dispa
 tchCommand(AbstractManagerServlet.java:288)
 at

com.cypoint.patrik.gunnar_se.abstractmanager.servlet.AbstractManagerServlet.
 doGet(AbstractManagerServlet.java:62)
 at

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

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

javax.servlet.http.HttpServlet.service(HttpServlet.java:329)
 at com.evermind.server.http.d4.s3(JAX)
 at com.evermind.server.http.d4.include(JAX)
 at

com.evermind.server.http.EvermindPageContext.include(JAX)
 at

__jspPage10_leftFrame_jsp._jspService(__jspPage10_leftFrame_jsp.java:31)
 at
 com.orionserver.http.OrionHttpJspPage.service(JAX)
 at
 com.evermind.server.http.HttpApplication.xu(JAX)
 at
 com.evermind.server.http.JSPServlet.service(JAX)
 at com.evermind.server.http.d4.s3(JAX)
 at com.evermind.server.http.d4.s1(JAX)
 at com.evermind.server.http.eg.s9(JAX)
 at com.evermind.server.http.eg.dr(JAX)
 at com.evermind.util.f.run(JAX)
  
 Nested exception is:
 java.lang.NullPointerException
 at
 java.io.ObjectInputStream.readFullyInternal(Unknown
 Source)
 at
 java.io.ObjectInputStream.bufferData(Unknown Source)
 at
 java.io.ObjectInputStream.readShort(Unknown Source)
 at
 java.io.ObjectInputStream.readStreamHeader(Unknown
 Source)
 at java.io.ObjectInputStream.init(Unknown
 Source)
 at com.evermind.io.kq.init(JAX)
 at com.evermind.server.ejb.gw.init(JAX)
 at

com.evermind.server.ejb.EntityEJBObject.deSerialize(JAX)
 at

Category_EntityBeanWrapper0.loadState(Category_EntityBeanWrapper0.java:665)
 at

CategoryHome_EntityHomeWrapper9.findExistingEntity(CategoryHome_EntityHomeWr
 apper9.java:33)
 at

CategoryHome_EntityHomeWrapper9.findByPrimaryKey(CategoryHome_EntityHomeWrap
 per9.java:224)
 at

com.cypoint.patrik.gunnar_se.servlet.ControllerServlet.onListCategoriesComma
 nd(ControllerServlet.java:102)
 at java.lang.reflect.Method.invoke(Native
 Method)
 at

com.cypoint.patrik.gunnar_se.abstractmanager.servlet.CommandDispatcher.invok
 eMethod(AbstractManagerServlet.java:169)
 at

com.cypoint.patrik.gunnar_se.abstractmanager.servlet.CommandDispatcher.dispa
 tchCommand(AbstractManagerServlet.java:288)
 at

com.cypoint.patrik.gunnar_se.abstractmanager.servlet.AbstractManagerServlet.
 doGet(AbstractManagerServlet.java:62)
 at

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

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

javax.servlet.http.HttpServlet.service(HttpServlet.java:329)
 at com.evermind.server.http.d4.s3(JAX)
 at com.evermind.server.http.d4.include(JAX)
 at

com.evermind.server.http.EvermindPageContext.include(JAX)
 at

__jspPage10_leftFrame_jsp._jspService(__jspPage10_leftFrame_jsp.java:31)
 at
 com.orionserver.http.OrionHttpJspPage.service(JAX)
 at
 com.evermind.server.http.HttpApplication.xu(JAX)
 at
 com.evermind.server.http.JSPServlet.service(JAX)
 at com.evermind.server.http.d4.s3(JAX)
 at com.evermind.server.http.d4.s1(JAX)
 at com.evermind.server.http.eg.s9(JAX)
 at com.evermind.server.http.eg.dr(JAX)
 at com.evermind.util.f.run(JAX)
 
 What is this?
  
 regards,
 Patrik Andersson
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




RE: REFERENCE WAR CLASSES FROM EJB-JAR FILES

2001-03-17 Thread Mike Cannon-Brookes

This is J2EE-defined behaviour.

The lib dir in orion-application.xml is NOT j2ee-defined behaviour ;)

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Gary Shea
 Sent: Sunday, March 18, 2001 6:00 AM
 To: Orion-Interest
 Subject: RE: REFERENCE WAR CLASSES FROM EJB-JAR FILES


 Mike Cannon-Brookes ([EMAIL PROTECTED]) wrote:
  Yes, put your common classes in the EJB JAR.
 
  EJB JAR's can't see classes in your WAR.
  WAR's can see classes in your EJB JAR.
 
  -mike

 I didn't know that... cool!  Is that a J2EE-defined behaviour,
 or is it orion-specific?

 Yet another solution is possible with Orion;
 I am using an entry in the orion-application.xml to specify a library
 directory.  Any jars placed in that directory are visible to the
 entire application.  Kind of like the orion/lib directory but on
 the application level.

   Gary

 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Josh P Motto
   Sent: Saturday, March 17, 2001 10:21 PM
   To: Orion-Interest
   Subject: REFERENCE WAR CLASSES FROM EJB-JAR FILES
  
  
   Hello,
   Can anyone help me with this quick question?
  
   I developed several javabeans (not ejb) that I use to pass data
   to and from
   my EJBs from servlets and Custom Tag Libraries... IE
 address.java contains
   the standard address address fields like street city, etc.
  
   I store these "pass by value" regular javabeans in the same
 directory tree
   as my servlets - and they get compiled successfully into a
 war file, and
   then I compile my EJBs into several Jar files, and finally into
   an EAR file.
  
   However, when starting orion, I get a NoClassDefFoundError
 indicating that
   the EJB jar file cannot succesully import the javabean package
   into the from
   the web war file into the ejb.jar file.
  
   My question:  IS IT POSSIBLE TO IMPORT (reference) WEB WAR CLASSES (IE
   REGULAR JAVABEANS) STORED IN THE SAME FOLDER AS SERVLETS INTO
 EJBS (ie war
   file)?
  
   THANK YOU VERY MUCH
  
  
  
   HERE IS THE ERROR
  
   Auto-deploying usr-ejb.jar (No previous deployment found)...
   java.lang.NoClassDefFoundError: com/taskpro/web/usr/UsrLoginCredentia
   lsPBV
   at java.lang.Class.getMethods0(Native Method)
   at java.lang.Class.getMethods(Class.java:742)
   at com.evermind.server.ejb.compilation.gb.ah8(JAX)
   at com.evermind.server.ejb.compilation.fm.s_(JAX)
   at com.evermind.server.ejb.compilation.ga.s_(JAX)
   at com.evermind.server.ejb.EJBContainer.bz(JAX)
   at com.evermind.server.Application.bz(JAX)
   at com.evermind.server.Application.gf(JAX)
   at com.evermind.server.ApplicationServer.rv(JAX)
   at com.evermind.server.ApplicationServer.aqb(JAX)
   at com.evermind.server.ApplicationServer.gf(JAX)
   at com.evermind.server.hg.run(JAX)
   at java.lang.Thread.run(Thread.java:484)
   at com.evermind.util.f.run(JAX)
  
  
   _
   Do You Yahoo!?
   Get your free @yahoo.com address at http://mail.yahoo.com
  
  
 
 
 








REFERENCE WAR CLASSES FROM EJB-JAR FILES

2001-03-17 Thread Josh P Motto

Hello,
Can anyone help me with this quick question?

I developed several javabeans (not ejb) that I use to pass data to and from
my EJBs from servlets and Custom Tag Libraries... IE address.java contains
the standard address address fields like street city, etc.

I store these "pass by value" regular javabeans in the same directory tree
as my servlets - and they get compiled successfully into a war file, and
then I compile my EJBs into several Jar files, and finally into an EAR file.

However, when starting orion, I get a NoClassDefFoundError indicating that
the EJB jar file cannot succesully import the javabean package into the from
the web war file into the ejb.jar file.

My question:  IS IT POSSIBLE TO IMPORT (reference) WEB WAR CLASSES (IE
REGULAR JAVABEANS) STORED IN THE SAME FOLDER AS SERVLETS INTO EJBS (ie war
file)?

THANK YOU VERY MUCH



HERE IS THE ERROR

Auto-deploying usr-ejb.jar (No previous deployment found)...
java.lang.NoClassDefFoundError: com/taskpro/web/usr/UsrLoginCredentia
lsPBV
at java.lang.Class.getMethods0(Native Method)
at java.lang.Class.getMethods(Class.java:742)
at com.evermind.server.ejb.compilation.gb.ah8(JAX)
at com.evermind.server.ejb.compilation.fm.s_(JAX)
at com.evermind.server.ejb.compilation.ga.s_(JAX)
at com.evermind.server.ejb.EJBContainer.bz(JAX)
at com.evermind.server.Application.bz(JAX)
at com.evermind.server.Application.gf(JAX)
at com.evermind.server.ApplicationServer.rv(JAX)
at com.evermind.server.ApplicationServer.aqb(JAX)
at com.evermind.server.ApplicationServer.gf(JAX)
at com.evermind.server.hg.run(JAX)
at java.lang.Thread.run(Thread.java:484)
at com.evermind.util.f.run(JAX)


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





RE: Dependents in 1-N don't go away

2001-03-17 Thread Christian Billen
Title: RE: Dependents in 1-N don't go away



Hi 
Tim, thanks for the info, by my problem is different

my 
issue is I want to remove a dependent from the java.utill.Set in its parent 
object and that if I call getDependents().remove(dependent) from the parent 
object the dependent doesn't go away from the list (even though it has been 
found since I implemented the equal method)

Any 
help on this is really greatly appreciated.

Thanks,

Christian

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of Tim 
  DrurySent: Saturday, March 17, 2001 9:10 AMTo: 
  Orion-InterestSubject: RE: Dependents in 1-N don't go 
  away
  Dependent objects (DO) do not go away automatically. 
  There is an un-implemented option in the deployment 
  descriptor called cascade-delete, but alas, it 
  is unimplemented. 
  The DO life-cycle is one of the main issues with DOs 
  in the spec and one reason they may be changed. 
  For now, just implement ejbRemove in your entity 
  and DOs so they call the remove of their children. 

  -tim 
   -Original Message-  
  From: Christian Billen [mailto:[EMAIL PROTECTED]]  Sent: Friday, March 16, 2001 7:43 PM  
  To: Orion-Interest  Subject: Dependents in 1-N 
  don't go away   
   Hi everyone,  
   I am having an issue with my 1-n dependents 
  relationship. My  dependents 
   don't get deleted when I remove them from the cmr 
  Set.   I have a 
  PhoneNumber dependent class which has a field type,  countrycode,  number, etc... 
I implemented the equal 
  method in my class such that two  phonenumber 
  having  the same type are equal, these type being 
  like "business",  "fax", "cell",  etc   Now 
  I have an ejb class, the Customer ejb, which has :   abstract PhoneNumber 
  createPhoneNumber()  abstract Set 
  getPhoneNumbers()  abstract void 
  setPhoneNumbers(Phonenumber n)  void 
  addPhoneNumber(String type, String areaCode, ...)  
  {   PhoneNumber p = 
  createPhoneNumber();  
   //Remove an existing phone   //*1  
   getPhoneNumbers().remove(phoneNumber); 
//*2   
  getPhoneNumbers().add(phoneNumber);  
   //*3  } 
Basically since my 
  phonenumber equals on type, the desired  effect is 
  I want  to wipe out a previous phonenumber of the 
  same type before  adding the new  one.   My 
  problem is that I can see the phoneNumber being  
  successfully removed from  the list by putting 
  debug calls at *1,*2 and *3 that checks on  
  getPhoneNumbers.size() ...and the method commits correctly. 
   But the rows  are 
  still in the database. Which if I call this method again 
   will cause a  
  Duplicate Key exception from my DB.  
   Anyone knows why the remove() call doesn't seem 
  to affect the db?   
  Note: I run within container transaction on this method.   Thanks,  
   Christian  
   


Strange behavior SSL and session tracking

2001-03-17 Thread Alexander Sparkowsky

Hello,
we have tried to setup a 1.4.7 orion with SSL under linux and have big
trouble with the sessiontracking. It seems that only Windows 2000 and
Windows ME with IE work properly. In all other cases the sessiontracking
doesn't work. Every second or third page the user is sent to the loginpage.
It looks as if no cookie is sent to the browser and also URL rewriting
(encodeURL()) doesn't add the sessionid.

Does anybody have a solution for this problem?

Alexander Sparkowsky
Berlin, Germany
PGP ok