Invalid manifest format I/O Exception?
When I try to invoke my application-client through: "java -jar application.jar" I get "invalid manifest format: I/O Exception? I have a META-INF/MANIFEST.MF, both inside the "application.jar" and in the working directory. The manifest file is: ___ Manifest-Version: 1.0 Created-By: Ant 1.2 Main-Class: com.cmc.ejb.member.MyClient ___ The application runs fine if I extract the jar file, though. I'd appreciate any tips on why this could be happening. Thanks Satish Gupta __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
What is Orion's JVM invocation policy?
What is orion's JVM invocation policy? Are all EJB's invoked in same JVM or are multiple JVM's created as needed by the server. What is the policy, if the latter? Thanks Satish Gupta __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: Dependent-to-dependent relationships
Are these direct calls, between intra-container EJB's, specific to Orion? If so, how are conflicting settings for transactions etc., for the communicating beans resolved? Satish Gupta I entered this as bug #185 back in November. Nothing has been resolved yet. This isn't a huge issue since the workaround is simple: use ejb's for everything. this isn't as slow as it sounds since intra-container ejb method calls are direct and do not use rmi. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
MainLoggerEJB: What ties it to "jms/mainLogTopic"?
In ATM application, what setting ties the binding "jms/mainLogTopic" to MainLoggerEJB, so messages sent to mainLogTopic are processed by MainLoggerEJB and not some other Message Driven Bean (in case there were others)? Thanks Satish Gupta __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: ATM application not working in 1.4.0
The ATM sample I am trying to deploy is the one that came with Orion 1.4.0. Looks like the problem is that the JMS server is not running! What could cause that? Thanks for your help. I am attaching the mail-session tag from server.xml. Error deploying file:/home/local/orion/applications/atm/atm-ejb.jar homes: Unable to link resource MessageDrivenBean com.acme.atm.ejb.MainLoggerEJB, no JMS server running --- Globetrot Communications <[EMAIL PROTECTED]> wrote: > When I try to register on the web-page in ATM > application, I get the following exceptions! I was > hoping to use this application to see how exactly it > is doing O/R mapping. > > Thanks. > > Satish > > > javax.servlet.jsp.JspException: NamingException: > com.acme.atm.ejb.AccountOwnerManager not found > at > com.evermind.ejb.taglib.UseHomeTag.doStartTag(UseHomeTag.java:37) > at > /doAddUser.jsp._jspService(/doAddUser.jsp.java:43) > (JSP page line 3) > at > com.orionserver.http.OrionHttpJspPage.service(JAX) > at > com.evermind.server.http.HttpApplication.xa(JAX) > at > com.evermind.server.http.JSPServlet.service(JAX) > at com.evermind.server.http.d3.so(JAX) > at com.evermind.server.http.d3.sm(JAX) > at com.evermind.server.http.ef.su(JAX) > at com.evermind.server.http.ef.dn(JAX) > at com.evermind.util.f.run(JAX) > > __ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great > prices. > http://auctions.yahoo.com/ > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Re: ATM application not working in 1.4.0: Ignore. Runs 0.k
Sorry for the earlier message. ATM works fine in 1.4.0! --- Globetrot Communications <[EMAIL PROTECTED]> wrote: > When I try to register on the web-page in ATM > application, I get the following exceptions! I was > hoping to use this application to see how exactly it > is doing O/R mapping. > > Thanks. > > Satish > > > javax.servlet.jsp.JspException: NamingException: > com.acme.atm.ejb.AccountOwnerManager not found > at > com.evermind.ejb.taglib.UseHomeTag.doStartTag(UseHomeTag.java:37) > at > /doAddUser.jsp._jspService(/doAddUser.jsp.java:43) > (JSP page line 3) > at > com.orionserver.http.OrionHttpJspPage.service(JAX) > at > com.evermind.server.http.HttpApplication.xa(JAX) > at > com.evermind.server.http.JSPServlet.service(JAX) > at com.evermind.server.http.d3.so(JAX) > at com.evermind.server.http.d3.sm(JAX) > at com.evermind.server.http.ef.su(JAX) > at com.evermind.server.http.ef.dn(JAX) > at com.evermind.util.f.run(JAX) > > __ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great > prices. > http://auctions.yahoo.com/ > __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
ATM application not working in 1.4.0
When I try to register on the web-page in ATM application, I get the following exceptions! I was hoping to use this application to see how exactly it is doing O/R mapping. Thanks. Satish javax.servlet.jsp.JspException: NamingException: com.acme.atm.ejb.AccountOwnerManager not found at com.evermind.ejb.taglib.UseHomeTag.doStartTag(UseHomeTag.java:37) at /doAddUser.jsp._jspService(/doAddUser.jsp.java:43) (JSP page line 3) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xa(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d3.so(JAX) at com.evermind.server.http.d3.sm(JAX) at com.evermind.server.http.ef.su(JAX) at com.evermind.server.http.ef.dn(JAX) at com.evermind.util.f.run(JAX) __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Persistence layer details?
Are the details of how Orion's persistence-layer implements tables and relationships available somewhere? Thanks Satish Gupta __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Problems with web-server/EJBServer on different machines
I have Orion web-server on machine A, and application server on machineB. Machine B is specified as the host in the tag. Orion-application.xml specifies remote="yes" and the myAppejb.jar is also present on MachineA. Please keep in mind that I have successfully exercised the application on MachineB with a stand-alone client on Machine A. When I invoke orion on machineA by doing: "java -jar orion.jar" I get the following behavior: On Machine A 1. RMI IO error: port is already in use, which is probably because... 2. I get a whole bunch of native threads invoking -jar orion.jar On Machine B, I get the following stack-trace. At least this implies that MachineA is trying to talk to MachineB. As always, I appreciate the help I've received on this list. java.lang.NullPointerException at com.evermind.server.rmi.ba.gq(JAX) at com.evermind.server.rmi.ba.resolveClass(JAX) at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:9 18) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236) at com.evermind.server.rmi.bd.hf(JAX) at com.evermind.server.rmi.bd.run(JAX) at com.evermind.util.f.run(JAX) Thanks __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Explicit cast needed by Persistence Manager??
Hi, In my application, A MemberProfileEJB has two non-EJB dependent classes, WebProfile and Membership dependent objects. The MemberProfileEJB has abstract createWebProfile and createMembership methods. One of the business methods of MemberProfileEJB, setMembership() looks as shown below. But when I try to deploy this in Orion 1.3.8, I get the errors shown. I am at a loss to see what the Persistence Manager could be expecting. I'd greatly appreciate any help. Thanks ___ public void setMembership(String type, float donation) { trace("MemberProfileEJB.setMembership(): entering"); Membership membership = null; try { membership = (Membership)createMembership(); } catch (CreateException ce) { System.out.println("problem creating membership "+ ce); } membership.setType(type); membership.setDonation(donation); trace("MemberProfileEJB.setMembership(): exiting"); } _ MemberProfileEJB_PersistenceManager21.java:39: Incompatible type for =. Explicit cast needed to convert com.cmc.ejb.member.WebProfile to WebProfile_Dependent18. this.webProfile = value; ^ MemberProfileEJB_PersistenceManager21.java:49: Incompatible type for =. Explicit cast needed to convert com.cmc.ejb.member.Membership to Membership_Dependent19. this.membership = value; __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Minimal contents of application-client.jar
Could somebody, please, summarize the MINIMAL contents of a jar file necessary for a stand-alone client to put it in it's classpath and be able to access an application on Orion-server from anywhere and if there is an orion-tool available to do this? Thanks Satish Gupta __ Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/
Accessing Orion-EJB-Server on one machine from Orion-web-server on another?
What is the best way to configure two installations of Orion, on different machines, so web-server on one can access the EJB-Server on the other? Can this be done through only the configuration files? Thanks Satish Gupta = __ 5.5 cents calls with 6-second billing no fees. Free toll-fre numbers. No other charges 4 cents Domestic calls with no fees: 5 cents per minute International calls also available http://globetrot.hypermart.net e-mail: [EMAIL PROTECTED] __ __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Does Orion provide Application-clustering?
I am aware that Orion provides a built-in clustering for web-servers. Does it also provide clustering for applications? If yes, how to configure such clustering. Thanks for your help. Satish Gupta __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Re: java.lang.OutOfMemoryError in Product Application
As per the suggestion, I am doing the following in an attempt to flush the cache after every 10,000 object creation. Watching the "free memory", simultaneously, I was expecting this free memory-count to jump up every 10,000 objects - but, I am not seeing that. The "free memory" count is,gradually, creeping downwards, with occasional slight bump-ups. The application is still running and will croak tonight if this fix is not effective. In the meantime, could somebody please confirm if I have applied the fix correctly. "MyProduct" is the ejb-ref-name in the application-client.xml Thanks Context context = new InitialContext(); Object o = context.lookup("java:comp/Administrator"); ApplicationAdministrator admin = (ApplicationAdministrator) PortableRemoteObject.narrow(o,ApplicationAdministrator.class); . . . while (true) { // Create a new Product and narrow the reference. Product product = (Product)PortableRemoteObject. narrow(home.create(i), Product.class); name = "product"+i; cost = i; product.setName(name); product.setPrice(cost); if ((i%1)==0) { admin.flushEJBCache("MyProduct"); System.out.println(name +" added. Took " +((System.currentTimeMillis()-startTime)/1000+"secs")); } i++; } --- Globetrot Communications <[EMAIL PROTECTED]> wrote: > Could it be that Orion does not passivate entity > beans, thus running out of virtual memory? I was > able > to restart the ProductClient and continue adding to > the table. > > Does anybody know of a solution better than having > to > stop and restart? > > Thanks > > > > > --- Globetrot Communications > <[EMAIL PROTECTED]> > wrote: > > I am populating a postgreSQL database with > "Product" > > entity beans. I get a java.lang.OutOfMemeoryError > > After adding about 200K entries. Am I getting this > > error because all these entity beans stay in > memory? > > Is there a work-around it besides increasing the > -mx > > option value? How can one to create number of > > objects > > limited only by the disk-space? > > > > Thanks for your help. > > > > while (true) > > { > > // Create a new Product and narrow the > > reference. > > Product product = > > > (Product)PortableRemoteObject.narrow(home.create(i), > > Product.class); > > name = "product"+i > > cost = i; > > product.setName(name); > > product.setPrice(cost); > > > > > > } > > > > Satish > > > > __ > > Do You Yahoo!? > > Yahoo! Auctions - Buy the things you want at great > > prices. > > http://auctions.yahoo.com/ > > > > > = > __ > 5.5 cents calls with 6-second billing no fees. Free > toll-fre numbers. No other charges > 4 cents Domestic calls with no fees: > 5 cents per minute International calls also > available > http://globetrot.hypermart.net > e-mail: [EMAIL PROTECTED] > __ > > __ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great > prices. > http://auctions.yahoo.com/ > __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Rationale for element?
What is the rationale for having element? I know the spec says that with this approach and ejb-ref is visible only within the scope of the referencing ejb. But that also means that each referenced ejb has to be included as a element of each referencing ejb. Doesn't this get away from the 'write-once' paradigm? Thanks for your input. Satish = __ 5.5 cents calls with 6-second billing no fees. Free toll-fre numbers. No other charges 4 cents Domestic calls with no fees: 5 cents per minute International calls also available http://globetrot.hypermart.net e-mail: [EMAIL PROTECTED] __ __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Re: java.lang.OutOfMemoryError in Product Application
Could it be that Orion does not passivate entity beans, thus running out of virtual memory? I was able to restart the ProductClient and continue adding to the table. Does anybody know of a solution better than having to stop and restart? Thanks --- Globetrot Communications <[EMAIL PROTECTED]> wrote: > I am populating a postgreSQL database with "Product" > entity beans. I get a java.lang.OutOfMemeoryError > After adding about 200K entries. Am I getting this > error because all these entity beans stay in memory? > Is there a work-around it besides increasing the -mx > option value? How can one to create number of > objects > limited only by the disk-space? > > Thanks for your help. > > while (true) > { > // Create a new Product and narrow the > reference. > Product product = > (Product)PortableRemoteObject.narrow(home.create(i), > Product.class); > name = "product"+i > cost = i; > product.setName(name); > product.setPrice(cost); > > > } > > Satish > > __ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great > prices. > http://auctions.yahoo.com/ > = __ 5.5 cents calls with 6-second billing no fees. Free toll-fre numbers. No other charges 4 cents Domestic calls with no fees: 5 cents per minute International calls also available http://globetrot.hypermart.net e-mail: [EMAIL PROTECTED] __ __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
java.lang.OutOfMemoryError in Product Application
I am populating a postgreSQL database with "Product" entity beans. I get a java.lang.OutOfMemeoryError After adding about 200K entries. Am I getting this error because all these entity beans stay in memory? Is there a work-around it besides increasing the -mx option value? How can one to create number of objects limited only by the disk-space? Thanks for your help. while (true) { // Create a new Product and narrow the reference. Product product = (Product)PortableRemoteObject.narrow(home.create(i), Product.class); name = "product"+i cost = i; product.setName(name); product.setPrice(cost); } Satish __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
What determines the name of the table created?
I am assuming that the ejb-name entry in ejb-jar.xml determines the name of the table created. I'd appreciate it if somebody could direct me to a reference on this issue, so I can be sure. Thanks Satish __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Fwd: How to configure to invoke ProductServlet
Here is my file/directory structure for the Product application. Why do you think I am not able to invoke the ProductServlet. Thanks The following is my directory/file structure. I am not able to succesfully invoke ProductServlet thus: http://localhost/ejbsamples/servlet/ProductServlet You'll notice that I've copied ProductServlet to a couple of places c:\orion\demo\ejb\ejb-web\WEB-INF\web.xml this web.xml contains: http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> ejbsamples The ejb Application product product ProductServlet product /ProductServlet c:\orion\demo\ejb\ejb-web\WEB-INF\classes\ProductServlet.class c:\orion\demo\ejb\product\META-INF\ejb-jar.xml, application-client.xml, orion-application-client.xml c:\orion\demo\ejb\product\orion-product.jar which contains jndi.properties, Product.class, ProductClient.class, ProductEJB.class, ProductHome.class, ProductServlet.class and the corresponding Java source files. c:\orion\config\default-web-site.xml contains the following: http://www.orionserver.com/dtds/web-site.dtd"> c:\orion\config\server.xml contains: http://www.orionserver.com/dtds/application-server.dtd"> --- Globetrot Communications <[EMAIL PROTECTED]> wrote: > Date: Sat, 20 Jan 2001 17:57:43 -0800 (PST) > From: Globetrot Communications > <[EMAIL PROTECTED]> > Subject: How to configure to invoke ProductServlet > To: [EMAIL PROTECTED] > > I'd appreciate it if somebody could explain how to > configure the Orion installation to invoke > ProductServlet in the product application. It'd be > great to see a detailed explanation of reasoning > behind the configuration. Orion documentation hasn't > been very illuminating to a newbie like myself. > > Thanks > > Satish Gupta > > __ > Do You Yahoo!? > Yahoo! Auctions - Buy the things you want at great > prices. > http://auctions.yahoo.com/ > __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
How to configure to invoke ProductServlet
I'd appreciate it if somebody could explain how to configure the Orion installation to invoke ProductServlet in the product application. It'd be great to see a detailed explanation of reasoning behind the configuration. Orion documentation hasn't been very illuminating to a newbie like myself. Thanks Satish Gupta __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Error reading client-descriptor.. - Problem Solved
After I changed the url to jdbc:postgresql:testdb (Thanks, Mike), I noticed that JNDI was still looking for jdbc/HypersonicDS! I had, initially, installed this application using Hypersonic database. The problem was, finally, solved after I undeployed the "Product" application by deleting it's deployment directory. I am still curious as to why the installation kept looking for a JNDI binding for an older deployment. Shouldn't these bindings go away after the application server has been stopped? __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
EJB-QL Support
It doesn't look like Orion 1.3.8 supports EJB-QL. If true, are there any plans to make this available? When? = __ 5.5 cents calls with 6-second billing no fees. Free toll-fre numbers. No other charges 4 cents Domestic calls with no fees: 5 cents per minute International calls also available http://globetrot.hypermart.net e-mail: [EMAIL PROTECTED] __ __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Fwd: Error Reading application-client descriptor...
On Mike's suggestion, I modified the url to read: jdbc:postgresql:testdb since it's on localhost and the default port 5432. But I am still having the same problem. It works with hypersonic but not with postgresql. What else should I check? I'll appreciate any suggestions. Thanks --- Globetrot Communications <[EMAIL PROTECTED]> wrote: > Date: Thu, 18 Jan 2001 15:33:57 -0800 (PST) > From: Globetrot Communications > <[EMAIL PROTECTED]> > Subject: Error Reading application-client > descriptor... > To: [EMAIL PROTECTED] > > I am running Orion on Linux. > The 'Product' application runs o.k when I use the > hypersonic database. But I get the following error > when trying to use postgreSQL: > > "Error reading application-client descriptor. Error > looking up EJBHome. Disconnected.. Unknown command > 7" > > The data-source.xml looks as follows: > > > "http://www.orionserver.com/dtds/data-sources.dtd"> > > > > > class="com.evermind.sql.ConnectionDataSource" > name="postgresql" > location="jdbc/postgreDS" > xa-location="jdbc/xa/postgreXADS" > ejb-location="jdbc/postgreEJBDS" > connection-driver="org.postgresql.Driver" > username="postgres" > password="" > url="jdbc:postgre:./database/postgredb" > inactivity-timeout="30" > schema="database-schemas/postgresql.xml" > /> > > > Also, I included "postgres" as a user in the > "administrators" group in principals.xml > > Also, I include: > default-data-source="jdbc/postgreEJBDS" in > orion-application.xml under deployment-directory. > > Is there anything else I need to do? Do I need to do > any clean-up after I run the application using > hypersonic and before re-running it with postgres? > > Thanks for your help > > Satish Gupta > > __ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > = __ 5.5 cents calls with 6-second billing no fees. Free toll-fre numbers. No other charges 4 cents Domestic calls with no fees: 5 cents per minute International calls also available http://globetrot.hypermart.net e-mail: [EMAIL PROTECTED] __ __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Error Reading application-client descriptor...
I am running Orion on Linux. The 'Product' application runs o.k when I use the hypersonic database. But I get the following error when trying to use postgreSQL: "Error reading application-client descriptor. Error looking up EJBHome. Disconnected.. Unknown command 7" The data-source.xml looks as follows: http://www.orionserver.com/dtds/data-sources.dtd"> Also, I included "postgres" as a user in the "administrators" group in principals.xml Also, I include: default-data-source="jdbc/postgreEJBDS" in orion-application.xml under deployment-directory. Is there anything else I need to do? Do I need to do any clean-up after I run the application using hypersonic and before re-running it with postgres? Thanks for your help Satish Gupta __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/