Re: Sharing httpsession among several applications

2002-03-19 Thread Rafael Alvarez
Hello Juan, Tuesday, March 19, 2002, 5:11:31 AM, you wrote: JF Hi people. JF When talking about secure applications, you have recommended to set the JF shared attribute to true. In that way, session is shared between the JF secure and non-secure parts of an application. JF My scenario is

Re: is restarting Orion necessary ??

2002-03-14 Thread Rafael Alvarez
Hello mittal, Thursday, March 14, 2002, 12:48:14 AM, you wrote: msajcj Hi msajcj Please let me know if restarting Orion necessary if I change a class when msajcj the server is running. msajcj I do not want to run my server in development mode msajcj regards msajcj Sunil Hi! The answer

Re: jsp:forward problem on Mac IE.

2002-02-01 Thread Rafael Alvarez
Hello Fredrik, Congrats! You have encounter an error that is not your's nor orion's. The problems is in the way IE4.5 for Mac parse the http header. I posted and issue at www.elephantwalker.com. Check it out at http://www.elephantwalker.com/searchresult?id=162 (Note: elephantwalker registration

Re[2]: Persistance between HTTP and HTTPS

2001-12-06 Thread Rafael Alvarez
Hi! If you want to share info between Http and Https session , you have two options: i) Use a central repository (like JNDI) ii) Use the same web-app for http and https service, and set shared=true in the deployment (check out the web-site.xml documentation). This way the HttpSession object,

Re: NoSuchObjectException taking over FinderException

