Re: Sharing datasource
Yes, that is true. At the moment, there is no EJB clustering in Orion, although it may appear in future versions. Cheers, Scott Linus Larsen wrote: If the same EJB application is running on lets say two servers, and are sharing the same datasource. Do I have to configure the orion-ejb- jar.xml and set the exclusive-write-access=false for every entity deployment (on both servers) sharing the datasource, to avoid inconsistency in the EJBCaching? regards /linus -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: Cluster configuration
This document will be of help: http://kb.atlassian.com/content/orion/docs/http-clustering.html Cheers, Scott sbpodila wrote: Hi all, Can anybody explain the procedure for cluster configuration in Orion server for web applications. -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: RV: Some questions about orion-ejb-xml.jar
The correct place is to place them in the META-INF directory, next to your other deployment files. It *used* to be the orion directory, but that was changed a long time ago. This tutorial should help you understand the orion xml files more: http://kb.atlassian.com/content/atlassian/howto/orionxml.jsp Cheers, Scott Andrés Escudero Apesteguía wrote: I've been testing Orion the last three weeks. In Orion web, I've read to put orion-ejb-jar.xml under orion directory for an EJB. In some other sites, this file must reside under META-INF directory. Which is the correct place to put orion-ejb-jar.xml? I've assumed that the correct answer to my first question is orion. When Orion deploys my application, it respects some of the parameters I've written, but it deletes some of them. Can anyone help me on this problem? And the last question. Is there any relation between orion-ejb-jar.xml, ejb-jar.xml (under META-INF), and the parameters location and name of an EJB. I've tried to put a location which was different to its ejb name and Orion has not noticed the change. Thank in advance, Andrés. Andrés Escudero Apesteguía TB Solutions Desarrollo eBanking [EMAIL PROTECTED] tlf: +34 948 173 319 fax: +34 948 172 235 web: http://www.tb-solutions.com http://www.tb-solutions.com/ -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: Error while accessing http://localhost
This sounds like you have some very serious problems. http://java.sun.com/j2se/1.3/docs/api/java/lang/IllegalAccessError.html I would try reinstalling - I haven't seen this error before. Cheers, Scott Dinesh Kandambeth wrote: Dear All, I have installed Orion 1.5.2 and started the same on my machine.When I tried this url http://localhost then the followong error was shown. Could anyone help please. 500 Internal Server Error java.lang.IllegalAccessError: com/evermind/server/http/EvermindHttpServletRequest void com.evermind[Orion/1.5.2 (build 10460)]._ah._upb(javax.servlet.ServletRequest, javax.servlet.ServletResponse, java.io.File, com.evermind[Orion/1.5.2 (build 10460)].util.ByteString, boolean, com.evermind[Orion/1.5.2 (build 10460)]._si) void com.evermind[Orion/1.5.2 (build 10460)]._cvb._uec(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse) boolean com.evermind[Orion/1.5.2 (build 10460)]._io._twc(com.evermind[Orion/1.5.2 (build 10460)].server.ApplicationServerThread, com.evermind[Orion/1.5.2 (build 10460)].server.http.EvermindHttpServletRequest, com.evermind[Orion/1.5.2 (build 10460)].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean) void com.evermind[Orion/1.5.2 (build 10460)]._io._gc(java.lang.Thread) void com.evermind[Orion/1.5.2 (build 10460)]._if.run() Have a nice day and take care. Hope to hear from u soon Cheers, Dinesh - Live life in T-Motion. Get an SMS alert to your mobile every time you get an email. That's ANY mobile phone. Register for FREE with T-Motion at www.t-motion.co.uk to access your own bookmarks and contacts via web and WAP - -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: How can I simplify a URL?
Just have one directory level. eg: http://view.myprofiles.com/p/127 Then map the servlet to /p* That avoids problems with images. Cheers, Scott Alex Paransky wrote: I have a url which looks like this: http://www.myprofiles.com/view.do?profileId=127 I would like to be able to replace it with: http://view.myprofiles.com/127 I know how to create a new website with view.myprofiles being serviced by orion. I am just not sure how to map the /127 to execute /view.do?profileId=127. I was thinking of mapping a servlet to / context, however, the concern I have is that if there are any images I don't want to servlet to process them. Also, will the jsp:include work correctly with this scenario? Thanks for any suggestions. -AP_ http://www.alexparansky.com Java/J2EE Architect/Consultant http://www.myprofiles.com/member/view.do?profileId=127 -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: Creating a Service for launching Orion in Windows 2000
There are many ways of running as a service documented here: http://kb.atlassian.com/content/orionsupport/articles/orserv.html Cheers, Scott Matt Siegfried wrote: I have followed the steps I found in the posting on OrionServer.com to create a service that will automatically launch Orion, but I have not managed to make this work. Currently the Dos window must stay open to keep Orion initialized. I do not want to have this dos window always open. How can I solve this? If anyone has done this before, I would really appreciate all the information you could give to accomplish this. Thank you Matt -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: FW: Bean to remote bean communication... (2nd try)
You should use RMIInitialContextFactory. ApplicationClientInitialContextFactory is only for application clients. Also - you cannot look up java:comp/env/ from outside the container. Don't bother prepending it. If you are using remote=true for your ejbs, you do not need to look up the remote server yourself - this is done by the container. The following document may be of help to you: http://kb.atlassian.com/content/orion/docs/remote-access/remote-access.html If you need further help - try asking a question on our forums: http://forums.atlassian.com Cheers, Scott Chris Francis wrote: I originally posted this at elephantwalker but have had little response, hopefully someone here has some ideas... I'm trying to lookup a bean on a remote machine. I set up initial context in usual way using properties taken from the jndi.properties on the remote oc4j server. In fact I want to lookup the bean from within a web-app (or ejb) installed on a local oc4j server. When I attempt it all I get is NullPointerException: domain was null. Does anyone know what this means? Some more info: I do the lookup programmatically. If I run it as a standalone client (not what I want to do) I get an error telling me the Factory can't find application-client.xml - this is not surprising as it's not on my classpath. Running from local container gives the error above. I have added an entry to orion-application.xml: ejb-module remote=true path=myremoteapp-ejb / and entries for the beans deployed there into my local oc4j servers' application-client.xml Here's the code I'm using to do the lookup: Hashtable env = new Hashtable(); env.put(java.naming.provider.url, ormi://remotemachineIP:rmiport/myremoteapp); env.put (java.naming.factory.initial, com.evermind.server.ApplicationClientInitialContextFactory); env.put(java.naming.security.principal, myremoteapp); env.put(java.naming.security.credentials, password); targetEJB_URI = java:comp/env/ + targetEJB_URI; EJBHome ejbRef = null; Context ic = new InitialContext(env); //ejbRef = (EJBHome)PortableRemoteObject.narrow(ic.lookupLink (targetEJB_URI), EJBHome.class); ejbRef = (EJBHome) ic.lookupLink (targetEJB_URI); One other thing is if I use the RMIInitialContextFactory instead then the context lookup works if I'm running as a standalone client. I then only get a naming exception since it can't see application-client.xml Any help appreciated. Thanks, Chris. -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: Deploy war file
Although it describes adding a war and not an ear, this documentation may be of help: http://kb.atlassian.com/content/orionsupport/articles/addwebapp.html Just change application=default to application=Metricas in you default-web-site.xml file. Cheers, Scott Montiel, Erika wrote: Hi, I tried to deploy a .war file in the application server. I asummed that when I deploy the .ear file the war is intalled, but when I tried to run a servlet I can doit Could somebody help me with this? Thanks a lot I modified the server.xml and looks like this ?xml version=1.0? !DOCTYPE application-server PUBLIC -//Evermind//DTD Orion Application-server//EN http://xmlns.oracle.com/ias/dtds/application-server.dtd; application-server application-directory=../applications deployment-directory=../application-deployments library path=../tools.jar / rmi-config path=./rmi.xml / jms-config path=./jms.xml / log file path=../log/server.log / /log transaction-config timeout=3 / global-application name=default path=application.xml / application name=Metricas path=C:\j2ee\home\applications\Metricas.ear auto-start=true / global-web-app-config path=global-web-application.xml / web-site path=./default-web-site.xml / cluster id=-374524965 / /application-server -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: AJP12
AJP12 was in Orion, but was disabled due to bugs. Perhaps Oracle has fixed those bugs in their version re-enabled it. I have no idea if Ironflare are planning to fix this. Cheers, Scott Aaron Tavistock wrote: Last year at JavaONE Karl told me that Orion supported AJP12. I've tried mod_jk in several ways, tried looking for a place to set an AJP connector in Orion, and even poped open the orion.jar looking for a connector. It never worked - so I gave up many months ago. Now its becoming more important and I notice that the Oracle 9iAS supports AJP12. What gives? Karl? Magnus? AJP support? -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: How to display a directory using Orion as a webserver?
You need to turn directory browsing on: http://kb.atlassian.com/content/orionsupport/articles/dirbrowsing.html http://kb.atlassian.com/content/orion/docs/deployment/orion-web.xml.html Be sure to also read this: http://kb.atlassian.com/content/atlassian/howto/orionxml.jsp Cheers, Scott wzfg wrote: Hi, Can anyone tell me how can I display a directory use Orion as a WebServer? What I need set something and where or which file I need update and how to update? I checked all the conf files, but I did not find. Thanks a lot. -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: JDBC try/catch Pitfall ***MUST READ***
table_name FROM sequence; conn =((DataSource)jndiContext.lookup(jdbc/mySourceDS)).getConnection(); ps = conn.prepareStatement(sql); rs = ps.executeQuery(); if(rs != null rs.next()) { //This does call the finally returnValue = rs.getString(table_name); } } catch(NamingException ne) {} catch(SQLException sqle) { //This allso calles the finally if I break the quey sqle.printStackTrace(); } finally { //This one works normally System.out.println(Finally called in Close()); try { if(rs != null) rs.close(); if(ps != null) ps.close(); if(conn != null) conn.close(); } catch(SQLException sqle) { sqle.printStackTrace(); } } return returnValue; } public static void main(String[] args) { TryCatchTest tct1 = new TryCatchTest(); System.out.println(tct1.getColumnNoClose(): + tct1.getColumnNoClose()); System.out.println(tct1.getColumnClose(): +tct1.getColumnClose()); } } -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: Problem to deploy a application in a war file.
[EMAIL PROTECTED] wrote: P.D. do you know any comercial or free tools to admin Orion server? Whilst not a full administration suite, we provide tools that make working with Orion easier. http://www.atlassian.com/software/tools/ Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: ClassCastException while doing REMOTE ejb lookup from a web module
Most often this is caused by having a two different compiled versions of your class. Ensure that you have only one copy of the class available to your web-application. If you are using web ejb in the same container, then you can access the classes from the ejb layer in your web app. This document may help you understand where to put your classes: http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp Cheers, Scott [EMAIL PROTECTED] wrote: Hi, I am getting a ClassCastException when I try to narrow a lookup on a remote stateless session bean from a jsp page. My configuration is orion 1.5.4 with an application for the remote stateless session bean and an application for the web module. For testing purposes, I am running under the same instance of orion. Below is a snippet of code from the jsp page accessing the remote ejb. % KBKTestHome kbkHome = null; KBKTest kbkTest = null; Hashtable env = new Hashtable(); Context jndi = null; env.put(Context.INITIAL_CONTEXT_FACTORY, com.evermind.server.rmi.RMIInitialContextFactory); env.put(Context.PROVIDER_URL, ormi://localhost:23809/kbk-test-application); env.put(javax.naming.Context.SECURITY_PRINCIPAL, admin); env.put(javax.naming.Context.SECURITY_CREDENTIALS, 123); jndi = new InitialContext(env); kbkHome=(KBKTestHome)PortableRemoteObject.narrow( jndi.lookup(ejb/test),KBKTestHome.class); kbkTest = kbkHome.create(); String timeIs = kbkTest.getTime(); % I have modified my orion-application.xml file for the remote ejb to allow read and write namespace access to group RMI. I have also modified my principals.xml file for the remote ejb to give the group RMI rmi:login permissions. I beleive I am finding the home interface to the remote ejb successfully, but can't seem to cast it appropriately. I searched the mailing list archives and found a recent reference to what appears to be a similar problem (http://www.mail-archive.com/orion- [EMAIL PROTECTED]/msg17468.html) However, I did not find a resolution to the problem. Any help is appreciated. Kent Kvarfordt -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: classpath problem with ear file
This document is a good overview of classloaders in Orion. http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp What Alex says is basically correct - for classes that need to be accessed by your EJBs - either package them in the same jar, or use manifest classloading. You can optionally use a lib include, but that is not portable across application servers. Cheers, Scott Alex Paransky wrote: Roxanne: I am not quite sure that this was the correct solution. Ideally, you should not have to configure ANY path's in your orion-application.xml file. The .ear is capable of configuring any dependency you wish. In general, if you have classes which are used only by your EJB's you have 2 options: 1. Package them into the same .JAR file as your EJBs 2. Package them into a separate file and use the classpath in the manifest for your EJB.jar To understand why you are having a problem, you need to read a little about how classloaders are used and what is their hierarchy. (Honestly, I don't remember where I found this information). At the base of it all is the system classloader. This is the one which uses CLASSPATH environment to identify location of classes. On top of it is your EJB-ClassLoader for a particular application. On top of the EJB-class loader is a WEB-ClassLoader for every web application you deploy. Thus if you put something into WEB-INF/lib your EJB-ClassLoader will not be able to find it. This is why you are getting this error. Re-evaluate your packaging scheme to avoid ANY library path configuration settings in orion-application.xml I have developed an application which uses .EAR with a number of .WAR's and a number of EJB .JARs without having to configure any additional paths. This really makes deployment easy. -AP_ http://www.alexparansky.com http://www.alexparansky.com/ Java/J2EE Architect/Consultant http://www.myprofiles.com/member/view.do?profileId=127 -Original Message- *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]*On Behalf Of *Roxanne Tapia *Sent:* Thursday, April 04, 2002 7:49 AM *To:* Orion-Interest *Subject:* Re: classpath problem with ear file Thanks! That worked A further note - for anyone who has the same sort of problem, here's what I did; I changed the orion-application.xml file to say: library path=WebModule/WEB-INF/lib/ / the path is relative to the .ear file, it took me a while to figure that out. I was trying to set the path from the j2ee/home directory. I just didn't get it. Thanks again! Roxanne Thomas Körner wrote: Hi, it is possible to set a library path in the orion-application.xml, which is only valid in application. Use the following tag and place your jar-files into the directory the path points towards. library path=./lib/ / Ciao TK - Original Message - From: Roxanne Tapia [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, April 03, 2002 7:38 PM Subject: classpath problem with ear file I am deploying an ear file, which contains a war file. The war file has a jar in the WEB-INF/lib directory. However, when I start the server, and it is deploying the ejb jars in the same application - it says it can't find the classes in that jar file. I saw this once before when some ancestor classes weren't found. My solution for that was to include those classes in each of the jar files. But in that case, there were only a couple of classes. Is there some sort of initialization step that doesn't include the jars in the web-inf/lib directory for the J2EE application? Where do I put these jars? I can't put them in j2ee/home/lib, becasuse they could be different between j2ee apps. Thanks for your help, Roxanne -- === Roxanne Tapia Bioscience Division (B-1) Los Alamos National Laboratory 505-665-0206 === -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: Werent current caller
Can you post the stack trace? Jeff Lowcock wrote: I'm getting this exception and message raised in the server when I'm attempting to create a new CMP instance. I cannot find any documentation on this message and way too much on the exception java.lang.InternalError, can anyone direct me to a source where I can identify possible sources of this error and where I'm going wrong. I've searched the Orion support site and the only mails I can find are for 0.9.4 and 0.9.6 versions, and none fo these mails actually describe the conditions I have. where to now? -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: How can I configuring a non-war web app without putting it under Orion dir?
This document should help you: http://kb.atlassian.com/content/orionsupport/articles/addwebapp.html Cheers, Scott DORAN, GRANT wrote: Hi, I have been trying to find documentation on how to configure orion to run a web application from a directory that isn't under orion\applications. The examples that I find in the documentation are either war files or under orion. I can't zip the application up as some of the files are referenced by dlls. I'm not having much luck getting the xml config file right. Is there any documentation on how to set this up? Is there an example anywhere? Thanks Grant Doran This email and any accompanying documents are intended only for the named recipient, are confidential and may be privileged. If you are not the intended recipient please notify us immediately by mailto:[EMAIL PROTECTED] and you must not copy, disclose or otherwise use this message. Unauthorised use is strictly prohibited and may be unlawful. The content of this email represents the view of the individual and not the company. The company reserves the right to monitor the content of all emails in accordance with lawful business practice. Whilst attachments are virus checked before transmission, Britannic Assurance plc does not accept any liability in respect of any virus which is not detected. Britannic Assurance plc, No.3002 is registered in England and maintains its registered office at 1 Wythall Green Way, Wythall, Birmingham B47 6WG. Telephone: 0870 887 0001 Fax: 0870 887 0002 Website: www.britannicassurance.com Britannic Assurance plc, Britannic Unit Linked Assurance Limited, Britannic ISA Managers Limited and Britannic Unit Trust Managers Limited are regulated by the Financial Services Authority. Each of these companies is a member of the Britannic marketing group which only advises on and sells its own life assurance, pension, unit trust and ISA products.
Re: How does passivation work?
Probably the easiest way to solve this would be to turn database logging on, and then see what SQL statements are being run on your db when Orion runs. Cheers, Scott Cristian Donciulescu wrote: I am interested to know how does Orion Container treat the ejbPassivate method of an CMP entity-bean. Does it by any chance Deletes a record in the DB and then recreates it? The problem I'm facing is the following: I have a one-to-many relationship in the DB. I have one entity bean (A) that has a List member. The list member contains objects of class B. If I reinforce the FK constraint between the tables entity A and class B are stored in, I get an Oracle error stating the there was a FK violation, there were child records found. If I create the child table with the ON DELETE CASCADE directive, the error dissapears, but in the DB the child record is deleted and only the parent remains. The error is thrown immediately after the ejbPassivate is called. This suggests that during passivation the parent record is deleted and recreated. When the tables are created with ON DELETE CASCADE this works, although the child is permanently deleted. Otherwise, when trying to delete the parent Oracle reacts with an error that is caught by me. Is all this true? If yes, is there any way around it? Thanks, Cristi -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: Local interfaces difference ???
There is a workaround that has been in Orion for a while - by specifying that your beans are executed in the same container, you save the marshalling remote calls that normal EJB uses. In orion-ejb-jar.xml, you can set copy-by-value=false, which will pass by reference instead. http://kb.atlassian.com/content/orion/docs/deployment/orion-ejb-jar.xml.html If you do any performance testing, please let me know the differences in speed. Of course - you can still use local interfaces to achieve the same thing. Cheers, Scott Eddie Post wrote: Hellu, Can someone tell me what the performance boost is when you change your remote and home interfaces to local interfaces with Orion 1.5.4 ? I did this but I know that with Bea you could already indicate if your beans and clients were located on the same machine such that it already had some kind of local workaround. I was wandering how Orion did and does this ?? Eddie _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: temporary SSL certificate
This article the annotations demonstrate how to -selfcert a certificate. http://kb.atlassian.com/content/atlassian/howto/verisigncertificate.jsp Cheers, Scott Matt McLaurin wrote: We are trying to generate our own SSL certificate to be used with orion until our request is processed or our real one. I was able to follow the instructions to get a test cert from Thawte, but I would like to generate my own instead of using a test one. Can anybody point me to some instructions on what is required to do this? Thanks Matt -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: MySQL Connection Pool?
This guide is a good start, although someone else may have a mysql specific setup that they would like to share. http://kb.atlassian.com/content/orion/docs/datasource-configuration/datasource-configuration.html Cheers, Scott Clay Mitchell wrote: Can anybody tell me how to set up a connection pool with a mysql database? Anybody have a guide on how to do this? Is it even possible? Thanks -Clay -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: shutdown problem
Jose, The script located in this article might be of help: http://kb.atlassian.com/content/orionsupport/articles/unixprocess.html Look under the heading Starting and Stopping. Cheers, Scott Jose Mena wrote: Hi, i 'm having problems when shuting down my orion server. It's an orion 1.5.2 under debian linux(2.2.17 kernel version). this is the command i launch to stop it: $JAVARUN -jar admin.jar ormi://localhost/ admin OptiPlex -shutdown force but sometimes it doesn't stop the server. do you know another way to stop it? thanks. -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
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. --
[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]
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: BMP Entity Bean Performance Problem
Tim, As I am not sure of the exact nature of your entity beans, I can't give you any detailed suggestions, but many people impement a 'dirty' flag in their code. eg: void setName(String name) { dirty=true; this.name = name; } ejbStore() { if (!dirty) return; else { doUpdate(); dirty=false; } } This limits the number of updates that you are doing. I assume that you have a very good reason for using BMP, but I would suggest that you use CMP where possible. The performance benefits are quite large. Cheers, Scott Tim Kang wrote: Hi I am using JSP (client) and BMP Entity beans (for mysql db) in my application. I am having a few problems in terms of performance. 1. When I call homeObject.findAll() for the first time, ejbLoad() is invoked for every row in the database. I know this only happens once so I can tolerate this but I am open to suggestions. 2. Once the entity beans are loaded, I call homeObject.findByPrimaryKey().getSomeAttribute(). This calls ejbStore() for every row in the database as well. This is not acceptable as the EJB is performing UPDATE * number of rows in DB. I tried to solve this by implementing a stateful session bean acts a middle layer between JSP and entity beans. However, the problem still exists My session bean code: public class PubcompanyManagerBean implements SessionBean{ private SessionContext context; private PubCompany pubcompany; private PubCompanyHome pubcompanyhome; public void ejbCreate() throws NamingException, RemoteException {} public void ejbRemove() {} public void ejbActivate() {} public void ejbPassivate() {} public void setSessionContext(SessionContext sc) { context = sc; } // Business logic methods public Collection getAllPubCompanies() throws NamingException, RemoteException, FinderException { Context context = new InitialContext(); pubcompanyhome = (PubCompanyHome)PortableRemoteObject.narrow( context.lookup(java:comp/env/crm/PubCompany), PubCompanyHome.class); Collection companyList = pubcompanyhome.findAll(); return companyList; } public PubCompany getPubCompany(String companyid) throws NamingException, RemoteException, FinderException { Context context = new InitialContext(); pubcompanyhome = (PubCompanyHome)PortableRemoteObject.narrow( context.lookup(java:comp/env/crm/PubCompany), PubCompanyHome.class); pubcompany = pubcompanyhome.findByPrimaryKey(companyid); return pubcompany; } } Thanks in advance, Tim -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World
Re: orion-ejb-jar.xml, ejb-jar.xml and deployment
Vipul, There is a new knowledge base document available describing how it work with orion-XXX.xml files. You can find it here: http://kb.atlassian.com/content/atlassian/howto/orionxml.jsp Cheers, Scott Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World The elephantwalker wrote: Vipul, Orion will not copy over an old orion-ejb-jar.xml file. So if you redeploy, if you don't blow away the previous deployment, you are still on the old file. This could be your problem. Regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vipul Sagare Sent: Tuesday, February 19, 2002 8:58 AM To: Orion-Interest Subject: orion-ejb-jar.xml, ejb-jar.xml and deployment I have seen discussion on this topic but I was not able to get working solution for me. Here is my problem: I have OC4J. I have an application where I have deployed few CMP EJBS. At present, there are NO orion-xxx.xml deployment descriptors(DD). Now, I would like to introduce orion specific DDs where I can use Orion specific tags (example: EJBs. CMP field name- UserName and persistence name- user_name). What is recommended/or correct process? The process I followed and did NOT work for me. - Deploy application. - Copy orion-ejb-jar.xml from deployment and just keep the EJB tag which I want change. Put this xml file at the same place as ejb.jar.xml - Change the EJB code. - Use ant to build .ear file and deploy. The changes in orion-ejb.jar.xml do NOT get into the deployed DD. I also came across Xdoclet. But could not proceed without any luck. Your help is appreciated. Thank you. Vipul __ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com --
Re: Where to put JAAS classfiles (loginmodules) when using it from a web app
Can I suggest the classloader documentation on the knowledge base: http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp Here is a search that would have found the doc: http://kb.atlassian.com/search.jsp?query=jre/lib/ext Cheers, Scott Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Geoff Soutter wrote: What about orion/lib? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Ismael Blesa Part Sent: Saturday, 26 January 2002 3:25 AM To: Orion-Interest Subject: Where to put JAAS classfiles (loginmodules) when using it from a web app Hi, I am using JAAS authentication from a web application, the problem is that the login modules that I use, and all the classes that the LoginModule uses are not loaded from the WEB-INF/classes or WEB_INF/lib folder. I have to put them on the jdk/jre/lib/ext. The problem is that the classes I put there collide with other applications that use the same installed JDK and also with some other webapplications that run on the same application server. I have developed it using jdk1.3.1 and JAAS 1.0. Is there a way to put specify where login module classes should be loaded that does not interfere with other applications (that is, I do not want to put any class on the jdk/ jre/lib/ext folder). Cheers --
Re: classpath issues??
You may be interested in this documentation on classloaders in Orion: http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp Cheers, Scott Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Jorge Jimenez C wrote: Another way of doing this: If your helper classes are part of a common library (i.e. may be used from other applications) you can put the jar in the orion/lib directory to maintain just one copy. I'm not sure if J2EE specifications says something about it, but it works in all servers I know. JJ - Original Message - From: Jacky Cheung [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 1:41 AM Subject: Re: classpath issues?? You can put allsrc.jar under WEB-INF/lib of your webapp. Or you can put the jar in ear and add an entry Class-Path: allsrc.jar in the manifest file of the ear. Best regards, Jacky - Original Message - From: Dan Ascheman [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, February 07, 2002 10:24 AM Subject: classpath issues?? Ok, I've created an application (.ear file) which has successfully been deployed, BUT my servlet in my .war file blows up on a runtime exception because it can't find it's base class, or helper classes. I have a .jar file called allsrc.jar that contains all classes in my system, and that resides in my .ear file - I thought that would be enough for my servlet to see it, but it's not. I tried putting the allsrc.jar in my d:\orion directory and it didn't work, and I tried referencing it in my classpath upon startup like this: java -cp=d:/orion/fwrk/allsrc.jar -jar orion.jar Nothing seems to work!! The only way I can get my servlet to successfully run is to unjar all of my classes into my web-inf/classes directory, and I don't want to do that. So, where do I put my allsrc.jar so my servlet can find the classes it needs to run?? thanks, Dan _ Chat with friends online, try MSN Messenger: http://messenger.msn.com --
Re: Weird behaviour: Orion 1.5.3 / Postgres 7.2RC2 / RH7.2
As you mentioned - it is the system processes that are the problem, not any applications that you are running. Redhat 7.2 is the 2.4 kernel, which is not entirely stable. There are also some problems with ipchains - use iptables instead. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Christian Meunier wrote: 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,15 262 processes: 230 sleeping, 32 running, 0 zombie, 0 stopped CPU states: 15,4% user, 84,5% system, 0,0% nice, 0,0% idle Mem: 1544452K av, 492688K used, 1051764K free, 62064K shrd, 36688K buff Swap: 2096472K av, 0K used, 2096472K free 171564K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 3075 orion 18 0 14584 14M 2928 R 1,3 0,9 0:02 java 3073 orion 17 0 14584 14M 2928 R 1,2 0,9 0:01 java 3074 postgres 15 0 21864 21M 21156 R 1,2 1,4 0:02 postmaster 3093 orion 18 0 14584 14M 2928 R 1,2 0,9 0:01 java 1710 orion 17 0 77860 75M 2976 S 1,1 4,9 0:27 java 3000 root 17 0 1184 1184 836 R 1,1 0,0 0:06 top 3076 postgres 17 0 21192 20M 20516 R 1,1 1,3 0:01 postmaster 3095 postgres 16 0 21696 21M 20996 R 1,1 1,4 0:01 postmaster 2463 postgres 11 0 45404 44M 43936 S 1,0 2,9 0:29 postmaster 1509 orion 12 0 77812 75M 2976 R 0,9 4,9 0:28 java 1511 orion 11 0 77812 75M 2976 R 0,9 4,9 0:29 java 1585 orion 18 0 77860 75M 2976 R 0,9 4,9 0:25 java 2240 orion 13 0 77900 75M 65396 S 0,9 4,9 0:23 java 2652 orion 11 0 77900 75M 63556 S 0,9 4,9 0:13 java 2734 orion 20 0 77900 75M 55948 R 0,9 4,9 0:09 java 3031 postgres 20 0 33344 32M 32188 R 0,9 2,1 0:03 postmaster 3126 postgres 13 0 27988 27M 27300 S 0,9 1,8 0:00 postmaster 2173 orion 9 0 77900 75M 65396 S 0,8 4,9 0:18 java 2182 orion 12 0 77900 75M 65396 S 0,8 4,9 0:21 java 2184 orion 14 0 77900 75M 65396 S 0,8 4,9 0:22 java 2484 orion 10 0 77900 75M 63556 S 0,8 4,9 0:17 java 2505 orion 11 0 77900 75M 63556 S 0,8 4,9 0:11 java 2687 orion 10 0 77900 75M 55948 S 0,8 4,9 0:11 java 2886 postgres 14 0 28032 27M 26520 S 0,8 1,8 0:09 postmaster 2959 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: Job Scheduler pattern
There is an interesting article on DevX regarding timer tasks. http://www.devx.com/premier/mgznarch/Javapro/2002/02feb02/eb0202/eb0202-2.asp It looks like it does what you want. Cheers, Scott Scott Farquhar [EMAIL PROTECTED] Atlassian :: www.atlassian.com Supporting YOUR world Geoff Soutter wrote: Hmm, want us to write it for you? But seriously, there are commercial apps for J2EE scheduling if that's the kind of thing you are after, just use google... Geoff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Justin Crosbie Sent: Saturday, January 26, 2002 2:49 AM To: Orion-Interest Subject: RE: Job Scheduler pattern Yes I have seen that, it is very bare-bones. It doesn't even use the Timer classes. I need to know how to make this robust. Thanks, Justin -Original Message- From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]] Sent: 25 January 2002 12:04 To: Orion-Interest Subject: Re: Job Scheduler pattern The www.orionsupport.com site has a sample scheduler that can easily be converted to do something like this. On Fri, 25 Jan 2002, Justin Crosbie wrote: Hi, I'm not sure if I've asked this before, or if I should be asking on a general EJB list. I'd like to implement a job scheduler in J2EE. This would shcedule the execution of EJB methods at a specified time in the future. It would have to be persistent, and jobsd would be rescheduled upon appserver restart. Is it as simple as using the Timer and TimerTask in java.util to implement an app that is started with the client-module tag? Does it matter as far as Orion goes whether I use a java.util.Timer as a daemon or not? What can I do if the app, or the Timer object dies at any stage? I've had problems where after some time something goes wrong I get a strange Remote Exception, and the only solution is to restart the VM. What might cause this? Any opinions on this? How do I make this solution robust is what I am asking. Thanks for any help, Justin --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
Re: Where is orion-application.xml?
Chris, You can leave annotations on the Atlassian knowledge base. http://kb.atlassian.com/content/orion/docs/examples/ejb.html Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Chris Boz Jennings wrote: Thanks for the feedback. I now see that orion-application.xml got auto-generated when I ran the client the first time. Duh! I was still unable to connect until I changed the password for my admin in orion-root/demo/ejb/product/jndi.properties -- This should be in the example install instructions. I had to search the archives to figure it out. Better yet, the docs should allow user comments ala slashdot. Thanks again, ,boz On Friday, January 25, 2002, at 01:02 AM, Petr Podsednik wrote: ORION-DIR/application-deployments/your- application/orion-application.xml - Original Message - From: Chris Boz Jennings [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, January 25, 2002 4:53 AM Subject: Where is orion-application.xml? I've got Orion working fine on Mac OS X but am having trouble getting the examples to work. The ejb examples deployed without complaint but the docs say to add user-manager class=com.evermind.ejb.EJBUserManager property name=home value=com.evermind.ejb.EJBUser / property name=defaultGroups value=users / /user-manager ... to META-INF/orion-application.xml but there is no such file anywhere in the orion tree. Any insight would be great. ,boz
Re: Integrating LOG4J into Orion...
Further to what Mike has said, I'll just give you a little update on the status of the Log4j 1.2 release. The 1.2 code base is largely different to the 1.1 base, and has features that when finished, will be useful for using in application servers, and make it a lot easier to configure. The features that I talk about are: - Different LogManagers. This will allow Orion to provide a logmanager *per application*, or if it can't find one, use the default logmanager. This means that you will be able to specify a configuration file per application, and not have to manually configure it. - Configuration files will be reloaded The watchers code is being rewritten. When it is finished, you will most likely have code that allows you to configure how often the config files are reloaded (and stop / restart the watcher thread). So what does this mean for you, if you are using log4j in your application now? - Use the 1.2 code. Although in alpha, it is quite stable. - If you have specific requirements (apart from the above two), suggest them on the log4j email list, or email me with your suggestions. Lastly - congratulations on using log4j. Logging is very important in enterprise applications! Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Mike Cannon-Brookes wrote: This is one possible scenario - but as Jeff says it's server specific logging (not application specific) - which can often be non-optimal. We have a document coming out on this (check http://kb.atlassian.com) soon, but until it's finished here's what we usually do: - use the latest log4j from CVS (which has the capability to define which is the default log loading class - there is now one which loads log4j.xml from classpath, and watches it) - I believe it's done via system properties (selecting automated file loader and watch time) - add a library path=config / to your orion-application.xml for each application - add config/log4j.xml to your application You're done! this means you now have : - automatic log configuration (no more need for servlet listeners, application clients or servlets to configure logging!) - dynamic logging (you can just change the log4j.xml file and your changes are picked up without redeployment) - logging _per application_ (rather than per server) As I said, see if the above directions work for you and please email me off list if they don't (so we can adjust the document in progress). Watch this space for the doco coming soon ;) Hope this helps! Mike Mike Cannon-Brookes [EMAIL PROTECTED] Atlassian :: www.atlassian.com Supporting YOUR world Now just configure log4j.xml On 19/1/02 4:40 AM, Jeff Schnitzer ([EMAIL PROTECTED]) penned the words: I put the log4j.jar in orion's lib directory, and use -Dlog4j.configuration=file:path/to/log4j.properties to initialize log4j. I'm pretty happy with this approach. I control logging on a server-wide basis, so I can use the same ear file for both testing and deployment. Jeff Schnitzer [EMAIL PROTECTED] -Original Message- From: Alex Paransky [mailto:[EMAIL PROTECTED]] Sent: Friday, January 18, 2002 5:35 PM To: Orion-Interest Subject: FW: Integrating LOG4J into Orion... One more time, the last one did not show up -Original Message- From: Alex Paransky [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 11:09 AM To: Orion-Interest Subject: Integrating LOG4J into Orion... I have a full EJB/JSP application running with Orion. Is there a preferred method of initializing LOG4J in this situation? Looking at the LOG4J documentation, they mention using a startup servlet to do the initialization. I am concerned as to how this would work with the CLASSLOADER hierarchy. If I initialize my LOG4J at the servlet (WEB) layer, will the EJB's be able to see the initialized LOG4J or will they attempt to re-initialize due to the different classloader? Thanks. -AP_
Re: Lookup EJB's in another application
This document covers most of the aspects of looking up and using EJBs remotely. http://kb.atlassian.com/content/orion/docs/remote-access/remote-access.html Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Alexey Alexapolsky wrote: I manages to achieve this by adding a line to applications.xml ejb-module path=../applications/YP/YP-ejb.jar remote=false / and then I get my ejbs from another app same as I do from standalone app , via Initial context Don't forget to ejb declaration to web.xml of your web app Regards, Alexey CodeCharge Support -Original Message- From: Patrik Strid [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 1:48 AM To: Orion-Interest Subject: Lookup EJB's in another application Hi, If you have two applications in the same orion container. One application with web components and another with just EJB's. From the application with web components, I want to lookup an EJB that is deployed in the other application - is that possible via the InitialContext or do I have to call it via an URL and getting the extra RMI call? I can get it to work using a provider URL to the other application, but using the InitialContext, the local context - it cannot find the bean, or more correct, the JNDI name could not be found. Any help is appreciated ! Thanks, Patrik __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
Re: Remove
Just for everyone's benefit - remove does not work. Please go to http://www.orionserver.com/subscribe.html to unsubscribe from this mailing list. I have suggested to the Orion guys that they put a sig on every email suggesting this. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Tasso wrote: - Original Message - From: Rob Worley [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 7:29 AM Subject: remove remove -Original Message- From: JoseMa [mailto:[EMAIL PROTECTED]] Sent: 17 January 2002 08:30 To: Orion-Interest Subject: Re: Lookup EJB's in another application Hi Patrik, I had the same problem and I look for some information about how to resolv this problem. Although the aplications are in the same server the connection become as if they was in differents servers. I used the RMIContextFactory with the next code: Context context = null; Hashtable env = new Hashtable(); env.put(java.naming.factory.initial,com.evermind.server.rmi.RMIInitialCon textFactory); env.put(java.naming.provider.url, ormi://localhost:rmi port/application name); try { context = new InitialContext (env); context.lookup(EjbName); } catch (Exception e) { System.out.println(Conection error); } If you don't change the values of rmi.xml in the Orion config you don't need specify the rmi port. The applicacion name is the name that appear in server.xml and identify the application. Is possible that you need especify a username and password for connect to applicacion, I don't need it. For specify these parametrers you need to put the next: env.put(Context.SECURITY_PRINCIPAL, admin); env.put(Context.SECURITY_CREDENTIALS, password); I hope that this information can help you. Best regards, - Original Message - From: Patrik Strid [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Thursday, January 17, 2002 12:47 AM Subject: Lookup EJB's in another application Hi, If you have two applications in the same orion container. One application with web components and another with just EJB's. From the application with web components, I want to lookup an EJB that is deployed in the other application - is that possible via the InitialContext or do I have to call it via an URL and getting the extra RMI call? I can get it to work using a provider URL to the other application, but using the InitialContext, the local context - it cannot find the bean, or more correct, the JNDI name could not be found. Any help is appreciated ! Thanks, Patrik __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
Re: HTTP session replication problem
Mike, Try running your program with the cluster debug flag add that information to the bug report: java -Dhttp.cluster.debug=true -jar orion.jar This will give you much more information about what is happening under the hood, and will allow IronFlare to fix much quicker. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Mike Moulton wrote: When all sessions disappear check to see if there was an orion exception at the same time. I am experiencing the same problem but there is an internal orion exception the moment everything stops working. Bug #687 on bugzilla covers my problem, but I haven't had any luck getting IronFlare to take is seriously; even being a paying customer. If this is your problem please vote for the bug in bugzilla, maybe together we can get something done. -Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Franck valetas Sent: Tuesday, January 15, 2002 4:18 AM To: Orion-Interest Subject: HTTP session replication problem Hi, I have 2 0rion 1.5.2 servers in the same cluster island. A session created on server 1 is correctly replicated on server 2, but a session created on server 2 is not replicated on server 1 ! When I restart server 1, the management console displays that all sessions from server 2 are replicated in server 1 for a few seconds ; then they all disappear. Does anyone had the same problem ? Thanks for your help. Franck
Re: Trivial classpath problem ?
Yuval, The following new tutorial on our knowledge base may help you: http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp It details all the different levels of classloaders available in Orion. Please feel free to annotate the page with any comments: http://kb.atlassian.com/content/atlassian/howto/classloaders.jsp#annotations Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World [EMAIL PROTECTED] wrote: Hi, Although this is an oc4j question ( oracles wrapper for orion ), im sure some of you would be able to help me ( the engines are the same down there :). Ive tried adding a new jar to oc4js classpath. Our application depends on this jar. I couldnt. Ive tried adding the jar as a 'library-path' tag within the server.xml. Then added it to the command line running oc4j ( -cp = ). It didnt do the trick. Ive only made some progress when putting it straight into oc4js lib directory. Im confused. 1. What does the 'library-path' tab enable? 2. Whats the difference between using it and supplying jars to the oc4js runtime classpath ( -cp ). 3. What is the recommended way, to simply add a jar upon my application depends of? Any help would be apreceated, Yuval.
Re: Best way to add user records to EJBUserManager...
Alex, The Atlassian user admin tool does what you want - no coding required. Download it here: http://www.atlassian.com/software/tools/ You can use it to users in XML files, EJB's - anything that implements the UserManager interface in Orion. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Alex Paransky wrote: I am using EJBUserManager for security in Orion. What is the best way to update users? Should I directly use EJBUser EJB or use the API's in the UserManager. If UserManager is the answer, then how do I get access to it while running in Orion? Thanks -AP_
Re: JDBC error
Ian, If you are a member of Oracle's technet, you can find the the meaning of the error (ORA-00600) here: http://technet.oracle.com/doc/server.815/a67785/e0.htm#1002520 I have attached the text in case you are not a member. This appears to be an Oracle internal error, so you should contact Oracle regarding this. Regarding Tru64 - Orion will run on any platform with a JVM (a great example of Java's portability). Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World The elephantwalker wrote: Ian, Make sure that you are closing your connections properly. eg: try { // open connection } catch () { // do something } finally { try { // close connections } catch () { // do something } } This could be your problem. The try/catch/finally block MUST be used with Oracle...or you will run out of process resources as exceptions occur. You can check if the connections are being closed properly with a debug property: java -Djdbc.connection.debug=true -jar orion.jar This will remote where you are not closing your connections. Regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ian S. Hagen Sent: Wednesday, January 02, 2002 5:53 AM To: Orion-Interest Subject: JDBC error Has anyone experienced instability when using Orion together with Oracle 9i? I am currently running an Orion 1.5.2 server on a Tru64 platform against a 9i database using the OCI driver. Everything works fine initially, but after a few hours of sending HTTP requests to Orion I find that performance degrades. Eventually, I start getting database errors. I have seen Oracle go into a state where it returns an SQL exception: java.sql.SQLException: ORA-00600: internal error code, arguments: [kksfbc-new-child-thresh-exceeded], [], [], [], [], [], [], [] I have also experienced the OCI driver core dumping when executing the same test: OCI-21503: program terminated by fatal error OCI-04030: out of process memory when trying to allocate 30056 bytes (Alloc environm,eoj_stmt_malloc) Obviously, I am running out of resources. The thing I don't understand is where! I have run Orion setting the JDBC debug parameters jdbc.connection.debug, datasource.verbose and jdbc.debug to true, and it seems as though the connections are being created and returned correctly (no connections leaked). Has this problem got anything to do with me running it on Tru64? The Orion FAQ doesn't mention Tru64 as a supported OS. My datasources.xml looks like this: ?xml version=1.0? !DOCTYPE data-sources PUBLIC Orion data-sources http://xmlns.oracle.com/ias/dtds/data-sources.dtd; data-sources !-- Setting up the data source for the ben provider -- data-source class=com.evermind.sql.DriverManagerDataSource name=zellsoft location=jdbc/zellsoft xa-location=jdbc/xa/zellsoft ejb-location=jdbc/ejb/zellsoft connection-driver=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:oci8:@vasp username=ben password=ben max-connections=200 min-connections=25 max-connect-attempts=10 connection-retry-interval=1 inactivity-timeout=30 wait-timeout=75 / /data-sources Any suggestions are appreciated! Ian ORA-00600 internal error code, arguments: [string], [string], [string], [string], [string], [string], [string], [string] Cause: This is the generic internal error number for Oracle program exceptions. It indicates that a process has encountered a low-level, unexpected condition. Causes of this message include: * timeouts * file corruption * failed data checks in memory * hardware, memory, or I/O errors * incorrectly restored files The first argument is the internal message number. Other arguments are various numbers, names, and character strings. The numbers may change meanings between different versions of Oracle. Action: Report this error to Oracle Customer Support after gathering the following information: * events that led up to the error * the operations that were attempted that led to the error * the conditions of the operating system and databases at the time of the error * any unusual circumstances that occurred before receiving the ORA-00600 message * contents of any trace files generated by the error * the relevant portions of the Alter files Note: The cause of this message may manifest itself as different errors at different times. Be aware
Re: design question: one to many relationship
Morten, Putting a collection of games attached to each person suggests a many-to-many relationship. Why don't you have each game have an owner? Game (Id, Owner, Name) Owner (Id, Name) Then you have a one-many relationship. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Morten Wilken wrote: i have a design question for the list: i have a situation where i have some persons that each owns a number of games... each game has only one owner. using orions OR mapping features i have put a collection of games in each personbean. This creates a many-to-many table with a personid and a gameid. My database design knowledge tells me this is wrong, and that what i need is a foreign key to the person table in the game table. also, i would like to be able to both see what games a person owns, and who owns a certain game. i cant seem to do that without creating redundant data in the database... i would like to think i could make a sensible ejblayer on a sensible database design. So in conclusion: how do i make this one-to-many relationship so i can read it both ways without creating redundant data, and without making a many-to-many table between the person and the game table? hope any of this makes any sense sincerely Morten Wilken
Re: CMP Entity Bean Craziness
Aaron, The idea is that one application may be deployed on many servers, and therefore the deployment descriptor is *per app, per server*. The deployment descriptors are used to customise a deployment on that server. This notion fits in with sun's idea of J2EE roles (ppl who help develop the application.) Read about roles here: http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Overview5.html#65592 If you had your deployment files working, and then you upgraded the application (ie installed a newer version - perhaps a web-app version of your ejbs) you would not want the deployment descriptors overridden except where they dont exist (for the new parts of the application). If in development you feel that this is a problem - then add another ant target to delete the deployment descriptors from the deployment directory. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Aaron Tavistock wrote: Mike - Since this is a generated file in a deployment directory shouldn't it always be overwritten if there is a change in one of the package deployment descriptors? The only reason it would be a pain in the ass is if you changed the generated file to suit your needs and did not change the one you bundle with your package. If this is intended behavior, IMHO it is significantly less intuitive. Its kind of like saying a class should only be recompiled if you delete the class before recompiling, where one would expect that changing the source would be enough. Just my two cents. Aaron Tavistock -Original Message- From: Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 2:13 AM To: Orion-Interest Subject: Re: CMP Entity Bean Craziness You're not special at all (well you may be - but that's a different story ;)) - what you describe is exactly the intended behaviour of the server. You're editing the deployment files in your EAR which are only used _IF AND ONLY IF_ there is no existing deployment file. Otherwise the existing deployment file is used, and the one in the EAR ignored. This behaviour is as it should be because otherwise you'd end up overwriting your deployment settings all the time which would be a royal pain in the ass. HOWEVER to do what you want, simply delete the deployment directory and your edited files will be copied and used. You will see a message on the console telling you that the deployment file has been copied. Hope this helps clear things up. Cheers, Mike
Re: How do you shut down orion after it's initialized
Why do you have 8080 as the port that you are connecting to? The port number should be the one listed in rmi.xml. (http://kb.atlassian.com/content/orion/docs/configuration/rmi.xml.html) If not specified, then it is the default - 23791. Unless you have changed this, you should just specify ormi://localhost See this article: http://kb.atlassian.com/content/orionsupport/articles/admin.html Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World James Beeson wrote: I have an admin.jar in my c:\orion directory, but I looked inside it and the ONLY file is the manifest.mf file. There are no other files (namely any .class files) there. Is that right? I just downloaded this less than a week ago, the newest stable version there was Here is what is in the manifest file: Manifest-Version: 1.0 Main-Class: com.evermind.client.orion.OrionConsoleAdmin Name: Evermind Console-based Admin Created-By: 1.2 (Sun Microsystems Inc.) Implementation-Vendor: Evermind Class-Path: orion.jar Implementation-Version: 0.1.8 Implementation-Title: com.evermind.client.orion I have run the java -jar admin.jar ormi://localhost:8080/ admin pswd -shutdown command from the c:\orion directory I am able to shut down properly by using the orion console's FileExit menu item after accessing the console via the command C:\orionjava -jar orion.jar -console While this doesn't solve my problem from trying to shut down properly from the command line, this seems to do the trick. Thanks Everyone! From: Chris Callaghan [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Re: How do you shut down orion after it's initialized Date: Wed, 19 Dec 2001 11:14:55 +1300 Sounds like you're missing admin.jar... You can get rid of your transaction-log error by creating a persistence directory under the orion directory. Orion will then happily use that... I think some zip implementations have a thing about creating empty directories... James Beeson wrote: I did not have the admin user deactivated (althought that was a good tip- thanks!) When I use the command: java -jar admin.jar ormi://localhost:8080/ admin pswd -shutdown I get: Exception in thread main java.util.zip.ZipException: The system cannot find the file specified at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.init(Unknown Source) at java.util.jar.JarFile.init(Unknown Source) at java.util.jar.JarFile.init(Unknown Source) And then Orion is left running. Could that be related to the error it prints out when Orion starts (here it is): Warning: Error reading transaction-log file (/C:/orion/persistence/transaction.state) for recovery: premature end of file Forced or abrubt (crash etc) server shutdown detected, starting recovery process ... Recovery completed, 0 connections committed and 0 rolled back... Orion/1.5.2 initialized But then the app runs fine. I currently don't have a transaction.state file. Why won't it let me shut down Orion? Thanks _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
Re: Verisign cert + keytool issues (resend2)
Shal and Bill, We have recently put some instructions up on the Atlassian knowledge base. A search for versign returns this result: http://kb.atlassian.com/search.jsp?query=verisign The direct link to the tutorial is here: http://kb.atlassian.com/content/atlassian/howto/verisigncertificate.jsp Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Bill Wichgers wrote: It has been several months since I set it up be we have been running with a Verisign certificate on JDK 1.3/Orion on Red Hat 7.1. The syntax of your command looks like what I used to import our certificate into the keystore but as I said, it has been a while. I just used what was in the man page for the keytool command. So it can work without issue. At another company I got it running on a Verisign certificate working on JDK 1.2/Orion under both Red Hat 6.2 and Windows 2000. Some issues that you may be running into. The certificates are generated for a specific server. Or in other words a certificate generated for Apache or IIS will not work with a JDK 1.3 based server. We did not have to get an additional chain certificate with the 40 bit certificate but I recall needing to with the special 128 bit certificate. I don't know which one you ordered. Verisign's web site and documentation are not the easiest to use. Good Luck! Bill Shal Jain wrote: I generated a 1024 bit CSR using keytool that comes with JDK 1.3 I purchased a 128 bit cert from Verisign and have trouble importing it using keytool when I use the following syntax keytool -import -trustcacerts -file xyz.cer -keystore keystore I get the following exception - Failed to establish chain from reply I tried importing root certificates for verisign from IE and keep getting the followin error Public keys in reply and keystore don't match Based on past archives it seems some folks have been able to import the Verisign certs correctly I would appreciate any help -shal
Re: Orion and basic authentication
Etienne, This article may be of interest to you in setting up basic authentication on Orion. http://kb.atlassian.com/content/atlassian/howto/securingdirectory.html Most of the time you can use the default XMLUserManager, which has the users and passwords contained in XML files (principals.xml). Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Etienne Giraudy wrote: Hi, I'm curious to know if there is any possibility to setup my webapp for using basic authentication without having to code a (simple) user manager (cf http://www.orionsupport.com/articles/usermanager.html). It seems that orion is the only app server needing some code to support basic authentication. Our application has built in support (decoding of http header authentication data) for basic authentication and it has been successfully tested under weblogic, websphere, tomcat, resin and jrun! But it seems that orion strip off the http header authentication data before passing it to the webapp... Any help appreciated. Etienne Giraudy
Re: Debugging JSP
Herman, A quick search on the knowledge base reveals a few pages that may be of interest: http://kb.atlassian.com/search.jsp?query=debugging One in particular is: http://kb.atlassian.com/content/orion/docs/debugging.html which has links to: http://kb.atlassian.com/content/orion/docs/development-mode.html What you need to do is change global-web-application.xml to include the tag parameter development=true. It is fully described in the link above. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Herman Rashid wrote: Hi all, How do you debug jsp using Orion ? I have managed to get debugging going for servlets/ejb, but not JSP since I don't know the internal of Orion's JSP.. All help appreciated. __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1
Re: MySQL and JDBC
Harald, This link has many examples that you can install on Orion: http://kb.atlassian.com/directory/examples Can I suggest the Orion CMP Primer? Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Harald Kirschner wrote: Folks, I am new to Orion and look for a brief example of an EJB that accesses a database table. Who can send me and example like this? Thanks, Harald
Re: Announcement
Rob others, The correct link is: http://www.orionserver.com/docs/resource-providers/resource-providers.xml Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Rob van den Eijnde wrote: Magnus, Thanks for keeping us informed like this. It seems however that the 'resource provider' link does not work. Could you kindly have a look a this ? I am very curious to the contents. Regs, Rob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus Rydin Sent: vrijdag 16 november 2001 20:44 To: Orion-Interest Subject: Announcement Announcement 2 new documents available: www.orionserver.com/docs/resource-provider/resource-provider.xml Describes how to produce your custom Resource Provider class or use a sample one to smoothly integrate third party resources with Orion and make these available to your applications. www.orionserver.com/docs/remote-access/remote-access.xml Describes different scenarios for remote access to applications. This document will expand in the coming week. As said earlier, any comments/suggestions/requests for documentation can be sent to [EMAIL PROTECTED] upcoming docs are: 1) Additional remote scenarios 2) Application Client documentation 3) Configuring datasources 4) SSL clustering details 5) EJB clustering details 6) HTTP clustering details 7) MDB documentation 8) Orion specific deployment settings explained WR The Orion Team
Re: ejb soap
Ramin, Don't forget to check out our knowledge base for these type of examples! http://kb.atlassian.com A simple search returns a few results that may be of interest to you: http://kb.atlassian.com/search.jsp?query=SOAP Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Ramin Heidari wrote: hi, how can i deploy ejb Apache soap hello sample in orion ? Thanks, Ramin __ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com
Re: Orion 1.5.3 API: FilePostParser
Martin, This parameter takes the encoding of the file. Thanks to Hani Suleiman for his annotation to our knowledge base: http://kb.atlassian.com/content/orionsupport/articles/fileupload.html I would expect the old API to remain though. If the old method doesn't exist, then I would file that as a bug in bugzilla. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Martin J. Wells wrote: Looks like this has been changed in the API without notice? // Constructors public FilePostParser(InputStream p0, int p1, String p2) throws IOException { } The String p2 seems to be new. Any idea what it's for? Marty
Re: Running Orion as Win 2000 services ???
Eddie, You may gain some mileage from this article: http://kb.atlassian.com/content/orionsupport/articles/orserv.html Also, you can specify a log file for Orion by specifying parameters: java -jar orion.jar -out file -err file I would suspect that Orion is finding your server.xml file, or you wouldn't end up with anything in the log files at all. Could it be a permissions problem? Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Eddie wrote: Hellu, Some time ago I got the advise to use JNT to run Orion as a service. I finally got to use it and have some problems with it. I got JNT to start Orion, but the applications aren't deployed, neither does any web application work. I used to following command to install Orion as a service: --- C:\jnt /InstallAsService:Orion /SDC:\Program Files\Orion -jar orion.jar --- I did also put the path C:\Program Files\Orion in my enivorment PATH variable. I also added the server.xml config file, which also didn't work: --- C:\jnt /InstallAsService:Orion /SDC:\Program Files\Orion -jar orion.jar -config C:\Program Files\Orion\config \server.xml --- (I tried some more similair possibilities) In the server.log and global-application.log there do appear entries that the server/default web site is started, but nothing works (from the command line it does). I think that it doesn't find the config files, like the server.xml such that orion isn't correctly initialized. What am I doing wrong ?? The problem I am also having is that I don't know how I can see what Orion does. That is, in Linux and from the Windows command line, I start Orion with orion.jar log/out.log, but how do I do this with JNT ?? I tried something but it doesn't work. The only thing I succeeded is that JNT did put his output in the out.log !!! Please some help ? Eddie
Re: orion xml's
Morten, What you ask for already exists. You can create your own orion-ejb-jar.xml files, and place them next to your ejb-jar.xml files, and they will be automatically deployed. The reason that most people edit the deployed ones is that they don't care to remember the syntax. If you let orion generate them, then you can just edit the file. Also, if you create an orion-ejb-jar.xml file, you do not need to specify all the parameters, orion will fill them in if you have missed some. One other point to watch out for, is that once an orion-ejb-jar.xml file is deployed, it will not be overwritten. So you will need to delete the existing one for it to be redeployed. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Morten Wilken wrote: Am i the only one who thinks that the idea that you have to edit the autogenerated files like orion-ejb-jar.xml etc. is a bit problematic? sure it can be done and it works, but i would be much happier if i could have 2 sets of xml files, the ones you edit (and you could put in your versioning system), and another set that orion generates, and that you never have to fiddle with. it seems an odd mix the way it is right now, as if it was meant to be seperated, but somehow it wasn't followed through i could be wrong, and missing the point of the structure entirely comments appreciated sincerely morten wilken
Re: Static page when db down?
Steve, This is one of the features of the cache tags provided by the Opensymphony suit of tools. You can cache your whole page, and in the case of an error, provide the cached version. The tags and library are documented quite well. See here for an explanation of the usecached / tag. http://www.opensymphony.com/oscache/tags.html I hope that this is along the lines of what you are after. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Steve Best wrote: Greetings, I was wondering how you can set it so that Orion will display a splash page if it is unable to connect to the db on startup? Thanks Steve
Re: about Authentication
Mars, We have a howto up at on our site regarding securing a directory using BASIC authentication. You can find it here: http://www.atlassian.com/article/securingdirectory.html Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World mars wrote: Dear , I have a question about use from certificate I got a problem .I don't know how to set the BASIC Authentication for my web via the Orion server. Thank's mars
Re: Persistent JMS Queue
Darryl, OC4J 1.0.2.2 roughly corresponds with Orion 1.5.2. The 1.0.2.2.1 release has many bugfixes that will (according to what I know) be integrated back into the orion codebase. Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Darryl Dieckman wrote: Thanks. We downloaded the latest orion server (1.5.2) and found that the problem had been fixed. We are using the Oracle OC4J, so I'm not really sure what version it truly is. It reports an Oracle version, but I can assume that it is certainly not 1.5.2. It says Oracle9iAS (1.0.2.2.1) Containers for J2EE Just out of curiosity, does anyone know what version this corresponds to? Darryl Dieckman
Re: http://www.orionsupport.com
Mike, This box is hosted on someone's home box and goes down from time to time. There are mirrors: http://au.orionsupport.com/ http://de.orionsupport.com/ http://uk.orionsupport.com/ Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Mike Shoemaker wrote: Anyone know what happened to this site? Mike _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Re: Too Many Open Files?
This article may address your issue. http://www.patoche.org/LTT/all/0128.html AFAIK the error is propagated to the client, unless you are catching the IO exception on the way through somewhere. Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Richard Taylor wrote: OS: RedHat7.1 ORION: 1.5.2 JAVA: Blackdown 1.3.1 FCS (-green -Xmx400M) ERROR: java.io.FileNotFoundException: filename (Too many open files) Hi, I am receiving the above error in the global-application.log a number of times a day. Is this related to the problem on linux where you can only have 1024 file handles open? Has anyone resolved this / has documentation on how to do it? What are the implications of this error to the user - I have not experienced any problems on the client side. Thanks, Richard.
Re: Postgresql error: NullPointerException atgetTables(DatabaseMetaData.java:1707)
Can you send your datasources.xml file? Have you setup a database for orion to use? If you run postgresql with debugging turned on, can you see what SQL statements are being run? Scott [EMAIL PROTECTED] 06/25/01 02:12pm I'm having problem deploying the addressbook example on Postgresql. When Orion tries to build the table I get the error below. It works fine if I build the table manually, or if I run it on Hypersonic or Oracle. I have been through the article at http://www.orionsupport.com/articles/postgres.html and still can't get it to work. Any help is appreciated Brent Auto-deploying addressbook (New server version detected)... Auto-deploying addressbook-ejb.jar (No previous deployment found)... java.lang.NullPointerException at org.postgresql.jdbc2.DatabaseMetaData.getTables(DatabaseMetaData.java:1707) at com.evermind._au._jlb(Unknown Source) at com.evermind._px._jlb(Unknown Source) at com.evermind._px._bb(Unknown Source) at com.evermind._au._bb(Unknown Source) at com.evermind._dq._qzb(Unknown Source) at com.evermind._ck._qzb(Unknown Source) at com.evermind._ck._at(Unknown Source) at com.evermind.server.ApplicationServer._as(Unknown Source) at com.evermind.server.ApplicationServer._wl(Unknown Source) at com.evermind.server.ApplicationServer._at(Unknown Source) at com.evermind._in.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) at com.evermind._if.run(Unknown Source) --- This message has been scanned by MailSweeper. --- --- This e-mail is solely for the use of the intended recepient and may contain information which is confidential or privileged. Unauthorised use of its contents is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and then delete the original e-mail. ---
Re: Orion handling only servlet/jsp requests
There is an article on orionsupport http://www.orionsupport.com That deals with using another web server with orion. The FAQ from orion also deals with this: http://www.orionserver.com [EMAIL PROTECTED] 06/21/01 10:53pm My eventual production environment has Zeus web server as the primary web server. I'd like to forward all servlet requests to Orion. What changes in Orion's setup need to be made to either: 1. Have orion output to another web server 2. Have orion handle all servlet/jsp requests It seems to me that 2 would be easier -- but I am worried about scaleing and clustering issues with that setup. How can I do this, or where can I read how to do this? --- This message has been scanned by MailSweeper. --- --- This e-mail is solely for the use of the intended recepient and may contain information which is confidential or privileged. Unauthorised use of its contents is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and then delete the original e-mail. ---
Re: using jDriver from BEA WebLogic
I think from reading other people's posts, that the system's classpath is not used when running a jar. You can put it into one of the lib or classes directories. [EMAIL PROTECTED] 06/13/01 11:32am Hi all, How can I use the WebLogic jDriver for MS SQL Server 7 in jsp pages with Orion? This driver has a license file, and when I start the jsp page, there's an error: LicenseNotFoundException. How can I show the server way to the license file? I've changed my system classpath toward the license file, but it did not affect. Does Orion use the system classpath or it has another one? Thanks Binh Duong [EMAIL PROTECTED] --- This message has been scanned by MailSweeper. --- --- This e-mail is solely for the use of the intended recepient and may contain information which is confidential or privileged. Unauthorised use of its contents is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and then delete the original e-mail. ---
Re: NEWBIE: Default HTTP Content-Type
You could try playing around with the files: config\global-web-application.xml config\mime.types If you manage to work it out using those files, can you let the list know? Cheers, Scott [EMAIL PROTECTED] 06/12/01 12:15am Well, you could probably use a filter to just that... Have the filter trigger a servlet which reads the file and sets the content type. Johan - Original Message - From: Norbert Papke [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Monday, June 04, 2001 7:03 PM Subject: NEWBIE: Default HTTP Content-Type I have just started to play around with the Orion server and am very impressed by it. Installation and configuration was a snap, performance and footprint are great. I have, however, noticed one ideosyncracy that I hope somebody will be able to help me with. I have some text files on my site that are part of a knowledge base. These files contain only ASCII characters, the excute permissions are not set, and the files do not have an extension. The Orion server delivers these files with an HTTP content type set to application/octet-stream. Apache delivers these same files with a content type of text/plain. The latter is preferable to me as it allows browsers to render the files. Is there any way to change the content type that Orion uses to deliver these files? Please note that changing the files (either by converting them to html or adding a file extension) is not really an option. Best regard, -- Norbert Papke. [EMAIL PROTECTED] --- This e-mail is solely for the use of the intended recepient and may contain information which is confidential or privileged. Unauthorised use of its contents is prohibited. If you have received this e-mail in error, please notify the sender immediately via e-mail and then delete the original e-mail. ---
Re: JSP variable in nested Tags
I have a feeling that this is not orion-specific (websphere ie tomcat does this too) if you have any spaces between and % then you will encounter this problem. [EMAIL PROTECTED] 05/24/01 04:58am I have an interesting little problem. I am using the Jakarta input:textarea ... tags inside an iterate tag. One of the attributes of the input:textarea ... is name, which I am setting using name=%= myVar.getMyProp %. This works fine, until I put text in front of the %. If I do that, it sends the literal string instead of the value of the variable. Example 1 (Works): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=1001/textarea Example 2 (Fails): ejb:iterate id=orderItem type=OrderItem collection=%= col % input:textarea name=comment%= orderItem.getOrderItemID()% attributes=%= commentTable%/ /ejb:iterate Produces: textarea name=commentlt;% out.print(orderItem.getOrderItemID());%gt;/textarea I have looked at the JSP 1.1 specification, but couldn't find anything that said it should be processed one way or the other. I have a feeling that this is an Orion specific issue, but can't find out which way is correct to submit a bug report. Does anyone on the list have a resource to point me to on this issue? Thanks in advance for your help. OS: Win2k Ver: Orion 1.5.1 JDK: 1.3 - Ernie Phelps
Re: Taglib bug?
All I can think of is that you have common mapped to the fetcher jar. You do close that tag starting with %String don't you? [EMAIL PROTECTED] 05/15/01 06:21pm On Mon, 14 May 2001, Joseph B. Ottinger wrote: As one who's done quite a bit with taglibs on Orion, I've never seen this kind of behavior at all. Ever. Any version. (Bugs with it, sure - but that was related to tag instantiation and not location.) More information? Samples? Here's a snippet: %@ taglib uri=fetcher prefix=ftcr % %@ taglib uri=ext prefix=ext % %@ taglib uri=common prefix=common % %@ page language=java import=org.apache.oro.text.regex.*,java.util.*,java.text.* % ftcr:page blah blah /ftcr:page % String foo = newscontent; common:iterate id=match type=org.apache.oro.text.regex.MatchResult collection=%= foo % Generates: Error parsing JSP page /pec/open/testfetch.jsp line 43 No tag named 'iterate' found in tag-library file:/home/maxxon/orion/applications/pec/pecportal/WEB-INF/lib/fetcher.jar Tomcat handles the WAR just fine. //Mikko
Understanding XML files
I'm still learning about this, but here's my attempt at a primer to understand how the xml files fit together. Please feel free to correct any omissions or inaccuracies. ~ Default-web-site.xml / web-site.xml +++ This represents a website. Because you may be serving multiple web sites on one box (either for multiple IP's, or multiple domains - ie. orionsupport.com and opensymphony.com could be on the same box), you configure a web-site.xml for each of them. Inside this file you configure a default-web-app multiple web-apps. The parameters to these tags are as follows: default-web-app application=default name=defaultWebApp / web-app application=EJBDemo name=ejbdemo-web root=/ejbdemo / web-app application=taglib-test name=sitemesh-example root=/sitemesh / application:the application as defined in server.xml (tag in server.xml is application, and the parameter is name). ie. from above I have an application named EJBDemo in server.xml name: the web application's name as defined in that particular application. ie. Inside my application.xml for EJBDemo, there is a web-application named ejbdemo-web. root: where you web-app is rooted on the tree. From the above localhost/ejbdemo/ would correspond with the web-app ejbdemo-web in application EJBDemo. Server.xml ++ There is only one of these per server, so it is the root point for all the other files. Of particular note are the lines: web-site path=./default-web-site.xml / application name=EJBDemo path=c:\scott\javadev\ejbdemo\build\ejbdemo.ear / These lines show me what websites and what applications I have running. You would only need multiple web-site's if you are serving multiple domains. On the other hand, you may have many applications. If you have many web-applications you will need to add them into your websites as listed above. Application.xml +++ If you are creating a full-blown application, you are best to create a separate one of these for each application. Inside here you define modules. These can be web modules, ejb modules, or java modules. If they are web modules, you will want to add them to a website in order to view them. Creating a quick and dirty jsp ++ However - many people have asked about quickly deploying a jsp in a default way. In this case you are probably best to modify the file application.xml that resides in /config/ with the other xml files. Simply add a web module to this file, and then add that particular web module to your default-web-site.xml eg. You want to create a web-app called jsp-test that will be show at localhost/jsp-test/ + Create the directory jsp-test under orion - ie orion/jsp-test + add the following line to orion/config/application.xml web-module id=jsp-test path=../jsp-test / + add the following line to orion/config/default-web-site.xml web-app application=default name=jsp-test root=/jsp-test / + create the directory web-inf under jsp-test - ie orion/jsp-test/web-inf + copy the file web.xml from orion/default-web-app/web-inf/web.xml to +orion/jsp-test/web-inf/web.xml + if you wish to add anything (ie servlets), add them to the file +orion/jsp-test/web-inf/web.xml + start the server. You should be able to view jsp's that are put in orion/jsp-test now at localhost/jsp-test. More information www.orionsupport.com www.orionserver.com/tutorials/ www.jollem.com ~ Scott [EMAIL PROTECTED] 05/04/01 01:02am Thanks Johan, Scott, and Tim I did try to reconcile and follow all of your advice; I did learn something, but basically it's all gummed up now. what's missing here for me is: a fundamental understanding of the relationships between server, website, web app, web module, --and-- global application, default web app ,what files these should be defined in, and where these file go. for expample, is the default web app just another app, or is it a special thing that must be there untampered-with. It's all pretty bewildering to a newbie, and nowhere on orion site do i see a straightforward explanation/primer of the above. AFTER I grasp this, i'm less likely to ask dumb config questions or make things worse. thanks to anyone who can point me in the right direction. j
Re: broken default web app - not found
orion/config/default-web-site.xml: default-web-app application=default name=defaultWebApp / -- default-web-app application=pussycat name=defaultWebApp / You may also have problems as you are running two websites that are both listening on port 80 to all hosts: web-site path=./pussycat-web-site.xml / web-site path=./default-web-site.xml / You may need to change orion/config/default-web-site.xml: web-site host=[all] port=80 display-name=Default Orion WebSite - web-site host=[all] port=8080 display-name=Default Orion WebSite All you examples should then be available on port 8080. I think this is right. What you should have done is left the default-application as default in server.xml, and then don't worry about the extra web-site. You can then add extra web-apps in default-web-site.xml If I haven't explained things properly, let me know and I'll write a full example. Scott [EMAIL PROTECTED] 05/03/01 08:56am I managed to deploy a website/app but in so doing, broke the default website with all the nice jsp examples. I would like to use that default app to test and learn about jsp and plug modified versions into my app. now i get this error from orion: Error initializing site Default Orion WebSite: No application named 'default' found in the server how do i unbreak the default web app and keep it working alongside my app - and KISS? thanks in advance. Joey, newbie in distress relevent config files: orion/config/server.xml: ... global-application name=pussycat path=application.xml / !--global-application name=default path=application.xml / can't do this-- global-web-app-config path=global-web-application.xml / web-site path=./pussycat-web-site.xml / web-site path=./default-web-site.xml / ... orion/config/application.xml: ... orion-application web-module id=pussycat path=../applications/pussycat / web-module id=defaultWebApp path=../applications/default-web-app / ... orion/config/default-web-site.xml: ... web-site host=[all] port=80 display-name=Default Orion WebSite default-web-app application=default name=defaultWebApp / /web-site orion/config/pussycat-web-site.xml: ... web-site host=[all] port=80 display-name=Pussycat Web Study virtual-hosts=localhost default-web-app application=pussycat name=pussycat / !-- default-web-app application=pussycat name=defaultWebApp / can't do this-- ... /web-site server.xml: ... application-server application-directory=../applications deployment-directory=../application-deployments ... global-application name=pussycat path=application.xml / !--global-application name=default path=application.xml / can't do this-- global-web-app-config path=global-web-application.xml / web-site path=./pussycat-web-site.xml / web-site path=./default-web-site.xml / ... end Get free email and a permanent address at http://www.netaddress.com/?N=1
Stateless Session Beans
I'm hoping that someone can help me with this. Can you have a stateless session bean that actually has class variables? Ie I want to have a variable that is loaded once per application, and then accessed by all the whole application. I know that SLSB are pooled and created and destroyed at will - but will they be created with the variable containing a value? Any thoughts are much appreciated. Scott
RE: Building an application
Two things that might be of interest: !-- The default web-app for this site, bound to the root -- default-web-app application="default" name="defaultWebApp" / in default-web-site.xml . I assume that you can map an application to root by changing that? Turn off "friendly error messages" in Internet Explorer (tools-options-advanced-show friendly http error messages). A 500 could mean anything. Once you get the stack trace you might be able to determine what the problem is. Scott [EMAIL PROTECTED] 04/11/01 04:21am Dan, The error I have is 500 (http internal server error), when I type http://localhost/taskforce If I type http://localhost, I have the orion home page. This the tree of the applications directory, once expanded by orion. D:\JAVA\ORION\APPLICATIONS taskforce.ear \---taskforce taskforce.war userEJB.jar +---META-INF application.xml \---taskforce index.html +---images +---META-INF \---WEB-INF +---classes | +---net | | \---tnt | | +---user | | | \---model | | +---util | | \---web | | +---control | | \---taglib | \---org | \---apache | \---struts | \---resources +---lib \---tlds The server.xml and default-web-site.xml have been modified as mentionned at the bottom of this mail. I have tried to modify the context root to "/" but it did not change. I have just noticed that you can set the root="/taskforce" in default-web-site.xml web-app application="taskforce" name="taskforce-web" root="/taskforce"/ and also in the /META-INF/application.xml of you ear(context-root/taskforce/context) I suppose they must be the same (which is the case for me). What is the role of each ? I guess there are 2 possible source of error 1) the way I have update the server.xml and default-web-site.xml (default-web-site.xml) web-app application="taskforce" name="taskforceWebApp" root="/taskforce"/ (server.xml) application name="taskforce" path="../applications/taskforce.ear" / 2) the directory structure (see above) Thanks, Olivier -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez Sent: 10 April 2001 07:05 To: Orion-Interest Subject: Re: Building an application Hi Oliver, Last week I was plating with the same thing and I was successful with pretty much the same configuration that you have, except that in application.xml I set the context root to / (context-root//context-root). Which error are you getting ? 404? Can you see your .ear file unpackaged? regards, Dan olivier wrote: Hi, I am new to Orion, and I have recently been trying to build an application (ear) with not much success. Basically, Orion seems to deploys all the components, but I can't get the first page to open on the browser. I am using struts as a framework, with the fix I have seen on this site (remove the dtd from the jar and put them under classes), and struts does not seem to be the problem now (especially since my first page is an index.html) The ear is in orion\applications userEjb.jar taskforce.war \META-INF application.xml source of application.xml for the ear application display-nametaskforce/display-name descriptionApplication description/description module web web-uritaskforce.war/web-uri context-root/taskforce/context-root /web /module module ejbuserEjb.jar/ejb /module /application I put this in default-web-site web-app application="taskforce" name="taskforceWebApp" root="/taskforce"/ this in server.xml application name="taskforce" path="../applications/taskforce.ear" / I have tried with the news.ear coming with orion, but same problem. Any clue? Thanks, olivier
Re: SecurityAdapter for Orion
I haven't looked at the petstore demo, but from the error I would say that the class: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager does not implement serializable, and when Orion tries to serialise it (to marshall for RMI, or save to DB), then it throws an error. If you have access to the source code, see if that class implements serializable (and that all of the classes that it contains do as well). Hope it helps, Scott [EMAIL PROTECTED] 04/11/01 06:20am I am working on the latest version of PetStore (1.1.1) and on Oracle. I am deploying these on I am able to deploy the application and am able to see the screens. However, I am not able to authenticate myself. When I signIn with the default user, I get an error with the message: "You could not be authenticated with the information provided. Please check your Username and Password. Return to Sign in Page" When I choose New User and I create a totally new user that I never tried before, the record goes thru. However, I see an error logged as; Error deserializing EJB-session java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager Technically I am signed-on. However, (wonder if it is related, ) when I enter the store, add to cart and go to checkout, it asks me to sign-in again. The scenario repeats! Side-bar: When I get a new user regn screen, the MyAccount is always enabled. When I click on it, I get the J2ee account preferences to modify! This means I am authenticated! The Orion Console has an error that may be significant: Error deserializing EJB-session java.io.WriteAbortedException: Writing aborted by exception; java.io.NotSerializableException: com.sun.j2ee.blueprints.petstore.control.ejb.ModelUpdateManager Would someone be kind enough to tell me: 1. Changes in the XML files for OrionSecurityAdapter 2. What else do I need in my principals.xml file? I am assuming it only checks for the principals in my application directory and not config. If not please enlighten me. I introduced this in the users tag: user username="j2ee" password="j2ee" / 3. I used estore-orionadapter.jar as a library in my orion-application.xml Once again, I am running PetStore on Orion and Oracle on NT platform. Thanks. With Regards, Ranga
RE: How to start EJB development using Orion?
Try google cache. Apart from the downloaded bits - it should all be there. (I don't have internet access or I'd post the link) [EMAIL PROTECTED] 04/10/01 10:03am I tried. It's been unreachable for me for the past couple days. I was hoping it'd come back up with the start of the work week, but no luck. -- Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Cannon-Brookes See http://www.jollem.com for two very useful primers for you.
Re: How to start EJB development using Orion?
references that might be a help include: Sun's j2ee specification Servlet 2.2 spec JSP 1.1 spec I find that tutorials at www.jollem.com www.orionsupport.com are excellent. AFAIK all you need to do to inform orion of the existance of those files is to edit server.xml, to point to your root dir. eg. application name="taglib-test" path="..\applications\taglib-test" / You need application.xml in meta-inf. This is what you must inform orion of Application.xml contains references to your modules. eg. application display-nameTag Tutorial/display-name module web web-uritaglib-test-web/web-uri context-root//context-root /web /module module ejbejbdemo-ejb/ejb /module /application And the directory structure / /meta-inf/ /meta-inf/application.xml /taglib-test-web/ /taglib-test-web/web-inf/ /taglib-test-web/web-inf/web.xml /ejbdemo-ejb/ /ejbdemo-ejb/meta-inf/ /ejbdemo-ejb/meta-inf/ejb-jar.xml This is a quick overview (and may contain errors and omissions) Try the tutorials on orionsupport and jollem. [EMAIL PROTECTED] 04/09/01 12:50pm Hi all -- I'm new to EJB development, and am trying to start with Orion Server, but I'm having the hardest time figuring out how to even begin. I've written a bean and all the interfaces, which are all sitting in class files in the c:\java directory. I created a META-INF directory off of that, and created an ejb-jar.xml file in there. However, I can find *no* information about how to inform Orion about the existence of these files. I was trying to follow http://www.orionserver.com/tutorials/ejbtutorial.html, but it references a config/ejb.xml file which simply doesn't exist. I'm guessing it's old. Is there a simple step-by-step explanation of which files need to be modified, in what order, and what else I need to do to start doing development work? Am I better off just using a better (i.e. better supported and more completely documented) appserver? -- Chris
RE: Internal Server Error
You can also redirect stout to a file. Usage: java -jar orion.jar [switches] -install - installs the server, activates the admin account and rewrites text fi les to match the OS linefeed etc -quiet - surpress standard output -userThreads - enables context lookup support from user-created threads -config - specifies a location to server.xml -console - launches the admin console in-process -validateXML - valides (strictly) the XML files when reading them. -out [file] - specifies a file to route standard output to -err [file] - specifies a file to route error output to -version - Prints the version and exits. -? -help - print (this) help message so java -jar -out stdout.txt -err stderr.txt This should work from a service AFAIK [EMAIL PROTECTED] 04/04/01 01:36am Thank you for the replies! From: Mike Cannon-Brookes Sent: Tuesday, April 03, 2001 13:56 - check in your application.log file for that application, the errors will be there Thanks, it's there, and ehh, I've found an interesting problem. So it was me.. :| In the application log (oriondir\application-deployments\appname\application.log ) I've found a full stacktrace From: Johan Fredriksson Sent: Tuesday, April 03, 2001 14:34 I use this command line for starting orion on a windows machine java -jar -Djdbc.connection.debug=true orion.jar 1 \orionlog\systemout.txt 2 \orionlog\systemerr.txt Thank you also for the reply, but our orion running as a service, so I'm in doubt if it can work. But I'll try it of course. BR, Adam
Re: errors using Taglib
where did you put mytags.zip? you can't include it in your classpath, because java-jar doesn't use the classpath. try putting it in the lib directory [EMAIL PROTECTED] 04/04/01 10:12am Hi I am trying to use my own custom taglibs in one of the jsp pages. Orion_HOME directory c:\temp\Orion I copied a jsp file "customjsp.jsp" into Orion_home\default-web-app\examples\jsp\myjsp\ directory I customized the web.xml in Orion_home\default-web-app\WEB-INF directory to include taglib taglib-uri/webapp/DataTags.tld/taglib-uri taglib-location/WEB-INF/DataTags.tld/taglib-location /taglib I have/copied the DataTags.tld in Orion_home\default-web-app\WEB-INF directory and this tld uses the classes in "mytag.zip" I have included this zip file in my classpath as java -cp mytag.zip -jar orion.jar when starting the Orion. when I run my jsp thru the browser i get java.lang.IllegalArgumentException: Class datatags.ViObjTEI not found void com.evermind.server.http.d3.su(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse) boolean com.evermind.server.http.ef.s1(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean) void com.evermind.server.http.ef.do(java.lang.Thread) void com.evermind.util.f.run() appericiate your help cmpsuer __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
offtopic: Path issues
When I have multiple web applications running on the one server - I'm having problems referencing files in other directories. eg - I can't use "/images/anImage.gif" because that references the document root. I can use "%= request.getContextPath() %/images/anImage.gif" ,but that gets tedious. Is there a better way to do it? The other problem I have is referencing images from stylesheets and javascript files. Because they don't go through the JSP processor, I can't use request.getContextPath() . Without mapping .css and .js to the jsp servlet - is there a way around this? Also - with include files - are they always rooted from the web context ie @ include file="/includes/pageheader.jsp" % -- does this map to http://myserver.com/mywebapp/includes/pageheader.jsp ? Does the same go for jsp:include page="/includes/pageheader.jsp" / ? Thanks in advance for any help. Scott
Custom Error Pages
I am trying to write a custom error page for some of my errors, but I can't manage to print the stack trace nicely. Does anyone have an example they can point me to of an error page that prints errors nicely (source code)? Thanks in advance Scott
Re: Problem in Executing the First Example given in the Oriontaglib-tutorial Documentation !!
What does the file taglib.tld contain? It looks like there is a problem with that file. [EMAIL PROTECTED] 03/12/01 02:34pm Hi, I have downloaded the Helloworld.jsp, taglib.tld and helloworld .java compiled and got helloworld.class . and created the same directory structure as mentioned in the documentation of taglib-tutorial. I could able to compile HelloWorld.java when i run the HelloWorld.jsp , it produces the following error : 500 Internal Server Error java.lang.IllegalArgumentException: Error parsing tag-library file:/D:/orion/applications/nbizdev/niagabiz-web/Web-inf/taglib.tld: XML declaration may only begin entities. at javax.servlet.jsp.tagext.TagLibraryInfo.init(TagLibraryInfo.java) at com.evermind.server.http.TagLibraryArchive.init(JAX) at com.evermind.server.http.TagLibraryArchive.r9(JAX) at com.evermind.server.http.d_.r3(JAX) at com.evermind.server.http.HttpApplication.r3(JAX) at com.evermind.server.http.eg.tn(JAX) at com.evermind.server.http.eg.sm(JAX) at com.evermind.server.http.JSPPage.sm(JAX) at com.evermind.server.http.HttpApplication.v4(JAX) at com.evermind.server.http.HttpApplication.w5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) I tried a lot to find out the cause of this problem. But could not succeed. I wasted 2 full days in rectifying this problem. Please help me. this Problem is making me mad... thanks a lot. Srinivas
RE: security in web-apps
please use the web form at www.orionserver.com/subscribe.html [EMAIL PROTECTED] 03/12/01 04:45pm REMOVE UNSUBSCRIBE -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Matthews Sent: Monday, March 12, 2001 7:14 AM To: Orion-Interest Subject: Re: security in web-apps there shouldn't be a problem with this. you might want to post more information on what url you're using + the config details in server.xml and default-web-site.xml. - Original Message - From: "Kiss Tibor" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Saturday, March 10, 2001 5:49 PM Subject: security in web-apps Hi! I have created an ear file containing only a war file (with some jsps) just for experimenting, as I am quite new to orion. However, if I try to access my web-app, I get a 403 Forbidden error. Anyone got some suggestions/examples how I can control access security for my war? Thanks Tibor
Fwd: Your message concerning Re: Problem in Executing theFirst Example given in the Orion
Can someone please remove this email address from the mailing list. [EMAIL PROTECTED] I have done it manually from the web form twice now, but to no avail. Thanks Scott taglib-tutorial Documentation !! The person you have tried to contact is no longer employed at Netch Technologies. You may wish to contact us at [EMAIL PROTECTED] instead, or visit us on the web, http://www.netch.se/ . This message is probably caused by one of the following recipient adresses: [EMAIL PROTECTED] [EMAIL PROTECTED] If you feel this message is in error, mail [EMAIL PROTECTED] to get in touch with the mail administrator. regards, /netch/ The original message follows: From [EMAIL PROTECTED] Tue Mar 13 00:44:56 2001Received: (from root@localhost) by atwood.netch.se (8.9.3/8.9.3) id AAA10471 for [EMAIL PROTECTED]; Tue, 13 Mar 2001 00:44:56 +0100 Received: from ernst-hugo.netch.se (IDENT:[EMAIL PROTECTED] [194.16.2.10]) by atwood.netch.se (8.9.3/8.9.3) with ESMTP id AAA10468 for [EMAIL PROTECTED]; Tue, 13 Mar 2001 00:44:56 +0100 Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED] [195.58.126.196]) by ernst-hugo.netch.se (8.9.3/8.9.3) with ESMTP id AAA13102; Tue, 13 Mar 2001 00:44:56 +0100 Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED] [195.58.126.196]) by druid.evermind.net (8.9.3/8.9.3) with SMTP id BAA27226; Tue, 13 Mar 2001 01:07:57 -0100 Received: from inet010.citec.com.au (firewall-user@[203.18.109.13]) by paladin.evermind.net (8.9.3/8.9.3) with ESMTP id CAA20626 for [EMAIL PROTECTED]; Tue, 13 Mar 2001 02:01:17 -0500 Received: by inet010.citec.com.au; id JAA24787; Tue, 13 Mar 2001 09:03:19 +1000 (EST) Received: from ntvetmailp(mailhost.sydneywater.com.au 131.242.85.29) by inet010.citec.com.au via smap (V2.0) id xma024769; Tue, 13 Mar 01 09:03:14 +1000 Received: from nt220mail.sw.com.au (unverified [10.220.3.4]) by ntvetmailp (Vet Mail SMTPRS 2.0.15) with ESMTP id B0004479330@ntvetmailp for [EMAIL PROTECTED]; Tue, 13 Mar 2001 10:07:14 +1100 Received: from gwdomawt-nrs.sw.com.au (unverified) by nt220mail.sw.com.au (Content Technologies SMTPRS 4.2.1) with SMTP id [EMAIL PROTECTED] for [EMAIL PROTECTED]; Tue, 13 Mar 2001 08:36:05 +1100 Received: from HO-Message_Server by gwdomawt-nrs.sw.com.au with Novell_GroupWise; Tue, 13 Mar 2001 08:35:18 +1000 Message-Id: [EMAIL PROTECTED] X-Mailer: Orion ListServer Date: Tue, 13 Mar 2001 08:14:15 +1000 From: "SCOTT FARQUHAR" [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Re: Problem in Executing the First Example given in the Orion taglib-tutorial Documentation !! MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by paladin.evermind.net id CAA20627 Reply-To: Orion-Interest [EMAIL PROTECTED] Sender: [EMAIL PROTECTED] What does the file taglib.tld contain? It looks like there is a problem with that file. [EMAIL PROTECTED] 03/12/01 02:34pm Hi, I have downloaded the Helloworld.jsp, taglib.tld and helloworld .java compiled and got helloworld.class . and created the same directory structure as mentioned in the documentation of taglib-tutorial. I could able to compile HelloWorld.java when i run the HelloWorld.jsp , it produces the following error : 500 Internal Server Error java.lang.IllegalArgumentException: Error parsing tag-library file:/D:/orion/applications/nbizdev/niagabiz-web/Web-inf/taglib.tld: XML declaration may only begin entities. at javax.servlet.jsp.tagext.TagLibraryInfo.init(TagLibraryInfo.java) at com.evermind.server.http.TagLibraryArchive.init(JAX) at com.evermind.server.http.TagLibraryArchive.r9(JAX) at com.evermind.server.http.d_.r3(JAX) at com.evermind.server.http.HttpApplication.r3(JAX) at com.evermind.server.http.eg.tn(JAX) at com.evermind.server.http.eg.sm(JAX) at com.evermind.server.http.JSPPage.sm(JAX) at com.evermind.server.http.HttpApplication.v4(JAX) at com.evermind.server.http.HttpApplication.w5(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d1.si(JAX) at com.evermind.server.http.d1.forward(JAX) at com.evermind.server.http.ed.sp(JAX) at com.evermind.server.http.ed.so(JAX) at com.evermind.util.f.run(JAX) I tried a lot to find out the cause of this problem. But could not succeed. I wasted 2 full days in rectifying this problem. Please help me. this Problem is making me mad... thanks a lot. Srinivas
Re: mime types for .js
global-web-application.xml specifies the file for mime types. in my case it is called mime.types do a search for mime* and you should find it. [EMAIL PROTECTED] 03/12/01 06:32am There seems to be a *feature* of NS browsers that requires a server mime-type for any javascript which is referenced in a web page. I have looked in the documentation, but can't seem to find the deployment xml file where I can add various mime types. Does anybody know how to add mime types to Orion? Regards, the Elephantwalker
Re: Uploading class file from application client
I would imagine that you would need to upload the class to somewhere where the classloader can find them. I'm not sure where this is in orion. If orion can load classes dynamically, then all you would have to do is to save them into the correct directory. If you want to save them to a database, you may have to write your own version of classloader. Not sure how hard this would be. Scott PS - Read the above at your own risk - i'm purely speculating. [EMAIL PROTECTED] 03/09/01 07:48am Hello, This is not an Orion specific question, but since I'm using Orion 1.4.7 I thought I'd try here. Is it possible to upload a class file from an application client? I want users to be able to implement a serializable interface, say X, and upload it to the server. The server will manage the interface and other users should be able to use that interface. I can model this as an Entity bean that has an attribute which is of type Class. However, the server would not have the implementation class on its classpath. How can I achieve this result? Or am I looking at the problem the wrong way? Thanks, Vidur
Re: Using Orion with Apache...
use the web form at: www.orionserver.com/subscribe.htm [EMAIL PROTECTED] 03/08/01 08:25am pl. unsubscribe --- Alex Paransky [EMAIL PROTECTED] wrote: If I follow the documentation on http://orionsupport.com and configure Apache as reverse proxy, how do I deal with SSL? In other words, if user is trying to access https://www.bigcorp.com/myapp/index.jsp which is configured to proxy to ORION, do I still need to install the SSL on the Orion server, or would Apache handle the SSL encryption when it forwards the request to Orion? Thanks. -AP_ __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: JSP Session setting
AFAIK the session object is implicit to the page, such as request, response etc. It is part of the spec. [EMAIL PROTECTED] 03/07/01 01:43am I'm not sure if this is the correct place to ask this question but is there a way to turn off the session tracking in the jsp compiling in orion? Currently, no matter how you set the session-tracking tag in the configuration, when jsps are compiled the following line are ALWAYS there: HttpSession session; session = request.getSession(true); It seems that this will hinder performance in a clustered environment where only some of the applications require sessions. Is there a way to turn this off at a page or application level? Thanks Jim
RE: HTML/WML from JSP
Try looking at filters to parse the output using the user-agent info. You could use a servlet / jsp to produce xml, and then a filter using a different XSL transformation to parse send back to the client. It depends on how many pages you are going to produce whether it is worth the hassle. Scott [EMAIL PROTECTED] 03/07/01 08:41am If you want to determine the client and apply an appropriate xsl transformation from the same .jsp you can request.getHeader("USER-AGENT") and parse the result - this is handy for formatting wap content for different phones. I don't know if there's an orion specific easier way to do this as there is with cocoon (the 'user agents' section of cocoon.properties) - does anyone else know? As an aside this isn't always the best way to do it as you incur the overhead of the transformation for every hit. See http://java.sun.com/products/jsp/html/JSPXML.html for more on this. cheers daryl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Smith Sent: 06 March 2001 16:19 To: Orion-Interest Subject: RE: HTML/WML from JSP Orion comes with some examples as part of it's default web site: Try http://localhost/examples/xsl/doc.jsp or look in your orion directory: orion/default-web-app/examples/xsl -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kiss Tibor Sent: Tuesday, March 06, 2001 9:00 AM To: Orion-Interest Subject: HTML/WML from JSP Hi! I am quite new to Orion, but have some experience with XML/XSL/JSP/HTML/WML. I have read in the official FAQ, that it is possible to use the XML output of a JSP and format it with client dependent XSL-s for WML or HTML. However, I was unable to find any additional information. Could anyone help me or point me to an example? Thanks Tibor
Re: https problems...
I'm guessing that you have something running on the same port as ssl (443). Check that you don't have anything else running on those boxes that might be listening on that port. [EMAIL PROTECTED] 03/06/01 06:58am I've read the two documents on setting up https and have performed the steps five times using Linux and Windows. But I can't seem to get Orion to slip into SSL. The only clue I have is this message at Orion startup: # Error starting HTTP-Server: Unable to intialize SSLServerSocketFactory 'com.evermind.ssl.JSSESSLServerSocketFactory': Address already in use Orion/1.4.5 initialized What address?? Does Orion mean port?? What port is it trying to use?? -- -Geoff Marshall, Director of Development ... t e r r a s c o p e (415) 951-4944 54 Mint Street, Suite 110 direct (415) 625-0349 San Francisco, CA 94103 fax (415) 625-0306 ...
RE: Standard Err stream
Type "java -jar orion.jar -?" for options on error streams and logging -Original Message- From: Seung Bang [mailto:[EMAIL PROTECTED]] Sent: Friday, 15 December 2000 10:35 To: Orion-Interest Subject: Standard Err stream Hello, Where does 'System.err.println()' print? For debugging purpose, I put some System.out.println() statements. Of course, it prints messages on the console window where I started orion. However, if I run the orion server in the background and close the console window, there is no way of viewing the debug messages. Instead, I used System.err stream and I noticed it did not log any message in any log files. If any of you have experience with other servers such as Caucho's resin server, you may have noticed that it logs everything out of standard error stream in a specific log file. I believe orion has something equivalent to that. Or at least something very close to that. Please help. Thanks a million.
RE: weird Orion 1.4.4 JSP bug
AFAIK you cannot close a tag with parameters: /webwork:isnotnull name="$name" Try without the parameter -Original Message- From: Hristo Stoyanov [mailto:[EMAIL PROTECTED]] Sent: Friday, 15 December 2000 11:51 To: Orion-Interest Subject: weird Orion 1.4.4 JSP bug Hi-, It looks like The Orion 1.4.4 code generator for jsps has an error. First, here is the JSP itsel and below is the error message =JSP page= %@ taglib uri="webwork" prefix="webwork" % !-- webwork:include page="/request.jsp" -- webwork:notexists name="$name" webwork:isnotnull name="$name" webwork:include page="/template/standard/text.jsp" webwork:param name="label"value="User name:"/ webwork:param name="name" value=webwork:property name="$user"/ / /webwork:include webwork:include page="/template/standard/password.jsp" webwork:param name="label" value="Password:"/ webwork:param name="name" value=""/ webwork:param name="size" value="10"/ webwork:param name="maxlength"value="15"/ /webwork:include /webwork:isnotnull name="$name" /webwork:notexists Error message== Error parsing JSP page /webapp/login.jsp Syntax error in source/login_content.jsp.java:44: 'while' expected. } ^ /login_content.jsp.java:45: 'catch' without 'try'. catch(Exception __jspE2) ^ /login_content.jsp.java:57: 'try' without 'catch' or 'finally'. } ^ /login_content.jsp.java:57: '}' expected. } ^ 4 errors __ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/
RE: Overwritting: orion-ejb-jar.xml
See if this answers your question: http://www.mail-archive.com/orion-interest%40orionserver.com/msg07429.html You can package the orion-ejb-jar.xml in with your application. -- From: Tobias Streckel[SMTP:[EMAIL PROTECTED]] Sent: Monday, 11 December 2000 21:45 To: Orion-Interest Subject: Overwritting: orion-ejb-jar.xml Hello, I have a full functional ear-file. The file was bind in orion. Orion deploys me the orion-ejb-jar.xml file but if I want to change it and restart the server the file will be overwrite and me changes will be lost! If the are flag or option to use my settings??? Thanks Tobi
RE: Lib entry and tools.jar placement
From the docs, I gather that you place the library line in server.xml . I could be wrong, but putting library in an application file would not allow orion to see it. -- From: August Linnman[SMTP:[EMAIL PROTECTED]] Sent: Saturday, 9 December 2000 4:45 To: Orion-Interest Subject: Lib entry and tools.jar placement Hello everybody, The need of a java compiler for JSP is probably well known, as well as the trick to copy the "tools.jar" to the Orion root directory. And failing to do this results in the following error message: Compiler error: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to the orion dir or add a library path="the/path/to/tools.jar" / and restart I would like to try the second alternative, by adding this "library" element to some XML file, which i assume is config/application.xml. However, after a lot of trial-and-horror I have not been able to make this technique working. Anyone knowns of any tricks, or better, can describe the loading mechanisms involved using the "library" statement. I use Orion 1.3.8 on a Windows NT / Windows 2000 configuration. Best regards /August
RE: integrating orion-ejb-jar.xml into application
This has been answered before - check the archive at www.orionserver.com Here is the original email: --- You can include a sample orion-ejb-jar.xml file in your project by including it in a directory called orion: /lib /client /ejb /au /com /meta-inf /orion /tags /web Include the orion-ejb.jar in the orion directory, and orion will deploy it. However, orion does not timestamp the deployed file, so every time you change the file, you will need to remove the file from /orion/application-deployments Has the timestamping bug been submitted to bugzilla? Scott --- -- From: [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]] Sent: Tuesday, 5 December 2000 2:02 To: Orion-Interest Subject: integrating orion-ejb-jar.xml into application Hey! I understand the possibilities of the orion-ejb-jar.xml file (specifying finder-sqls and rel-mapping), but I wan't to intigrate this into our application appname.ear or the tree beneath orion/applications. Are there any possibilities to integrate these information into the ejb-jar.xml or to place the orion-ejb-jar.xml somewhere in the application? I think these information at least finder-statements are somehow part of the application thanks in advance Marcus Lankenau -- begin:vcard n:Lankenau;Marcus x-mozilla-html:FALSE url:wwl.de org:wwl vision2market;Interactive adr:;;goebelstr. 46;Lilienthal;D;28865; version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Developer fn:Marcus Lankenau end:vcard
RE: table names in CMP EJB's
You can include a sample orion-ejb-jar.xml file in your project by including it in a directory called orion: /lib /client /ejb /au /com /meta-inf /orion /tags /web Include the orion-ejb.jar in the orion directory, and orion will deploy it. However, orion does not timestamp the deployed file, so every time you change the file, you will need to remove the file from /orion/application-deployments Has the timestamping bug been submitted to bugzilla? Scott -- From: Adam Winter[SMTP:[EMAIL PROTECTED]] Sent: Wednesday, 29 November 2000 7:36 To: Orion-Interest Subject: table names in CMP EJB's Hi all, I can see how to change the table name associated with an Entity JavaBean in the orion-ejb-jar.xml. But, how can I include that change along with the source for my application so that it acts the same way for all users? I tried putting that information under my ejb's META-INF directory, but that didn't work. -adamw _ "Good design is the only real shortcut." Adam Winter Application Engineer II @Outcome, Inc 7000 West William Cannon, Building. 1, Suite. 100, Austin, TX 78735 http://www.atoutcome.com Ph. (512)899-1948 Ext.1010 Fx. (512)899-3880
RE: error instantiating web-app JNDI-context, JSP - EJB -- solved!
I'm sort of new to all this, but I will try and do my best to explain. Think in terms of a packed application (ie application.ear) Server files: Server.xml = this defines the location of the ear file so that orion can find it. default-web-app.xml = this defines the web-server side of orion, where to root applications at. So if you had multiple applications then you can root them at different positions in the directory structure Client files: application.xml = this defines all the components of the application. You will most probably have an EJB component(*.jar), web component (*.war), and client component (*.jar). Once orion has looked at server.xml and found a path to this file, it will look for components to deploy (extract). You may have multiple web components in an application. Web.xml = this sets up parameters for this particular web, such as welcome file lists, and tag libraries. AFAIK there is one web.xml file for each web application. I hope that explains it. Scott -- From: Garret Wilson[SMTP:[EMAIL PROTECTED]] Sent: Thursday, 23 November 2000 8:10 To: Orion-Interest Subject: Re: error instantiating web-app JNDI-context, JSP - EJB -- solved! Finally! I just now found the problem. I needed to add the following line in the Orion web-site.xml file: web-app application="myApplication" name="web" root="/" / My test JSP page worked, and since I was calling from within the container I just need to use InitialContext() without setting properties. Now, can someone explain to me why there appear to be *four* redundant references to the same application path? They are: 1. In Orion's server.xml file (doctype: application-server): application name="myApplication" path="../myApplication/" / 2. Orion's application.xml (doctype: orion-application): web-module id="defaultWebApp" path="../myApplication/web/" / 3. Orion's web-site.xml file (doctype: web-site): web-app application="myApplication" name="web" root="/" / 4. The J2EE application.xml file (doctype: application): modulewebweb-uriweb/web-uri/web/module Why do these four elements point to the same directory? And why did I need to have all four defined before my test would work? Perhaps I don't fully understand the purpose of each of these; I would *love* an explanation. Thanks for everyone who responded to my original question. Garret - Original Message - From: "Boris Gertsberg" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 1:27 PM Subject: Re: error instantiating web-app JNDI-context, JSP - EJB check location="..." for your bean in orion-ejb-jar.xml Try to do Context ctx=new InitialContext(); Object obj=ctx.lookup("com.company.Caller"); // or whatever JNDI name you have in location in orion-ejb-jar.xml Boris P.S. It is very nice that you initialize Properties but you should use them in constructor, i.e. Context ctx=new InitialContext(properties); As I understand you might need that only if you remotely connect to application server. Everything works fine even without it from JSP at least in Orion and WebLogic. - Original Message - From: "Garret Wilson" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 1:44 PM Subject: error instantiating web-app JNDI-context, JSP - EJB I've been stuck for days trying to call a sample entity EJB from JSP. (I believe this question has been asked before on the list, but I can't find any responses.) Specifically, when calling context.lookup() from testdb.jsp, I get the following error: javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance of the type 'com.company.Caller' found for the ejb-ref ejb/CallerBean at com.evermind.server.http.HttpApplication.getEnvironmentContext(JAX) [etc.] I know that my ejb-jar.xml file is being located correctly, because Orion automatically creates the CMP table (note that I am using a directory structure instead of an actual .jar file): ***ejb-jar.xml*** entity descriptionRepresents a caller in the Voyager system./description ejb-namecom.company.Caller/ejb-name homecom.company.CallerHome/home remotecom.company.Caller/remote