Setting DB-Pool manually into the Context
Hi, I'm new in Orion and I have the problem, that I want to debug my classes in the JBuilder IDE. The problem is, that we are using the DB-Pool which OC4J generates automaically by the information of the datasources.xml. For debugging I'd like to generate the Pool manually (done) in an TestApplication and to set it in the InitialContext, so the called classes can get it from there as it would be the Pool generated by OC4J using the datasources.xml. Could you give me an advice please. Thanks In Advance Oliver
RE: More Clustering woes
What OS are you installing vrrp on? FreeBSD or Linux? What version? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jesse Schoch Sent: Wednesday, February 20, 2002 12:05 PM To: Orion-Interest Subject: More Clustering woes I was trying to setup vrrpd (a free vrrp) implementation to provide availability for boxes running loadbalancer.jar but it seems there is multicast address conflict. Is there a way to set what multicast the loadbalancer.jar uses? -jesse schoch
Re: Virtual hosting configuration
Yes I had seen that article, the problem is it does not detail the configuration if you deploy .ear files, simply if you have the directory structure already laid out. I assume it must be quite simple to do, but as always the Orion docs are not that enlightening. The annoying thing is that there was an article originally on orionsupport that described the .ear situation perfectly. Regards.l - Original Message - From: Scott Farquhar [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 9:42 PM Subject: Re: Virtual hosting configuration Dominic, I'm not sure if you are aware of the Atlassian Knowledge Base, but a quick search there produces a few results: http://kb.atlassian.com/search.jsp?query=virtual+host Which gives the document: http://kb.atlassian.com/content/orionsupport/articles/vhosts.html Cheers, Scott Dominic Hanlan wrote: I am trying to configure virtual hosting on Orion. I produce .ear files with Ant for my deployment, and have used virtual hosting for about a year. Unfortunately my server crashed, and the config files :-( were not backed up. The only references / tutorials I can now find do not reference the .ear files in the path. Configuring for single hosts works fine with the .ear specified in the path, where and how do I specify the .ear files when using virtual hosting. Regards -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: [Solution] How is the autoid generated? Chokes SAP DB.
The SAPDB schema in the database schema directory currently maps long to integer, it should map long to something like fixed(38). That fixes it. Cheers Ray --- Ray Harrison [EMAIL PROTECTED] wrote: Hi - Does anyone know off hand how the autoid is generated in 1.5.4? The value produced chokes SAP DB (it produces an invalid exponent error when trying to insert the row). Works fine in Oracle. Thanks much Ray __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
Re: EJB from an Applet
You may want to check this approach to applet/ejb interaction: http://developer.java.sun.com/developer/technicalArticles/RMI/rmi/ The unstated fact seems to be, that applet-ejb communication is not explicitly supported in J2EE, unlike the client/ejb situation which is configurable via the application-client.xml configuration file (I'm not a netbeans user, but this may be how your netBeans ide can get to your ejbs). Another excellent reference on this issue is the 'Applet-Servlet Communication' chapter in Java Servlet Programming, by Jason Hunter and William Crawford (Pub. O'Reilly). Bill. - Original Message - From: Oscar Radio [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, February 20, 2002 1:34 AM Subject: EJB from an Applet Hi all, I'm developing an application using swing that executes remotes EJB. The applications works fine if I executed from NetBeans, but if I executed from an applet it gives me the next error: JERP.Applets.CO.bin.ConexionServidorEJB.jndiContext-javax.naming.InitialCon text@5e2ccd java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(Unknown Source) at javax.rmi.PortableRemoteObject.narrow(Unknown Source) at JERP.Applets.CO.bin.PanelAccesoJERP.inicializarComponentes(PanelAccesoJERP.j ava:142) at JERP.Applets.CO.bin.PanelAccesoJERP.init(PanelAccesoJERP.java:69) at JERP.Applets.CO.bin.AccesoJERP.inicializarComponentes(AccesoJERP.java:71) at JERP.Applets.CO.bin.AccesoJERP.init(AccesoJERP.java:56) at applet.init(applet.java:82) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) The same code with JBoss it works. These are the jars that I put in netbeans and in the jre: ejb.jar jdbc.jar jta.jar mail.jar orion.jar Thanks, Oscar.
Uploading files to Orion webserver with MultipartParser API
Hi, I'm wondering if this has anything to do with the Orion webserver. I am using the com.oreilly.servlet.multipart.MultipartParser to upload files to my servlet. If you try the same file several times, it will sometimes work and sometimes fail with a Corrupt form data: no leading boundary IOException. It fails because normally it expects to see a valid boundary in the HttpServletRequest obj, but some of the time the Header is being sent with the content. So where it expects to see something like 12012133613061, it finds a POST url... HTTP1.1 etc It is strange that it sometimes works and sometimes not. Is there anything I can set on the webserver side to ensure that the content is as is expected? Thanks, Justin
Re: Accessing EJB in app 'A' from EJB in app 'B'
Accessing EJB from another application is exactly the way you access from client. Since each application is independent to each other you have to get the reference of the EJB exactly the same way as you get from client application. You have to provide jndi.properties or you can provide properties while creating InitialContext. -kesav - Original Message - From: Ruchira Amarasinghe [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, February 21, 2002 1:59 AM Subject: Accessing EJB in app 'A' from EJB in app 'B' Hi, I have an two applications (A and B) deployed on orion. I want to access an EJB in A (ejb/WalletController) from an EJB in B (ejb/PaymentHandler) I can access the EJB in A from a normal client application using jndi.properties file. But when I try from an EJB I get a javax.Naming.NameNotFoundException. Here's my ejb-jar.xml, and orion-ejb-jar.xml for Application B. I'm especially not sure how to give ejb-ref-mapping location=ormi://localhost/B ... / in orion-ejb-jar.xml. - ejb-jar.xml - session display-name bean/display-name ejb-nameejb/PaymentHandler/ejb-name homexxx.ejb.PaymentHandlerHome/home remotexxx.ejb.PaymentHandler/remote ejb-classxxx.ejb.PaymentHandlerBean/ejb-class session-typeStateless/session-type transaction-typeContainer/transaction-type ejb-ref ejb-ref-nameejb/WalletController/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homeyyy.WalletControllerHome/home remoteyyy.WalletController/remote /ejb-ref /session - orion-ejb-jar.xml --- enterprise-beans session-deployment name=ejb/PaymentHandler ejb-ref-mapping location=ormi://localhost/B name=ejb/WalletController / /session-deployment /enterprise-beans Any help will be appreciated, Thanks RT _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Update container without redeploy?
I´m using orion with JBuilder6. When I need modify a JSP, I need rebuild my .ear e redeploy. It´s bad. Can I set up my container to update itself always I modify my JSP without need to rebuild and redeploy .EAR? Carlos Roberto da Silva Júnior Engenheiro de Software Ramal - 4631 Qualiti Software Processes - CESAR Soluções para o processo de construção de software http://www.qualiti.com.br +55 81 3272.4700
Re: [Updated sapdb.xml] [Solution] How is the autoid generated? Chokes SAP DB.
Here is the updated SAP DB schema file: == ?xml version=1.0? !DOCTYPE database-schema PUBLIC -//Evermind//- Database schema http://www.orionserver.com/dtds/database-schema.dtd; database-schema name=SapDB not-null=not null null=null primary-key=primary key max-table-name-length=32 type-mapping type=boolean name=boolean / type-mapping type=byte name=byte / type-mapping type=char name=char / type-mapping type=double name=double precision / type-mapping type=floatname=float / type-mapping type=int name=integer / type-mapping type=long name=fixed(38) / type-mapping type=shortname=smallint / type-mapping type=java.lang.String name=varchar(255) / type-mapping type=java.math.BigDecimal name=fixed(15,15) / type-mapping type=byte[] name=long byte / type-mapping type=java.sql.Datename=date / type-mapping type=java.sql.Timename=time / type-mapping type=java.sql.Timestamp name=timestamp / type-mapping type=java.util.Date name=timestamp / type-mapping type=java.io.Serializable name=long byte / disallowed-field name=key / disallowed-field name=date / disallowed-field name=timestamp / disallowed-field name=time / disallowed-field name=username / disallowed-field name=user / disallowed-field name=password / disallowed-field name=order / disallowed-field name=table / disallowed-field name=value / disallowed-field name=name / disallowed-field name=count / /database-schema == --- Ray Harrison [EMAIL PROTECTED] wrote: The SAPDB schema in the database schema directory currently maps long to integer, it should map long to something like fixed(38). That fixes it. Cheers Ray --- Ray Harrison [EMAIL PROTECTED] wrote: Hi - Does anyone know off hand how the autoid is generated in 1.5.4? The value produced chokes SAP DB (it produces an invalid exponent error when trying to insert the row). Works fine in Oracle. Thanks much Ray __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com
EJB Deadlocks????
Greetings. I am running a load test on a system with 200 concurrent threads (simulating 200 concurrent users). System requirements are for 1000 Users/box. When running the test, I hit the attached Error. Has anyone else been having problems with Orion under heavy loads? -Steve 500 Internal Server Error com.evermind[Orion/1.5.4 (build 10585)].server.DeadlockException: Deadlock detected, timing out call after 90 seconds wait for thread Thread[ApplicationServerThread,5,applicationServerThreadGroup] at com.evermind[Orion/1.5.4 (build 10585)].server.ejb.AbstractEJBObject.startCall(.:149) at User_EntityBeanWrapper36.getUserId(User_EntityBeanWrapper36.java:889) at com.hrnexus.security.shared.ThinUserProxy.getUserId(ThinUserProxy.java:111) at /site_header.jsp._jspService(/site_header.jsp.java:105) (JSP page line 101) at com.orionserver[Orion/1.5.4 (build 10585)].http.OrionHttpJspPage.service(.:56) at com.evermind[Orion/1.5.4 (build 10585)]._cp._vhc(.:5639) at com.evermind[Orion/1.5.4 (build 10585)].server.http.JSPServlet.service(.:31) at com.evermind[Orion/1.5.4 (build 10585)]._deb._lnc(.:514) at com.evermind[Orion/1.5.4 (build 10585)]._deb._wmb(.:170) at com.evermind[Orion/1.5.4 (build 10585)]._co._wbb(.:581) at com.evermind[Orion/1.5.4 (build 10585)]._co._fs(.:189) at com.evermind[Orion/1.5.4 (build 10585)]._bt.run(.:62) -- Stephen Davidson Java Consultant Delphi Consultants, LLC http://www.delphis.com Phone: 214-696-6224 x208
RE: Uploading files to Orion webserver with MultipartParser API
Hi there, Did you read the http://www.servlets.com/cos/faq.html? Cheers Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Justin Crosbie Sent: Friday, 22 February 2002 3:22 AM To: Orion-Interest Subject: Uploading files to Orion webserver with MultipartParser API Hi, I'm wondering if this has anything to do with the Orion webserver. I am using the com.oreilly.servlet.multipart.MultipartParser to upload files to my servlet. If you try the same file several times, it will sometimes work and sometimes fail with a Corrupt form data: no leading boundary IOException. It fails because normally it expects to see a valid boundary in the HttpServletRequest obj, but some of the time the Header is being sent with the content. So where it expects to see something like 12012133613061, it finds a POST url... HTTP1.1 etc It is strange that it sometimes works and sometimes not. Is there anything I can set on the webserver side to ensure that the content is as is expected? Thanks, Justin
Re: Http Sessions ...
Isaac, This article may be of interest to you. http://kb.atlassian.com/content/orionsupport/clickstream/index.html This would be a cross-platform way to track sessions. Cheers, Scott Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Isaac Agudo wrote: -- Hy everybody .. .. I want to know all the http sessions that's working my appServer, So exist a easy way to do that ???.. i see that the orionconsole, has an option to see all the httpsessions, i want to do the same, but from my aplication . -- Thank's in advance. --
RoleManager.login
Hello All, I've got a Swing client talking to EJBs and I'm investigating the security portion. I've looked back at some of the archived threads, and I am beginning to get a better idea of how things work. I just want to know what exactly does RoleManager.login do? Does it just ensure that the user/password passed in is defined for the application? The actual check of roles in EJB is done when I call an EJB, and the user/password used is the one set in the Initial Context. Is this all correct? Thanks, Ricky _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Re: EJB Deadlocks????
Stephen, We found a deadlock problem, but you don't need a heavy load to achieve it. I'll describe the situation to you and you can decide if it's the same error or not. A session bean with container-managed transactions does updates to 2 entity beans. If _ANY_ error is thrown while updating the second entity bean, then the transaction is rolled back (as it should, and as we coded it to). The deadlock happens when you try to access the specific entity that was updated first in that failed transaction. The server just hangs at the ejbStore() call of that entity. We've duplicated this problem on Oracle 8, 8i, SQL Server 7, and someone else duplicated it on SAP and DB2. For some reason it works on PostgreSQL. We don't know if it's a result of the Dirty Connection that you see is left behind if you have -Djdbc.debug=true. I have a test case, and we've posted a bug (#702). We've discussed this on elephantwalker, etc. and 1.5.4 doesn't correct the problem. My guess is that noone seems to think it's a big deal, which I find hard to believe. If this sounds like a possible way that you're achieving your deadlock (ie, you're updating multiple beans in a transaction that has the possibility of being rolled back, then you try to update one of those beans again), then I'd love it if you'd help me jump and scream and get someone, preferably magnus, to acknowledge this problem and fix it. If anyone would like our test case, please email me and I'd be happy to send it your way. Jeff. On Thu, 21 Feb 2002 15:33:38 -0600 Stephen Davidson [EMAIL PROTECTED] wrote: Greetings. I am running a load test on a system with 200 concurrent threads (simulating 200 concurrent users). System requirements are for 1000 Users/box. When running the test, I hit the attached Error. Has anyone else been having problems with Orion under heavy loads? -Steve 500 Internal Server Error com.evermind[Orion/1.5.4 (build 10585)].server.DeadlockException: Deadlock detected, timing out call after 90 seconds wait for thread Thread[ApplicationServerThread,5,applicationServerThreadGroup] at com.evermind[Orion/1.5.4 (build 10585)].server.ejb.AbstractEJBObject.startCall(.:149) at User_EntityBeanWrapper36.getUserId(User_EntityBeanWrapper36.java:889) at com.hrnexus.security.shared.ThinUserProxy.getUserId(ThinUserProxy.java:111) at /site_header.jsp._jspService(/site_header.jsp.java:105) (JSP page line 101) at com.orionserver[Orion/1.5.4 (build 10585)].http.OrionHttpJspPage.service(.:56) at com.evermind[Orion/1.5.4 (build 10585)]._cp._vhc(.:5639) at com.evermind[Orion/1.5.4 (build 10585)].server.http.JSPServlet.service(.:31) at com.evermind[Orion/1.5.4 (build 10585)]._deb._lnc(.:514) at com.evermind[Orion/1.5.4 (build 10585)]._deb._wmb(.:170) at com.evermind[Orion/1.5.4 (build 10585)]._co._wbb(.:581) at com.evermind[Orion/1.5.4 (build 10585)]._co._fs(.:189) at com.evermind[Orion/1.5.4 (build 10585)]._bt.run(.:62) -- Stephen Davidson Java Consultant Delphi Consultants, LLC http://www.delphis.com Phone: 214-696-6224 x208 -- Jeff Hubbach Internet Developer Sun Certified Web Component Developer New Media Division ITQ Lata, L.L.C. 303-745-4763 x3114
Orion server often shutdown by itself
Hi, everyone, My orion server often shutdown by itselt, this occured while I'm requesting page. I use Redhat 6.2 and orion 1.5.2, Does Anyone can tell me why? and give me solution. Thanks, Malory
[ANNOUNCE] Orion forums launched!
Atlassian and IronFlare are proud to announce the launch of the Orion forums at: http://forums.atlassian.com These forums will enable the community to post and answer questions, and will be an important resource for help into the future. There are 7 forums covering:installation configuration, web applications, EJB, security and users, data sources, JMS and general questions. The forums are a free support resource for the community, but are actively patrolled by the Atlassian expert support team, the IronFlare development team and other Orion community leaders. The forums do not replace this mailing list, rather they are an additional location for questions and community discussion. However, the forums do have certain advantages over the mailing lists: - the forums are actively watched by Atlassian, IronFlare and the community - you can 'watch' threads that interest you, rather than subscribing to an entire mailing list - you do not need to subscribe to post or search for answers - the forums are updated in real time, rather than waiting hours for your post to appear Get posting today and join the broader Orion community! http://forums.atlassian.com Cheers, The Atlassian IronFlare teams PS If you are interested in becoming a community leader/moderator, please email me off list - [EMAIL PROTECTED]