Re: running Orion as a daemon
http://www.orionsupport.com/articles/downloads/orion - Original Message - From: Oleg Bivol To: Orion-Interest Sent: Thursday, March 14, 2002 1:31 PM Subject: running Orion as a daemon Hi list, We have a remote Linux machine and we need to remotely launch Orion in background (as a daemon) on that machine. We tried doing it using: java -jar orion.jar or java -jar orion.jar ^Z under Linux, but it doesn't seem to work well. Any help is greately appreciated. Best regards,Oleg Bivol.--Software DevelopmentCompudava.com (http://www.compudava.com)Republic of Moldova, Chisinau, Columna 131Tel: (022) 245010 114, (029) 432117
Re: Bug?!
You need to update your filter, the 1.5.2 was buit on not yet finished servet 2.3 spec while the 1.5.4 is based on the latest and finished servlet 2.3 spec. Your generic filter should now looks like this: import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse; public class GenericFilter implements javax.servlet.Filter{ private FilterConfig filterConfig; public void doFilter(final ServletRequest request, final ServletResponse response, FilterChain chain) throws java.io.IOException, javax.servlet.ServletException { chain.doFilter(request, response); } public FilterConfig getFilterConfig() { return filterConfig; } public void init(FilterConfig config) { this.filterConfig = config; } public void destroy() { this.filterConfig = null; }} - Original Message - From: Linus Larsen To: Orion-Interest Sent: Wednesday, March 13, 2002 12:21 PM Subject: Bug?! Updating from 1.5.2 to 1.5.4Everything seems to work just fine except for one thing. When I use a Filter mapped to one of my servlets a strange error occures. Orion throws a java.lang.NoClassDefFoundError: javax/servlet/Config In my code I have no references to that class. And for all I know there are no such class. Shouldn't it be javax/servlet/ServletConfig instead?/Linus
Re: Wow. It seems that 1.5.4 is released!!!
See changes.txt -- 1.5.4 -- Added support for local interfaces Added support for many to many relationships Added support for cascade-deletes Added support for automatic primary keys (primary key class set to java.lang.Object) Added windows security workaround patch Fixed #188 JMS publish messages for autostarted clients Fixed #197 finder method for non-existent ejb is not detected Fixed #348 Class-Path: ignored in (unpacked) ejb-jar Manifest file Fixed #349 Orion crashes when using primary keys in an incorrect way Fixed #418 Class _yw has missing access specifier Fixed #480 Remote JMS Subscriber TopicConnection.start() hangs Fixed #493 JMS TextMessage with not text gives nullpointer exception wh... Fixed #495 staleness parameter in DataSourceUserManager not implemented Fixed #511 Problem receiving messages from a TopicSubscriber when run a... Fixed #515 Tag library variable declaration Fixed #531 EJB 2.0 PFD 2 feature run-as not implemented properly Fixed #532 findByPrimaryKey fails when EJB has exclusive-write-access=false Fixed #533 Taglib null parameters are handed as null Fixed #534 Wrong exception when roleManager.addToRole(...) is called with a null argument Fixed #541 use-caller-identity tag doesn't conform to sun dtd Fixed #568 incorrect max-tx-retries default Fixed #569 Can't map servlet to *.db.htm Fixed #575 Incorrect security exception when using JNDI Fixed #576 array return types from taglibs not handled correctly Fixed #582 ServletContext.getRequestDispatcher() handles non-existing JSP Fixed #587 call to MessageDrivenContext.setRollbackOnly fails Fixed #593 Can't send JMS messages from the init() method of a servlet Fixed #611 CGI servlet errors Fixed #619 Problem with HttpSession.invalidate() Fixed #620 request.getServletPath() returns null if servlet is handling... Fixed #626 Problem with conversion from literal String to object Fixed #628 Memory leak using JMS Fixed #632 jsp:param tag does not accept request time attributes Fixed #637 application code causes a NPE in container-generated code Fixed #646 Generated source for jsp is saved in a file whose name does... Fixed #650 popBody in PageContext should not be abstract Fixed #660 Log JSP compilation errors in a log file Fixed #663 Child applications do not have proper user manager hierarchy Fixed #664 EJBUserManager has unimplemented functions Fixed #665 Cannot use java option -Xfuture Fixed #669 Orion JMS hanging intermittently on Message send/receive Fixed #679 ejbStore and dirty detection problem (EJB CMP2) Fixed #680 method ServletRequest.getParameterMap() not implemented acco... Fixed #693 Classloader gives highest priority to WEB-INF/lib
Re: Weird behaviour: Orion 1.5.3 / Postgres 7.2RC2 / RH7.2
Title: Re: Weird behaviour: Orion 1.5.3 / Postgres 7.2RC2 / RH7.2 THANKS SO MUCH !!! Damn i lost 2 days switching OS,Jvm,DB, debugging code etc cause of this freaking Ipchains. Again thank you very much. Best regards - Original Message - From: Mike Cannon-Brookes To: Orion-Interest Sent: Sunday, February 03, 2002 3:50 AM Subject: Re: Weird behaviour: Orion 1.5.3 / Postgres 7.2RC2 / RH7.2 Christian,This may be a shot in the dark but had a very similar problem on one of our servers. Are you running Orion on a non-privileged port and using ipchains to map (say port 80 to port 8000?) If so, the problem is with ipchains. We moved to using iptables and it works perfectly now.As I said, may be a shot in the dark but it might be the problem.Cheers,MikeMike Cannon-Brookes[EMAIL PROTECTED]Atlassian :: www.atlassian.comSupporting YOUR worldOn 3/2/02 3:47 AM, "Christian Meunier" ([EMAIL PROTECTED]) penned the words: Hi,i re installed my server yesterday, upgrading mainly the os and some hardware.I got like 30 000 visit / day with 2Millions hitsthe os is : RH 7.2, the cpu is an athlon 600MHz with 1.5Go SDRAMgot an Adaptec raid controller 3200S ( one array in raid 1)Top snapshot:--4:41pm up 2:43, 1 user, load average: 62,01, 58,01, 48,15262 processes: 230 sleeping, 32 running, 0 zombie, 0 stoppedCPU states: 15,4% user, 84,5% system, 0,0% nice, 0,0% idleMem: 1544452K av, 492688K used, 1051764K free, 62064K shrd, 36688K buffSwap: 2096472K av, 0K used, 2096472K free 171564K cachedPID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND3075 orion 18 0 14584 14M 2928 R 1,3 0,9 0:02 java3073 orion 17 0 14584 14M 2928 R 1,2 0,9 0:01 java3074 postgres 15 0 21864 21M 21156 R 1,2 1,4 0:02 postmaster3093 orion 18 0 14584 14M 2928 R 1,2 0,9 0:01 java1710 orion 17 0 77860 75M 2976 S 1,1 4,9 0:27 java3000 root 17 0 1184 1184 836 R 1,1 0,0 0:06 top3076 postgres 17 0 21192 20M 20516 R 1,1 1,3 0:01 postmaster3095 postgres 16 0 21696 21M 20996 R 1,1 1,4 0:01 postmaster2463 postgres 11 0 45404 44M 43936 S 1,0 2,9 0:29 postmaster1509 orion 12 0 77812 75M 2976 R 0,9 4,9 0:28 java1511 orion 11 0 77812 75M 2976 R 0,9 4,9 0:29 java1585 orion 18 0 77860 75M 2976 R 0,9 4,9 0:25 java2240 orion 13 0 77900 75M 65396 S 0,9 4,9 0:23 java2652 orion 11 0 77900 75M 63556 S 0,9 4,9 0:13 java2734 orion 20 0 77900 75M 55948 R 0,9 4,9 0:09 java3031 postgres 20 0 33344 32M 32188 R 0,9 2,1 0:03 postmaster3126 postgres 13 0 27988 27M 27300 S 0,9 1,8 0:00 postmaster2173 orion 9 0 77900 75M 65396 S 0,8 4,9 0:18 java2182 orion 12 0 77900 75M 65396 S 0,8 4,9 0:21 java2184 orion 14 0 77900 75M 65396 S 0,8 4,9 0:22 java2484 orion 10 0 77900 75M 63556 S 0,8 4,9 0:17 java2505 orion 11 0 77900 75M 63556 S 0,8 4,9 0:11 java2687 orion 10 0 77900 75M 55948 S 0,8 4,9 0:11 java2886 postgres 14 0 28032 27M 26520 S 0,8 1,8 0:09 postmaster2959 postgres 16 0 33128 32M 31984 R 0,8 2,1 0:04 postmaster---I was used to handle the load perfectly well and now its messy and i have no clue why.I wonder why i have a system cpu state so high, leading to a very very high load average.for this snapshot i started orion with no argument ( java -jar orion.jar)As for postgres ( max backend set to the default 32):tcpip_socket = trueshared_buffers = 16384sort_mem = 4096wal_buffers = 2048wal_files = 3If someone has some ideas or tips to find out whats going on...Thx in advanceBest regards
Weird behaviour: Orion 1.5.3 / Postgres 7.2RC2 / RH7.2
Hi,i re installed my server yesterday, upgrading mainly the os and some hardware. I got like 30 000 visit / day with 2Millions hits the os is : RH 7.2, the cpu is an athlon 600MHz with 1.5Go SDRAM got an Adaptec raid controller 3200S ( one array in raid 1) Top snapshot: -- 4:41pm up 2:43, 1 user, load average: 62,01, 58,01, 48,15262 processes: 230 sleeping, 32 running, 0 zombie, 0 stoppedCPU states: 15,4% user, 84,5% system, 0,0% nice, 0,0% idleMem: 1544452K av, 492688K used, 1051764K free, 62064K shrd, 36688K buffSwap: 2096472K av, 0K used, 2096472K free 171564K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND3075 orion 18 0 14584 14M 2928 R 1,3 0,9 0:02 java3073 orion 17 0 14584 14M 2928 R 1,2 0,9 0:01 java3074 postgres 15 0 21864 21M 21156 R 1,2 1,4 0:02 postmaster3093 orion 18 0 14584 14M 2928 R 1,2 0,9 0:01 java1710 orion 17 0 77860 75M 2976 S 1,1 4,9 0:27 java3000 root 17 0 1184 1184 836 R 1,1 0,0 0:06 top3076 postgres 17 0 21192 20M 20516 R 1,1 1,3 0:01 postmaster3095 postgres 16 0 21696 21M 20996 R 1,1 1,4 0:01 postmaster2463 postgres 11 0 45404 44M 43936 S 1,0 2,9 0:29 postmaster1509 orion 12 0 77812 75M 2976 R 0,9 4,9 0:28 java1511 orion 11 0 77812 75M 2976 R 0,9 4,9 0:29 java1585 orion 18 0 77860 75M 2976 R 0,9 4,9 0:25 java2240 orion 13 0 77900 75M 65396 S 0,9 4,9 0:23 java2652 orion 11 0 77900 75M 63556 S 0,9 4,9 0:13 java2734 orion 20 0 77900 75M 55948 R 0,9 4,9 0:09 java3031 postgres 20 0 33344 32M 32188 R 0,9 2,1 0:03 postmaster3126 postgres 13 0 27988 27M 27300 S 0,9 1,8 0:00 postmaster2173 orion 9 0 77900 75M 65396 S 0,8 4,9 0:18 java2182 orion 12 0 77900 75M 65396 S 0,8 4,9 0:21 java2184 orion 14 0 77900 75M 65396 S 0,8 4,9 0:22 java2484 orion 10 0 77900 75M 63556 S 0,8 4,9 0:17 java2505 orion 11 0 77900 75M 63556 S 0,8 4,9 0:11 java2687 orion 10 0 77900 75M 55948 S 0,8 4,9 0:11 java2886 postgres 14 0 28032 27M 26520 S 0,8 1,8 0:09 postmaster2959 postgres 16 0 33128 32M 31984 R 0,8 2,1 0:04 postmaster --- I was used to handle the load perfectly well and now its messy and i have no clue why. I wonder why i have a system cpu state so high, leading to a very very high load average. for this snapshot i started orion with no argument ( java -jar orion.jar) As for postgres ( max backend set to the default 32): tcpip_socket = true shared_buffers = 16384 sort_mem = 4096 wal_buffers = 2048 wal_files = 3 If someone has some ideas or tips to find out whats going on... Thx in advance Best regards
Re: Pet Store 1.3 and Orion
No, local interface are not yet supported by Orion 1.5.3 - Original Message - From: Jean-Guillaume LALANNE [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, January 11, 2002 11:19 AM Subject: Re: Pet Store 1.3 and Orion - Original Message - From: Jean-Guillaume LALANNE [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 4:38 PM Subject: Pet Store 1.3 and Orion Hi, Has anybody tried to install the sun pet store 1.3 app work on orion ? It seems that my orion version doesn't take into account the EJB2.0 localhome feature. Does the last one (1.5.3) do it ? Thanx Jean-Guillaume LALANNE
Re: Bug #437
little out of topic but speaking of apache as front end for Orion, anyone figured out how to use APJ13 API between Apache Orion ? - Original Message - From: Sebastiano Pilla [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, December 06, 2001 6:00 PM Subject: Bug #437 I'm using OC4J 1.0.2.2.1 behind Apache 1.3.22 on Windows 2000; Apache is set up as frontend to Orion, and the configuration of both components is as documented. Apache has both ProxyPass and ProxyPassReverse for the path my application is mapped to, Orion has in default-web-site.xml the correct frontend host=... port=... / tag. Yet as soon as I try to send a redirect message to the browser, I get the error mentioned in http://bugzilla.orionserver.com/bugzilla/show_bug.cgi?id=437: the host attribute of the frontend tag is ignored, and 127.0.0.1 is used instead. This is a showstopper for me (as in this particular situation using a forward can be even trickier), so has anyone found a workaround for this bug? Currently I'm thinking of parsing the XML configuration myself, and do a sendRedirect with an absolute URL built this way... But there must be a better way. Any help is appreciated. Sebastiano Pilla E-TREE S.p.a. Via Fonderia 43 - 31100 Treviso (Italy) phone +39.0422.3107 fax +39.0422.310888 http://www.e-tree.com http://www.webanana.com
Re: session bug
i have the same issue - Original Message - From: "Denis Kranjcec" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Tuesday, September 18, 2001 1:44 PM Subject: session bug Hello everyone! I think I have found bug in orion 1.5.2. There is problem with sessions. When I invalidate session and then get new session, sometimes (not always) I get same invalidated session. Does anybody have same problem? Any solution except that I remove all data from session? Thanks in advance. Here is code that demonstrates bug: session = request.getSession(true); System.out.println("session = request.getSession(false);\t" + session.hashCode()); System.out.println("session = " + session); session.invalidate(); System.out.println("session.invalidate();\t" + session.hashCode()); System.out.println("session = " + session); session = request.getSession(); System.out.println("session = request.getSession();\t" + session.hashCode()); System.out.println("session = " + session); Orion's output: session = request.getSession();2935133 session = HTTP Session AKAEMHOGAJOD session.invalidate(); 2935133 session = HTTP Session AKAEMHOGAJOD session = request.getSession(); 2935133 session = HTTP Session AKAEMHOGAJOD Exception is java.lang.IllegalStateException: Session was invalidated at com.evermind.server.http.EvermindHttpSession.setAttribute(Unknown Source) at isvu.kadrovska.web.command.LoginCommand.execute(LoginCommand.java:161) at isvu.kadrovska.web.Kadrovska.doPost(Kadrovska.java:183) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind._cxb._abe(Unknown Source) at com.evermind._cxb._uec(Unknown Source) at com.evermind._io._twc(Unknown Source) at com.evermind._io._gc(Unknown Source) at com.evermind._if.run(Unknown Source) With tomcat everything works OK. Tomcat's output: session = request.getSession();7616245 session = org.apache.tomcat.session.StandardSession@7436f5 session.invalidate(); 7616245 session = org.apache.tomcat.session.StandardSession@7436f5 session = request.getSession(); 4461550 session = org.apache.tomcat.session.StandardSession@4413ee Denis Kranjcec
Re: cant start orion after the auto update.....
I tried that and the auto update done nothing at all. I then tried something simple : got a fresh copy of 1.4.5 from orionserver installed it ( java -jar orion.jar -install) - Orion worked well (default orion webpage) then i updated it ( java -jar autoupdate.jar) and when i tried to start it again i got the same following error. Config : Win2000 Pro - Ibm jdk 1.3.0 What is weird is it seems that im the only one to get this error - Original Message - From: Anders Dahlberg [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, April 27, 2001 12:33 AM Subject: Re: cant start orion after the auto update. At 00:55 2001-04-28, you wrote: Hello all, i just updated to 1.4.8 and now i get an error using : java -jar orion.jar i got the following error : java.lang.NoSuchMethodError: org.xml.sax.Attributes: method getQName(I)Ljava/lang/String; not found at org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139) at org.apache.crimson.tree.XmlDocumentBuilder.startElement(XmlDocumentBuilder.j ava:463) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433) at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:1 79) at com.evermind._yw.getJavaxDocument(Unknown Source) at com.evermind.xml.XMLUtils.getDocument(Unknown Source) at com.evermind.xml.XMLConfig._iw(Unknown Source) at com.evermind.xml.XMLConfig._iw(Unknown Source) at com.evermind._kh.run(Unknown Source) at java.lang.Thread.run(Thread.java:498) at com.evermind._jw.run(Unknown Source) i dont even use crimson. Any idea ? Thx in advance Chris Ps: i moved the principals.xml reference to config/application.xml run autoupdate again, and it works
RMI security policy while using Jsp / Orion 1.4.7
Hi, im trying to connect from a jspto armi server. i done it succesfully with a stand alone client passing new security policy file in as an argument: (java -Djava.security.policy=test.policy myRMIClient) Now when i try to connect to my rmi server from a jsp, i keep having the following error: Exception occured: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve) i started orion passing the same security policy : java -Djava.security.policy=test.policy -jar orion.jar and i though it should work, obsiouly it's not enough. Any idea how i can grant permission to my jsp to connect to a rmi server ? Thx in advance.
Class cast exception....
Hi all, i got a class cast exception trying to use an instance of an object throught 2 jsp pages or so. dumb example: fct.jsp: --- %!public class Website{private int num;private String nom; public Website(){this.num=100;this.nom="example";}}% ess.jsp: %@ include file="/fct.jsp" %%@ page import="java.util.*"%%Website ess=new Website();Vector v=new Vector();v.add(ess);session.setAttribute("essai",v);System.out.println(ess.getClass().getName());% ess2.jsp --- %@ include file="/fct.jsp" %%@ page import="java.util.*"%%Vector v=(Vector)session.getAttribute("essai");Website ess=(Website)v.get(0);% = i first load ess.jsp and got the following in log: __jspPage2_ess_jsp$Website =When i load ess2.jsp i got a class cast exception and when i check the class name : __jspPage2_ess_jsp$Website How i can bypass this trouble and why the class name is not Website and thats all ? Thx in advance for ur help. Chris
Re: Port forwarding
You should use the port forwading module with ipmasqadm instead : ipmasqadm portfw -a -P tcp -L your_ip 80 -R your_ip 10080 type: ipmasqadm portfw for the complete usage. IMHO, to seperate forwarding stuff and firewall rules using ipchains and portfw is better. - Original Message - From: "David Morton" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Monday, January 22, 2001 5:15 PM Subject: Port forwarding Has anybody gotten port-forwarding to work? I want orion to run as non-root user on Linux.I did see: http://www.orionsupport.com/articles/unixprocess.html The following is an excerpt: IP Chains (ipfw) IP Chains is a program that comes with recent versions of Linux that uses the ipfw library to specify rules for TCP/IP packets. For information about using it, refer to the howto. Here's a simple rule to tell all incoming TCP packets destined for port 80 to be forwarded to port 10080: [root@myhost]$ ipchains -A input --destination-port 80 -p tcp -j REDIRECT 10080 Warning: Use ipchains at own risk... You are recommended to read the documentation first, and have the machine in easy reach. This command needs to be executed each time the system is booted, so you may want to place it in a startup file somewhere. I tried ipchains rule with one change: ipchains -A input -d 192.168.0.4 80 -p tcp -j REDIRECT 10080 it didn't work. any suggestions? If anyone has working on one ip only (on a machine that has multiple ips like mine)...please send output of 'ipchains -L'...and any other ipmasqadm table output... Thanks David
Netscape and Referer...
Hi all, In my app im using referes a lot and that works perfectly under IE. The request.getHeader("Referer") returns what it should be. However , under netscape, request.getHeader("Referer") always returns the NULL value. Any tips ? Thx in advance.
Re: New howto on OrionSupport: Using JDBC from Servlets
I would like to comment the article on one point, its really important to use Try{}Finally{} blocks to ensure that the connection will return to the pool. In the example, if the sql throws an exception, the connection ll never return to the pool. However in this code, the connection ll return to the pool: % Context ctx = (Context) new InitialContext(); DataSource ds = (DataSource) ctx.lookup("jdbc/TestDS"); Connection conn = ds.getConnection(); try { Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT name FROM staff"); while ( rs.next() ) out.println( rs.getString("name") + "br" ); } finally { conn.close(); } %
Orion Server and Ports...
Hi, When i start Orion, 2 ports r opening : 80 for www ( that is ok) 23791 for ? (Servlet Engine or something similar i guess) What is really strange and annoying, is that the port 23791 seems to accept connection from outside. Can someone clarify the use of this port and the security related to it please ? Thx in advance.