RE: Orion 1.5.2 and ORM Map bug (SHOW STOPPER)
Simon, Take a look at bug 512. Your map is defined in the orion-ejb-jar.xml file. We have found the 1.5.2 will redeploy an ejb, and overwrite the orion-ejb-jar.xml on a restart. This could be what's happening. Take a look at the orion-ejb-jar.xml in the deployment directory. Regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Simon Harris Sent: Tuesday, July 03, 2001 9:40 PM To: Orion-Interest Subject: Orion 1.5.2 and ORM Map bug (SHOW STOPPER) Has anyone else experienced problems with using a Map mapping under 1.5.2? It seems if I create an entity with a Map mapped field I can load and store just fine while the server remains up. If however, I shut down the server and restart it, I can find and load the entity just fine, but the Map mapped field always comes back empty even though the data is clearly in the database. I have added comments about this to Bug# 463 but it is a real show stopper for us. Regards, Simon
Re: Bug??? Orion/SSL + IE loses sessions
It is also a known problem that IE forces a user to relogin every 2 minutes by default. Strongly suggest that you go to a site with online banking and see how they solved the problem. Usually there's a patch to download that increases the expiring idle time, which is annoying when IE is using lazy update and uses cached pages instead of updating immediately. Lazy cache is when the browser for now uses the cached version, and in the background sends a new request. I couldn't find a url for the patch, but I know it exists somewhere on http://www.handelsbanken.se under the menuoption Installation. The site is in swedish so you might have difficulties navigating :) Johan - Original Message - From: Noah Nordrum [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 8:46 PM Subject: Re: Bug??? Orion/SSL + IE loses sessions are you using a really long GET query string? I've found (on an older version, 1.3.8 if I recall correcty) that if you send a very long, don't know exactly how long, query string, it would cause you to loose your session. I couldn't explain why, I just switched to POST, and everything worked great. This may not be your problem, but just thought you might want to know. Noah - Original Message - From: Klaus Thiele [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, July 03, 2001 11:20 AM Subject: Re: Bug??? Orion/SSL + IE loses sessions Hi, in your secure-web-site.xml try: web-app application=appname name=webapp root=/blabla shared=true/ ^ 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. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Advanced OR_Mapping 1-to-N-to-N possible?
I have this situation: class Enterprise1Bean implements EntityBean { public java.util.Vector elements; public static final Class elements_type = Normal_Java_Bean1.class; public void setElements(java.util.Vector newElements){ elements = newElements; } public java.util.Vector getElements(){ return elements; } /* * Other EJB methods * */ } class Normal_Java_Bean1 { public java.util.Vector elements; public static final Class elements_type = Normal_Java_Bean2.class; public void setElements(java.util.Vector newElements){ elements = newElements; } public java.util.Vector getElements(){ return elements; } } class Normal_Java_Bean2 { public String text; public void setText(String newText){ text = newText; } public String getText(){ return text; } } Now I want to map everything in an 1-to-N-to-N or-mapping. That means... What you see... An EJB has a Vector of elements, which have other Vectors of other Elements. Trying to deploy that I receive a NullPointerException ( I think it's while creating the table for the Normal_Java_Bean2, beacause Normal_Java_Bean1 has no primary key to map into). Tried Map-Mapping, because there is a primary key, to no avail however: map-mapping can only be used on the types java.util.Map, java.util.Hashtable, java.util.Properties (not Normal_Java_Bean1) HELP! Lachezar
UNSUSCRIBE
Title: UNSUSCRIBE UNSUSCRIBE
Data source for Sybase with Jconnect 5.2
I'm trying to ask it second time. Does anyone use Jconnect 5.2 ? If so could you please share your data-source.xml and access code. I'm particularly interested to see how pooled-location works, not ejb-location. Thanks ~boris
Re: jsp templates and blueprint/petstore
- Original Message - From: elephantwalker [EMAIL PROTECTED] Hi, [...] Does anybody has some insight on the why of the j2ee blueprint templating mechanism? Or for that matter, any procedural templating mechanism? IMO it is just to make the customer think he needs experienced developers to implement simple things and to assure noone else will be able to maintain your application in the future :) Of course it would be nice to have an uniform screen layout which requires only minimal effort when you decide to redesign apperance of all app pages, but: - I don't think the effort to implement such mechanism pays back (I do agree that standard include mechanism is flexible enough for that purpose), - when these changes have to be done by someone else than the autor, he's probably going to need more time to understand the design than to change each page individually with classic include mechanism. -- Regards, Rafal
Re: Data source for Sybase with Jconnect 5.2
Boris - Here is an example of a Sybase datasource - we use only the ejb-location but you may be able to find others who use the pooled-location by searching through the mailing list. Cheers Ray data-source name=MyDataSource class=com.evermind.sql.ConnectionDataSource location=jdbc/DefaultDS pooled-location=jdbc/DefaultPooledDS xa-location=jdbc/xa/DefaultXADS ejb-location=jdbc/DefaultEJBDS url=jdbc:sybase:Tds:hostname:8000/mydbname connection-driver=com.sybase.jdbc2.jdbc.SybDriver username=user password=pwd schema=database-schemas/sybase.xml max-connections=4 inactivity-timeout=3600 /data-source --- Boris Erukhimov [EMAIL PROTECTED] wrote: I'm trying to ask it second time. Does anyone use Jconnect 5.2 ? If so could you please share your data-source.xml and access code. I'm particularly interested to see how pooled-location works, not ejb-location. Thanks ~boris __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
RE: Data source for Sybase with Jconnect 5.2
datasource: data-source class=com.evermind.sql.ConnectionDataSource name=Sybase location=jdbc/SybaseCoreDS xa-location=jdbc/xa/SybaseXADS ejb-location=jdbc/SybaseDS pooled-location=jdbc/SybasePDS connection-driver=com.sybase.jdbc2.jdbc.SybDriver schema=c:\orion\config\database-schemas\sybase.xml username=username password=password url=jdbc:sybase:Tds:Host:Port/Database min-connections=5 max-connections=10 max-connect-attempts=2 inactivity-timeout=30 wait-timeout=0 connection-retry-interval=3 / sample of use: java.sql.Connection conn=null; try { javax.naming.Context ic = new javax.naming.InitialContext(); javax.sql.DataSource ds = (javax.sql.DataSource) ic.lookup(java:comp/env/jdbc/SybasePDS); //acquire conn if (conn==null) conn = ds.getConnection(); ... //use connection ... } catch (Exception e) { //handle error ... } finally { //close conn if (conn!=null) conn.close(); conn = null; } The try-catch-finally is there to ensure errors don't leave connections hanging loose(they would not be returned to the pool, but finally fail due to timeout) HTH JP -Original Message- From: Boris Erukhimov [mailto:[EMAIL PROTECTED]] Sent: Miércoles, 04 de Julio de 2001 3:51 To: Orion-Interest Subject: Data source for Sybase with Jconnect 5.2 I'm trying to ask it second time. Does anyone use Jconnect 5.2 ? If so could you please share your data-source.xml and access code. I'm particularly interested to see how pooled-location works, not ejb-location. Thanks ~boris
Re: Data source for Sybase with Jconnect 5.2
Hi, I use JConnect 5.2. My setup's pretty simple, I have this in my data-sources.xml: data-source class=com.evermind.sql.DriverManagerDataSource name=Sybase Adaptive Server on Luge location=jdbc/SybaseCoreDS xa-location=jdbc/xa/SybaseXADS ejb-location=jdbc/SybaseDS connection-driver=com.sybase.jdbc2.jdbc.SybDriver username=sa password=root123 url=jdbc:sybase:Tds:168.178.125.37:4100/ETSTest_SLCDevComp5?CHARSET=utf8 inactivity-timeout=30 / (I beleive you can leave the CHARSET out of the URL.) I pretty much mimicd the default Hypersonic configuration, replacing my JDBC driver name and Hypersonic with Sybase. Then I have this in my server.xml to get the JConnect jar in my classpath: library path=C:\jdk1.3\lib;C:\JConnect-5_2\classes\jconn2.jar / I'm afraid I never did any direct JDBC access with this, so I couldn't tell you about pooled-location. However, I thought the ejb-location was a connection pool? Mike - Original Message - From: Boris Erukhimov [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, July 04, 2001 1:50 AM Subject: Data source for Sybase with Jconnect 5.2 I'm trying to ask it second time. Does anyone use Jconnect 5.2 ? If so could you please share your data-source.xml and access code. I'm particularly interested to see how pooled-location works, not ejb-location. Thanks ~boris
Re: Classpath and library path ERROR ??? -- PLEASE again ???
Title: SV: Classpath and library path ERROR ??? --> PLEASE again ??? Helllu I still haven't been able to solve the problem below and I already had a lot of sleepless nights...so please some help, as I realy can't continue!! (see below for the problem). Does someone has a tiy example that proves that it must work, which I can test on my Orion Eddie - Original Message - From: Eddie To: Orion-Interest Sent: Friday, June 29, 2001 11:19 PM Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ??? Hellu again, Finally I have been able to jar the project to a ear file and deploy it. I included the log4j-core.jar file in my ear file, by including it in a ejb.jar file. I did this like Magnus suggested below: including the jar file in one of the ejb.jar files and put it in the MANIFEST.MF file. However, Orion still complains that it can't find the log4j-core.jar file!! Please some help with the configuration ??: The ear files contains (locates in $ORION_HOME/applications): - META-INF sgs-web.war um-ejb.jar They um-ejb.jar contains : -- log4j-core.jarMETA-INF/MANIFEST.MFMETA-INF/ejb-jar.xml -- And the MANIFEST.MF file contains: --- Manifest-Version: 1.0Created-By: Ant 1.3Class-Path: log4j-core.jar--- So, please can someone tell me what the ... am I doing wrong, as it drives my grazy !!! BTW: I also included the log4j-core.jar filein alib dir, which I did put in the orion-application.xml file with the 'library path' tag, like the elephantwalker suggested, but still had the same problem!! (ofcourse I included everything in the ear file). Musn't I include the log4j-core.jar in the MANIFEST.MF file of the ear file, instead of the ejb.jar file, as Magnus suggested ?? Gr, Eddie - Original Message - From: Magnus Rydin To: Orion-Interest Sent: Monday, June 25, 2001 8:22 AM Subject: SV: Classpath and library path ERROR ??? -- PLEASE again ??? I guess thats orion-application.xml right? Another way would be to include the jar in the .ear file, and make one of the ejb .jar:s manifest files point it out. This is according to my interpretation of the specification, so Im pretty sure this will work with most J2EE servers out there. WR -Ursprungligt meddelande- Från: Ye He [mailto:[EMAIL PROTECTED]] Skickat: den 22 juni 2001 09:09 Till: Orion-Interest Ämne: Re: Classpath and library path ERROR ??? -- PLEASE again ??? i speicify my CLASSPATH thru applications.xml's library path=".." / tag, using absolute path. i'm on SuSE 7.1 (kernel 2.4.0) with IBM jdk 1.3.0 --- Eddie [EMAIL PROTECTED] wrote: Helllu ?? What do you need to do to get an answer from this newsgroup when you are really in trouble ?? :( I still haven't be able to include a jar file in the orion-application.xml, that can be used by my application. It is able to use my jar when I put it in the $ORION_HOME/lib dir, but that's not what I want, as every application needs his own copy. I like to hear from Linux users how they did this, as I noticed that all the people that talked about it in the newsgroup, where all Windoze hackers. (I use: redhat 7.0 with sun jdk and orion 1.5.1) PLEASE some help, see below for more info ?? Eddie :( - Original Message - From: Eddie To: Orion-Interest Sent: Tuesday, June 19, 2001 11:20 AM Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ??? Thanks, Indeed the library tag wasn't on the correct place in the orion-application.xml. However, after placing it in the correct place it still doesn't work: . web-module id="web" path="web" / persistence path="persistence" / library path="./lib" / library path="./lib/log4j-core.jar" / library path="./lib/log4j.jar" / principals path="principals.xml" / log file path="application.log" / /log namespace-access --- I also tried the orion-web.xml: orion-web-app deployment-version="1.5.1" development="true" jsp-cache-directory="./persistence" temporary-directory="./temp" servlet-webdir="/servlets/" classpath path="./lib/log4j-core.jar" / ejb-ref-mapping name="ejb/UserManagerHome" / ... But didn't had much luck, which didn't suprise me, as I am using the lib files in my ejb's. I am sure that the jar files can be find by Orion, as it complaints when
RE: Classpath and library path ERROR ??? -- PLEASE again ???
Eddie, I thought I gave a good answer before. I implemented a selfmade usermanager, which I wanted all applications to have access to. Here was my file structure in the .ear file: /lib /lib/test/myusermanager.class /META-INF /META-INF/application.xml /META-INF/orion-application.xml /usermanager/META-INF/ejb-jar.xml /myotherejbs.jar /myapp.war the orion-application.xml has the following line after the persistance tag and before principals tag : library path=lib / The applications have no problems finding the myusermanager.class. Regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Wednesday, July 04, 2001 1:54 PM To: Orion-Interest Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ??? Helllu I still haven't been able to solve the problem below and I already had a lot of sleepless nights... so please some help, as I realy can't continue!! (see below for the problem). Does someone has a tiy example that proves that it must work, which I can test on my Orion Eddie - Original Message - From: Eddie To: Orion-Interest Sent: Friday, June 29, 2001 11:19 PM Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ??? Hellu again, Finally I have been able to jar the project to a ear file and deploy it. I included the log4j-core.jar file in my ear file, by including it in a ejb.jar file. I did this like Magnus suggested below: including the jar file in one of the ejb.jar files and put it in the MANIFEST.MF file. However, Orion still complains that it can't find the log4j-core.jar file!! Please some help with the configuration ??: The ear files contains (locates in $ORION_HOME/applications): - META-INF sgs-web.war um-ejb.jar They um-ejb.jar contains : -- log4j-core.jar META-INF/MANIFEST.MF META-INF/ejb-jar.xml -- And the MANIFEST.MF file contains: --- Manifest-Version: 1.0 Created-By: Ant 1.3 Class-Path: log4j-core.jar --- So, please can someone tell me what the ... am I doing wrong, as it drives my grazy !!! BTW: I also included the log4j-core.jar file in a lib dir, which I did put in the orion-application.xml file with the 'library path' tag, like the elephantwalker suggested, but still had the same problem!! (ofcourse I included everything in the ear file). Musn't I include the log4j-core.jar in the MANIFEST.MF file of the ear file, instead of the ejb.jar file, as Magnus suggested ?? Gr, Eddie - Original Message - From: Magnus Rydin To: Orion-Interest Sent: Monday, June 25, 2001 8:22 AM Subject: SV: Classpath and library path ERROR ??? -- PLEASE again ??? I guess thats orion-application.xml right? Another way would be to include the jar in the .ear file, and make one of the ejb .jar:s manifest files point it out. This is according to my interpretation of the specification, so Im pretty sure this will work with most J2EE servers out there. WR -Ursprungligt meddelande- Från: Ye He [mailto:[EMAIL PROTECTED]] Skickat: den 22 juni 2001 09:09 Till: Orion-Interest Ämne: Re: Classpath and library path ERROR ??? -- PLEASE again ??? i speicify my CLASSPATH thru applications.xml's library path=.. / tag, using absolute path. i'm on SuSE 7.1 (kernel 2.4.0) with IBM jdk 1.3.0 --- Eddie [EMAIL PROTECTED] wrote: Helllu ?? What do you need to do to get an answer from this newsgroup when you are really in trouble ?? :( I still haven't be able to include a jar file in the orion-application.xml, that can be used by my application. It is able to use my jar when I put it in the $ORION_HOME/lib dir, but that's not what I want, as every application needs his own copy. I like to hear from Linux users how they did this, as I noticed that all the people that talked about it in the newsgroup, where all Windoze hackers. (I use: redhat 7.0 with sun jdk and orion 1.5.1) PLEASE some help, see below for more info ?? Eddie :( - Original Message - From: Eddie To: Orion-Interest Sent: Tuesday, June 19, 2001 11:20 AM Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ??? Thanks, Indeed the library tag wasn't on the correct place in the orion-application.xml. However, after placing it in the correct place it still doesn't work: . web-module id=web path=web / persistence path=persistence / library path=./lib / library path=./lib/log4j-core.jar / library path=./lib/log4j.jar / principals path=principals.xml / log file path=application.log / /log namespace-access --- I also tried the orion-web.xml: orion-web-app deployment-version=1.5.1 development=true jsp-cache-directory=./persistence temporary-directory=./temp servlet-webdir=/servlets/ classpath path=./lib/log4j-core.jar /
Re: Classpath and library path ERROR ??? -- PLEASE again ???
Title: SV: Classpath and library path ERROR ??? --> PLEASE again ??? I think what Magnus was suggesting was not that you put log4j-core.jar IN your ejb-jar file, but that you put it in your ear file and put it in the classpath of your ejb-jar's manifest file. That way, log4j-core.jar will be just another jar in your ear file. The MANIFEST.MF in your ejb-jar file will have "log4j-core.jar" as its classpath entry. Another (really simple) thing you could try is adding this to your server.xml: library path="C:\jakarta-log4j-1.0.4\log4j-core.jar" / That's what I do, it will put it in the orion's classpath. (I haven't tried editing the orion-application.xml to do this yet.) Mike - Original Message - From: Eddie To: Orion-Interest Sent: Wednesday, July 04, 2001 2:53 PM Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ??? Helllu I still haven't been able to solve the problem below and I already had a lot of sleepless nights...so please some help, as I realy can't continue!! (see below for the problem). Does someone has a tiy example that proves that it must work, which I can test on my Orion Eddie - Original Message - From: Eddie To: Orion-Interest Sent: Friday, June 29, 2001 11:19 PM Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ??? Hellu again, Finally I have been able to jar the project to a ear file and deploy it. I included the log4j-core.jar file in my ear file, by including it in a ejb.jar file. I did this like Magnus suggested below: including the jar file in one of the ejb.jar files and put it in the MANIFEST.MF file. However, Orion still complains that it can't find the log4j-core.jar file!! Please some help with the configuration ??: The ear files contains (locates in $ORION_HOME/applications): - META-INF sgs-web.war um-ejb.jar They um-ejb.jar contains : -- log4j-core.jarMETA-INF/MANIFEST.MFMETA-INF/ejb-jar.xml -- And the MANIFEST.MF file contains: --- Manifest-Version: 1.0Created-By: Ant 1.3Class-Path: log4j-core.jar--- So, please can someone tell me what the ... am I doing wrong, as it drives my grazy !!! BTW: I also included the log4j-core.jar filein alib dir, which I did put in the orion-application.xml file with the 'library path' tag, like the elephantwalker suggested, but still had the same problem!! (ofcourse I included everything in the ear file). Musn't I include the log4j-core.jar in the MANIFEST.MF file of the ear file, instead of the ejb.jar file, as Magnus suggested ?? Gr, Eddie - Original Message - From: Magnus Rydin To: Orion-Interest Sent: Monday, June 25, 2001 8:22 AM Subject: SV: Classpath and library path ERROR ??? -- PLEASE again ??? I guess thats orion-application.xml right? Another way would be to include the jar in the .ear file, and make one of the ejb .jar:s manifest files point it out. This is according to my interpretation of the specification, so Im pretty sure this will work with most J2EE servers out there. WR -Ursprungligt meddelande- Från: Ye He [mailto:[EMAIL PROTECTED]] Skickat: den 22 juni 2001 09:09 Till: Orion-Interest Ämne: Re: Classpath and library path ERROR ??? -- PLEASE again ???i speicify my CLASSPATH thru applications.xml's library path=".." / tag, using absolute path. i'm on SuSE 7.1 (kernel 2.4.0) with IBM jdk 1.3.0 --- Eddie [EMAIL PROTECTED] wrote: Helllu ?? What do you need to do to get an answer from this newsgroup when you are really in trouble ?? :( I still haven't be able to include a jar file in the orion-application.xml, that can be used by my application. It is able to use my jar when I put it in the $ORION_HOME/lib dir, but that's not what I want, as every application needs his own copy. I like to hear from Linux users how they did this, as I noticed that all the people that talked about it in the newsgroup, where all Windoze hackers. (I use: redhat 7.0 with sun jdk and orion 1.5.1) PLEASE some help, see below for more info ?? Eddie :( - Original Message - From: Eddie To: Orion-Interest Sent: Tuesday, June 19, 2001 11:20 AM Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ??? Thanks, Indeed the library tag wasn't on the correct place in the
Test Post to Servlet Doesn't Work.
Orion Interest Group, I have written a Java class to test server to server communication for a servlet running on Orion 1.5.2. Nothing seems to happen when I run the class while the same URL sent from the address/location edit box on a browser works perfectly. The host URL I am using is http://ducati:8080/petroweb/report; where ducati is the name of my notebook, petroweb is the application name, and report is the servlet I am trying to access. Following is the code I am using to make the POST. What should I look for to make this work? I have System.out.println's in my servlet code to notify the open command prompt, in which Orion is running, of any requests received. I also have, in my servlet, all GET requests resolving to the doPost method. My environment is Intel P850, MS Windows 2000 Professional. Sun jdks, Orion 1.5.2 (stable binaries). Thank you for your help. import java.io.*; import java.net.*; import java.util.*; public class PostTest { public static void main( String args[] ){ String xml = ?xml version=\1.0\ encoding=\utf-8\? + pwCmdXML + CommandSubmitJob/Command + CommandPasswordaPwd/CommandPassword + ProjectNameTheProject/ProjectName + ProjectTypepType/ProjectType + ObjectClassstuff/ObjectClass + ObjectList1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, + 16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31, + 32,33,34,35,36/ObjectList + /pwCmdXML; try{ URL url = new URL( http://ducati:8080/petroweb/report?; ); HttpURLConnection conn = (HttpURLConnection)url.openConnection(); conn.setDoOutput( true ); conn.setRequestMethod( POST ); PrintWriter out = new PrintWriter(conn.getOutputStream() ); out.println( cmd= + URLEncoder.encode( xml ) ); conn.connect(); out.flush(); out.close(); } catch( MalformedURLException err ){ System.out.println( MalformedURLException = + err.getMessage() ); } catch( IOException err ){ System.out.println( IOException = + err.getMessage() ); } } }
RE: Advanced OR_Mapping 1-to-N-to-N possible?
Hi, Lachezar, you always have a workable alternative - just to turn your object instance into byte array . This is the first step I recommend while doing 1-M OR-mapping. Then I try to figure out how deep my map-mapping should be. Because it is a lot of dirty error-prone work on your 'orion-ejb-jar' files. I mean admitting that the final solution may be a mix of OR-mapping and serialization. Don't disregard the latter. I use cloudscape ORDMS where implicit java-object serialization is supported. Again I didn't encounter any problem with orion or-mapping, although my experience is limited. Regards, Victor -Original Message- From: Lachezar Dobrev [SMTP:[EMAIL PROTECTED]] Sent: ? 04 2001 10:36 To: Orion-Interest Subject:Advanced OR_Mapping 1-to-N-to-N possible? I have this situation: class Enterprise1Bean implements EntityBean { public java.util.Vector elements; public static final Class elements_type = Normal_Java_Bean1.class; public void setElements(java.util.Vector newElements){ elements = newElements; } public java.util.Vector getElements(){ return elements; } /* * Other EJB methods * */ } class Normal_Java_Bean1 { public java.util.Vector elements; public static final Class elements_type = Normal_Java_Bean2.class; public void setElements(java.util.Vector newElements){ elements = newElements; } public java.util.Vector getElements(){ return elements; } } class Normal_Java_Bean2 { public String text; public void setText(String newText){ text = newText; } public String getText(){ return text; } } Now I want to map everything in an 1-to-N-to-N or-mapping. That means... What you see... An EJB has a Vector of elements, which have other Vectors of other Elements. Trying to deploy that I receive a NullPointerException ( I think it's while creating the table for the Normal_Java_Bean2, beacause Normal_Java_Bean1 has no primary key to map into). Tried Map-Mapping, because there is a primary key, to no avail however: map-mapping can only be used on the types java.util.Map, java.util.Hashtable, java.util.Properties (not Normal_Java_Bean1) HELP! Lachezar