RE: Deploying same set of EJBs on single Orion Server but multiple data servers
Deepak, I believe you can create a separate data-source for each server, and put this in the data-source.xml. Then use a 1-1 mapping between each entity bean and the data-source. If you already have your entity bean(s) (I would use some kindof simple naming convention for your entity bean(s) to reflect their the server mybean1, mybean2, mybean3, etc. the only difference between them is their reference to each separate data-source), you can use your session bean to select which of the entity bean's to grab. Of course, you would then have to properly describe each of these in your ejb-jar.xml and application.xml. Its brute force, but its gotta work. Regards, Lawrence -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Goel, Deepak Sent: Thursday, September 21, 2000 6:39 PM To: Orion-Interest Subject: Deploying same set of EJBs on single Orion Server but multiple data servers Hello everyone, I have a set of EJBs which I have finally managed to run on Orion. Now, I want that the database server to which these EJBs talk be changed dynamically at run-time. For example, I have about 10-15 servers all having exactly the same database schema. Now depending on the client request, when I want to instantiate an EJB I may have to look up at any of these 10-15 servers. I know that this is not specific to Orion but I'll appreciate any help on how to do this with Orion. TIA, Deepak Goel
LDAP
Hi all, I know that a ejb can make a request to an URL, send an e-mail, and manage other actions defined in methods of its superclasses. I want to know if it is possible to make a request to another port different to http port or STMP port?. I would like to make a request to port 389 (ILS). This port is the default port in almost all LDAP servers. If it is not possible, I will have to use ASP. Any ideas would be appreciated. TIA - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n PARQUE TECNOLOGICO DE BOECILLO (CEDETEL) AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ --
Re: Login System
Hi, I get it. It was a mistake in the form tag instead input type="password" name="j_password" I wrote input type="j_password" name="password" Thanks to all, Di
System properties and JSSE
Hi everybody, I'm developing a web-app that tries to connect through https with another server. I need to set some system properties according to JSSE instructions. When I try to set that property no exception is thrown but the property is not set. I don't know the reason... Any help?? TIA.
Re: shutdown problem with Red Hat/JDK 1.3rc2
IMHO you should use IBM's JDK1.3 . I've use it and the last JVM (dating aug. 15) is pretty stable Using admin.jar -shutdown with Sun's JDK1.3 rc2 on Red Hat Linux, I get the following error: Error: javax.naming.NamingException: Lookup error: java.io.StreamCorruptedException: Caught EOFException while reading the stream header; nested exception is: java.io.StreamCorruptedException: Caught EOFException while reading the stream header This command worked on Win98SE/JDK 1.3. Is there something different I should be doing on Linux? Thanks, Garret
RE: User/Group manager guide
Hi, Andre I'll try things again. At first glance we have identical setups: I also use 2 tables, and let Orion do the groups through principals.xml. My config file entries also track what you have: I must have a really obvious typo somewhere. It's reassuring to hear that the stuff works. :-) Arved -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andre Vanha Sent: Thursday, September 21, 2000 8:39 PM To: Orion-Interest Subject: RE: User/Group manager guide Arved, I took a look at the scenario you describe, and I was able to make method permissions work with roles as they should. If a user who was part of the users group was logged in, an exception would be trown. If the user was added to the CSR group everything worked. Let me describe my orion security setup as it is somewhat complex, but I have no doubt it will work with any properly written user manager. I use a custom user manager I built on two database tables (I wanted password encryption). One contains users, and the other contains group membership. Since I was in a hurry when I wrote the UserManager I let orion manage the groups themselves through it's XML implementation, hence the principals.xml below. Below are related excerpts from my configuration files. I can't really provide a working ear file, but I'm pretty sure the example ATM application uses method level permissions, so it might be a good place to experiment. In case you're interested, you can find my Custom user manager implementation at http://www.geocities.com/vanha/usermanagerImp.jar. Its somewhat sloppy as I worte it in a real hurry, but it may provide some useful info. application.xml: security-role role-nameuser/role-name /security-role security-role role-namecsr/role-name /security-role orion-application.xml: security-role-mapping name="user" group name="users" / /security-role-mapping security-role-mapping name="csr" group name="csr" / /security-role-mapping principals.xml: groups group name="csr" descriptionservice/description permission name="rmi:login" / permission name="com.evermind.server.rmi.RMIPermission" / /group /groups ejb-jar.xml: security-role role-nameuser/role-name /security-role security-role role-namecsr/role-name /security-role method-permission descriptionRestricted/description role-namecsr/role-name method ejb-nameProduct/ejb-name method-name*/method-name /method /method-permission -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Arved Sandstrom Sent: Tuesday, September 19, 2000 7:26 AM To: Orion-Interest Subject: RE: User/Group manager guide I'm looking forward to docs and examples myself. One thing that I've noticed, after copious experimentation with the DataSourceUserManager, is that the group = mapping is somewhat deficient. In other words, I have my users and groups tables set up, and I've made suitable mods and adjustments to principals.xml, orion-application.xml, ejb-jar.xml, and orion-ejb-jar.xml as required (or suggested). In some cases I'm flailing about, frankly. In any case, a login with username and password is obviously finding the group, and mapping the group to role, because when I check the role after login it's OK. I don't have to hardcode it, which is vital. However, and I've tried everything, I don't believe this knowledge is being passed on to the EJB container. No role, however declared in the various J2EE/Orion descriptors, is able to access *any* method in an EJB that has method-permissions. So my assessment on the user/role managers is that it is reasonably useful: one can assign roles based on login, and test for that as required. But method-level security in EJBs does not work, at least not in a documented, demonstrated and reliable manner. The odd thing is, is that this may not be that much of a big deal. I've been writing J2EE for pretty much a full year, and I have yet to see a situation where method-level permissions gain me anything at all. It's literally never been necessary. It seems to be one of these J2EE things that made ostensible sense at the time but has little practical value. Just a thought. The only reason it disturbs me is because it should work and doesn't. :-) If an example can be supplied - complete with Orion-specific deployment descriptors - I'll be overjoyed. Arved Sandstrom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
RE: Ant Build Tutorial
I'm doing up a somewhat elaborate tutorial that covers most situations, includes the use of Jikes, etc etc. I work in Halifax (Purdys' Wharf) although I live in Dartmouth. Arved P.S. I'm interested in how you guys would be using J2EE. Is it a secret? :-) -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Roger MosherSent: Thursday, September 21, 2000 8:19 PMTo: Orion-InterestSubject: RE: Ant Build TutorialHeyArved. SomehowImissedtheemailthatPaulKnepperrespondedto.Theorionprimerhasasimpleexamplewhichsatisfiedmyimmediatecuriosity.Butifyouhavesomethingtoaddtothisintroductoryexampleitwouldbewelcome. Tryingtolearncomplexnewskillswhilecarryingafullteachingloadismurdernottosayslow,butnecessaryifwearetokeepourprogramshereatthecommunitycollegeuptoscratchandtimely! Bytheway,ifI'mjustdowntheroadinthevalley,whereareyou? Haveagoodone:) ooo Roger Mosher [EMAIL PROTECTED] Center of Geographic Sciences 902 825 5230 Nova Scotia Community College Annapolis Valley Campus 50 Elliott Road Lawrencetown B0S 1M0 Download NeoPlanet at http://www.neoplanet.com
R: LDAP
You can open a socket on any port you want. Where is the problem? Luciano -Messaggio originale- Da: David Sierra Fernandez [mailto:[EMAIL PROTECTED]] Inviato: venerdì 22 settembre 2000 11.56 A: Orion-Interest Cc: Juan Angel Lorenzo del Castillo Oggetto: LDAP Hi all, I know that a ejb can make a request to an URL, send an e-mail, and manage other actions defined in methods of its superclasses. I want to know if it is possible to make a request to another port different to http port or STMP port?. I would like to make a request to port 389 (ILS). This port is the default port in almost all LDAP servers. If it is not possible, I will have to use ASP. Any ideas would be appreciated. TIA - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n PARQUE TECNOLOGICO DE BOECILLO (CEDETEL) AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ --
Re: System properties and JSSE
Hi, Resolve by myself. It's a tricky thing... If you set properties directly with System.setProperty the System doesn't realize. You have to do the following: Properties prp = System.getProperties(); prp.setProperty("name", "value"); System.setProperties(prp); I don't understand why...
Idle Conversation; an apology
Hey, I've noticed a few of my posts creep up onto this list that I didn't intend to send to any but one recipient. My apologies; normally I catch these. Arved Sandstrom
Re: LDAP
Hi David, You can use JNDI to access an LDAP server. See the documentation for JNDI: * http://java.sun.com/products/jndi/ Or specifically the LDAP service provider: * http://java.sun.com/products/jndi/#download I assume this is what you are really looking for. And Orion fully supports the JNDI standard. Ernst David Sierra Fernandez wrote: Hi all, I know that a ejb can make a request to an URL, send an e-mail, and manage other actions defined in methods of its superclasses. I want to know if it is possible to make a request to another port different to http port or STMP port?. I would like to make a request to port 389 (ILS). This port is the default port in almost all LDAP servers. If it is not possible, I will have to use ASP. Any ideas would be appreciated. TIA - David Sierra Fern ndez Ingeniero Tecnico de Telecomunicaci¢n PARQUE TECNOLOGICO DE BOECILLO (CEDETEL) AULA RETECAL (CEDETEL) Universidad de Valladolid Campus Miguel Delibes E-Mail: [EMAIL PROTECTED] 47011 Valladolid (SPAIN) -- -- Sierr@ --
Orion CMP Primer
There is a follow-up for the Orion Primer available. It shows you how to write and deploy a simple CMP entity bean, as there have been several requests for such a document. * Orion CMP Primer http://www.jollem.com/ Thanks to the Orion development team for providing such a great J2EE application server :) Any and all feedback is welcome at [EMAIL PROTECTED] Ernst
Unlimited EntityBean-Instances
Hello, we plan to use Orion-Server for a big Database-Application with Java- and Web-Clients. For the first tests I used version 1.0.3b and last week I migrated to 1.2.9. After serveral tests we noticed, that Entity-Beans have changed their behavior in the instance-pool (toward 1.0.3b). Once a Entity-Bean was instanced and used, it never changed back to the pool. The number of usered instances grows and grows until I manually flush the cache in the Console-Utility. With this strategy, the Server will run out of memory after some time. Is it possible to limit the number of used and pooled Entity-Bean instances ? I can't find any parameter in the xml-Files. Kind regards Heinz Häußler Eurocopter Deutschland GmbH D/KDC Postfach 13 53 86603 Donauwörth Germany Tel.: +49 (0) 906 / 71-4431 Fax.: + 49 (0) 906 / 71-4100 Mail: mailto:[EMAIL PROTECTED] Home: http:\\www.eurocopter.com
Re: Simple steps to deploy a stateless session Bean.
You can follow the steps in orion-primer [www.jollem.com] very useful Claudio Miranda Harley Rana wrote: Hi i am having alot of trouble just deploying anything. I would really appreciate if someone could give the step by step way to deploy a sime stateless session bean. note i have got the server started and runnign jsp. Thanks alot for your help! Harley Rana
Re: container transactions not working...
data-source name="test" class="com.evermind.sql.ConnectionDataSource" location="jdbc/myDS" pooled-location="jdbc/myPooledDS" xa-location="jdbc/xa/myXADS" ejb-location="jdbc/myEJBDS" url="jdbc:oracle:oci8:@mydb" connection-driver="oracle.jdbc.driver.OracleDriver" username="user" password="password" / Your data-sources.xml is ok. and in ejb-jar.xml session descriptionA session bean/description ejb-nameTestBean/ejb-name homeTestHome/home remoteTest/remote ejb-classTestBean/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type resource-ref res-ref-namejdbc/myDBConnection/res-ref-name ^^ can be any name (as you hard-coded). res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref /session jdbc/myDBConnection is you hardcoded name into your bean, and you just need to put into your orion-ejb-jar.xml, inside xml tag session-deployment resource-ref-mapping name="jdbc/myDBConnection" location="jdbc/myXADS" / ^^ ^^ your hardcoded nameyour jndi-name as in data-sources.xml as specified in ejb-jar.xml and for your transactions, do all the transactions running in the same transaction (examples can be found in j2ee dev guide from sun) hope this help. Claudio Miranda
Re: Can't deploy EJB2.0 bean
Vimal, I looked in the jar you attached, here's what I saw: jar -tvf emp.jar META-INF/ META-INF/MANIFEST.MF ejb20/ ejb20/Address.class ejb20/ContactInfo.class ejb20/Employee.class ejb20/EmployeeEJB.class ejb20/EmployeeHome.class meta-inf/ meta-inf/ejb-jar.xml The ejb-jar.xml needs to be in META-INF (uppercase), like so: META-INF/ejb-jar.xml Hope this helps, Matt Vimal Kansal wrote: Hi, I am trying to deploy a very simple EJB2.0 bean. But everytime I get the message : unable to find/read assembly info for emp.jar(META-INF/ejb-jar.xml) I ahve also attached my jar file to this mail. Please help me. Vimal __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ Name: emp.jar emp.jar Type: Zip Compressed Data (application/x-zip-compressed) Encoding: base64 Description: emp.jar
jsp:plugin type=Applet
Anyone tried to put two applets on same page using the plugin tag?
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!!!
logs of jsp compilation??
Hi, Very simple question, where can I see the results of jsp's compilation? I'm trying to debug an application that seems to fail but I don't know why and can't find any log of the result of the compilation... Any help? TIA
j_security_check works fine.... Sometimes.
Hi! My login system works fine sometimes, but there are times that it stops working, without any change. I'm using EJBUserManager. It correctly add users and groups in my database. The problem is that the login system (j_security_check) do not work all the time. I realy don't know what makes it work sometimes, and sometimes not. This is the exception when it doesn't work. java.lang.Exception: Exception UNAVAILABLE: Tracing Stack... at java.lang.Throwable.(Throwable.java:96) at java.lang.Exception.(Exception.java:44) at __jspPage1_erro_jsp._jspService(__jspPage1_erro_jsp.java:39) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.w5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.eu.reject(JAX) at com.evermind.server.http.HttpApplication.vk(JAX) at com.evermind.server.http.HttpApplication.uh(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) Thanks... Guilherme Ceschiatti
Re: orion hangs when out of connections
I just tried out version 1.3.8 and they have implemented the time out for db connections now. I haven't searched to find out where you specify they timeout as the default is 60 seconds (way too long in my opinion). Anyway, if you can upgrade--that should hopefully help your problem. I don't know exactly which version they fixed it in. -joel shellman http://www.ants.com/ Fra: Lorin Kobashigawa-Bates [mailto:[EMAIL PROTECTED]] Sendt: 20. september 2000 19:22 Til: Orion-Interest Emne: orion hangs when out of connections http://www.mail-archive.com/orion-interest@orionserver.com/msg03258.html Has anyone else seen this behavior? I found this email about it on the list, with no responses. I am getting the same problem in our development environment. Basically when we put any kind of load on orion that exceeds the max connections it can open, it hangs. It doesn't die or refuse connections, it just never sends any responses. I have sent several emails to orion-support, but have not gotten any responses. I am running: Orion 1.2.9 Solaris 2.8 JDK 1.2.2 -Lkb
xsl:output?
I tried to get the /examples/xsl/doc.jsp file from my Netscape 4.72 browser running on Linux and I found out that the mime type for the response is "text/xml" - I modified the doc.xsl stylesheet so that the "xsl:output" type is "html" instead of "xml" but the mime type doesn't change. I know that if I change the mime type of doc.jsp to anything other than "text/xml" I won't get the XSLServlet to kick in. How can I get the mime type of the transformed document (the output of the XSLServlet) to be "text/html?" Thanks. -Rich = Richard E. Sansom [EMAIL PROTECTED] __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/
Re: Can't deploy EJB2.0 bean
I don't think case is any issue. If you look at counter.jar whichg Orion ships with their product, it also has ejb-jar.xml under meta-inf and not META-INF Vimal --- Matthew Domarotsky [EMAIL PROTECTED] wrote: Vimal, I looked in the jar you attached, here's what I saw: jar -tvf emp.jar META-INF/ META-INF/MANIFEST.MF ejb20/ ejb20/Address.class ejb20/ContactInfo.class ejb20/Employee.class ejb20/EmployeeEJB.class ejb20/EmployeeHome.class meta-inf/ meta-inf/ejb-jar.xml The ejb-jar.xml needs to be in META-INF (uppercase), like so: META-INF/ejb-jar.xml Hope this helps, Matt Vimal Kansal wrote: Hi, I am trying to deploy a very simple EJB2.0 bean. But everytime I get the message : unable to find/read assembly info for emp.jar(META-INF/ejb-jar.xml) I ahve also attached my jar file to this mail. Please help me. Vimal __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ Name: emp.jar emp.jar Type: Zip Compressed Data (application/x-zip-compressed) Encoding: base64 Description: emp.jar __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/
JavaMail
Dose anybody have a simple sample application which uses JavaMail to send email? Amir
Problem deploying simple bean...
Anybody know why I would get a NPE when trying to create a simple CMP entity instance? The exception that the client gets is: java.lang.NullPointerException: Primary-key was null And the server console displays: java.lang.NullPointerException at RecordHome_EntityHomeWrapper8.hashCode(RecordHome_EntityHomeWrapper8.java:131) at com.evermind.util.ExternalHashSet.get(JAX) at RecordHome_EntityHomeWrapper8.create(RecordHome_EntityHomeWrapper8.java:339) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bd.run(JAX) at com.evermind.server.rmi.bb.hy(JAX) at com.evermind.server.rmi.bb.run(JAX) at com.evermind.util.f.run(JAX) I know that the key (a simple String id) is getting into the ejbCreate method, since I am printing it to the console (it displays just prior to this message). For further reference, my client code and ejb-jar.xml are below. Thanks, Jason client: public class test { public static void main(String[] args) { try { InitialContext ic = new InitialContext(); Object ref = ic.lookup("alert.Record"); RecordHome home = (RecordHome)PortableRemoteObject.narrow(ref, RecordHome.class); System.out.println("Got this far -- Creating an instance:"); home.create("1234"); System.out.println("Created successfully"); } catch (Exception e) { System.out.println(e); } } } ejb-jar.xml: ?xml version="1.0"? !DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN" "http://java.sun.com/j2ee/dtds/ejb-jar_2_0.dtd" ejb-jar description /description enterprise-beans entity description/description ejb-namealert.Record/ejb-name homealert.RecordHome/home remotealert.Record/remote ejb-classalert.RecordEJB/ejb-class persistence-typeContainer/persistence-type prim-key-classjava.lang.String/prim-key-class primkey-fieldid/primkey-field reentrantFalse/reentrant cmp-fieldfield-nameid/field-name/cmp-field cmp-fieldfield-namearticleTitle/field-name/cmp-field cmp-fieldfield-namesourceTitle/field-name/cmp-field cmp-fieldfield-namearticleAuthors/field-name/cmp-field cmp-fieldfield-nameabstractText/field-name/cmp-field cmp-fieldfield-namelanguage/field-name/cmp-field cmp-fieldfield-nameresearchAddress/field-name/cmp-field cmp-fieldfield-nameissn/field-name/cmp-field cmp-fieldfield-namesource/field-name/cmp-field cmp-fieldfield-namepubType/field-name/cmp-field cmp-fieldfield-namekeywords/field-name/cmp-field cmp-fieldfield-namevolume/field-name/cmp-field cmp-fieldfield-nameissue/field-name/cmp-field cmp-fieldfield-nameissueNote/field-name/cmp-field cmp-fieldfield-namepageRange/field-name/cmp-field cmp-fieldfield-namepubYear/field-name/cmp-field cmp-fieldfield-namepackedTitle/field-name/cmp-field cmp-fieldfield-namepackedAuthors/field-name/cmp-field cmp-fieldfield-nameimportDate/field-name/cmp-field cmp-fieldfield-nameavailable/field-name/cmp-field /entity /enterprise-beans dependents /dependents assembly-descriptor container-transaction method ejb-namealert.Record/ejb-name method-name*/method-name /method trans-attributeSupports/trans-attribute /container-transaction container-transaction method ejb-namealert.RecordHome/ejb-name method-name*/method-name /method trans-attributeRequired/trans-attribute /container-transaction /assembly-descriptor /ejb-jar
RE: JavaMail
Look at Java Soft's Pet Shop example. They have a stateless ejb mailer which does emails. Configuration is within ejb-jar.xml file. it's fairly simple. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Amir Peivandi Sent: Friday, September 22, 2000 1:26 PM To: Orion-Interest Subject: JavaMail Dose anybody have a simple sample application which uses JavaMail to send email? Amir
RE: what are the rules for urls in a web-app?
I know what you mean. I have a model 2 servlet/jsp app which runs fine on JRUN and Tomcat but when I move it to Orion my URLs that go to the controller servlet get hosed up when I try to redirect. It wants to treat my alias for my Contoller servlet as a subcontext to the main web app context. The end result is that the JSP is not found because it is not in a subdirectory that has the same name as my servlet alias. I'm not sure that I'm being clear. The short description is that I'm having trouble too. Dave Bolt ATSC/SPAWAR ASAT Team Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just none for you. -Original Message- From: Kit Cragin [mailto:[EMAIL PROTECTED]] Sent: Friday, September 22, 2000 1:10 PM To: Orion-Interest Subject: what are the rules for urls in a web-app? Has anyone figured out the rules for URLs wrt relative path names in Orion? They seem different in the following conditions: * url in html page directly * url in jsp * url in html page forwarded to by a servlet * url in jsp forwarded to by a servlet * url in html page redirected to by a servlet * url in jsp redirected to by a servlet I have tried the following, and can usually get something working in most cases, but not consistently: * url with relative path several different ways: ./path path ../path etc * url rooted with / (excluding the root as specified in default website) * url rooted with / (includeing root as specified in default website) * fully qualified And it gets more complicated with servlet mappings... Anyone? Thanks, Kit Cragin VP of Product Development Mongoose Technology, Inc. www.mongoosetech.com
what are the rules for urls in a web-app?
Has anyone figured out the rules for URLs wrt relative path names in Orion? They seem different in the following conditions: * url in html page directly * url in jsp * url in html page forwarded to by a servlet * url in jsp forwarded to by a servlet * url in html page redirected to by a servlet * url in jsp redirected to by a servlet I have tried the following, and can usually get something working in most cases, but not consistently: * url with relative path several different ways: ./path path ../path etc * url rooted with / (excluding the root as specified in default website) * url rooted with / (includeing root as specified in default website) * fully qualified And it gets more complicated with servlet mappings... Anyone? Thanks, Kit Cragin VP of Product Development Mongoose Technology, Inc. www.mongoosetech.com
Object reference no longer valid
Hi, I am receiving a "RMIConnectionException: Object reference no longer valid" exception intermittently (about 50% of the time) when I call my stateless session bean. I am using com.evermind.server.rmi.RMIInitialContextFactory. Can anyone give me any insight as to the kinds of things that will cause such an exception? I am using IBM's JDK 1.3 for Windows. Thanks, --Shawn Swart
RE: JavaMail
Let me know if you like it. All the code is mine. It is a complete javabean. -Original Message- From: Amir Peivandi [mailto:[EMAIL PROTECTED]] Sent: Friday, September 22, 2000 2:26 PM To: Orion-Interest Subject: JavaMail Dose anybody have a simple sample application which uses JavaMail to send email? Amir SendEmail.java SendEmailBeanInfo.java
RE: Error while compiling
Chris, I noticed the your ejb-jar.xml has an close commentI think that has screwed up your deployement, since this is not a well formed xml document. entity descriptionThis bean implements a GUID factory/description display-nameGUID Factory Bean/display-name ejb-namecom.canlink.components.base.GUIDFactoryBean/ejb-name homecom.canlink.components.base.GUIDFactoryHome/home remotecom.canlink.components.base.GUIDFactory/remote ejb-classcom.canlink.components.base.GUIDFactoryBean/ejb-class persistence-typeContainer/persistence-type prim-key-classcom.canlink.components.base.GUIDFactoryPK/prim-key-class reentrantFalse/reentrant cmp-fieldfield-nameiFactory_ID/field-name/cmp-field cmp-fieldfield-namecity/field-name/cmp-field primkey-fieldname/primkey-field-- ***here is the offending tag*** /entity Regards, Lawrence -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris EvansSent: Friday, September 22, 2000 9:26 AMTo: Orion-InterestSubject: Error while compilingHey everybody, Has anybody got any ideas about why this won't work. It's really frustrating!!! G:\orionjava -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 descriptionThis bean implements a GUID factory/description display-nameGUID Factory Bean/display-name ejb-namecom.canlink.components.base.GUIDFactoryBean/ejb-name homecom.canlink.components.base.GUIDFactoryHome/home remotecom.canlink.components.base.GUIDFactory/remote ejb-classcom.canlink.components.base.GUIDFactoryBean/ejb-class persistence-typeContainer/persistence-type prim-key-classcom.canlink.components.base.GUIDFactoryPK/prim-key-class reentrantFalse/reentrant cmp-fieldfield-nameiFactory_ID/field-name/cmp-field cmp-fieldfield-namecity/field-name/cmp-field primkey-fieldname/primkey-field-- /entity /enterprise-beans assembly-descriptor security-role descriptionUsers/description role-nameusers/role-name /security-role /assembly-descriptor /ejb-jar Here's what my application.xml file looks like application display-nameSMP3 GUID Factory/display-name module ejbguid-factory-ejb.jar/ejb /module module web web-uriguid-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-nameGUID Factory Bean/display-name !-- A human-readable description of this web application -- descriptionEntity 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-fileindex.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-namecom/canlink/components/base/GUIDFactoryBean/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.canlink.components.base.GUIDFactoryHome/home remotecom.canlink.components.base.GUIDFactory/remote /ejb-ref security-role descriptionUsers/description role-nameusers/role-name /security-role /web-app Thanks for any help!!!
RE: JavaMail
Amir, Doesn't the ATM application send email? Regards, Lawrence -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Amir Peivandi Sent: Friday, September 22, 2000 11:26 AM To: Orion-Interest Subject: JavaMail Dose anybody have a simple sample application which uses JavaMail to send email? Amir
xml
I am having a problem parsing an xml file using the following code, trying to validate the enclosed xml files... i keep getting the following error: ** Parsing error, line 2, uri null Relative URI "Catalog.dtd"; can not be resolved without a document URI. can anyone help? sorry for the length... public boolean checkXML (String source) // source is a file name string passed from the web { Document doc; String path = "d:/orion/applications/eldan/eldan-web/xml/" + source; if (source == null) System.out.println("\nValidator:checkXML: source string is null"); try { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); docBuilderFactory.setValidating(true); DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); Validator v = new Validator(); FileInputStream xmlStream = new FileInputStream(path); // URL url = v.getClass().getResource(path); // doc = docBuilder.parse (url.toString()); doc = docBuilder.parse(xmlStream); valid = true; System.out.println("\nxml valid"); } // end try catch (SAXParseException err) { System.out.println("exception 1"); System.out.println ("** Parsing error" + ", line " + err.getLineNumber () + ", uri " + err.getSystemId ()); System.out.println(" " + err.getMessage ()); // print stack trace as below } // end catch 1 catch (SAXException e) { System.out.println("exception 2"); Exception x = e.getException (); ((x == null) ? e : x).printStackTrace (); } // end catch 2 catch (Throwable t) { System.out.println("exception 3"); t.printStackTrace (); } // end catch 3 return valid; } // end checkXML -- Catalog.xml -- ?xml version='1.0' encoding='UTF-8' ? !DOCTYPE Catolog SYSTEM "Catalog.dtd" Catolog Product ID = "1273" ProductNameAir Jordan/ProductName DescriptionThe best basketball shoe in town./Description Price140.99/Price /Product Product ID = "1274" ProductNameNike Zoom/ProductName DescriptionAn amazing crosstrainer./Description Price75.99/Price /Product Product ID = "1276" ProductNameAddidas Predator/ProductName DescriptionThe best aspect of soccer today./Description Price219.99/Price /Product Product ID = "1279" ProductNameAddidas Turbo/ProductName DescriptionThe lightweight shoe for the future./Description Price99.99/Price /Product /Catolog -- Catalog.dtd -- !ELEMENT Catalog (Product+ ) !ELEMENT Product (ProductName , Description , Price ) !ATTLIST Product ID CDATA #REQUIRED !ELEMENT ProductName (#PCDATA ) !ATTLIST ProductName e-dtype NMTOKEN #FIXED 'string' !ELEMENT Description (#PCDATA ) !ATTLIST Description e-dtype NMTOKEN #FIXED 'string' !ELEMENT Price (#PCDATA ) !ATTLIST Price e-dtype NMTOKEN #FIXED 'fixed.14.4' -- Derek Akers Internet Application Developer Eldan Software, Toronto www.eldan.com
Variable contained illegal space
Has anybody seen this error before: C:\orionjava -jar orion.jar Auto-deploying producer-ejb.jar (ejb-jar.xml had been touched since the previous deployment)... Error compiling file:/C:/orion/applications/phlox/producer-ejb.j ar: Variable contained illegal space Orion/1.2.9 initialized I've attached the ejb-jar.xml if it helps. There really doesn't seem to be anything wrong with the XML. We tried a hand-coded version and that which Together Control Center happily spits out. Both seem to be the same, both cause the problem. P. Pontbriand Canlink Interactive Technologies ?xml version="1.0"? !DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd' ejb-jar enterprise-beans entity descriptionXXX/description display-nameGUID_Factory_Component/display-name ejb-nameGUIDFactory/ejb-name homecom.canlink.components.base.GUIDFactoryHome/home remotecom.canlink.components.base.GUIDFactory/remote ejb-classcom.canlink.components.base.GUIDFactoryBean/ejb-class persistence-typeContainer/persistence-type prim-key-classcom.canlink.components.base.GUIDFactoryPK/prim-key-class reentrantFalse/reentrant cmp-field field-namefactoryID/field-name/cmp-field cmp-field field-namecurrentObjectID/field-name/cmp-field primkey-fieldfactoryID/primkey-field/entity session display-nameProducer_Services_Component/display-name ejb-nameProducerServices/ejb-name homecom.canlink.components.services.ProducerServicesHome/home remotecom.canlink.components.services.ProducerServices/remote ejb-classcom.canlink.components.services.ProducerServicesBean/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type/session/enterprise-beans assembly-descriptor security-role descriptionUsers/description role-nameusers/role-name /security-role /assembly-descriptor/ejb-jar
Re: orion hangs when out of connections
Hello, just a small note; There are some fixes in 1.3.9 (which will be available in a day or so) in this area as well, fixing hanging or waiting until timeout if the pool is full and also not honouring the max-connections (ie going beyond it) in some cases. Stay tuned... /Magnus Stenman, the Orion team - Original Message - From: "Joel Shellman" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Friday, September 22, 2000 6:43 PM Subject: Re: orion hangs when out of connections I just tried out version 1.3.8 and they have implemented the time out for db connections now. I haven't searched to find out where you specify they timeout as the default is 60 seconds (way too long in my opinion). Anyway, if you can upgrade--that should hopefully help your problem. I don't know exactly which version they fixed it in. -joel shellman http://www.ants.com/ Fra: Lorin Kobashigawa-Bates [mailto:[EMAIL PROTECTED]] Sendt: 20. september 2000 19:22 Til: Orion-Interest Emne: orion hangs when out of connections http://www.mail-archive.com/orion-interest@orionserver.com/msg03258.html Has anyone else seen this behavior? I found this email about it on the list, with no responses. I am getting the same problem in our development environment. Basically when we put any kind of load on orion that exceeds the max connections it can open, it hangs. It doesn't die or refuse connections, it just never sends any responses. I have sent several emails to orion-support, but have not gotten any responses. I am running: Orion 1.2.9 Solaris 2.8 JDK 1.2.2 -Lkb
RE: Can't deploy EJB2.0 bean
IMHO, why don't you try this simple thing and then figure out whether this is the problem or not instead of wasting your time as well as time of other people in the list. -Original Message- From: Vimal Kansal [mailto:[EMAIL PROTECTED]] Sent: Friday, September 22, 2000 4:34 PM To: Orion-Interest Subject: Re: Can't deploy EJB2.0 bean I am looking on counter.jar through winzip on an NT machine. Try doing it on an NT machine. Moreoever, I checked my other jars which I deploy on weblogic server, they also have meta-inf as against META-INF and they work. Vimal --- Matthew Domarotsky [EMAIL PROTECTED] wrote: I just looked at my counter.jar and META-INF was uppercase. If you look at the list below, notice there are two META-INF directories being added to the jar, one uppercase and the other lowercase. So it seems the directories are being treated separately. Vimal Kansal wrote: I don't think case is any issue. If you look at counter.jar whichg Orion ships with their product, it also has ejb-jar.xml under meta-inf and not META-INF Vimal --- Matthew Domarotsky [EMAIL PROTECTED] wrote: Vimal, I looked in the jar you attached, here's what I saw: jar -tvf emp.jar META-INF/ META-INF/MANIFEST.MF ejb20/ ejb20/Address.class ejb20/ContactInfo.class ejb20/Employee.class ejb20/EmployeeEJB.class ejb20/EmployeeHome.class meta-inf/ meta-inf/ejb-jar.xml The ejb-jar.xml needs to be in META-INF (uppercase), like so: META-INF/ejb-jar.xml Hope this helps, Matt Vimal Kansal wrote: Hi, I am trying to deploy a very simple EJB2.0 bean. But everytime I get the message : unable to find/read assembly info for emp.jar(META-INF/ejb-jar.xml) I ahve also attached my jar file to this mail. Please help me. Vimal __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ Name: emp.jar emp.jar Type: Zip Compressed Data (application/x-zip-compressed) Encoding: base64 Description: emp.jar __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/ __ Do You Yahoo!? Send instant messages get email alerts with Yahoo! Messenger. http://im.yahoo.com/
Servlet+EJB problem still not solved. :((
Hi all, I have a urgent problem regarding EJB and servlet, I cannot find the home interface of the bean from the servlet (whereas a standalone client works very well)...Can anyone pls give me some hint as to what maybe be wrong here? Below is the background info, sorry, it is kind of long... My bean is called Stamp, the classes are stamp.ejb.Stamp - remote stamp.ejb.StampHome - home stamp.ejb.StampBean - bean class java.lang.String- primaryKey There are two applications deployed. stamps - the EJBs test - the servlets. My problem, I CANNOT get the bean in servlet :(( Here is my ejb-jar.xml ejb-jar description/description enterprise-beans entity description/description ejb-nameStamp/ejb-name homestamp.ejb.StampHome/home remotestamp.ejb.Stamp/remote ejb-classstamp.ejb.StampBean/ejb-class primkey-classjava.lang.String/primkey-class reentrantTrue/reentrant persistence-typeBean/persistence-type /entity /enterprise-beans assembly-descriptor security-role descriptionUsers/description role-nameusers/role-name /security-role method-permission descriptionRestricted/description role-nameusers/role-name method ejb-nameStamp/ejb-name method-name*/method-name /method /method-permission /assembly-descriptor /ejb-jar It works when I used standalone client, having this.. application-client display-nameStamp/display-name descriptionExample Bank/description ejb-ref ejb-ref-nameStamp/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homestamp.ejb.StampHome/home remotestamp.ejb.Stamp/remote /ejb-ref /application-client However, it doesn't work when using servlets, I have this.. web-app display-nameTesting app/display-name servlet servlet-nameHelloServlet/servlet-name descriptionServlet that calls the Stamp bean/description servlet-classvc.web.HelloServlet/servlet-class /servlet servlet-mapping servlet-nameHelloServlet/servlet-name url-pattern/test/url-pattern /servlet-mapping !-- ejb-ref ejb-ref-nameStamp/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homestamp.ejb.StampHome/home remotestamp.ejb.Stamp/remote /ejb-ref -- /web-app Note that I have ejb-ref commented out, i had been told not to use ejb-ref in web.xml for my case, and I do a lookup on the global name of the bean, which is Stamp Object boundObject = context.lookup("Stamp"); but resulted in "javax.naming.NameNotFoundException: Stamp not found" I have also been told that maybe it is because I hace the EJB/servlets deployed sepearately as two apps. I initialised the context using... env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationInitialContextFactory"); env put(Context.PROVIDER_URL,"ormi://p500.cheapdull.mine.nu/stamp"); env.put(Context.SECURITY_PRINCIPAL,"admin"); env.put(Context.SECURITY_CREDENTIALS,"123"); context = new InitialContext(env); (similar in the client as well, but use ApplicationClientInitialContextFactory instead) so does any one has any suggestion as to what amI doing wrong here? Thanks heaps in advance. :) Regards, James.