Re: Setting Up News Application on Orion
Hi, Brandy Try the next: Stop your orion server Edit persistence-name in cmp-field-mapping tag in orion-ejb-jar.xml file to fit your needs. Persistence-name is a column name corresponding to EJB field. Start server Probably,stopping orion isnot even required - Original Message - From: B. Dawkins To: Orion-Interest Sent: Thursday, May 17, 2001 9:59 PM Subject: Setting Up News Application on Orion Hi, I am trying to set up the News Application Demo on Orion and I get the following information: Auto-creating table: create table com_evermind_ejb_NewsItem (id Number not null primary key, submitter VARCHAR2(255) null, text VARCHAR2(255) null, subject VARCHAR2(255) null, parent NUMBER null) Warning:Error creating table: ORA-00904:invalid column name. I know why the error is occurring (Date is a reserve word in Oracle) but where is this SQL file located so I could change the column name? Thanks, Brandy Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Orion - Postgresql
I've searched for it, but I cannot find one. How do I filled in the data-source.xml to connect to postgresql? fyi, I use postgresql7.0-1.2.jar. This is the one I'm using, even if I'm not crasy and I don't allow orion to create the table for me... database-scheme name=PostGreSQL not-null=not null null=null primary-key=primary key type-mapping type=java.lang.String name=varchar(255) / type-mapping type=java.lang.Integer name=int8 / type-mapping type=int name=int4 / type-mapping type=long name=int8 / type-mapping type=float name=float4 / type-mapping type=double name=float8 / type-mapping type=byte name=int2 / type-mapping type=char name=char / type-mapping type=short name=int2 / type-mapping type=boolean name=bool / type-mapping type=java.util.Date name=timestamp / type-mapping type=java.io.Serializable name=oid / type-mapping type=java.math.BigDecimal name=decimal / disallowed-field name=parent / disallowed-field name=password / disallowed-field name=username / disallowed-field name=date / disallowed-field name=order / disallowed-field name=old / disallowed-field name=user / /database-scheme best regards, Kazuma Cos'e' il genio. E' fantasia intuizione, colpo d'occhio e velocita' d'esecuzione. (Amici Miei) --- Alessandro A. 'Kazuma' Garbagnati http://www.kazuma.net/ ICQ UIN: 1600386 Mountain View, CA, 94043 - USA
mailing test
test~
RE: Access Denied on Linux, but NT/w2k fine
If that is to no reveal to that I would check (with a program) all files (especially the settings in the xmls) on whether they are the same on both machine Linux Wins, unless you are 100% sure they are the same (and not 99.9% sure they are the same!). The upper/lower case differences in interpretation have caused me some time as well :-( FE On Thursday, May 17, 2001 6:35 PM, elephantwalker [SMTP:[EMAIL PROTECTED]] wrote: 1. make sure that umask is 022 or 007 2. sometimes directories from win have character issues (lowercase shown, but really they are uppercase). 3. the directories are x? sometimes this is an issue between win and linux is you use zip to unzip the directory. 4. reread the running on unix on www.orionsupport.com 5. bury you windows cd's, and convert TOTALLY to linux. I suggest a pagan ritual around the summer solstice. The linux gods will smile on you. the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Theo van Niekerk Sent: Thursday, May 17, 2001 8:50 AM To: Orion-Interest Subject: Access Denied on Linux, but NT/w2k fine Hi We have developed a complete app on windows 2000. We've setup access permissions only for the WEB tier. Everything works very well and as expected on the NT and Windows 2000 machines. The problem is when running it on Linux. It refuses to serve some pages giving either error 404 or error 500. We're running orion as root listening on port 80. All .jsp's are world readable and belongs to one user. The exact same behaviour is experienced when running orion on port 8080 as this user the jsp's belong to. Fortunately the client has chosen w2k machines for production. I would like to stick to GNU/Linux if possible. Any ideas? -- Cheers Theo
RE: http-ormi tunneling
Strrrange, I followed exactly the same path as you did and it worked like a breeze. From the top of my head this can be caused by two things: - packet filtering, in otherwords is port 80 indeed accessible? - some xml setting for your server breaks the tunneling To check the latter maybe try it first with a clean (perhaps brand new installation), and check whether that causes you problems? FE On Thursday, May 17, 2001 9:03 PM, Ivo Rakovac [SMTP:[EMAIL PROTECTED]] wrote: Hello, We are having trouble with the http ormi tunneling. The RMI-servlet is installed in global-web-application.xml as follows: ?. servlet servlet-namermi/servlet-name servlet-classcom.evermind.server.rmi.RMIHttpTunnelServlet/servlet-class /servlet ?.. When we try to connect to the server using http:ormi://localhost/appName, the tunnel servlet is initialized (message in $orion-home$/log/global-application.log) but the server gives no response. The pure ormi (ormi://localhost/appName ) connection is working fine. Any help / suggestions would be greatly appreciated, Regards Ivo Rakovac
AW: http-ormi tunneling
Hello. When we try to connect to the server using http:ormi://localhost/appName, the tunnel servlet is initialized (message in $orion-home$/log/global-application.log) but the server gives no response. The pure ormi (ormi://localhost/appName ) connection is working fine. Strrrange, I followed exactly the same path as you did and it worked like a breeze. We have the same problems here. Servlet is loaded, but the client always receives a Error communicating with server: Lookup error: java.net.ConnectException: Connection refused: connect. from the server. This is the same error you will receive if orion is not running. A Firewall cannot be the problem, I tried that with client/server on the same computer. If somebody else had these problems and solved them, please tell us.. Greetings from Munich, /Thomas -- hybris GmbH | /Thomas Hertz Frankfurter Ring 162 | Software Engineering D-80807 Munchen | | t +49(0)89 89065-0| [EMAIL PROTECTED] f +49(0)89 89065-555 | www.hybris.de PGP: D070 5D86 BE2D C3AF E2CC D2D8 C29A 7F68 7407 629E
Re: Orin cpu usage ???
Thanks peter, I tried it as classic, but it doesn't work. It complains that it can't find the JIT, wheras it is able find it, as the below, any idea why this is (I haven't got much experience with running the jvm in different modes, any idea where to find more info, as I can't find it in the man java ??) ??: --- [orion@ojo Orion]# java -classic orion.jar Warning: JIT compiler /usr/local/java/bin/javac not found. Will use interpreter. Exception in thread main java.lang.NoClassDefFoundError: orion/jar [orion@ojo Orion]# ls /usr/local/java/bin/ja jar java javac javah jarsigner java-rmi.cgi javadoc javap [orion@ojo Orion]# ls /usr/local/java/bin/javac /usr/local/java/bin/javac [orion@ojo Orion]# -- Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 4:07 PM Subject: RE: Orin cpu usage ??? I have seen other instances where profiling doesn't work with the HotSpot JVM - use the Classic, and it (may) work. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 6:04 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks Marcel, Indeed I get more information when I start with -Xprof, however when I use the -Xrunhprof I get the following error (the total command is also included): Funny !!!, Eddie -- # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4D555445583F4C494E55580E4350500104 # # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable # -- Start command: --- su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 - Original Message - From: Marcel Schutte [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 11:48 AM Subject: RE: Orin cpu usage ??? Hi Eddie, You could try to use the JVM profiler (startup arguments -Xprof and -Xrunhprof). This is ofcourse not orion specific, but you can give it a try. You can also try leaving out parts of your application until you find the bit that's causing your problem. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 10:11 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Can someone please answer this question !!!??? The problem I am having is the Orion sometimes hangs, it uses a lot of cpu and I can't figure out why, so I need some advices on how I can monitor this. Please... ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 11:42 AM Subject: Orin cpu usage ??? Can someone please tell me how to monitor the cpu usage of Orion in detail per component/item/application ? When I use orionconsole I can only view the overall memory usage of all application, but that's it. With top I see it is using a lot of cpu time: about 50 percent. But I want more information, how do I get that ?? Eddie
RE: http-ormi tunneling
Maybe something todo with the Orion version? I'm using 1.4.5 on Win98 and WinNT and have to say: it works. FE On Friday, May 18, 2001 10:06 AM, Thomas Hertz [SMTP:[EMAIL PROTECTED]] wrote: Hello. When we try to connect to the server using http:ormi://localhost/appName, the tunnel servlet is initialized (message in $orion-home$/log/global-application.log) but the server gives no response. The pure ormi (ormi://localhost/appName ) connection is working fine. Strrrange, I followed exactly the same path as you did and it worked like a breeze. We have the same problems here. Servlet is loaded, but the client always receives a Error communicating with server: Lookup error: java.net.ConnectException: Connection refused: connect. from the server. This is the same error you will receive if orion is not running. A Firewall cannot be the problem, I tried that with client/server on the same computer. If somebody else had these problems and solved them, please tell us.. Greetings from Munich, /Thomas -- hybris GmbH | /Thomas Hertz Frankfurter Ring 162 | Software Engineering D-80807 Munchen | | t +49(0)89 89065-0| [EMAIL PROTECTED] f +49(0)89 89065-555 | www.hybris.de PGP: D070 5D86 BE2D C3AF E2CC D2D8 C29A 7F68 7407 629E
Re: Orin cpu usage ??? - HANGS - please some help!!
Please tell me how I can see in Orion what's going wrong!! - About every hour Orion still runs, but doesn't do any servlets, beans, etc... it just hangs... and I can't figure out why... not completely true... it writes: java.lang.OutOfMemoryError: max threads limit being reached in VM at java.lang.Thread.start(Native Method) at com.evermind.util.ThreadPool.cb(JAX) at com.evermind.server.he.ap3(JAX) at com.evermind.server.http.eq.run(JAX) at com.evermind.util.f.run(JAX) - But I don't understand this as I start it with enough memory: -- /opt/java/bin/java -Xms30m -Xmx190m -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 -- And if I take a look with the orionconole the memory usage it always around 13-32 MB What ma I missing here. BTW: it's running on HP-UX 11 with jdk1.3 Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 4:07 PM Subject: RE: Orin cpu usage ??? I have seen other instances where profiling doesn't work with the HotSpot JVM - use the Classic, and it (may) work. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 6:04 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks Marcel, Indeed I get more information when I start with -Xprof, however when I use the -Xrunhprof I get the following error (the total command is also included): Funny !!!, Eddie -- # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4D555445583F4C494E55580E4350500104 # # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable # -- Start command: --- su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 - Original Message - From: Marcel Schutte [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 11:48 AM Subject: RE: Orin cpu usage ??? Hi Eddie, You could try to use the JVM profiler (startup arguments -Xprof and -Xrunhprof). This is ofcourse not orion specific, but you can give it a try. You can also try leaving out parts of your application until you find the bit that's causing your problem. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 10:11 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Can someone please answer this question !!!??? The problem I am having is the Orion sometimes hangs, it uses a lot of cpu and I can't figure out why, so I need some advices on how I can monitor this. Please... ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 11:42 AM Subject: Orin cpu usage ??? Can someone please tell me how to monitor the cpu usage of Orion in detail per component/item/application ? When I use orionconsole I can only view the overall memory usage of all application, but that's it. With top I see it is using a lot of cpu time: about 50 percent. But I want more information, how do I get that ?? Eddie
AW: http-ormi tunneling
Hi, Maybe something todo with the Orion version? I'm using 1.4.5 on Win98 and WinNT and have to say: it works. Neither 1.4.4 nor 1.4.5/1.4.7/1.48 on WinNT or 2000 works. I'll try a fresh installation. Let's see if this is working... Greetings, /Thomas -- hybris GmbH | /Thomas Hertz Frankfurter Ring 162 | Software Engineering D-80807 Munchen | | t +49(0)89 89065-0| [EMAIL PROTECTED] f +49(0)89 89065-555 | www.hybris.de PGP: D070 5D86 BE2D C3AF E2CC D2D8 C29A 7F68 7407 629E
Load balancing advice needed
Hi! I am currently planning the new production environment for our service. The idea is to have following harware setup: 1 firewall (which used for loadbalancing too) 2 Linux/Intel boxes as frontend servers (both running HTTP accelerators and web containers) 1 UNIX server as a backend server (running an EJB container and databases) I went through load balancing documentation which I found from orionserver.com but I didn't find any way to separate Orion's web container and EJB container to achieve the above setup. Is it somehow possible to do that kind of separation? How would you distribute the required processes on those three servers? -- Joni [EMAIL PROTECTED]
Re: Orion and Security
Doug, you're describing something well within J2EE's role specification's capabilities; just define roles that can get to a given resource, assign users to those roles, and then store those users in a database. For a simple example, see http://adjacency.org/atm/ -- it's still being written at the moment, but it's becoming more complete daily, and already covers user security in principals.xml and the EJBUserManager. Also, www.orionsupport.com has docs on using the data-store usermanager. On Thu, 17 May 2001, Doug Pham wrote: Hi All, Customer security is the question here. Has anyone develop a security system where all the information is located in the relational database. I would like the security to be held at the application server but as we go into each restricted page, it will send the page info to the securityManager which will send back the response privileges where the page can determine from there. Basically the secuityManager is at the server level and will hold all the security information for a particular user for all the applications available for that server. Thanks Doug Pham --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
Re: Orion - Postgresql
Well, class shouldn't be ???, that's for sure... you should leave the class attribute to be the com.evermind.whatever.it.is as the default value. On Fri, 18 May 2001, Budi Prawira wrote: I've searched for it, but I cannot find one. How do I filled in the data-source.xml to connect to postgresql? fyi, I use postgresql7.0-1.2.jar. Are these correct? data-source class=??? name=Postgresql location=jdbc/PostgresqlDS xa-location=jdbc/xa/PostgresqlXADS ejb-location=jdbc/PostgresqlDS connection-driver=org.postgresql.Driver username=username password=password url=jdbc:postgresql:mydb inactivity-timeout=30 / thanks! Budi --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
Re: Orion and Security
Singleton pattern in orion.lib should do this for you. Johan - Original Message - From: Doug Pham [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 9:26 PM Subject: Orion and Security Hi All, Customer security is the question here. Has anyone develop a security system where all the information is located in the relational database. I would like the security to be held at the application server but as we go into each restricted page, it will send the page info to the securityManager which will send back the response privileges where the page can determine from there. Basically the secuityManager is at the server level and will hold all the security information for a particular user for all the applications available for that server. Thanks Doug Pham
Re: Setting Up News Application on Orion
My guess this could be fixed in oracle.xml under orion/config/database-schemas/ Johan - Original Message - From: Max To: Orion-Interest Sent: Friday, May 18, 2001 8:15 AM Subject: Re: Setting Up News Application on Orion Hi, Brandy Try the next: Stop your orion server Edit persistence-name in cmp-field-mapping tag in orion-ejb-jar.xml file to fit your needs. Persistence-name is a column name corresponding to EJB field. Start server Probably,stopping orion isnot even required - Original Message - From: B. Dawkins To: Orion-Interest Sent: Thursday, May 17, 2001 9:59 PM Subject: Setting Up News Application on Orion Hi, I am trying to set up the News Application Demo on Orion and I get the following information: Auto-creating table: create table com_evermind_ejb_NewsItem (id Number not null primary key, submitter VARCHAR2(255) null, text VARCHAR2(255) null, subject VARCHAR2(255) null, parent NUMBER null) Warning:Error creating table: ORA-00904:invalid column name. I know why the error is occurring (Date is a reserve word in Oracle) but where is this SQL file located so I could change the column name? Thanks, Brandy Get your FREE download of MSN Explorer at http://explorer.msn.com
Update of FreeBSD port java/orion
Hi all, To all FreeBSD users: The java/orion port has been updated. It now correctly installs a `orionctl' script and a link to this script from /usr/local/etc/rc.d/orion.sh, so that Orion is started at boot time. Any comments and suggestions, or even improvements are welcome. To install the port, make sure your ports collection is up to date (typically maintained using cvsup). The version of the package should be 1.4.5_2. Then do the following as root: # cd /usr/ports/java/orion # make install Sincerely, Ernst -- Ernst de Haan Java Architect Jollem Information Technology Come to me all who are weary and burdened and I will give you rest -- Jesus Christ
Re: http-ormi tunneling
Frank Eggink wrote: Maybe something todo with the Orion version? I'm using 1.4.5 on Win98 and WinNT and have to say: it works. FE Hi, we are using 1.4.8., thanks for the suggestions, but this didn't solve the problems, we are running orion on w2k and the http port is 80. The web-app is working fine, but now we would like to implement a stand alone client. Thanks best regards, Ivo Rakovac On Friday, May 18, 2001 10:06 AM, Thomas Hertz [SMTP:[EMAIL PROTECTED]] wrote: Hello. When we try to connect to the server using http:ormi://localhost/appName, the tunnel servlet is initialized (message in $orion-home$/log/global-application.log) but the server gives no response. The pure ormi (ormi://localhost/appName ) connection is working fine. Strrrange, I followed exactly the same path as you did and it worked like a breeze. We have the same problems here. Servlet is loaded, but the client always receives a Error communicating with server: Lookup error: java.net.ConnectException: Connection refused: connect. from the server. This is the same error you will receive if orion is not running. A Firewall cannot be the problem, I tried that with client/server on the same computer. If somebody else had these problems and solved them, please tell us.. Greetings from Munich, /Thomas -- hybris GmbH | /Thomas Hertz Frankfurter Ring 162 | Software Engineering D-80807 Munchen | | t +49(0)89 89065-0| [EMAIL PROTECTED] f +49(0)89 89065-555 | www.hybris.de PGP: D070 5D86 BE2D C3AF E2CC D2D8 C29A 7F68 7407 629E
RE: Load balancing advice needed
Guess what you what is more of an -un-clustering excercise :-) When specifying your params for your InitialContext you have to set the PROVIDER_URL. That specifies a host path. e.g. ... properties.put(Context.PROVIDER_URL, ormi://your-bean-server/your-application/); ... jndiContext = new InitialContext(properties); Or alternatively: something like that in your jndi.properties file. FE On Friday, May 18, 2001 12:17 PM, Joni Suominen [SMTP:[EMAIL PROTECTED]] wrote: Hi! I am currently planning the new production environment for our service. The idea is to have following harware setup: 1 firewall (which used for loadbalancing too) 2 Linux/Intel boxes as frontend servers (both running HTTP accelerators and web containers) 1 UNIX server as a backend server (running an EJB container and databases) I went through load balancing documentation which I found from orionserver.com but I didn't find any way to separate Orion's web container and EJB container to achieve the above setup. Is it somehow possible to do that kind of separation? How would you distribute the required processes on those three servers? -- Joni [EMAIL PROTECTED]
Re: deploying additional files
Of course, datasources.xml is the purvue of the J2EE Deployer role, not of the developers, but purity aside, not all Orion apps are delivered to sophisticated deployment environments with a full complement of skilled staff. I'm sure a lot of us have spent some time trying to pre-deploy things so that just tossing an .ear at Orion will do everything related to deployment. As far as datasources.xml is concerned, the only solution we could come up with that works is to make the deployment directory a subdirectory of the application directory. Something like this, in our server.xml, does the trick: application name=myapp path=../applications/myapp.ear deployment-directory=../applications/myapp/orion / datasources.xml winds up being unpacked directly into the deploment directory. P. Pontbriand Canlink Interactive Technologies Inc. - Original Message - From: Yves Bossel [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 9:53 AM Subject: deploying additional files Hello, I am trying to pack my application in as independently as possible of the deployment configuration (i.e. paths). data-sources.xml and principals.xml get packed into the application's META-INF. However, unlike orion-application.xml, data-sources.xml does not get copied into orion/application-deployments/my-app. Is there a deployment-path-independent way to pack such files and to specify in their location in the deployment descriptors ? Is there a way to get Orion deploy additional files in the META-INF (Orion seems to look first there for needed deployment files)? My goal is to have to modify the least possible number of configuration files at deployment. Thanks Yves Bossel L. Programmer www.neoris.com - Business Technology Partners Edificio Birmann 24, Sanchez Fontecilla 310, piso 7 (esq. Callao) Las Condes, Santiago; CHILE oficina: (56-2) 426-1260 email: [EMAIL PROTECTED]
HTTPS-RMI ??
Hi eveybody, anybody out there who ever set up HTTPS over RMI? Seems to me that the most naive way (setting up RMI over HTTP, install SSL for orion) is not working, since I get a connection refused error. Thanks for any help, Stefan
Linux
Hi Just some advice for anybody developing/porting/deploying their J2EE app on Linux. Orion on Linux uses Linuxes file system that is case-sensitive as the HTTP spec requires. Orion on Windows does not respect the case-sensitive requirement of the URI. Use the latest version of Jikes. Jikes version 1.10 produces code that is buggy and causes Orion to have unpredictable behaviour. I'm using version 1.12 and it works well. Hope this helps. -- Cheers Theo PGP signature
RE: Orin cpu usage ??? - HANGS - please some help!!
Use the -monitorResourceThreads flag when you start orion - (use java -jar orion.jar -help to see possible startup options) --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Friday, May 18, 2001 3:52 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? - HANGS - please some help!! Please tell me how I can see in Orion what's going wrong!! - About every hour Orion still runs, but doesn't do any servlets, beans, etc... it just hangs... and I can't figure out why... not completely true... it writes: java.lang.OutOfMemoryError: max threads limit being reached in VM at java.lang.Thread.start(Native Method) at com.evermind.util.ThreadPool.cb(JAX) at com.evermind.server.he.ap3(JAX) at com.evermind.server.http.eq.run(JAX) at com.evermind.util.f.run(JAX) - But I don't understand this as I start it with enough memory: -- /opt/java/bin/java -Xms30m -Xmx190m -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 -- And if I take a look with the orionconole the memory usage it always around 13-32 MB What ma I missing here. BTW: it's running on HP-UX 11 with jdk1.3 Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 4:07 PM Subject: RE: Orin cpu usage ??? I have seen other instances where profiling doesn't work with the HotSpot JVM - use the Classic, and it (may) work. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 6:04 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks Marcel, Indeed I get more information when I start with -Xprof, however when I use the -Xrunhprof I get the following error (the total command is also included): Funny !!!, Eddie -- # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4D555445583F4C494E55580E4350500104 # # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable # -- Start command: --- su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 - Original Message - From: Marcel Schutte [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 11:48 AM Subject: RE: Orin cpu usage ??? Hi Eddie, You could try to use the JVM profiler (startup arguments -Xprof and -Xrunhprof). This is ofcourse not orion specific, but you can give it a try. You can also try leaving out parts of your application until you find the bit that's causing your problem. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 10:11 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Can someone please answer this question !!!??? The problem I am having is the Orion sometimes hangs, it uses a lot of cpu and I can't figure out why, so I need some advices on how I can monitor this. Please... ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 11:42 AM Subject: Orin cpu usage ??? Can someone please tell me how to monitor the cpu usage of Orion in detail per component/item/application ? When I use orionconsole I can only view the overall memory usage of all application, but that's it. With top I see it is using a lot of cpu time: about 50 percent. But I want more information, how do I get that ?? Eddie
RE: Orin cpu usage ???
I am currently sitting on a w2k box, but I remember that under Unix many of these files are links to a wrapper for either hotspot or classic JVM. You may have to play around and change those. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Friday, May 18, 2001 2:27 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks peter, I tried it as classic, but it doesn't work. It complains that it can't find the JIT, wheras it is able find it, as the below, any idea why this is (I haven't got much experience with running the jvm in different modes, any idea where to find more info, as I can't find it in the man java ??) ??: --- [orion@ojo Orion]# java -classic orion.jar Warning: JIT compiler /usr/local/java/bin/javac not found. Will use interpreter. Exception in thread main java.lang.NoClassDefFoundError: orion/jar [orion@ojo Orion]# ls /usr/local/java/bin/ja jar java javac javah jarsigner java-rmi.cgi javadoc javap [orion@ojo Orion]# ls /usr/local/java/bin/javac /usr/local/java/bin/javac [orion@ojo Orion]# -- Eddie - Original Message - From: cybermaster [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 4:07 PM Subject: RE: Orin cpu usage ??? I have seen other instances where profiling doesn't work with the HotSpot JVM - use the Classic, and it (may) work. --peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 6:04 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Thanks Marcel, Indeed I get more information when I start with -Xprof, however when I use the -Xrunhprof I get the following error (the total command is also included): Funny !!!, Eddie -- # # HotSpot Virtual Machine Error, Internal Error # Please report this error at # http://java.sun.com/cgi-bin/bugreport.cgi # # Error ID: 4D555445583F4C494E55580E4350500104 # # Problematic Thread: prio=1 tid=0x804dcd8 nid=0x4c99 runnable # -- Start command: --- su -l program --command='/usr/local/java/bin/java -Xrunhprof -jar /opt/Orion/orion.jar -config /opt/Orion/config/server.xml /opt/Orion/log/out.log 21 - Original Message - From: Marcel Schutte [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, May 17, 2001 11:48 AM Subject: RE: Orin cpu usage ??? Hi Eddie, You could try to use the JVM profiler (startup arguments -Xprof and -Xrunhprof). This is ofcourse not orion specific, but you can give it a try. You can also try leaving out parts of your application until you find the bit that's causing your problem. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie Sent: Thursday, May 17, 2001 10:11 AM To: Orion-Interest Subject: Re: Orin cpu usage ??? Can someone please answer this question !!!??? The problem I am having is the Orion sometimes hangs, it uses a lot of cpu and I can't figure out why, so I need some advices on how I can monitor this. Please... ?? Eddie - Original Message - From: Eddie [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, May 16, 2001 11:42 AM Subject: Orin cpu usage ??? Can someone please tell me how to monitor the cpu usage of Orion in detail per component/item/application ? When I use orionconsole I can only view the overall memory usage of all application, but that's it. With top I see it is using a lot of cpu time: about 50 percent. But I want more information, how do I get that ?? Eddie
Pet Store Clustered on Orion
Hello, Has anyone successfully been able to cluster the Pet Store Demo successfully? I have set everything up and I can see the Orion 1 server passing the session id and information to the Orion 2 server,then when I kill Orion 1 I see my loadbalancer reconnects me to Orion 2, but when I try to complete my transaction, I get a 500 Error. Thanks, BrandyGet your FREE download of MSN Explorer at http://explorer.msn.com
EJB callbacks to clients
Is it possible for a client to pass an RMI object as an argument to an EJB so that the EJB may callback the client? I saw a couple message regarding this in the archive but I didn't see any definitive answers. I tried it and my client spit out the following exception: java.rmi.RemoteException: Error (de-)serializing object: __Proxy0; nested excepion is: java.io.NotSerializableException: __Proxy0 java.io.NotSerializableException: __Proxy0 no stack trace available The EJB spec says arguments must be valid RMI/IIOP types, aren't Remote object references valid RMI types? I even made the adjustments to use a PortableRemoteObject rather than UnicastRemoteObject, so I'm using IIOP rether than JRMP. Regardless I get exactly the same exception. Anyone have any luck getting callbacks to work? Am I missing something obvious here? Russ
Re: Orion and Security
As I understood the question, he is interested in storing the actual permissions in a database, not just the user info. This kind of thing is required if you are using a java client which needs to be able to gray out menus and other UI, based on what the current user is allowed to do. The only way that I have found to do this is either to read your deployment descriptior, and store the retrieved permissions to the database. If anyone has a better solution, I'd be interested to hear it. Mike - Original Message - From: Joseph B. Ottinger [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, May 18, 2001 5:21 AM Subject: Re: Orion and Security Doug, you're describing something well within J2EE's role specification's capabilities; just define roles that can get to a given resource, assign users to those roles, and then store those users in a database. For a simple example, see http://adjacency.org/atm/ -- it's still being written at the moment, but it's becoming more complete daily, and already covers user security in principals.xml and the EJBUserManager. Also, www.orionsupport.com has docs on using the data-store usermanager. On Thu, 17 May 2001, Doug Pham wrote: Hi All, Customer security is the question here. Has anyone develop a security system where all the information is located in the relational database. I would like the security to be held at the application server but as we go into each restricted page, it will send the page info to the securityManager which will send back the response privileges where the page can determine from there. Basically the secuityManager is at the server level and will hold all the security information for a particular user for all the applications available for that server. Thanks Doug Pham --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant