Unable to find taglib archive Error even when the jar file is there in the directory
Hello, When i try to execute the first Example taken from the tag-tutorail in orion server documentation. Iam getting the Following error: 500 Internal Server ErrorError parsing JSP page /taglib-tutorial/taglib-tutorial-web/helloWorld.jsp line 1Unable to find taglib archive at file at D:\orion\applications\nbizdev\niagabiz-web\web-inf\lib\taglib.jar What is the reason for this ? Taglib.jar file is there in the taglib directory itself. Even i described in the web.xml but of no use. The code in the jsp page is <%@ taglib uri="/web-inf/taglib.jar" prefix="mt" %> When I modify the JSp code from <%@ taglib uri="/web-inf/taglib.jar" prefix="mt" %> to <%@ taglib uri="/web-inf/taglib.tld" prefix="mt" %> The Following error is generated : 500 Internal Server Errorjava.lang.IllegalArgumentException: Error parsing tag-library file:/D:/orion/applications/nbizdev/niagabiz-web/web-inf/taglib.tld: XML declaration may only begin entities. at javax.servlet.jsp.tagext.TagLibraryInfo.(TagLibraryInfo.java) at com.evermind.server.http.TagLibraryArchive.(JAX) at com.evermind.server.http.TagLibraryArchive.r9(JAX) at com.evermind.server.http.d_.r3(JAX) at com.evermind.server.http.HttpApplication.r3(JAX) at com.evermind.server.http.eg.tn(JAX) at com.evermind.server.http.eg.sm(JAX) at com.evermind.server.http.JSPPage.sm(JAX) at com.evermind.server.http.HttpApplication.v4(JAX) at com.evermind.server.http.HttpApplication.w5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) Can anybody help me out in solving this problem. Iam struggling since 2 days to solve this problem but could not able to trace why the error is generating ?Please help me out in this concern...Thanks Srinivas
SV: Problem in Executing the First Example given in the Orion taglib-tutorial Documentation !!
It sounds like your tag library descriptor has faults. Please include your taglib.tld and we can have a look at it. WR -Ursprungligt meddelande-Från: srinivas [mailto:[EMAIL PROTECTED]]Skickat: den 11 mars 2001 20:34Till: Orion-InterestKopia: [EMAIL PROTECTED]Ämne: Problem in Executing the First Example given in the Orion taglib-tutorial Documentation !! Hi, I have downloaded the Helloworld.jsp, taglib.tld and helloworld .java compiled and got helloworld.class . and created the same directory structure as mentioned in the documentation of taglib-tutorial. I could able to compile HelloWorld.java when i run the HelloWorld.jsp , it produces the following error : 500 Internal Server Errorjava.lang.IllegalArgumentException: Error parsing tag-library file:/D:/orion/applications/nbizdev/niagabiz-web/Web-inf/taglib.tld: XML declaration may only begin entities. at javax.servlet.jsp.tagext.TagLibraryInfo.(TagLibraryInfo.java) at com.evermind.server.http.TagLibraryArchive.(JAX) at com.evermind.server.http.TagLibraryArchive.r9(JAX) at com.evermind.server.http.d_.r3(JAX) at com.evermind.server.http.HttpApplication.r3(JAX) at com.evermind.server.http.eg.tn(JAX) at com.evermind.server.http.eg.sm(JAX) at com.evermind.server.http.JSPPage.sm(JAX) at com.evermind.server.http.HttpApplication.v4(JAX) at com.evermind.server.http.HttpApplication.w5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) I tried a lot to find out the cause of this problem. But could not succeed. I wasted 2 full days in rectifying this problem. Please help me. this Problem is making me mad...thanks a lot.Srinivas
RE: Un Subscribe
Use the form at orionserver.com > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of > [EMAIL PROTECTED] > Sent: 12. marts 2001 05:00 > To: Orion-Interest > Subject: Un Subscribe > > winmail.dat
RE: security in web-apps
REMOVE UNSUBSCRIBE -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Matthews Sent: Monday, March 12, 2001 7:14 AM To: Orion-Interest Subject: Re: security in web-apps there shouldn't be a problem with this. you might want to post more information on what url you're using + the config details in server.xml and default-web-site.xml. - Original Message - From: "Kiss Tibor" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Saturday, March 10, 2001 5:49 PM Subject: security in web-apps > Hi! > > I have created an ear file containing only a war file (with some jsps) > just for experimenting, as I am quite new to orion. > However, if I try to access my web-app, I get a 403 Forbidden error. > > Anyone got some suggestions/examples how I can control access security > for my war? > > Thanks > Tibor >
RE: SSL Certificates + Security Alert
You will also get this alert if your certificate doesn't exactly match your url with domain name that you used to get the certificate... https://secure.mycompany.com will work if that is the domain name registered with the certificate. But if you are on a intranet, and the server name (mycomputer, for example) doesn't match the domain name, you will get this error. You will also get this error if you used "mycomputer" as your domain name, but the actual name of your computer on the local network is some other name. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Greg MatthewsSent: Sunday, March 11, 2001 9:56 PMTo: Orion-InterestSubject: SSL Certificates + Security Alert dear all, i've pretty much got secure pages going with a *test* certificate but receive a windows "security alert" dialog box the *first* time i hit a page in the secure site. if i click "yes" to "do you want to proceed?" then everything seems to work ok and i get the padlock icon in the lower right hand corner of the browser, and https://whatever in the address bar. Q: do i get the dialog window appearing because i'm using a test certificate? i.e. will the use of a live certificate mean that i don't get the dialog window appearing? thanks, greg.
Re: Stateless Session Bean Initialization Pattern
ello, By definition Stateless Session Beans are stateless. How can you initialise something that is stateless? The alternatives are to use Stateful Session Beans or application scope Java Beans in your JSP. cheers romen IT Architect, Business And Data Services IBM GSA TEL: 612-84484716 FAX: 612-84484008 TIE: 84716 "Neal Kaiser" <[EMAIL PROTECTED]>@orionserver.com on 12/03/2001 12:25:14 Please respond to Orion-Interest <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] To: Orion-Interest <[EMAIL PROTECTED]> cc: Subject: Stateless Session Bean Initialization Pattern Hi. I have a framework as follows: A startup servlet reads in an XML file and creates a message bundle. This message bundle will be used by Servlets and EJBs to pull resources from it. I somehow need a way to initialize the stateless session bean by passing the message bundle to it. When the startup servlet starts, I get a reference to the session bean and call init(MessageBundle). However, this does not work because other instances of the session bean will not be initialized. I need some sort of static variable, or environment, or some way I can get the original MessageBundle passed in from the startup servlet. Any suggestions on how I should handle this? I suppose one solution would be to use JNDI and store the object in there. Are there any Orion examples of how to do this?
Re: SSL Certificates + Security Alert
> Q: do i get the dialog window appearing because i'm using a test certificate? i.e. >will the use of a live certificate mean that i don't get the dialog window appearing? > Yes, *if* the certificate chain of that certificate leads to a root certificate that is installed in the user's browser. tim.
SSL Certificates + Security Alert
dear all, i've pretty much got secure pages going with a *test* certificate but receive a windows "security alert" dialog box the *first* time i hit a page in the secure site. if i click "yes" to "do you want to proceed?" then everything seems to work ok and i get the padlock icon in the lower right hand corner of the browser, and https://whatever in the address bar. Q: do i get the dialog window appearing because i'm using a test certificate? i.e. will the use of a live certificate mean that i don't get the dialog window appearing? thanks, greg.
Problem in Executing the First Example given in the Orion taglib-tutorial Documentation !!
Hi, I have downloaded the Helloworld.jsp, taglib.tld and helloworld .java compiled and got helloworld.class . and created the same directory structure as mentioned in the documentation of taglib-tutorial. I could able to compile HelloWorld.java when i run the HelloWorld.jsp , it produces the following error : 500 Internal Server Errorjava.lang.IllegalArgumentException: Error parsing tag-library file:/D:/orion/applications/nbizdev/niagabiz-web/Web-inf/taglib.tld: XML declaration may only begin entities. at javax.servlet.jsp.tagext.TagLibraryInfo.(TagLibraryInfo.java) at com.evermind.server.http.TagLibraryArchive.(JAX) at com.evermind.server.http.TagLibraryArchive.r9(JAX) at com.evermind.server.http.d_.r3(JAX) at com.evermind.server.http.HttpApplication.r3(JAX) at com.evermind.server.http.eg.tn(JAX) at com.evermind.server.http.eg.sm(JAX) at com.evermind.server.http.JSPPage.sm(JAX) at com.evermind.server.http.HttpApplication.v4(JAX) at com.evermind.server.http.HttpApplication.w5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) I tried a lot to find out the cause of this problem. But could not succeed. I wasted 2 full days in rectifying this problem. Please help me. this Problem is making me mad...thanks a lot.Srinivas
Un Subscribe
Re: mime types for .js
elephantwalker wrote: > > There seems to be a *feature* of NS browsers that requires a server > mime-type for any javascript which is referenced in a web page. I have > looked in the documentation, but can't seem to find the deployment xml file > where I can add various mime types. > > Does anybody know how to add mime types to Orion? > > Regards, > > the Elephantwalker Just looking in my ORION_HOME/config and I see a mime.types file. Perhaps this is what you want? Best of luck. -- Holden Glova, [EMAIL PROTECTED] Software Engineer Alchemy Group Limited Level 6 Royal Sun Alliance Bldg PO Box 2386 Christchurch New Zealand Phone: +64 3 962-0382, Fax: +64 3 962-0388
Re: mime types for .js
global-web-application.xml specifies the file for mime types. in my case it is called mime.types do a search for mime* and you should find it. >>> [EMAIL PROTECTED] 03/12/01 06:32am >>> There seems to be a *feature* of NS browsers that requires a server mime-type for any javascript which is referenced in a web page. I have looked in the documentation, but can't seem to find the deployment xml file where I can add various mime types. Does anybody know how to add mime types to Orion? Regards, the Elephantwalker
Stateless Session Bean Initialization Pattern
Hi. I have a framework as follows: A startup servlet reads in an XML file and creates a message bundle. This message bundle will be used by Servlets and EJBs to pull resources from it. I somehow need a way to initialize the stateless session bean by passing the message bundle to it. When the startup servlet starts, I get a reference to the session bean and call init(MessageBundle). However, this does not work because other instances of the session bean will not be initialized. I need some sort of static variable, or environment, or some way I can get the original MessageBundle passed in from the startup servlet. Any suggestions on how I should handle this? I suppose one solution would be to use JNDI and store the object in there. Are there any Orion examples of how to do this?
RE: mime types for .js
look at orion/config/mime.types -jason > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of elephantwalker > Sent: Sunday, March 11, 2001 3:33 PM > To: Orion-Interest > Subject: mime types for .js > > > There seems to be a *feature* of NS browsers that requires a server > mime-type for any javascript which is referenced in a web page. I have > looked in the documentation, but can't seem to find the > deployment xml file > where I can add various mime types. > > Does anybody know how to add mime types to Orion? > > Regards, > > the Elephantwalker >
RE: Session cookie and https. PLEASE HELP!!!!
basically, cookies are URL spec (as per the spec, check it out in Netscape Central) URL dependant; if you send a cookie for a URL http://www.yahoo.com then that cookie is valid for that URL only; that cookie won't show up for URL https://www.yahoo.com (note the different protocol, https, instead of http); there's a way to make a cookie public for all URL's, but of course, that might compromise security; that's what orion does when you set 'shared="true"'. A good log would surely help (may I suggest log4j, http://jakarta.apache.org) HTH JP > -Original Message- > From: Sergio Socarras [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 09, 2001 2:59 PM > To: Orion-Interest; [EMAIL PROTECTED] > Subject: RE: Session cookie and https. PLEASE HELP > > > Juan, > > Thanks for responding to my email! Yes sessions > working correctly is truly critical to our app. > Basically we have about 14 machines running in our > environment behind an alteon. The alteon selects a > machine the first a person comes in, a session is > created, and that person is made sticky to that > machine because we are not currently replicating > sessions. On and off we have reports of sessions being > lost. I'm not sure if operations is making a mistake > in regards to the stickiness or if I'm dealing with > another issue here. What I have noticed is what I > mention in my previous email, that under https I never > see the cookie get set and sometimes and only > sometimes URLs get rewritten. > > Someone in another email suggested I use the > shared=true setting in the secure-site.xml but I'm not > sure how this would help. The documentation is rather > vague in this area so any help would be appreciated. > > Thanks for all your help! > > Sergio > > in our application it is truely critical that > > > --- "Juan Lorandi (Chile)" <[EMAIL PROTECTED]> > wrote: > > Under SSL, the (preferred) method for > > session-tracking is SSL session id. I > > think orion tries this, and falls back to URL > > rewriting if needed. > > > > HTH > > > > JP > > > > PS: Is this truly critical to your app? We are > > implementing our own Session > > Management here and perhaps we'll run into the same > > problems you will? > > > > > -Original Message- > > > From: Sergio Socarras [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, March 07, 2001 5:01 AM > > > To: Orion-Interest > > > Subject: Session cookie and https. PLEASE HELP > > > > > > > > > Hi > > > I'm running into some strange behavior with > > sessions > > > when running under https. I notice that when I set > > my > > > browser to prompt me when a cookie is to be set > > and > > > hit my application with regular http, I get a > > prompt > > > for the session cookie. If I hit the same page > > running > > > a secure connection I'm never prompted. I also > > notice > > > that under the secure connection some of my URLs > > get > > > rewritten. Interesting enough the first page, > > which is > > > where I initially create the session, doesn't have > > any > > > of its URLs rewritten. However, the second, third, > > and > > > forth pages do. Can someone please explain what's > > > going on. Does the setting of the session cookie > > not > > > work under secure connections? > > > > > > PLEASE PLEASE HELP!!! > > > > > > Thanks > > > Sergio > > > > > > __ > > > Do You Yahoo!? > > > Get email at your own domain with Yahoo! Mail. > > > http://personal.mail.yahoo.com/ > > > > > > > > __ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great prices. > http://auctions.yahoo.com/ >
Re: security in web-apps
there shouldn't be a problem with this. you might want to post more information on what url you're using + the config details in server.xml and default-web-site.xml. - Original Message - From: "Kiss Tibor" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Sent: Saturday, March 10, 2001 5:49 PM Subject: security in web-apps > Hi! > > I have created an ear file containing only a war file (with some jsps) > just for experimenting, as I am quite new to orion. > However, if I try to access my web-app, I get a 403 Forbidden error. > > Anyone got some suggestions/examples how I can control access security > for my war? > > Thanks > Tibor >
Re: EJB Clustering
william, look for the clustering guide on www.orionserver.com in the documentation section, then maybe post some more questions once you've given it a try. it works like you describe, in that starting the load balancer takes all requests and redirects to instances of orion. cheers, greg. - Original Message - From: William Jones To: Orion-Interest Sent: Friday, March 09, 2001 7:32 PM Subject: EJB Clustering I would like to find out if anybody out there has done much with clustering EJB (or RMI) servers using Orion. We will be running an operation that will need to be large, scalable and have a failsafe level of availability. In other words there should be no single point of failure. Obviously running a single EJB server will lead to a single point of failure in the infrastructure (and obviously limits scalability also). What we sould like to do is have the ability to run several clustered EJB servers so as to provide the ability to scale (add more servers to the cluster) and failover (if one falls the others pick up the slack). The classic solution to this sort of clustering (e.g. when done with web servers) is to place a local director in front of the cluster. Then all requests are sent the the IP of the local director which just routes them through to one of the machines in the cluster. The obvious problem when doing this with RMI/EJB is that when the remote interfaces (well, stubs really) do a bind() into JNDI the IP address of the machine is bound in with it. This means that requests made through that stub will go back to the machine doing the registering and not the local director, which defeats the local director. Weblogic supports clustering by providing its own (proprietry, yuk) version of rmic (c.f. http://www.weblogic.com/docs51/classdocs/API_rmi.html#compiler), but I am not aware of anything similar in Orion. (By the way, please can no-one interpret this comment as being anything of the "WL is better than Orion" sort... it is clear most of us that Orion is superior in most aspects). For RMI we have implemented a solution that invloves binding different instances of the same RMI service as different entries in the same JNDI directory and using a central service (or array of them) to pass out the stubs from the JNDI tree in a round robin fashion to clients that request them. (e.g. two services to implement logging bind to "rmi/com/amc/system/logging/LoggingService/bart" and "rmi/com/amc/system/logging/LoggingService/homer", clients make a request for com.amc.system.logging.LoggingService.class and receive back a stub for one or there of the services). I can't see that this approach will work with EJBs as you don't seem to have control over to where in the JNDI tree the stubs are bound (the mapping of JNDI name to remote interface is done in the application-client.xml!) Can anyone give me any insights on other ways to approach clustering of EJB services using Orion? Thanks in advance... William Jones asset-management.com
mime types for .js
There seems to be a *feature* of NS browsers that requires a server mime-type for any javascript which is referenced in a web page. I have looked in the documentation, but can't seem to find the deployment xml file where I can add various mime types. Does anybody know how to add mime types to Orion? Regards, the Elephantwalker
RE: UserManager
The easiest way is to use the EJBUser usermanager. You will need to refer to the ejb in your ejb-jar.xml. There is an orion security adapter available for the petstore example, and this works well with the EJBUser usermanager as long as you have the entity bean reference as noted below. Of course, you will need to specify your security roles in the web.xml document. We use this entity reference in our ejb-jar.xml: EJBUser EJBUser management com.evermind.ejb.EJBUser com.evermind.ejb.EJBUserHome com.evermind.ejb.EJBUser com.evermind.ejb.EJBUserBean Container java.lang.String False username password description locale certificateIssuerDN certificateSerial groups username -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sergei Batiuk Sent: Sunday, March 11, 2001 10:51 AM To: Orion-Interest Subject: UserManager Could anyone please explain how to create a custom user manager for Orion? What is the way to associate the users and groups in the database with the roles and principal of the orion?
Re: JDom and Orion
Actually, no. No problem at all! /David On Sun, 11 Mar 2001, Randahl Fink Isaksen wrote: > Well, David Kinnvall, did you ever get into any trouble from replacing the > versions of Xerces and Xalan in Orion? > > Randahl -- David, [EMAIL PROTECTED]
UserManager
Could anyone please explain how to create a custom user manager for Orion? What is the way to associate the users and groups in the database with the roles and principal of the orion?
RE: Case insensitive primary keys
Thanks for everyone's comments. >From: Rafael Alvarez [mailto:[EMAIL PROTECTED]] > >You can do two things: >.- In the EJBCreate change the user name to Upper or Lower case when >setting it. Also in the PK class change it to Upper or Lower case. Not a good solution for me, because I want to preserve case. I don't want to maintain a second field with the correct case; I might as well use an integer key. >.- Override the PK class equal() method, to compare the username in >Upper(Lower)case. How does this work? Doesn't the database need to be made aware of the insensitivity? How would finders work? I'm confused about how an app server handles this. Any information would be very helpful :-) Thanks, Jeff >Thursday, March 08, 2001, 7:30:39 PM, you wrote: > >JS> I have a primary key which is a string (user's name), and >I would like >JS> it to be case-insensitive. That is, if there is already a >"bob" entity, >JS> trying to create a "Bob" entity should throw a >DuplicateKeyException. >JS> Is there a way I can do this with Orion? > >JS> I vaguely recall reading something in the documentation >about this, but >JS> now I can't seem to find it. I'm starting to think that I >imagined it. > >JS> Thanks, >JS> Jeff > >-- >Best regards, > Rafaelmailto:[EMAIL PROTECTED] > > > >
Is Orion compatible with the latest versions of Xalan and Xerces?
Is Orion compatible with the latest versions of Xalan and Xerces? - I expect that is a question of whether the latest versions of Xalan and Xerces are backward compatible... does anyone know from (documentation or) experience? R.
RE: EJB encapsulation (data hiding) pattern... Is there such a thing?
If you have control over the deployment & assembly maybe you can use the "run-as-specified-identity" security configuration for your Person, then only allow that role to invoke methods on Phone. I may be way off base here since I have never tried to do this, but I thought I would throw it out. -jason
Re: JDom and Orion
Well, David Kinnvall, did you ever get into any trouble from replacing the versions of Xerces and Xalan in Orion? Randahl Hi Mark, and the list, I ran into this as well, just two days ago. I tried putting the new xerces.jar in WEB-INF/lib as well as in orion/lib, with no effect. Finally I simply replaced the $ORION_DIR/xerces.jar with the new one as you are thinking about. It worked nicely, and I have not seen any ill effects from it yet. JDOM is very nice! I guess your question is still valid though: Are there any bad effects from doing this that will surface along the road that I haven't seen yet? Something that is not triggered by my current code? Or is Orion compatible with newer versions of Xerces? Oh, almost forgot, I took the opportunity to replace the old Xalan with the latest one as well... Regards, David.
PostqreSQL with Orion (oid)
Hello. My suspicion is that Orion's DB-Mapping (CMP) doesn't work well when it comes to tables that have OID fields. My experiments suggest that whenever a table has to be generated that has OID-fields, the following exception will be thrown just after having executed the ejbCreate() Method of the EJB in question: com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Database error: InputStream as parameter not supported at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at java.io.IOException.(IOException.java:49) at java.rmi.RemoteException.(RemoteException.java:58) at com.evermind.server.rmi.OrionRemoteException.(JAX) at ChangeManagerHome_EntityHomeWrapper7.create(ChangeManagerHome_EntityHome Wrapper7.java:542) at ejb.ProjectSessionEJB.getChangeManager(ProjectSessionEJB.java:95) at ejb.ProjectSessionEJB.ejbCreate(ProjectSessionEJB.java:111) at ProjectSessionHome_StatefulSessionHomeWrapper2.create(ProjectSessionHome _StatefulSessionHomeWrapper2.java:36) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bc.do(JAX) at com.evermind.util.f.run(JAX) Nested exception is: InputStream as parameter not supported at java.lang.Throwable.(Throwable.java:84) at java.lang.Exception.(Exception.java:35) at java.sql.SQLException.(SQLException.java:100) at org.postgresql.util.PSQLException.(PSQLException.java:22) at org.postgresql.jdbc2.PreparedStatement.setBinaryStream(PreparedStatement .java:417) at com.evermind.sql.ao.setBinaryStream(JAX) at com.evermind.sql.ao.setBinaryStream(JAX) at com.evermind.server.ejb.EntityEJBObject.storeObject(JAX) at ChangeManagerHome_EntityHomeWrapper7.create(ChangeManagerHome_EntityHome Wrapper7.java:432) at ejb.ProjectSessionEJB.getChangeManager(ProjectSessionEJB.java:95) at ejb.ProjectSessionEJB.ejbCreate(ProjectSessionEJB.java:111) at ProjectSessionHome_StatefulSessionHomeWrapper2.create(ProjectSessionHome _StatefulSessionHomeWrapper2.java:36) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bc.do(JAX) at com.evermind.util.f.run(JAX) IMHO, the JDBC driver of PostgreSQL (jdbc7.0-1.2.jar) is capable of handling OIDs correctly, because I successfully tried the same setup with jBoss/PostgreSQL. So what may I do? Do you know a way to get around this OID problem? Many thanks in advance Armin Michel
RE: EJB encapsulation (data hiding) pattern... Is there such a thing?
You may want to take a look at the new J2EE patterns hosted at Sun's Java Developer Connection: http://developer.java.sun.com/developer/restricted/patterns/J2EEPatternsAtAG lance.html You'll need to login to view it, but there are some relevant patterns with regard to your question (especially look at the Value Object Assembler and Aggregate Entity). Hope this helps. -- chris -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky Sent: Sunday, March 11, 2001 3:56 AM To: Orion-Interest Subject: EJB encapsulation (data hiding) pattern... Is there such a thing? I am trying to model a Person having many Phones with two Entity beans. Person and Phone are both entity beans. But I do not want to allow anyone to manipulate the Phone directly. I only want Person to be able to: Person.addPhone(PhoneValue) Person.removePhone(PhoneKey) Person.updatePhone(PhoneKey, PhoneValue) Person.getPhones(). In other words, Phone is treated like a dependent (except on advice of others, I have stopped using dependent objects). Is there a way I can enforce this? In other words, how can I stop any one except Person, from using the PhoneHome/PhoneBean directly? The reason I need to do this, is because Person performs additional logic when phones are added or removed or changed. This logic, must always be performed, so I do not want someone to use the PhoneHome to find the Phone and change it without the person knowing. -AP_ www: http://www.standardset.com resume: http://www.standardset.com/resume_body.jsp home: (818) 541-0029
Re: How i can upgrade orion1.3.8 to orion.1.4.0
Waheed - Not sure how you can get to orion1.4 - but you can download the latest stable release of 1.4.5 and then, if you want just use java -jar autoupdate.jar to grab the orion 1.4.7 Cheers Ray --- waheed_rahuman <[EMAIL PROTECTED]> wrote: > Hai All, > > I am , using orion.13.8 i am interested to use orion.1.4.0. > So, how i can upgrade my orion.1.3.8 to orion.14. server > expecting your reply > i thanx in advance for you reply > > thanking you > yours > waheed > > > _ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
EJB encapsulation (data hiding) pattern... Is there such a thing?
I am trying to model a Person having many Phones with two Entity beans. Person and Phone are both entity beans. But I do not want to allow anyone to manipulate the Phone directly. I only want Person to be able to: Person.addPhone(PhoneValue) Person.removePhone(PhoneKey) Person.updatePhone(PhoneKey, PhoneValue) Person.getPhones(). In other words, Phone is treated like a dependent (except on advice of others, I have stopped using dependent objects). Is there a way I can enforce this? In other words, how can I stop any one except Person, from using the PhoneHome/PhoneBean directly? The reason I need to do this, is because Person performs additional logic when phones are added or removed or changed. This logic, must always be performed, so I do not want someone to use the PhoneHome to find the Phone and change it without the person knowing. -AP_ www: http://www.standardset.com resume: http://www.standardset.com/resume_body.jsp home: (818) 541-0029
Implementing CMP finders with non-native argument types...
I am creating a finder which takes a type of Target object to find. So, my home interface looks like this: Collection findByTarget(Target o) The SQL I want to ultimately generate should look something like this: select * from myTable where id = ?1.getId(); Please note, that what's stored in the table is something called id, but I need to extract that id from the Target by using the Target.getId() API before using it in the SQL. Is there a way to do this, or are CMP finders always doomed to accept only primitive types? Thanks. -AP_