Orion freezes on lookup
Hi! Perhaps somebody can explain this: Server is Orion 1.3.8,1.4.5 and 1.4.8, jdk 1.3.0 on Linux. We packaged two ejb jars and two WARs into one EAR. Everything works fine, except when we want to lookup one BMP bean. The call to ctx.lookup(..) freezes the whole app server. But if we first start the orion console, open the Context of the application and click on the bean, everything works as planned. All ejb-ref entries are present. t.i.a. Cheers Holger Arendt -- Holger Arendt Softwareentwicklung YLine e-Solutions Germany GmbH Bonner Str. 172-176 50968 Köln Fon: 0221 / 30 91 572 Fax: 0221 / 30 91 569 EMail: [EMAIL PROTECTED] This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, dissemination of this communication is prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify us immediately.
Simplifying the complicated...
CAN I cluster a couple of Orion servers RMIs at all??? Thanks.
problems with iterating tag
I wrote a small tag that represents an faq mt:getFAQ mt:getQuestion/ mt:getAnswer/ /mt:getFAQ the GetFAQTag is of type BodySupportTag. the execution goes like this getFAQTag::init() pointer = 0; getFAQTag::doStartTag() pointer++ ( to load the first QA object in pageScope, only called once.) ..question ..answer getFAQTag::doAfterBody() pointer++ if pointer=size EVAL_BODY_TAG else SKIP_BODY my problem is that in getFAQTag::doAfterBody the pointer is still 0, and I cannot figure out why. Can anyone shed some light on this? Johan
.shtml ...help
hi please help out... how to go abt. executing a .shtml file in orion? thanx in advance __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: RE: Simple Java Doubts
On response 2, if the remote client is actually a web server, the scheme will work nicely. No polling would be necessary, an http request would only be issued on event. John Hogan _ Get your free E-mail at http://www.ireland.com
can we deploy Ejb.jar into orion without using EAR
Hi I was wondering if I could deploy an EJB.jar (which is a simple session bean) without making it part of an EAR file thanks cmpuser __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Running 2 Orions on the Same Machine
Guess there is some type in your rmi.xml. Guesstimating from your error message: It could be there is a close marker missing. Check your file by removing all statements possible one by one and see what's the cause of the break. Can't help you much further, FE On Monday, May 07, 2001 10:46 PM, sub k [SMTP:[EMAIL PROTECTED]] wrote: Hi Frank, I typed in the file properly. Do I have to modify any other files? Thanks Subrah --- Frank Eggink [EMAIL PROTECTED] wrote: Did you copy the text from the rmi.xml file to your mail? It reads RIM-server ... instead of RMI-server ... FE On Monday, May 07, 2001 6:28 PM, sub k [SMTP:[EMAIL PROTECTED]] wrote: Hi, When I added these lines to the file rmi.xml, still it is giving me an error saying Illegal character at the end of the document. rim-server port=23793 /rmi-server and my host is localhost, so I think I don't have to add this. Please clarify this. Thanks Subrah --- Johan Fredriksson [EMAIL PROTECTED] wrote: make sure the rmi part of orion uses different ports in the two instances... See http://www.orionserver.com/docs/rmi.xml.html - Original Message - From: B. Dawkins [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, May 07, 2001 8:30 AM Subject: Running 2 Orions on the Same Machine Hi, I am trying to run 2 Orions on the same machine. Everything seems to be ok but when I start the 2nd Orion, I get the following message, even thou it still starts: Error Starting RMI-Server:IO -Error: Address in use JVM_Bind. How can I get rid of this Error? Thanks, Brandy _ Get your FREE download of MSN Explorer at http://explorer.msn.com __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: have you gotten orion to cluster using loadbalancer.jar? Please contact mchristoff@eldan.com
Hello Jeff, thanks for your reply. If you want, I can send you a tar file with all relevant config files. This would be a great help to us. Please send whenever is convenient for you. I can be reached at [EMAIL PROTECTED] Hopefully we will be able to put clustering behind us soon. Thanks again, Michael N. Christoff Developer, Eldan Software, Ltd. Toronto, Canada www.eldan.com
RE: Multiple instances of the orion server using the same install?
With ' java -jar orion.jar -config one-of-your-server-xml-files ' you can do the trick ... On Tuesday, May 08, 2001 8:46 PM, Chaya Ramanujam [SMTP:[EMAIL PROTECTED]] wrote: I know it is possible to run multiple instances on Orion on one machine using multiple installs of Orion and multiple server.xml files. Is it possible to run multiple instances of Orion using the same installed base (one Orion Home)? The only way I could envision this happening is if I could point Orion to different server.xml files and I didn't see any way of doing this.. Thanks for your help.. --CR. _ Get your FREE download of MSN Explorer at http://explorer.msn.com
RE: Pure Corba client and Orion
Orion is not an IIOP-based server. It uses client stubs to communicate using the Orion RMI Protocol (ormi). If you need to access EJBs from a pure CORBA client, you have three options I can think of: Write your own RMI proxy Use some sort of HTTP-based RPC mechanism Use an app server which speaks IIOP natively There seems to be something of a religious war over the issue of stubs/proxies vs. IIOP. There is a lot of interesting discussion in the EJB-INTEREST archives about this. Jeff -Original Message- From: Bogdan Calmac [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 12:07 PM To: Orion-Interest Cc: [EMAIL PROTECTED] Subject: Pure Corba client and Orion I am evalating Orion as a potential application server for our product and I want to use a pure Corba client with Orion. The question I have are: 1) Does Orion provide a tool to generate idl from the remote interfaces (similar to rmic from the jdk)? 2) If not, is the idl generated by rmic compatible with Orion server? 3) What is the default port of the naming service and how can it be configured? Thanks a lot, Bogdan Calmac, CISCO Systems.
RE: Fun with compound primary keys
Yep, if you don't make things serializable you get null as a 'value'. That applies to return values crossing the wire as well :-). Note that, to prevent yourself from having more fun! FE On Tuesday, May 08, 2001 2:43 AM, Michael Jara [SMTP:[EMAIL PROTECTED]] wrote: It took me a while to figure this out, so I thought I'd post it. If you are using a compound primary key class in your CMP entity bean, and you forget to make it implement java.io.Serializable, Orion may do some really strange things. In my case, I have an entity bean which represents a many to many mapping of other entity beans, called TypeDescriptionPair. This entity bean's create method took two other entity beans as parameters, EventType and EventDescription. The create method would simply extract the primary key from each of these and store it. So, I was doing something like this to test the implementation: ... eventTypes[0] = eventTypeHome.create(0, eventType0); eventTypes[1] = eventTypeHome.create(1, eventType1); ... eventDescription[0] = eventTypeHome.create(0, eventDescription0); eventDescription[1] = eventTypeHome.create(1, eventDescription1); ... typeDescriptionPairHome.create(eventTypes[0], eventDescription[0]); typeDescriptionPairHome.create(eventTypes[1], eventDescription[1]); The very last statement would throw a CreateException, because all EventType and EventDescription remote objects had mysteriously been nullified! After hours of debugging, I realized that TypeDescriptionPairs primary key class did not implement java.io.Serializable. As soon as I added implements java.io.Serailzable to the primary key class, everything was magically fixed. Mike File: ATT3.html
Re: User/Role problem (solved)
There was an other method permission set on findByPrimaryKey(). Orion obviously calls this method for a remote object when you call a remote-method on that object (presumably for uptodate-checks). Thus a remote-method may only be invoked by a user that belongs to roles for both the remote-method in question and for any subsequently needed Home/Remote methods. Pretty obvious when you look at it that way, isn't it? Only methods implicitly called by OrionServer are not always that obvious. ;-) Yours Armin Michel On Tuesday 08 May 2001 15:52, you wrote: Following situation: - I restricted method permission of method foo to role bar - if I do: roleManager.addToRole(ctx.getCallerPrincipal(),bar); foo(); everything works just fine. - if I create a (temporary) user (e.g. user123), add him to role bar then log him in with the RoleManager and finally do a foo(), I get as security-exception. (see below). Why? Are there some default-roles that I have to add a newly created user to? Are there any further group-permissions I've got to set for group bar? (I took the permissions of group users). For completeness: - I have also created a group named bar (in principal.xml) and specified a security-role-mapping (in orion-ejb.xml). - Furthermore I added a security-role definition for bar in both the application.xml and the ejb-jar.xml - I have also tried the lt;default-ejb-caller-rolegt; role and then changed the default-method-access to role bar. - I also tripple checked that ctx.isCallerInRole(bar) returns true; just the line before I call foo(). The exception: [java] javax.transaction.TransactionRolledbackException: com.evermind.server.rmi.OrionRemoteException: user123 is not allowed to call this EJB method, check your security settings (method-permission in ejb-jar.xml and security-role-mapping in orion-application.xml). [java] at com.evermind.server.rmi.bb.invokeMethod(JAX) [java] at com.evermind.server.rmi.a2.invoke(JAX) [java] at com.evermind.server.rmi.a3.invoke(JAX) Ideas, or even solutions? Armin Michel
RE: User/Role problem
Are you using the default user manager (the using the principal files)? In that case it is easy to check what's happening by adding roleManager.store() in your code. That'll store all your changes in the principal files. After that it's piece of cake to check the relations. 'user123' should be member of one of the groups that are mapped you your 'bar' role (i.e bar group). I can remember I struggled some time ago with the RoleManager and the UserManager as well. After a while I realized that the offer RoleManagement plus some convenience methods (like createPrincipal) which sometimes gets confusing. The UserManager should manage users and groups, the RoleManager manages roles and stores changes to persistence (why can't you do that using the UserManager ?). [Early postings to this list clarify also some of these issues] FE On Tuesday, May 08, 2001 3:53 PM, Armin Michel [SMTP:[EMAIL PROTECTED]] wrote: Following situation: - I restricted method permission of method foo to role bar - if I do: roleManager.addToRole(ctx.getCallerPrincipal(),bar); foo(); everything works just fine. - if I create a (temporary) user (e.g. user123), add him to role bar then log him in with the RoleManager and finally do a foo(), I get as security-exception. (see below). Why? Are there some default-roles that I have to add a newly created user to? Are there any further group-permissions I've got to set for group bar? (I took the permissions of group users). For completeness: - I have also created a group named bar (in principal.xml) and specified a security-role-mapping (in orion-ejb.xml). - Furthermore I added a security-role definition for bar in both the application.xml and the ejb-jar.xml - I have also tried the lt;default-ejb-caller-rolegt; role and then changed the default-method-access to role bar. - I also tripple checked that ctx.isCallerInRole(bar) returns true; just the line before I call foo(). The exception: [java] javax.transaction.TransactionRolledbackException: com.evermind.server.rmi.OrionRemoteException: user123 is not allowed to call this EJB method, check your security settings (method-permission in ejb-jar.xml and security-role-mapping in orion-application.xml). [java] at com.evermind.server.rmi.bb.invokeMethod(JAX) [java] at com.evermind.server.rmi.a2.invoke(JAX) [java] at com.evermind.server.rmi.a3.invoke(JAX) Ideas, or even solutions? Armin Michel
Sybase
Hi! I'm using Hypersoniq for development and Sybase ASE 11.9.2 for deployment. I am storing some TreeMaps in a CMP Entity Bean. In Hypersonic it will be stored in a LONGVARBINARY. However, when I try to change the data source to Sybase it still tries to create a LONGVARBINARY field, and Sybase doesn't like that. Is there something I have to add to sybase.xml? /Markus -- Markus Härnvi Altcom AB, Sweden
Re: User/Role problem
On Tuesday 08 May 2001 17:14, you wrote: We have had similar problems, and I have reported them to orion (but they said they couldn't reproduce the problem). Here is what I found. If you have an EJB method foo(), and you restrict its access to a role MYROLE, then a user who, according to the XML files, should have access to foo() is denied access. If, however (and quite contrary to specs) you specify a GROUP name (e.g. MYGROUP) instead of a ROLE name (e.g. MYROLE), then access is granted (assuming your user is in that group). I would be very interested to know if you can confirm this. Probably yes. IMHO, Orion forces me to specify a group for every role that I define. I can only do a addToRole(bar) when I have a group defined that bar is mapped upon. Your problem may be closely related to mine, but I think my problem is still another one. Nick At 03:52 PM 5/8/01 +0200, you wrote: Following situation: - I restricted method permission of method foo to role bar - if I do: roleManager.addToRole(ctx.getCallerPrincipal(),bar); foo(); everything works just fine. - if I create a (temporary) user (e.g. user123), add him to role bar then log him in with the RoleManager and finally do a foo(), I get as security-exception. (see below). Why? Are there some default-roles that I have to add a newly created user to? Are there any further group-permissions I've got to set for group bar? (I took the permissions of group users). For completeness: - I have also created a group named bar (in principal.xml) and specified a security-role-mapping (in orion-ejb.xml). - Furthermore I added a security-role definition for bar in both the application.xml and the ejb-jar.xml - I have also tried the lt;default-ejb-caller-rolegt; role and then changed the default-method-access to role bar. - I also tripple checked that ctx.isCallerInRole(bar) returns true; just the line before I call foo(). The exception: [java] javax.transaction.TransactionRolledbackException: com.evermind.server.rmi.OrionRemoteException: user123 is not allowed to call this EJB method, check your security settings (method-permission in ejb-jar.xml and security-role-mapping in orion-application.xml). [java] at com.evermind.server.rmi.bb.invokeMethod(JAX) [java] at com.evermind.server.rmi.a2.invoke(JAX) [java] at com.evermind.server.rmi.a3.invoke(JAX) Ideas, or even solutions? Armin Michel
SV: Message driven beans
Title: SV: Message driven beans check out the ATM example shipped with Orion. WR -Ursprungligt meddelande- Från: Moul, Russell G [mailto:[EMAIL PROTECTED]] Skickat: den 8 maj 2001 08:24 Till: Orion-Interest Ämne: Message driven beans I've just started using Orion, I got basic EJB's working with no problems. I have had no luck getting a message driven bean to respond to a message topic. I was able to get clients to exchange messages (this was done without making changes to jms.xml - weird!) however as soon as I try to use the message driven bean I'm required to update the jms.xml file with the topic-connection-factory. This allows my bean to be deployed but my client, which publishes the messages ceases to work. Bottom line - do message driven beans and jms work? If someone has simple working example I would appreciate an .ear file (and accompanying jms.xml). Thanks Russ Moul Technology Development and Deployment Engineering Information Technology Phantom Works (253) 657-0723
Re: Share sessions????
Hi Tomas, AFAIK, you can't do what you want to do, as sessions are not shared between different applications. When you try... disp=context.getRequestDispatcher(/app2/app2.jsp); disp.forward(request,response); from inside your app1 application, you are really forwarding to /app1/app2/app2.jsp, hence the 404 not found. And when you try sendRedirect(), you are asking the BROWSER to issue a call to the second page, and the browser knows nothing about server side sessions so that's why your attribute doesn't get through. Unless both jsp pertain to the same application, I don't know of any standard way of directly sharing objects between webapps. You might have to use something external. I guess the philosophy behind that is if they have to share, they should be part of the same webapp which can be seen, IMO, as a security feature and a limitation. As a non standard way of doing it, you might be able to use the parent attribute in the orion server.xml configuration (http://www.orionserver.com/docs/server.xml.html), but I'm not sure it allows you to do what you want to, as I have never used it. Does anyone know if there is a standard solution for this? regards, Dan Tomas Anderson wrote: Hello. I hope someone can help me with this basic question. I have 2 separate applications, app1 and app2. One jsp and one servlet in each. From the jsp I send some parameters to the servlet. I prosess them and put the answer in a session variable like this: servlet1.java: String strP1 = request.getParameter(param1); String strP2 = request.getParameter(param2); ... procsess them String strAnswer = strP1 + strP2; Get the session. session = request.getSession(true); Put a session variable. session.setAttribute(result, strAnswer); ... Now I want to send the session to the other application, app2, where the jsp file reads the session variable and displays it. jsp2.jsp: % String str = (String)session.getAttribute(result); out.println(result: + str); % I have put shared=true in both web-app tags. web-app application=App1 name=App1-web root=/app1 shared=true / web-app application=App2 name=App2-web root=/app2 shared=true / Ok. If I do in sevlet1.java: disp=context.getRequestDispatcher(/app2/app2.jsp); disp.forward(request,response); I get a: 404 Not Found... If I use sendRedirect(..,..) the session is not shared, it is empty. How can I connect the 2 applications? Did I miss andy configuration setting? And how to send the session to the other application. It seem setting shared=true means something else than I thought. Greatfull for any hint. Tomas
RE: Caching XLS style sheets
Excel stylesheets? Perhaps you mean XSL :-) If you use the JAXP 1.1 transforms api, creating a Templates object should produce a precompiled version of an XSLT. Although this will be completely dependent on implementation, I don't believe any implementations actually compile to bytecode - really precompiled means preparsed and maybe stored in a format for efficient processing. On a related note: A friend and I are nearly finished constructing a simple MVC framework with sophisticated XSLT support. We will be publishing it with an Apache-style license in about a week. Cool things this framework does: . Output from a view can be run through a config-defined sequence of iterative XSLT transformations. . The JavaBeans model returned from a command can be automagically adapted to a DOM for XSLT transformation without JSP, XSP, or any other templating language. Efficiently go directly from java beans to XSLT. . The transformation process can be halted at any step, allowing the XSLT creators/designers to work from static XML generated from the previous step(s). . Other templating systems can be used to feed input to the transformation process, including JSP and Velocity. Plain XML inputs can be used as well. . XSLT transformations are not required. It's still an elegant MVC framework for simple JSP/Velocity/? - HTML processing. I've attached an example configuration file so you can see the kinds of things you can do with the framework. Is anyone interested? Jeff Schnitzer [EMAIL PROTECTED] http://www.similarity.com http://www.infohazard.org/junitee -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 5:55 PM To: Orion-Interest Subject: Caching XLS style sheets I asked a question on an MVC application architecture using XLS, and got advice to cache XLS / XSLT style sheets, and pre compile them. Can someone give me some more background on this. How? What if the content is dynamic? (2 million items and 100,000 of styles + with any combination) Thanks in advance, Vic maverick !-- == Global Views == -- view id=goHome redirecthome.do/redirect /view !-- == Commands == -- command id=signup controller type=org.infohazard.controller.Signup / view id=success source-model root=foo / pipeline transform src=templates/file1.xsl / transform src=templates/file2.xsl / /pipeline /view view id=something source-documentfoo.xml/source-document pipeline transform src=templates/file1.xsl / transform src=templates/file2.xsl / /pipeline /view view id=another source-jsp bean=foo scope=requestjsps/blah.jsp/source-jsp pipeline transform src=templates/file1.xsl / transform src=templates/file2.xsl / transform src=templates/file3.xsl / /pipeline /view /command command id=about !-- No controller, the source document is always loaded -- source-documentabout.xml/source-document pipeline transform src=templates/file1.xsl / /pipeline !-- /view -- /command command id=home controller type=org.infohazard.action.Home / !-- Unnamed view, so this is always used no matter what perform() returns -- source-model name=data / pipeline transform src=templates/file1.xsl / transform src=templates/file2.xsl / /pipeline /command command id=plain source-documentboring.html/source-document /command /maverick
log4j and ejb usage ??
Hellu there, I wan to use log4j to do the following: - Log a message and send an email if this concerns a log message of typ=ERROR. - Keep track of the logged message, so that a email is only send once and not every minute when the same error keeps occuring. Does anyone has any advice on how to do that. I was thinking about putting it all in a session bean ?? Then what should I choose: stateless/statefull ?? I think that is best to give every application his own session bean, but I can only do this by making the bean statefull. But if it statefull, the application will have more session beans, as it is possible that more than one client connect at the same time!! H :( Some help please, Eddie
log4j and ejb usage help please ??
Hellu there, I wan to use log4j to do the following: - Log a message and send an email if this concerns a log message of typ=ERROR. - Keep track of the logged message, so that a email is only send once and not every minute when the same error keeps occuring. Does anyone has any advice on how to do that. I was thinking about putting it all in a session bean ?? Then what should I choose: stateless/statefull ?? I think that is best to give every application his own session bean, but I can only do this by making the bean statefull. But if it statefull, the application will have more session beans, as it is possible that more than one client connect at the same time!! H :( Some help please, Eddie
log4j and ejb usage help please ??
Hellu there, I wan to use log4j to do the following: - Log a message and send an email if this concerns a log message of typ=ERROR. - Keep track of the logged message, so that a email is only send once and not every minute when the same error keeps occuring. Does anyone has any advice on how to do that. I was thinking about putting it all in a session bean ?? Then what should I choose: stateless/statefull ?? I think that is best to give every application his own session bean, but I can only do this by making the bean statefull. But if it statefull, the application will have more session beans, as it is possible that more than one client connect at the same time!! H :( Some help please, Eddie
RE: can we deploy Ejb.jar into orion without using EAR
You need to take five steps: 1. First tell the server where the app is in the server.xml file (this is in the config directory). Add this line between the application-server tags: application name=someapp path=/path/to/someapp / 2. Create a directory the reflects your /path/to/someapp above. Add a directory, /path/to/someapp/META-INF. 3. Create an application.xml with the following content, and put it in the META-INF directory: ?xml version=1.0? !DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN http://java.sun.com/j2ee/dtds/application_1_2.dtd; application module ejbEJBS.jar/ejb /module /application 4. copy your EJBS.jar to the /path/to/someapp directory. 5. Restart orion, or start the new application from admin.jar. Presto, you should see orion deploying your ejbs. Regards, The elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of cmp user Sent: Tuesday, May 08, 2001 2:30 PM To: Orion-Interest Subject: can we deploy Ejb.jar into orion without using EAR Hi I was wondering if I could deploy an EJB.jar (which is a simple session bean) without making it part of an EAR file thanks cmpuser __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: can we deploy Ejb.jar into orion without using EAR
Title: RE: can we deploy Ejb.jar into orion without using EAR Create all your classes(home, remote, EJB) write a deployment descriptor ejb-jar.xml keep the ejb-jar.xml in Meta-inf directory of your application. This works fine. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information -Original Message- From: cmp user [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:30 PM To: Orion-Interest Subject: can we deploy Ejb.jar into orion without using EAR Hi I was wondering if I could deploy an EJB.jar (which is a simple session bean) without making it part of an EAR file thanks cmpuser __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: .shtml ...help
Unless Orion has builtin support for server side includes, you will probably need to find a servlet that perform this for you, and map *.shtml to the servlet. I do believe there are open source servlets out there that will give you server side include support. If you are only using the include feature, it is easy to write your own. tim. hi please help out... how to go abt. executing a .shtml file in orion? thanx in advance __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
RE: Fun with compound primary keys
There have been official comments on this list to the effect that unintuitive error messages should be considered bugs. You should file a bugzilla report :-) Jeff -Original Message- From: Michael Jara [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 9:36 AM To: Orion-Interest Subject: Re: Fun with compound primary keys Unfortunately, it wasn't quite that simple. Since I was using CMP, my ejbCreate was returning 'null' anyway. If Orion, internally somewhere, was trying to serialize the primary key class, you would expect that it would throw an exception or at least kill the entity bean on which it was performing operations. In my case, it was killing all references to the entity beans passed in as parameters! And it was doing so only after the first creation of the faulty entity bean (e.g. one was successfully created, the next one had problems.) This is, of course, not a bug in Orion. It's just counter-intuitive behavior which occurs when the bean developer (me) does something stupid. :) Mike - Original Message - From: Frank Eggink [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, May 08, 2001 2:20 PM Subject: RE: Fun with compound primary keys Yep, if you don't make things serializable you get null as a 'value'. That applies to return values crossing the wire as well :-). Note that, to prevent yourself from having more fun! FE On Tuesday, May 08, 2001 2:43 AM, Michael Jara [SMTP:[EMAIL PROTECTED]] wrote: It took me a while to figure this out, so I thought I'd post it. If you are using a compound primary key class in your CMP entity bean, and you forget to make it implement java.io.Serializable, Orion may do some really strange things. In my case, I have an entity bean which represents a many to many mapping of other entity beans, called TypeDescriptionPair. This entity bean's create method took two other entity beans as parameters, EventType and EventDescription. The create method would simply extract the primary key from each of these and store it. So, I was doing something like this to test the implementation: ... eventTypes[0] = eventTypeHome.create(0, eventType0); eventTypes[1] = eventTypeHome.create(1, eventType1); ... eventDescription[0] = eventTypeHome.create(0, eventDescription0); eventDescription[1] = eventTypeHome.create(1, eventDescription1); ... typeDescriptionPairHome.create(eventTypes[0], eventDescription[0]); typeDescriptionPairHome.create(eventTypes[1], eventDescription[1]); The very last statement would throw a CreateException, because all EventType and EventDescription remote objects had mysteriously been nullified! After hours of debugging, I realized that TypeDescriptionPairs primary key class did not implement java.io.Serializable. As soon as I added implements java.io.Serailzable to the primary key class, everything was magically fixed. Mike File: ATT3.html
Re: .shtml ...help
Snipped from default-web-app.xml: servlet servlet-namessi/servlet-name servlet-classcom.evermind.server.http.SSIServlet/servlet-class /servlet servlet-mapping servlet-namessi/servlet-name url-pattern/*.shtml/url-pattern /servlet-mapping On Wed, 9 May 2001, Tim Endres wrote: Unless Orion has builtin support for server side includes, you will probably need to find a servlet that perform this for you, and map *.shtml to the servlet. I do believe there are open source servlets out there that will give you server side include support. If you are only using the include feature, it is easy to write your own. tim. hi please help out... how to go abt. executing a .shtml file in orion? thanx in advance __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: Re: RE: Simple Java Doubts
Santosh, Is the original disclaimer a secret plot to own all content on the orion list? Somehow doesn't seem appropriate. *** Disclaimer : The information contained and transmitted in this e-mail is confidential information, and is intended only for the named recipient to which it is addressed. The content of this e-mail may not have been sent with the authority of the company. If the reader of this message is not the named recipient or a person responsible for delivering it to the named recipient, you are notified that the review, dissemination, distribution, transmission, printing or copying, forwarding, or any other use of this message or any part of it, including any attachments, is strictly prohibited. If you have received this communication in error, please delete the e-mail and destroy all record of this communication. Thank you for your assistance. ** Begin Original Message From: John Hogan [EMAIL PROTECTED] Sent: Wed, 9 May 2001 08:03:18 -0400 To: Orion-Interest [EMAIL PROTECTED] Subject: Re: RE: Simple Java Doubts On response 2, if the remote client is actually a web server, the scheme will work nicely. No polling would be necessary, an http request would only be issued on event. John Hogan _ Get your free E-mail at http://www.ireland.com End Original Message _ Get your free E-mail at http://www.ireland.com
RE: Sybase
You probably still have the deployment directory with references to the old cmp deployment in Hyprersonic. Blow away the application-deployment directory, or your app directory in the application-depoyment directory, and you should be ok. No need to change the sybase.xml -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Markus Härnvi Sent: Wednesday, May 09, 2001 6:29 AM To: Orion-Interest Subject: Sybase Hi! I'm using Hypersoniq for development and Sybase ASE 11.9.2 for deployment. I am storing some TreeMaps in a CMP Entity Bean. In Hypersonic it will be stored in a LONGVARBINARY. However, when I try to change the data source to Sybase it still tries to create a LONGVARBINARY field, and Sybase doesn't like that. Is there something I have to add to sybase.xml? /Markus -- Markus Härnvi Altcom AB, Sweden
Apache + Orion
Could somebody please provide with a workable set of instructions on how to integrate orion and apache. I followed the instructions available on orionsupport.com and got the apache proxy part to work, but url rewriting is still not working. I'm also not quite clear where the web-site.xml file goes in this configuration. Your response is greatly appreciated.
common practice for configuring orion app/web-site
Hi, This might be sort of a newbie question or just a very general one. I tried looking through archives before posting but no luck, maybe someone has a quick anwser. I would like to know if most of you break up your projects into a lot of small apps and bind this to a web-site, or do most of you just pile all the apps into one big one.. so that there is only one application running on one default-web-site. -p __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
Re: log4j and ejb usage ??
Sorry that I posted the message three times. I was having a fight with my mail program! Eddie From: Eddie [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: log4j and ejb usage ?? Date: Wed, 9 May 2001 16:13:50 +0200 Hellu there, I wan to use log4j to do the following: - Log a message and send an email if this concerns a log message of typ=ERROR. - Keep track of the logged message, so that a email is only send once and not every minute when the same error keeps occuring. Does anyone has any advice on how to do that. I was thinking about putting it all in a session bean ?? Then what should I choose: stateless/statefull ?? I think that is best to give every application his own session bean, but I can only do this by making the bean statefull. But if it statefull, the application will have more session beans, as it is possible that more than one client connect at the same time!! H :( Some help please, Eddie _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: BIG Problem with SSL
robert, check out the shared attribute of a web app in the orion docs. it's designed allow two different web apps to share sessions. i.e. in the appname-web-site.xml file, set web-site web-app shared=true/ /web-site for both the secure and non-secure apps. cheers, greg - Original Message - From: Robert S. Sfeir [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 09, 2001 5:19 AM Subject: BIG Problem with SSL When I setup SSL under Orion and I hit: http://www.domain.com then hit https://www.domain.com they both come up fine, but it looks like Orion is starting a new session!!! This is bad because if someone is logged in under https, it doesn't look like they're logged in when they're under the http server. Am I missing a setting with SSL or is this normal Orion behavior? Thanks for any prompt response you might have. R
Dynamically Spawning Orion Servers
Hi, Example,I have 3 Orion Servers running. If the 3 Orion Servers max out on their connections, is there a way I could have our Orion Servers dyanmically spawned, without manaually creating them? Thanks, BrandyGet your FREE download of MSN Explorer at http://explorer.msn.com
XSL blahs
Howdy yall, I was a subscriber here some time back but had to get out of my mail lists (I cant delete, er, read 1000 emails every evening..;) Im back to playing with Orion, I upgraded to ver 1.4.8 and found the automatic XSL translation on my pages is now broken. It seems to be nullpointer error from the XSLServlet somewhere. Anyone else have the problem, and anyone know of a solution? I saw others had XML problems with this ver, but havent seen anything in the archives addressing this. Here is the full error: 500 Internal Server Error java.lang.NullPointerException at com.evermind[Orion/1.4.8 (build 10374)]._amb._gnc(Unknown Source) at com.evermind[Orion/1.4.8 (build 10374)].servlet.XSLServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Orion/1.4.8 (build 10374)]._kj._qbc(Unknown Source) at com.evermind[Orion/1.4.8 (build 10374)]._kj._oa(Unknown Source) at com.evermind[Orion/1.4.8 (build 10374)]._jw.run(Unknown Source) Thanks Brady Moritz
RE: Fun with compound primary keys
mkgjfkgjfkgnjkjgfgrfg
RE: XSL blahs
Well, I spent all evening to discover I didnt have the encoding specified, so a special character buried in a huge xsl was causing this error. Yikes, null pointer error on this is not so cool ;) Brady -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Brady Moritz Sent: Wednesday, May 09, 2001 9:22 PM To: Orion-Interest Subject: XSL blahs Howdy yall, I was a subscriber here some time back but had to get out of my mail lists (I cant delete, er, read 1000 emails every evening..;) Im back to playing with Orion, I upgraded to ver 1.4.8 and found the automatic XSL translation on my pages is now broken. It seems to be nullpointer error from the XSLServlet somewhere. Anyone else have the problem, and anyone know of a solution? I saw others had XML problems with this ver, but havent seen anything in the archives addressing this. Here is the full error: 500 Internal Server Error java.lang.NullPointerException at com.evermind[Orion/1.4.8 (build 10374)]._amb._gnc(Unknown Source) at com.evermind[Orion/1.4.8 (build 10374)].servlet.XSLServlet.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Orion/1.4.8 (build 10374)]._kj._qbc(Unknown Source) at com.evermind[Orion/1.4.8 (build 10374)]._kj._oa(Unknown Source) at com.evermind[Orion/1.4.8 (build 10374)]._jw.run(Unknown Source) Thanks Brady Moritz
Re: Database Connectivity Problems
Thanks for pointing me in the right direction. The network adapter error came from the way Oracle MTS handle JDBC calls. Even if you call it by using an IP Address, when it responds back with the connection information it sends a hostname even if the JDBC driver made the original call using an IP address. The JDBC driver made the connection, which I could see in the listener.log file, but when oracle told it to close the connection and reconnect at the specified port on hostname the JDBC driver closed it's original connection and got lost trying to resolve the hostname, since it hadn't gotten added to DNS yet. Kep In a message dated 5/3/01 4:31:52 PM Pacific Daylight Time, [EMAIL PROTECTED] writes: This message comes from the JDBC Driver NOT from orion... We get that error when there is something wrong with the DB (i.e. down, etc) . Also the JDBC driver your are using should match the Orcale db version you are using. Thanks, Claudio