Re[2]: Direct call to j_security_check when using form based authori zati on
Hi, Erik You can login your user in program way by using RoleManager. In your main page make form: form action=login.jsp input type=text name=login/ input type=password name=password/ /form Your login.jsp is something like that: RoleManager roleManager = (RoleManager) new InitialContext().lookup(java:comp/RoleManager); try { roleManager.login(request.getParameter(username), request.getParameter(password)); } catch (SecurityException ex) { response.sendRedirect(main.jsp); } response.sendRedirect(your_protected_page.jsp); // your protected page have to be protected in web.xml I didn't ever try to do it for myself, but I think it will help you. Monday, February 18, 2002, 10:29:42 PM, you wrote: EJ Thank you for your answer. I understand what you mean, but I am afraid I did EJ not specify my problem enough. EJ I would like to have a login form (fast login) on my public page where a EJ visitor can directly insert username and password. When the client press the EJ login button I would like to send him to the correct page (which is EJ restricted) without forcing him to visit the login.jsp (the page specified EJ as form-login-page in the web.xml). This seems natural since he has EJ already added his login data once. If the client is trying to access a EJ restricted page without using the fast login, then it is of course desirable EJ that the container intercepts the call and shows the login form. EJ What I have tried to do is to attache the username and the password in the EJ http-parameter list (with post) when directing the user from the fast login EJ form to a restricted area, and then to automatically forward the call to the EJ j_security_check from the login.jsp if a password and a username is attached EJ to the http-parameter list. The problem is that the Orion web-server does EJ not accept the direct call to the j_security_check. EJ Does anyone have any ideas about how to solve this problem? EJ Below you´ll find my test login.jsp and the error message from the EJ web-browser. EJ Best regards, EJ Erik EJ login.jsp : EJ EJ html EJ headtitleTest System/title/head EJ body bgcolor=white EJ %! EJ private String username; EJ private String password; EJ public void jspInit() { EJ //System.out.println(Running init...); EJ } EJ public void jspDestroy() { EJ } % EJ % EJ username = request.getParameter(username); EJ password = request.getParameter(password); EJ String j_username = username; EJ String j_password = password; % EJ jsp:forward page=%= j_security_check;j_username= + EJ java.net.URLEncoder.encode(j_username) + j_password= + EJ java.net.URLEncoder.encode(j_password) % / EJ /body EJ /html EJ - EJ Error message from web-browser : EJ -- EJ java.lang.IllegalArgumentException: Resource EJ /j_security_check;j_username=pellej_password=pelle123 not found EJ at com.evermind[Orion/1.5.2 (build EJ 10460)].server.http.EvermindPageContext.forward(Unknown Source) EJ at /login.jsp._jspService(/login.jsp.java:49) EJ at com.orionserver[Orion/1.5.2 (build EJ 10460)].http.OrionHttpJspPage.service(Unknown Source) EJ at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source) EJ at com.evermind[Orion/1.5.2 (build EJ 10460)].server.http.JSPServlet.service(Unknown Source) EJ at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source) EJ at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source) EJ at com.evermind[Orion/1.5.2 (build 10460)]._cxb.forward(Unknown EJ Source) EJ at com.evermind[Orion/1.5.2 (build 10460)]._ctb.reject(Unknown EJ Source) EJ at com.evermind[Orion/1.5.2 (build 10460)]._ah._fod(Unknown Source) EJ at com.evermind[Orion/1.5.2 (build 10460)]._ah._cwc(Unknown Source) EJ at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source) EJ at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source) EJ at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source) EJ EJ -Original Message- EJ From: Douma, Ate [mailto:[EMAIL PROTECTED]] EJ Sent: den 18 februari 2002 12:26 EJ To: Orion-Interest EJ Subject: RE: Direct call to j_security_check when using form based authori EJ zati on EJ Define an secure url (e.g. /secure/requestedLogin) which forces the user to EJ login (just as you described) and request it from a button or link on the EJ public page you want. EJ When the user isn't logged in yet the servlet container will intercept the EJ request and force the user to login remembering the
Entity relationship and EJB QL thoughts
Hi, I'm a bit disappointed about Entity relationships and EJBQL. What used to seem to be simple, now it is a nightmare. How can I achieve lazy loading of related EBs in Orion? For instance, there's an EB (EB1) that has 1..N relationship to another (EB2). If I lookup an instance of EB1 do all the related instances of EB2 load at the same time, even if I do not need to access them? A bit off-topic (as EJB QL is not available in Orion so it is impossible to develop something general, really portable), but I'm curious about the issue: Do you think that Entity relationships and EJB QL could be as optimized as smart finder methods? I wish I could supply finders with SQL SELECTs... Unfortunately, you have the drawback of EJBQL that you're limited to refer to EBs (abstract schemas). So, a more complex case: I have to model the following situation: M..N relationship between Users and Countries. Each country belongs to one region (region id is a column in the country table). I have to lookup those countries that belong to the regions of the countries mapped to a user. So it's not only a simple relationship between users and countries, but I'd need a countr-country 1..N relationship over the region id. Therefore the EJB QL would look like this for a finder method: SELECT OBJECT(rc) FROM User AS u, IN(u.countries) c, IN(c.regionCountries) rc WHERE u.userID = ?1 With one smart SQL SELECT it would be possible to retrieve the result set but how will servers manage the above situation? regards, please give me a hint with the first Orion-specific question, thanks, Tibor
RE: Orion 1.5.4 Local/LocalHome with BMP - deployment problem
You can use findBy- and create-Methods but not additional ejbHome-Methods which are new in EJB2.0 spec. Dieter -Original Message-From: David Tunkrans [mailto:[EMAIL PROTECTED]]Sent: Montag, 18. Februar 2002 18:29To: Orion-InterestSubject: Re: Orion 1.5.4 Local/LocalHome with BMP - deployment problem Thanks for the reply. Does this mean that you cantuse findBy-methods on the localhome inteface? /David public interface ProductLocalHome extends EJBLocalHome{ public static final String PRODUCT = "ejb/ProductLocal"; public static final String JNDI_PRODUCT = "java:comp/env/ejb/ProductLocal"; /** * * @param name * @return */ public ProductLocal findByPrimaryKey(Integer id) throws FinderException;} - Original Message - From: Kutzera, Dieter-Norbert To: Orion-Interest Sent: Monday, February 18, 2002 4:05 PM Subject: RE: Orion 1.5.4 Local/LocalHome with BMP - deployment problem ... are you using ejbHome-methods? I think there is a bug in orion 1.5.4 . It it not possible to use ejbHome-methods in local home-interfaces. When you remove the declaration of this methods everythink should work. I hopethe bug is fixes rapidly! Dieter -Original Message-From: David Tunkrans [mailto:[EMAIL PROTECTED]]Sent: Sonntag, 17. Februar 2002 14:17To: Orion-InterestSubject: Orion 1.5.4 Local/LocalHome with BMP - deployment problem EntityBean with BMP and Local/LocalHome etc. Doesnt compile, some internal error... Does anyone have an ideaof what could be the cause of the error? /David Auto-unpacking E:\cygwin\usr\local\java\orion\applications\app.ear... done.Auto-unpacking E:\cygwin\usr\local\java\orion\applications\app\webApp.war... done.Auto-deploying app (Assembly had been updated)...Auto-deploying product.jar (No previous deployment found)...Found 1 semantic error compiling "E:/cygwin/usr/local/java/orion/ProductLocalHome_EntityHomeWrapper31.java": 156. EvermindEntityContext finderContext = this.getContextInstance(thread); -*** Error: The method "com.evermind.server.ejb.EvermindEntityContext getContextInstance(com.evermind.server.ThreadState $1);" can throw thechecked exception "java/rmi/RemoteException", but its invocation is neither enclosed in a try statement that can catch that exception nor ithe body of a method or constructor that "throws" that exception.Error compiling E:\cygwin\usr\local\java\orion\applications\app/product.jar: Error in source
[no subject]
Hi, I think this might be a bug in Orion 1.5.4. Anyone got any comments or thoughts before I submit it! Am I doing something stupid? I'm using EJB2.0 with a cmr for a one-to-many bidirectional relationship between a Customer and Address. I'm just using the ejb-jar.xml descriptor with a relationships section and letting orion work out its own tables etc. which it does quite happily. Creating a customer and adding addresses all works fine and the tables update correctly, including the relationship table. However when I go to work with the collection of addresses I get a collection back with two items in (as expected) but a call to iterator.hasNext() returns false! Also, calling toArray() on the collection returns a two element array but with both elements containing null! Example code below. Any ideas? Chris public abstract class CustomerBean implements EntityBean { // abstract cmp methods are here public abstract void setAddresses(Collection addresses); public abstract Collection getAddresses(); public AddressDO getAddress(String postcode) { Collection c = this.getAddresses(); System.err.println(Number of addresses found: + c.size()); // displays that size is 2 Iterator it = c.iterator(); if ( !it.hasNext() ) System.err.println(Nothing to iterate over!); // displays that iterator is empty! . . . } // other business methods and callbacks here } _ Alison Associates The information contained in this e-mail and any attached files is intended only for the use of the person(s) to whom it is addressed and may be privileged, confidential and exempt from disclosure under applicable law. The views of the author may not necessarily reflect the views of the Company. If you are not the intended recipient please do not copy or convey this message or any attached files to any other person but delete this message and any attached files and notify us of incorrect receipt via e-mail to [EMAIL PROTECTED] _ This message has been checked for all known viruses by MessageLabs.
RE: Problems configurating classpath
All, I have a small question, I am currently having a problem with orion. The problem is that it doesn't seem to be taking advantage of the machine that it situated on. The question is how or is it possible to configure orion to take advantage of the machine that it is placed on top of ? Thanks
remove
Title: remove remove Thanks for all your help please remove me from this list; the unsubscribe function doesnt work. -- [EMAIL PROTECTED]
Re: Problems configurating classpath
If you want to squeeze everything out of your processor you might want to check the "java" startup parameters in order to highen up memory usage. Also if you are running under Win2k you might want to give higher priority to the java process, that orion is running within. On Linux it is even easier. lachezar - Original Message - From: John Creaner To: Orion-Interest Sent: Tuesday, February 19, 2002 11:58 AM Subject: RE: Problems configurating classpath All, I have a small question, I am currently having a problem with orion. The problem is that it doesn't seem to be taking advantage of the machine that it situated on. The question is how or is it possible to configure orion to take advantage of the machine that it is placed on top of ? Thanks
Jsp Taglib error
I keep getting the following error in my taglib page, i don't known what this error means. Error parsing JSP page /admin/editor.jsp line 20 Bean type '%= REQUEST_TIME_VALUE %' not found has anybody out there an idea ? Greetz-Tbone
orion-ejb-jar.xml, ejb-jar.xml and deployment
I have seen discussion on this topic but I was not able to get working solution for me. Here is my problem: I have OC4J. I have an application where I have deployed few CMP EJBS. At present, there are NO orion-xxx.xml deployment descriptors(DD). Now, I would like to introduce orion specific DDs where I can use Orion specific tags (example: EJBs. CMP field name- UserName and persistence name- user_name). What is recommended/or correct process? The process I followed and did NOT work for me. - Deploy application. - Copy orion-ejb-jar.xml from deployment and just keep the EJB tag which I want change. Put this xml file at the same place as ejb.jar.xml - Change the EJB code. - Use ant to build .ear file and deploy. The changes in orion-ejb.jar.xml do NOT get into the deployed DD. I also came across Xdoclet. But could not proceed without any luck. Your help is appreciated. Thank you. Vipul __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
Re: Orion 1.5.4 Local/LocalHome with BMP - deployment problem
2) can u pls suggest some good books/online material to EJB basics http://developer.java.sun.com/developer/onlineTraining/Beans/EJBTutorial/
(repost) FW: A word of warning: SwiftMQ and Resource providers.
Argh. Mailing lists that are not reliable annoy the out of me. -Original Message- From: Geoff Soutter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 February 2002 9:32 AM To: 'Orion-Interest' Subject: RE: A word of warning: SwiftMQ and Resource providers. Hi Magnus, All I did was follow the instructions in the resource providers document (http://www.orionserver.com/docs/resource-providers/resource-providers.x ml) As soon as I added the resource-provider tag you quoted below, and restarted orion, I got: C:\apps\orion\154java -jar orion.jar Error deploying file:/C:/temp/newsfeed/build/newsfeed/newsfeed-ejb.jar homes: JMS Error: Queue 'testtopic' is not local! Can't create a Consumer on it! 2002-02-19 09:23:14,435 INFO StartupServlet - startup completed Orion/1.5.4 initialized Which is exactly the same error as originally reported below. Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Magnus Rydin Sent: Monday, 18 February 2002 7:35 PM To: Orion-Interest Subject: RE: A word of warning: SwiftMQ and Resource providers. Geoff, It IS fixed in 1.5.4, so please let us know what fails for you. Here is a sample setup: 1. Set up and start SwiftMQ. 2. In your /config/application.xml have a setup like the following: resource-provider class=com.evermind.server.deployment.ContextScanningResourceProvider display-name=SwiftMQ resource name=SwiftMQ description SwiftMQ resource provider. /description property name=java.naming.factory.initial value=com.swiftmq.jndi.InitialContextFactoryImpl / property name=java.naming.provider.url value=smqp://localhost:4001 / property name=resource.names value=testtopic,testqueue@router1,plainsocket@router1 / /resource-provider 3. Start Orion, deploy the ATM sample (it uses a MDB with a topic) 4. Configure the ATM sample to use your resource provider with something like the following in your orion-ejb-jar.xml: message-driven-deployment name=mainLogger destination-location=java:comp/resource/SwiftMQ/testtopic connection-factory-location=java:comp/resource/SwiftMQ/plainsocket@rout er1 ejb-ref-mapping name=ejb/mainLog / /message-driven-deployment Could you please let me know where/how this fails for you? WR -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Geoff Soutter Sent: den 18 februari 2002 02:50 To: Orion-Interest Subject: RE: A word of warning: SwiftMQ and Resource providers. FYI, this was not fixed in 1.5.4. Naughty Magnus! :-) Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ray Harrison Sent: Monday, 14 January 2002 8:50 AM To: Orion-Interest Subject: Re: A word of warning: SwiftMQ and Resource providers. According to Magnus R, the problem will be fixed in the next release. I don't know if you can use SwiftMQ / Topics with the Oracle code base (OC4J), but maybe worth a shot. Hopefully soon from the good folks at Orion! --- Graham Bennett [EMAIL PROTECTED] wrote: On Tue, Nov 20, 2001 at 12:29:54PM +0200, Lachezar Dobrev wrote: Recently looking at the Resource-Providers docs, and EAGER to use an external JMS for my MDBs I and a colleague decided to run the demos. As quite a surprise the demo run ok. The MDB did everything when a message was sent to the Queue. The BIG disappointment was, when we tried to do the same with the topic. In short: It does not work. Error deploying file:/D:/Temp/Orion/applications/Orion2SwiftMQ/Orion2SwiftMQ.jar homes: JMS Error: Queue 'testtopic' is not local! Can't create a Consumer on it! has this now been fixed? I'm getting the same error with SwiftMQ and the latest build. cheers, -- Graham Bennett [EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
Re: (repost) FW: A word of warning: SwiftMQ and Resource providers.
Interesting - I *don't* get that error any longer with 1.5.4, though I did with 1.5.3. --- Geoff Soutter [EMAIL PROTECTED] wrote: Argh. Mailing lists that are not reliable annoy the out of me. -Original Message- From: Geoff Soutter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 February 2002 9:32 AM To: 'Orion-Interest' Subject: RE: A word of warning: SwiftMQ and Resource providers. Hi Magnus, All I did was follow the instructions in the resource providers document (http://www.orionserver.com/docs/resource-providers/resource-providers.x ml) As soon as I added the resource-provider tag you quoted below, and restarted orion, I got: C:\apps\orion\154java -jar orion.jar Error deploying file:/C:/temp/newsfeed/build/newsfeed/newsfeed-ejb.jar homes: JMS Error: Queue 'testtopic' is not local! Can't create a Consumer on it! 2002-02-19 09:23:14,435 INFO StartupServlet - startup completed Orion/1.5.4 initialized Which is exactly the same error as originally reported below. Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Magnus Rydin Sent: Monday, 18 February 2002 7:35 PM To: Orion-Interest Subject: RE: A word of warning: SwiftMQ and Resource providers. Geoff, It IS fixed in 1.5.4, so please let us know what fails for you. Here is a sample setup: 1. Set up and start SwiftMQ. 2. In your /config/application.xml have a setup like the following: resource-provider class=com.evermind.server.deployment.ContextScanningResourceProvider display-name=SwiftMQ resource name=SwiftMQ description SwiftMQ resource provider. /description property name=java.naming.factory.initial value=com.swiftmq.jndi.InitialContextFactoryImpl / property name=java.naming.provider.url value=smqp://localhost:4001 / property name=resource.names value=testtopic,testqueue@router1,plainsocket@router1 / /resource-provider 3. Start Orion, deploy the ATM sample (it uses a MDB with a topic) 4. Configure the ATM sample to use your resource provider with something like the following in your orion-ejb-jar.xml: message-driven-deployment name=mainLogger destination-location=java:comp/resource/SwiftMQ/testtopic connection-factory-location=java:comp/resource/SwiftMQ/plainsocket@rout er1 ejb-ref-mapping name=ejb/mainLog / /message-driven-deployment Could you please let me know where/how this fails for you? WR -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Geoff Soutter Sent: den 18 februari 2002 02:50 To: Orion-Interest Subject: RE: A word of warning: SwiftMQ and Resource providers. FYI, this was not fixed in 1.5.4. Naughty Magnus! :-) Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ray Harrison Sent: Monday, 14 January 2002 8:50 AM To: Orion-Interest Subject: Re: A word of warning: SwiftMQ and Resource providers. According to Magnus R, the problem will be fixed in the next release. I don't know if you can use SwiftMQ / Topics with the Oracle code base (OC4J), but maybe worth a shot. Hopefully soon from the good folks at Orion! --- Graham Bennett [EMAIL PROTECTED] wrote: On Tue, Nov 20, 2001 at 12:29:54PM +0200, Lachezar Dobrev wrote: Recently looking at the Resource-Providers docs, and EAGER to use an external JMS for my MDBs I and a colleague decided to run the demos. As quite a surprise the demo run ok. The MDB did everything when a message was sent to the Queue. The BIG disappointment was, when we tried to do the same with the topic. In short: It does not work. Error deploying file:/D:/Temp/Orion/applications/Orion2SwiftMQ/Orion2SwiftMQ.jar homes: JMS Error: Queue 'testtopic' is not local! Can't create a Consumer on it! has this now been fixed? I'm getting the same error with SwiftMQ and the latest build. cheers, -- Graham Bennett [EMAIL PROTECTED] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
RE: orion-ejb-jar.xml, ejb-jar.xml and deployment
Vipul, Orion will not copy over an old orion-ejb-jar.xml file. So if you redeploy, if you don't blow away the previous deployment, you are still on the old file. This could be your problem. Regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vipul Sagare Sent: Tuesday, February 19, 2002 8:58 AM To: Orion-Interest Subject: orion-ejb-jar.xml, ejb-jar.xml and deployment I have seen discussion on this topic but I was not able to get working solution for me. Here is my problem: I have OC4J. I have an application where I have deployed few CMP EJBS. At present, there are NO orion-xxx.xml deployment descriptors(DD). Now, I would like to introduce orion specific DDs where I can use Orion specific tags (example: EJBs. CMP field name- UserName and persistence name- user_name). What is recommended/or correct process? The process I followed and did NOT work for me. - Deploy application. - Copy orion-ejb-jar.xml from deployment and just keep the EJB tag which I want change. Put this xml file at the same place as ejb.jar.xml - Change the EJB code. - Use ant to build .ear file and deploy. The changes in orion-ejb.jar.xml do NOT get into the deployed DD. I also came across Xdoclet. But could not proceed without any luck. Your help is appreciated. Thank you. Vipul __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
Re: Re[2]: Direct call to j_security_check when using form basedauthori zati on
Alex, Purely by coincidence this capability has just been added to OSUser (http://www.opensymphony.com/osuser) today. Besides all it's other features, you can now perform server agnostic login (at the moment only JBoss and Orion are supported - but other servers should be fairly trivial to write). A code snippet like: Usermanager um = UserManager.getInstance(); Authenticator authenticator = um.getAuthenticator(); boolean loginSuccessful = authenicator.login(username, password); I've just updated the JavaDocs on the site - see http://www.opensymphony.com/osuser Hope this helps! Cheers, Mike PS We're looking for lots of people to test OSUser on a variety of application servers - at the moment JBoss, Orion, Resin and partial-Weblogic support is there but we need other users. Please feel free to email me directly if you're keen to help out/test/advise etc. Mike Cannon-Brookes [EMAIL PROTECTED] ATLASSIAN - Your J2EE Expert Partner Brilliant Software - http://www.atlassian.com/software Legendary Services - http://www.atlassian.com/support On 20/2/02 7:28 AM, Alex Paransky ([EMAIL PROTECTED]) penned the words: Isn't RoleManager specific to Orion Server, only? Is there a way to accomodate this without using Orion specific extensions? -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Erik Johansson Sent: Tuesday, February 19, 2002 7:38 AM To: Orion-Interest Subject: RE: Re[2]: Direct call to j_security_check when using form based authori zati on Thank you Jan and Sergey for your advices. With help from you I have managed to solve my problem. Best regards, Erik -Original Message- From: Sergey G. Aslanov [mailto:[EMAIL PROTECTED]] Sent: den 19 februari 2002 09:00 To: Orion-Interest Subject: Re[2]: Direct call to j_security_check when using form based authori zati on Hi, Erik You can login your user in program way by using RoleManager. In your main page make form: form action=login.jsp input type=text name=login/ input type=password name=password/ /form Your login.jsp is something like that: RoleManager roleManager = (RoleManager) new InitialContext().lookup(java:comp/RoleManager); try { roleManager.login(request.getParameter(username), request.getParameter(password)); } catch (SecurityException ex) { response.sendRedirect(main.jsp); } response.sendRedirect(your_protected_page.jsp); // your protected page have to be protected in web.xml I didn't ever try to do it for myself, but I think it will help you. Monday, February 18, 2002, 10:29:42 PM, you wrote: EJ Thank you for your answer. I understand what you mean, but I am afraid I did EJ not specify my problem enough. EJ I would like to have a login form (fast login) on my public page where a EJ visitor can directly insert username and password. When the client press the EJ login button I would like to send him to the correct page (which is EJ restricted) without forcing him to visit the login.jsp (the page specified EJ as form-login-page in the web.xml). This seems natural since he has EJ already added his login data once. If the client is trying to access a EJ restricted page without using the fast login, then it is of course desirable EJ that the container intercepts the call and shows the login form. EJ What I have tried to do is to attache the username and the password in the EJ http-parameter list (with post) when directing the user from the fast login EJ form to a restricted area, and then to automatically forward the call to the EJ j_security_check from the login.jsp if a password and a username is attached EJ to the http-parameter list. The problem is that the Orion web-server does EJ not accept the direct call to the j_security_check. EJ Does anyone have any ideas about how to solve this problem? EJ Below you´ll find my test login.jsp and the error message from the EJ web-browser. EJ Best regards, EJ Erik EJ login.jsp : EJ EJ html EJ headtitleTest System/title/head EJ body bgcolor=white EJ %! EJ private String username; EJ private String password; EJ public void jspInit() { EJ //System.out.println(Running init...); EJ } EJ public void jspDestroy() { EJ } % EJ % EJ username = request.getParameter(username); EJ password = request.getParameter(password); EJ String j_username = username; EJ String j_password = password; % EJ jsp:forward page=%= j_security_check;j_username= + EJ java.net.URLEncoder.encode(j_username) + j_password= + EJ java.net.URLEncoder.encode(j_password) % / EJ /body EJ /html EJ - EJ Error message from
RE: (repost) FW: A word of warning: SwiftMQ and Resource providers.
Hmm. Strange. I'm definitely using 1.5.4, you can see it in the console output I included below. I tried doing an autoupdate and trying it again, made no difference. I even did a recursive diff against the .zip version and the autoupdate version and they are identical (despite the fact autoupdate claimed it was overwriting most of the files). There must be a logical explanation ... but I can't see it ... I'm using jdk 1.3.1_02 and SwiftMQ 2.1.3. Is that the versions you guys are using? geoff PS, I'm not using Topics myself, I was only providing a FYI for those that cared... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ray Harrison Sent: Wednesday, 20 February 2002 10:04 AM To: Orion-Interest Cc: [EMAIL PROTECTED] Subject: Re: (repost) FW: A word of warning: SwiftMQ and Resource providers. Interesting - I *don't* get that error any longer with 1.5.4, though I did with 1.5.3. --- Geoff Soutter [EMAIL PROTECTED] wrote: Argh. Mailing lists that are not reliable annoy the out of me. -Original Message- From: Geoff Soutter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 19 February 2002 9:32 AM To: 'Orion-Interest' Subject: RE: A word of warning: SwiftMQ and Resource providers. Hi Magnus, All I did was follow the instructions in the resource providers document (http://www.orionserver.com/docs/resource-providers/resource-providers.x ml) As soon as I added the resource-provider tag you quoted below, and restarted orion, I got: C:\apps\orion\154java -jar orion.jar Error deploying file:/C:/temp/newsfeed/build/newsfeed/newsfeed-ejb.jar homes: JMS Error: Queue 'testtopic' is not local! Can't create a Consumer on it! 2002-02-19 09:23:14,435 INFO StartupServlet - startup completed Orion/1.5.4 initialized Which is exactly the same error as originally reported below. Cheers, Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Magnus Rydin Sent: Monday, 18 February 2002 7:35 PM To: Orion-Interest Subject: RE: A word of warning: SwiftMQ and Resource providers. Geoff, It IS fixed in 1.5.4, so please let us know what fails for you. Here is a sample setup: 1. Set up and start SwiftMQ. 2. In your /config/application.xml have a setup like the following: resource-provider class=com.evermind.server.deployment.ContextScanningResourceProvider display-name=SwiftMQ resource name=SwiftMQ description SwiftMQ resource provider. /description property name=java.naming.factory.initial value=com.swiftmq.jndi.InitialContextFactoryImpl / property name=java.naming.provider.url value=smqp://localhost:4001 / property name=resource.names value=testtopic,testqueue@router1,plainsocket@router1 / /resource-provider 3. Start Orion, deploy the ATM sample (it uses a MDB with a topic) 4. Configure the ATM sample to use your resource provider with something like the following in your orion-ejb-jar.xml: message-driven-deployment name=mainLogger destination-location=java:comp/resource/SwiftMQ/testtopic connection-factory-location=java:comp/resource/SwiftMQ/plainsocket@ro ut er1 ejb-ref-mapping name=ejb/mainLog / /message-driven-deployment Could you please let me know where/how this fails for you? WR -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Geoff Soutter Sent: den 18 februari 2002 02:50 To: Orion-Interest Subject: RE: A word of warning: SwiftMQ and Resource providers. FYI, this was not fixed in 1.5.4. Naughty Magnus! :-) Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ray Harrison Sent: Monday, 14 January 2002 8:50 AM To: Orion-Interest Subject: Re: A word of warning: SwiftMQ and Resource providers. According to Magnus R, the problem will be fixed in the next release. I don't know if you can use SwiftMQ / Topics with the Oracle code base (OC4J), but maybe worth a shot. Hopefully soon from the good folks at Orion! --- Graham Bennett [EMAIL PROTECTED] wrote: On Tue, Nov 20, 2001 at 12:29:54PM +0200, Lachezar Dobrev wrote: Recently looking at the Resource-Providers docs, and EAGER to use an external JMS for my MDBs I and a colleague decided to run the demos. As quite a surprise the demo run ok. The MDB did everything when a message was sent to the Queue. The BIG disappointment was, when we tried to do the same with the topic. In short: It does not work. Error deploying file:/D:/Temp/Orion/applications/Orion2SwiftMQ/Orion2SwiftMQ.jar homes: JMS Error: Queue 'testtopic' is not local! Can't create a Consumer on it! has this now been fixed? I'm getting the same error with SwiftMQ and the latest build. cheers, -- Graham Bennett [EMAIL PROTECTED]
Re: orion-ejb-jar.xml, ejb-jar.xml and deployment
Vipul, There is a new knowledge base document available describing how it work with orion-XXX.xml files. You can find it here: http://kb.atlassian.com/content/atlassian/howto/orionxml.jsp Cheers, Scott Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World The elephantwalker wrote: Vipul, Orion will not copy over an old orion-ejb-jar.xml file. So if you redeploy, if you don't blow away the previous deployment, you are still on the old file. This could be your problem. Regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vipul Sagare Sent: Tuesday, February 19, 2002 8:58 AM To: Orion-Interest Subject: orion-ejb-jar.xml, ejb-jar.xml and deployment I have seen discussion on this topic but I was not able to get working solution for me. Here is my problem: I have OC4J. I have an application where I have deployed few CMP EJBS. At present, there are NO orion-xxx.xml deployment descriptors(DD). Now, I would like to introduce orion specific DDs where I can use Orion specific tags (example: EJBs. CMP field name- UserName and persistence name- user_name). What is recommended/or correct process? The process I followed and did NOT work for me. - Deploy application. - Copy orion-ejb-jar.xml from deployment and just keep the EJB tag which I want change. Put this xml file at the same place as ejb.jar.xml - Change the EJB code. - Use ant to build .ear file and deploy. The changes in orion-ejb.jar.xml do NOT get into the deployed DD. I also came across Xdoclet. But could not proceed without any luck. Your help is appreciated. Thank you. Vipul __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com --