2001-11-21 Thread Rafael Alvarez
Hello Brian, are you setting the exclusive-write-access to false for that bean? There is a known bug (bug #532 in bugzilla) about findByPrimaryKey not throwing an ObjectNotFoundException when it should if exclusive-write-access is set to false. It's reported from 1.4.5 and it hasn't be fixed.

Re: session bug

2001-09-18 Thread Rafael Alvarez
Hello Denis, Try doing this: session = request.getSession(true); System.out.println(session = request.getSession(false);\t + session.hashCode()); System.out.println(session = + session); session.invalidate(); System.out.println(session.invalidate();\t + session.hashCode());

Re[2]: Session share problem.

2001-09-06 Thread Rafael Alvarez
Hello Jishan, There is an option (shared=true as stated in other posting) to share session between different instances of the SAME application. The keyword is SAME. If you use different applications for each of your normal site and your secure site then that solution won't work. What you can do

Re: PHP with Orion

2001-09-04 Thread Rafael Alvarez
Hello Marcello, Yes, it can be done. You need to modify the file global-web-application.xml in your config directory.There is a servlet used for serving pages using a CGI interpreter (like php). Below is an example of the servlet definition I use(change php4 with the path to the php exec)

Re[2]: I think, I will start a support site too....

2001-08-23 Thread Rafael Alvarez
Hello Kevin, I did a stress-test some time ago. It was a JSP page that made a DB Query joining 2 tables and used a findByAll method on a entity bean. Both tables where populated with 5000 items. I ran Jtest with 2 groups of 10 threads, spacing each http query from the same thread by 300mls.

Re[2]: ORA-01000: maximum open cursors exceeded Exception

2001-08-15 Thread Rafael Alvarez
Hello Alex, Not a long time ago I ran with that problem using orion 1.4.5. It was at the university, and we were using a central DB server for all the courses. The problem was that I was using a lot of EJB (25+) in an implementation of TPC-W benchmark (a e-commerce like app), but the DBA

Re: not invoking my finder method?

2001-08-13 Thread Rafael Alvarez
The EJB specs says that if you declare a finder method on the home interface, the container will generate the apropiate finder. If you need a custom finder that you cannot express using pure and basic SQL (like your case) use a (stateles) session bean to declare the finder. -- Best regards,

Re: multiple instances of a servlet?

2001-08-09 Thread Rafael Alvarez
OK. Reposting Here is a clue: -- Servlet 2.2 Specs: For a servlet not implementing SingleThreadModel and not hosted in a distributed environment (the default), the servlet container must use only one instance per servlet declaration. A servlet declaration is

Re: Session Sharing Again

2001-08-08 Thread Rafael Alvarez
Hello Joseph, As stated in an obscure mail long time ago (I coundn't find it in my folder ;) ) you can share sessions only between multiple instances of the same app, no between apps. If you need a central repository for info that needs to be accessed by multiple apps, JNDI is a good idea.

Re: Transaction problems

2001-07-13 Thread Rafael Alvarez
Hello Christian, The ejb-name tag in method must match the ejb-name in entity or session. Also, specify a trans-attribute. Try putting this in your ejb-jar.xml: container-transaction method ejb-nameMyLogEnt/ejb-name method-name*/method-name trans-attributeRequired/trans-attribute

Re: Documents and dynamic web pages

2001-07-02 Thread Rafael Alvarez
Hello Kemp, As you're using Oracle, think about exploring the Intermedia features. Hope this help. Friday, June 29, 2001, 6:57:12 PM, you wrote: KR I am aiding a department that is using a two tier KR application design, with a JSP engine and Oracle, to KR build a dynamic web site. It's easy

Re: CMP-mapping: object properties

2001-06-25 Thread Rafael Alvarez
Hello Oliver, Try deleting the orion-ejb.jar.xml in the application-deployments dir. this will force orion to copy it again. Monday, June 25, 2001, 6:55:33 AM, you wrote: OS Hi! OS Until now I hav been quite happy developing with oc4j but this is OS becoming frustrating: OS according to

Re: Force Logon after X minutes

2001-06-13 Thread Rafael Alvarez
Hello Smith, Create a class that implements HttpSessionBindingListener. In the valueUnbound(HttpSessionBindingEvent event) put whatever code you need to logout . When you create the session, store an object of that class, so when the session expires the user logout. -- Best regards, Rafael

response.sendRedirect problem

2001-06-13 Thread Rafael Alvarez
Hi all, this is the scenary: I have a 2 jsp pages and 2 servlet. The flow is: pag1.jsp --(via Post)-- --servlet1 --(via forward) -- --servlet2 --(via response.sendRedirect) -- -- pag2.jsp when viewed using some browsers in Mac (IE and Netscape alike), the redirect

Jay's posting

2001-06-11 Thread Rafael Alvarez
I'm posting this as a favor to Jay Amstrong Karl, Thanks for responding. This is already a long message, so I'll try to keep it short. I've been wrong before and, if that's the case now, then please forgive me. Lest anyone think I'm out to bash Orion, please refer to my vigorous and lengthy

Re: ATM example and Oracle

2001-05-29 Thread Rafael Alvarez
Hello Mustafa, You need to put the JNDI location of the Datasource. Check out data-sources.xml.html in the docs. This locations does NOT support connection pooling and transactions. Tuesday, May 29, 2001, 3:22:36 PM, you wrote: MC I am trying to deploy and run the ATM example using MC Oracle as

Re: Taglib bug?

2001-05-14 Thread Rafael Alvarez
Hello Mikko, I'm using 1.4.5 and everything is working fine. Perhaps is a problem in deployment files? -- Best regards, Rafaelmailto:[EMAIL PROTECTED]

Re: How to avoid serialization of sessions on the server?

2001-05-04 Thread Rafael Alvarez
Hello Ismael, Orion doesn't serialize the session unless explicity told to do so. (We got problems with our shopping cart because of that) Why you think this is affecting the performance? It's done only at server shutdown. (I'm working with 1.4.5 too) Thursday, May 03, 2001, 3:40:13 AM, you

Re: Interests sake

2001-05-04 Thread Rafael Alvarez
Win NT 4.0 SP 5 on development, staging and production At 15:53 03.05.2001 , you wrote: Hi all, For interests sake, what OS is everyone on the list running orion on? Windows 2000? WinNT Linux? -- Best regards, Rafaelmailto:[EMAIL PROTECTED]

A taglib question

2001-05-04 Thread Rafael Alvarez
Hello! While using the well-known util:iterate tag I got this error: Attribute of type 'java.util.Collection' must be a request time attribute The code that reproduce it: My.jsp %@ taglib uri=mtags prefix=mtags % mtags:iterate id=retraso type=java.util.Properties

Re: EJB Passivation problem

2001-04-26 Thread Rafael Alvarez
Hello James, Did you modified the orion-ejb-jar.xml in the $(APPDEPLOY)/$(EJBMODULE) directory or in the $(APPHOME)/$(EJBMODULE)/orion directory ($(APPHOME)/$(EJBMODULE)/META-INF in 1.4.8)? In the later case you need to delete the one in $(APPDEPLOY)/$(EJBMODULE) to force a complete re-deploy.

Re: orion not replicating session state - relatively urgent

2001-04-26 Thread Rafael Alvarez
Hello Mike, Try using this orion-web.xml. The persistence-path is not specified by default, so you need to declare it. This is the place where sessions are persisted across server restarts. orion-web-app deployment-version=1.4.5 persistence-path=session /orion-web-app

Re[2]: orion not replicating session state - relatively urgent

2001-04-26 Thread Rafael Alvarez
Hello Mike, Did you follow the instructions in the http-clustering how to document? And, as far as I can understant (haven't tried clustering yet) you need to explicity pass the jsessionid in the url. -- Best regards, Rafaelmailto:[EMAIL PROTECTED]

Re: deployment.cache and wrapper classes

2001-04-20 Thread Rafael Alvarez
Hello Adam, This is a VERY dirty trick. Make orion use the SLOWEST java compiler you can find, and force a re-deploy of the EJB module. All the wrapper's java files will appear during deployment in the orion home dir. If you're fast enough you can copy them before they disappear. Hope this

Re: jsp:declaration parsing error

2001-04-20 Thread Rafael Alvarez
Hello doggie, I can't find the jsp:declaration tag anywhere in the spec, but it sounds like the %! % directive. Try using: %! private static final String[] toStringArray(int[] ori_array){ String [] str_array = new String[ori_array.length]; for (int i = 0; i

Re[2]: AW: autoreload of jsp files failed while working hard on a single jsp

2001-04-12 Thread Rafael Alvarez
Orion autoreload features have worked very well al the time, either in development, integration and production enviroments, EXCEPT when we got a problem of date synchronization between our integration and production servers (our integration server have a date greater that the production one).

A modification to ejbtags.jar

2001-04-06 Thread Rafael Alvarez
? -- Best regards, Rafael Alvarez [EMAIL PROTECTED] mtag.jar

Re: A modification to ejbtags.jar

2001-04-06 Thread Rafael Alvarez
Ok. that resolve it :) I made two mistakes: 1) This mail was intended for Karl, but I misclicked in my email manager. 2) The version I sent is not a working one. I just realized that I lost the last version in the last crash of our CVS... Mea culpa not having a backup. Anyway, here is the

Re[2]: A modification to ejbtags.jar

2001-04-06 Thread Rafael Alvarez
Isn't it wonderful the opensource world? :) -- Best regards, Rafaelmailto:[EMAIL PROTECTED]

Re: ORMI port

2001-04-03 Thread Rafael Alvarez
Hello Jeremy, Yes, the ORMI port in orion is 23791 by default, and you can configure it in the config/rmi.xml file. -- Best regards, Rafaelmailto:[EMAIL PROTECTED]

Re: Removal of SBs from expiring HTTP sessions ...

2001-03-15 Thread Rafael Alvarez
.*; /** * * @author Rafael Alvarez * @version 1.1 */ public class ControlSesion implements HttpSessionBindingListener,java.io.Serializable{ ShoppingCart cart; // This hold the reference to the SB, becuse // you can't access to the session to retrieve

Re[2]: Removal of SBs from expiring HTTP sessions ...

2001-03-15 Thread Rafael Alvarez
Hello Mike, Thursday, March 15, 2001, 7:31:23 PM, you wrote: MCB Can't you just make the SB a HttpSessionBindingListener and implement MCB valueUnbound() ? Nope. For that to work you need your Remote interface to extend HttpSessionBindingListener, but it already extends EJBObject. There is a

Re[4]: Removal of SBs from expiring HTTP sessions ...

2001-03-15 Thread Rafael Alvarez
Hello Mike, I have to thank you. I wasn't sure of that, so I check it. I write something like: public interface test extends java.io.Serializable, javax.ejb.EJBObject { void dummy(); } And the compiler throwed and error (fastjavac from Forte CE 2.0). So I stated that it couldn't be

Re: Colombo Java mystery -- the case of the unrecognized Parser jar

2001-03-13 Thread Rafael Alvarez
Hello Kemp, Try putting Parser.jar in the orion directory, or in the WEB-INF/lib. It seems that Orion doesn't use the CLASSPATH, because I need to put the jar files in the right place for them to work. -- Best regards, Rafaelmailto:[EMAIL PROTECTED]

Re: Case insensitive primary keys

2001-03-09 Thread Rafael Alvarez
Hello Jeff, 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. .- Override the PK class equal() method, to compare the username in Upper(Lower)case. Thursday, March 08, 2001, 7:30:39 PM,

Re: How about the latest xerces.jar and xalan.jar?

2001-03-09 Thread Rafael Alvarez
Hello Kevin, Friday, March 09, 2001, 1:42:59 PM, you wrote: DK Secondly, why is it when xerces.jar is in the Orion folder, Orion DK does NOT use the version I have in the WEB-INF/lib folder? I thought (sorry DK if I don't recall what the specs say on this) that libraries in the DK WEB-INF/lib

Re: https problems...

2001-03-06 Thread Rafael Alvarez
Hello Geoff, Check that there is no other process using the port you specified (or 443 by default for SSL). Also, if you're running a WinNT or Win2k machine stop the IIS web sites. By some mystical reason it seems to use the port 443 even wheren there is no certificate installed. -- Best

Re: non-secure and secure site

2001-03-06 Thread Rafael Alvarez
Hello Greg, To prevent the code duplication use the same app in both sites, and use the shared="true" flag so the ServletContext is shared over all the instances of the apps. Sometimes the session gets invalidate when going from secure to non-secure. We found a workaround to that, but it's a

Re[2]: SV: How to set orion to perform a timely task..

2001-03-06 Thread Rafael Alvarez
If you put the code at the init function, you can force the servlet to load at startup by putting the tag load-on-startuppriorityNumber/load-on-startup in the servlet description in web.xml. priorityNumber defines the order in which the servlets will be loaded at startup. -- Best regards,

Re: https second session problems...

2001-03-06 Thread Rafael Alvarez
Oops, I missed it in my last post... I got the same problem. What I did (and it worked, even as it seems that it shouldn't) was to store a session reference in the application context in the last non-secure page, and then retrieve it in the first secure page. Every object that was store in the

Re: configuring an application

2001-03-02 Thread Rafael Alvarez
Hello G.L., you need to put the following in your server.xml: application name="cais" path="/u/build/"/ And create an application.xml file in /u/build/META-INF ?xml version="1.0"? !DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN"

Re[2]: What documentation?

2001-02-27 Thread Rafael Alvarez
Hello Danut. Monday, February 26, 2001, 8:14:16 PM, you wrote: NN At 05:37 PM 2/26/01 -0600, you wrote: A few weeks ago after I asked some questions and posted some opinion I was sent by some guys to RFM. Very inpolite Well, I still have the same problems and I am asking the same question:

Re: problem in accessing ejb from a bean in web-inf/classes directory .

2001-02-27 Thread Rafael Alvarez
Hello Prabahkar, Monday, February 26, 2001, 7:38:40 PM, you wrote: Try using Object hdrObj = cntx.lookup("B2BOrderHeader"); I think I remember vagely a thread in this list about java:comp/, but that was 3000 messages ago :). Anyway, this works fine for me. -- Best regards, Rafael

Re: Using your own web-site.xml instead of default-web-site.xml

2001-02-27 Thread Rafael Alvarez
Hello Matt, Monday, February 26, 2001, 8:46:34 PM, you wrote: MK web-site host="[ALL]" port="80" display-name="boris" MK default-web-app application="boris" name="boris-web" root="/boris" MK load-on-startup="true" / MK access-log path="../log/default-web-access.log" / MK

Re: configuring jdbc with oracle...

2001-02-23 Thread Rafael Alvarez
Hello Paul, A stack trace would be useful. That way it's easier to find the error.

Re[2]: Beginner...

2001-02-23 Thread Rafael Alvarez
Hello Luis, Friday, February 23, 2001, 10:53:26 PM, you wrote: LJB 1) How can I simply test a JSP? Put it under default-web-app/web directory on a fresh unziped orion distribution. After that, just run orion and point the browser to http://localhost/yourjsppage.jsp It can get a lot more

Re: Inactive application-scope bean problem

2001-02-22 Thread Rafael Alvarez
Hello Geoff, GM If I don't use the application for some period of time and then try to hit GM the index page, I get this error, which only restarting Orion seems to GM fix... GM 500 Internal Server Error GM java.lang.ClassCastException: db.AppBean GM at

Re[2]: How can I use Application session?

2001-02-22 Thread Rafael Alvarez
hi Huibert, to expire a session use the invalidate() function: HttpSession s = request.getSession(true); // To expire it s.invalidate(); You can set the session timeout in the web.xml session-config session-timeout15/session-timeout /session-config

Re: http 500 errors

2001-02-22 Thread Rafael Alvarez
Hello Vaskin, Thursday, February 22, 2001, 3:39:33 PM, you wrote: VK I keep getting internal server errors (HTTP 500), where do I go to debug VK this? Which log file has this stuff? I need a stacktrace! It's not popping up on the console, and I couldn't find it in any of the obvious .log

Faster EJB Deployment using fastjavac

2001-02-15 Thread Rafael Alvarez
I have tried the java compiler that comes with Forte For Java CE 2.0 (fastjavac) and it cut the deployment time of 50 EJB (a mix of entity and sessions) from 1 minute to 15 secs! I'm developing under win 2k, orion 1.3.8. Some one can test it under unix? My 2 cents

Re: ms access Orion?

2001-02-15 Thread Rafael Alvarez
Hello faisal, If you use the jdbc.odbc bridge, yes. But, why do you want to use Ms Access (just curiosity) Wednesday, February 14, 2001, 11:55:05 PM, you wrote: f does ms access work with Orion f ? -- Best regards, Rafaelmailto:[EMAIL PROTECTED]

Re: Orion and SSL

2001-02-13 Thread Rafael Alvarez
Hello Daniel, Sorry for the delay in the answer. I had the same trouble migrating a certificate from IIS to orion. Did you generate the request to Verisign using the keystore where you're importing it? If not, you need to request a new certificate. Check Verisign to see how that can be done.

Re[2]: R: R: frustrated - jdbc: No suitable driver

2001-02-04 Thread Rafael Alvarez
Hello Allen, DataSources gives you one advantage on the client side: Security. If you use a direct JDBC connection to a Database, your username, password and URL have to be placed in your class. A Datasource hides all those details, so if some one decompile your class (even JAXed classes are not

Re[2]: large field bug ??

2001-01-11 Thread Rafael Alvarez
Hello Juan, Thursday, January 11, 2001, 3:53:41 AM, you wrote: JLC had that problem JLC it's a mapping problem... (oracle-schema) JLC Strings get Mapped to varchars(size)... JLC They get chopped at size chars... JLC the only solution is to declare the field as java.lang.Object JLC then

Re: JSP vs PHP

2001-01-10 Thread Rafael Alvarez
Hello Frank, Check this article from JGuru http://www.jguru.com/jguru/faq/view.jsp?EID=10596 Wednesday, January 10, 2001, 5:28:44 AM, you wrote: FE Hi, FE I just ran into a discussion regarding PHP vs. JSP (and ASP). A claim was FE made that PHP was the better alternative as it is quicker in

Re: Accessing multiple databases in the same application

2001-01-05 Thread Rafael Alvarez
Hello Michael, Check the docs for the orion-ejb-jar.xml. In the entry for entity beans (entity-deployment ...) you can specify the datasource and table to be used using the parameters data-source and table. You can find the file in $(APP-DEPLOYMENT-DIR)/$(APP-NAME)/ejb -- Best regards,

Re[2]: class cast exception

2000-12-03 Thread Rafael Alvarez
Hello! ML This makes no difference. The exception is thrown, too. ML But I found a solution: The Exception is thrown everytime after redeploying ML my application. When I restart the server after redeploying everything is ok. ML But I can't restart the server everytime something changes

Re: Orion slow startup

2000-11-29 Thread Rafael Alvarez
Hello scott, Check how many EJB are being deployed. Orion slows down startup when it's deploying EJB, because it involves generating the java sources of the skel and stub for the home and remote, and compiling them. -- Best regards, Rafaelmailto:[EMAIL PROTECTED]

Deprecated function message while deploying stateful session bean

2000-11-24 Thread Rafael Alvarez
Hello everybody, After deploying a stateful session bean and restarting orion I get the following message: Auto-deploying ejb-jar (ejb-jar.xml had been touched since the previous deployme nt)... Note: CarritoCompras_StatefulSessionBeanWrapper0.java uses or overrides a deprecated API.

The way to use EJB?

2000-11-07 Thread Rafael Alvarez
Hello! This can sound a little off-topic, but is an interesting matter that we have been discusing at work. I'm currently working in two paralell projects. On one of them ( the first one) we designed the tables and used JDBC, until we decided to migrate to EJB 1.1. At that point we create one

Question about jndi and Datasources

2000-10-31 Thread Rafael Alvarez
(InitialContext.java:198) at com.enkamino.login.deploy.DeployLogin.init(DeployLogin.java:24) at com.enkamino.login.deploy.DeployLogin.main(DeployLogin.java:35) Thanks in advance. Rafael Alvarez

Re: Oracle on Orion

2000-10-19 Thread Rafael Alvarez
Hi! Is there any error message during deploy? Orion stops the auto-creation process if there is any SQLException. I also found that Orion don't create tables for beans that where already deployed, even if you drop them. -- Best regards, Rafaelmailto:[EMAIL

test. Sorry for the inconvenience

2000-10-11 Thread Rafael Alvarez
This is a test, 'cause I didn't receive a mail from this list since 8 hours ago!

test. Sorry for the inconvenience

2000-10-11 Thread Rafael Alvarez
This is a test, 'cause I didn't receive a mail from this list since 8 hours ago!

Re: Performance

2000-10-10 Thread Rafael Alvarez
Hi, This mail is useful only if you're using entity EJBs. Because EJB is RMI on steroids (is more than that, but let's keep it simple), if you need more that one entity to get the data you need for the presentation layer you end up opening a lot of rmi connections, with the overhead it implies.

Re: EJB vs Servlets

2000-10-10 Thread Rafael Alvarez
Hello Reddy, I agree with you in some points. Yes, complex OR mapping is solved in 2.0, but as you said is a draft. I won't risk put it into production right now (we have to finish the project by Octuber 17). About SQL, again I agree with you. I was using BMP EJB until I found out that Orion

Re[2]: Stopping the Server

2000-10-09 Thread Rafael Alvarez
Hi, Any ideas why I get this when issuing the command to stop the server? Error: javax.naming.NamingException: Lookup error: java.io.StreamCorruptedException: Caught EOFException while reading the stream header; nested exception is: java.io.StreamCorruptedException: Caught

Re: 2nd post, please help

2000-10-09 Thread Rafael Alvarez
Did you set all the properties you need to access the jndi tree in orion? You need to set these for a program outside orion access the orion JNDI tree: java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFctory java.naming.provider.url=ormi://host:ormi-port/domain

Re[2]: EJB vs Servlets

2000-10-09 Thread Rafael Alvarez
Fakade Pattern, I don't have the URL rigth now). The second issue is being solved by using a home made automated tool that generates the required classes. Anyway, EJB vs Servlets is a topic for a lng discusion. - Best Regards Rafael Alvarez mailto:[EMAIL