HELP!!! - Using UserManagers - Logging in users without asking for credentials
Hey, I've tried everything that I can think of without any proper documentation/examples to go by. What i'm trying to do is have a servlet accept requests from another website. Balled up in that request would be user credentials(ie: username, password, etc...). From the request I want to log in that user to my application without them knowing they have switched sites. I thought EJBManager was the way to go but without any real documentation i'm at a loss as to how to go about doing this. Right now we use DataSourceUserManager and form-based login to accept the users info and that works fine. Does anybody have any idea/examples on how to do this??? I've tried changing the user-manager in orion-application.xml to "com.evermind.ejb.EJBManager" but I can't figure out how to use/seeit in a servlet to be able to do lookups on the DB. Thanks, Chris EvansCanlink Interactive Technologies
datatype Inconsistency with Oracle????
Hey, Anybody run across an error like this before? We are have an Oracle database that is complaining about datatype consistency. We are running or App. on Orion 1.4.4 and basically have no clue as to its complaint(s) about datatypes. javax.ejb.CreateException: Error creating EntityBean: ORA-00932: inconsistent datatypes at CatalogHome_EntityHomeWrapper14.create(CatalogHome_EntityHomeWrapper14.java:423) at com.canlink.components.entities.catalog.CreateCatalogStrategy.perform(CreateCatalogStrategy.java:49) at com.canlink.components.services.ProducerServicesBean.createCatalog(ProducerServicesBean.java:238) at ProducerServices_StatelessSessionBeanWrapper9.createCatalog(ProducerServices_StatelessSessionBeanWrapper9.java:54) at com.canlink.producer.catalog.CreateAction.perform(CreateAction.java:92) at org.apache.struts.action.ActionServlet.processActionInstance(ActionServlet.java:794) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:702) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:332) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at com.evermind.server.http.d5.sv(JAX) at com.evermind.server.http.d5.st(JAX) at com.evermind.server.http.eh.s0(JAX) at com.evermind.server.http.eh.do(JAX) at com.evermind.util.f.run(JAX) The datatypes (as they are autocreated in the database) for this particular action are as follows IDENTITY NOT NULL NUMBER(20) NAME VARCHAR2(255) ORGANIZATIONIDENTITY NUMBER(20) OWNERIDENTITY VARCHAR2(255) CREATIONDATE DATE STATUS NUMBER(20) Any help would be greatly appreciated.
Re: Oracle on Orion
Thanks for the reply, We figured out the problem. What was wrong was this: 1) It initially created the all tables(only a few were in the XML file) a week or so ago under a test username/password we were using 2) We then created our own username/password and granted it certain privileges(we aren't DBA's so this was probably the trouble) 3) It somehow saw that the tables were already created under the original username/password we used, hence it only created the new tables we added to our XML file over the past couple of days. Thanks again, Chris Rafael Alvarez wrote: 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, Rafael mailto:[EMAIL PROTECTED]
Error while trying to deploy
Hey, has anybody got an idea about this error??? Auto-deploying guid-factory-ejb.jar (No previous deployment found)... java.lang.ArrayIndexOutOfBoundsException at com.evermind.server.ejb.compilation.fx.af1(JAX, Compiled Code) at com.evermind.server.ejb.compilation.fv.sm(JAX) at com.evermind.server.ejb.compilation.fz.aez(JAX, Compiled Code) at com.evermind.server.ejb.compilation.f7.ahe(JAX, Compiled Code) at com.evermind.server.ejb.compilation.fz.sm(JAX) at com.evermind.server.ejb.compilation.f0.sm(JAX, Compiled Code) at com.evermind.server.ejb.compilation.f6.sm(JAX, Compiled Code) at com.evermind.server.ejb.EJBContainer.by(JAX, Compiled Code) at com.evermind.server.Application.by(JAX, Compiled Code) at com.evermind.server.Application.f9(JAX) at com.evermind.server.ApplicationServer.ri(JAX) at com.evermind.server.ApplicationServer.apa(JAX, Compiled Code) at com.evermind.server.ApplicationServer.f9(JAX) at com.evermind.server.hc.run(JAX) at com.evermind.util.f.run(JAX, Compiled Code) Thx
Error while compiling
Hey everybody, Has anybody got any ideas about why this won't work. It's really frustrating!!! G:\orion>java -jar orion.jar Auto-unpacking G:\3.0\rel\guid-factory.ear... done. Auto-unpacking G:\3.0\rel\guid-factory\guid-factory-web.war... done. Auto-deploying guid-factory (Assembly had been updated)... Auto-deploying guid-factory-ejb.jar (No previous deployment found)... Error compiling file:/G:/3.0/rel/guid- factory/guid-factory-ejb.jar: No direct database fields for primary key: bean GUID Factory Bean Orion/1.2.9 initialized Here's what my ejb-jar.xml file looks like ejb-jar> description>/description> enterprise-beans> entity> description>This bean implements a GUID factory/description> display-name>GUID Factory Bean/display-name> ejb-name>com.canlink.components.base.GUIDFactoryBean/ejb-name> home>com.canlink.components.base.GUIDFactoryHome/home> remote>com.canlink.components.base.GUIDFactory/remote> ejb-class>com.canlink.components.base.GUIDFactoryBean/ejb-class> persistence-type>Container/persistence-type> prim-key-class>com.canlink.components.base.GUIDFactoryPK/prim-key-class> reentrant>False/reentrant> cmp-field>field-name>iFactory_ID/field-name>/cmp-field> cmp-field>field-name>city/field-name>/cmp-field> primkey-field>name/primkey-field>--> /entity> /enterprise-beans> assembly-descriptor> security-role> description>Users/description> role-name>users/role-name> /security-role> /assembly-descriptor> /ejb-jar> Here's what my application.xml file looks like application> display-name>SMP3 GUID Factory/display-name> module> ejb>guid-factory-ejb.jar/ejb> /module> module> web> web-uri>guid-factory-web.war/web-uri> context-root>/guid-factory-web/context-root> /web> /module> /application> Here's what my web.xml file looks like web-app> !-- A friendly name for this web application, this name can be used in visual development environments, for instance --> display-name>GUID Factory Bean/display-name> !-- A human-readable description of this web application --> description>Entity Bean that provides GUID /description> !-- The file(s) to show when no file is specified, i.e. only the directory is specified. --> welcome-file-list> welcome-file>index.html/welcome-file> /welcome-file-list> !-- A JNDI binding from "ejb/AddressBook" to the address book bean. This is the name we will use in our JSP pages. --> ejb-ref> ejb-ref-name>com/canlink/components/base/GUIDFactoryBean/ejb-ref-name> ejb-ref-type>Entity/ejb-ref-type> home>com.canlink.components.base.GUIDFactoryHome/home> remote>com.canlink.components.base.GUIDFactory/remote> /ejb-ref> security-role> description>Users/description> role-name>users/role-name> /security-role> /web-app> Thanks for any help!!!
Re: FW: Where is latest version?
Run this command java -jar autoupdate.jar Mike Cannon-Brookes wrote: -Original Message- From: Meo Van Le [mailto:[EMAIL PROTECTED]] Sent: Monday, 18 September 2000 6:44 To: Mike Cannon-Brookes Subject: Where is latest version? Dear Mike, I am using Orion Server 1.2.9, it's latest version that I known on www.orionserver.com. But I have heard somewhere about Orion Server 1.3.5, 1.3.7 where I can get them? I sent the question to Orion-Interest, but don't have any reply. Can you show me where to get? Regards, Meo Le. Paragons Solutions Inc. http://www.paragonsolutions.com