Oracle data-source connect
Hello, I am new w/ Orion and I have the following problem: I can't connect however it seems to be connected but when I want to call some method from Connection class (like con.getMetaData or con.createStatement) I just get exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection When I check listener log file, there is of course no record about getting connection. I have Oracle8.0.6, jdk1.2.2, orion1.3.8 My data-source.xml looks like: data-source class="com.evermind.sql.ConnectionDataSource" name="Oracle" location="jdbc/OracleDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="tiger" url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29" inactivity-timeout="30" schema="database-schemas/oracle.xml" / web.xml looks like: context-param param-nameOracleDS/param-name param-valuejdbc/OracleDS/param-value /context-param resource-ref descriptionTest Data Source/description res-ref-nameOracleDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authApplication/res-auth /resource-ref and EJB code: final private String dbName = "jdbc/OracleDS"; String s = ""; /** THIS PART WORK FINE, BUT IT DOESN'T MAKE CONNECTION AT ALL ***/ InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup(dbName); Connection con = ds.getConnection(); s = "Conected"; if ( con.isClosed() ) s += "Closed"; else s += "NOT Closed"; / THIS PART DOESN'T WORK !!! *** DatabaseMetaData dm = con.getMetaData(); s += dm.getDriverVersion(); Statement st = con.createStatement(); ResultSet rs = st.executeQuery("SELECT ename FROM emp"); if ( rs.next() ) s += rs.getString("ename"); else s += "Empty"; */ con.close(); return s; I really don't know what to do. I spent two days over that problem and I am lost!!! Thank you VERY much for any advice. btw: I spend another day w/ java:comp/env/jdbc/OracleDS :(( Martin
Re: Initial JMSTest++ results, sort of
During all the JMSTest++ tests, both successful and otherwise, Orion didn't crash once. JMSTest++'s JMS compliance tests are necessarily detailed and broad and I find it impressive that while Orion may not have been able to behave appropriately during the tests it never once blinked. So while it didn't support the expected functionality it never once was caught off guard by the test's attempts. Quite an achievement. -- Jason Rimmer [EMAIL PROTECTED]
Re: Supporting classes not getting picked up
hmm, classloader-science (not rocket-science, as Rober Krueger told me lately :-)). which classes cannot be loaded? And who loads them? -Original Message- From: Drew Kidder [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Donnerstag, 2. November 2000 07:56 Subject: Supporting classes not getting picked up I'm at my wit's end. I have a class that resides in $ORION_HOME/applications/twsm/twsm-web/WEB-INF/classes/com/tivoli/xtela/cor e/license. It (apparently) needs to call a class com.ibm.cfmwk.builtin.Provider. Now, I have tried putting a fully expanded com/ibm/cfmwk/builtin/* tree under WEB-INF/classes, and that doesn't work. I jarred them up, and stuck them in the WEB-INF/lib directory. No go. Where in the world do I need to put this class hierarchy so it can be found This is really frustrating, and I could use some help on this one
Re: more question for xml,xsl in orion
I have a XML with data and XSL with the layout information AND JSP Java code in it. How can I tell orion to: 1. Put XML and XSL together and output JSP. 2. Then compile the JSP output to html. I can get XML and XSL to merge together but the JSP compiler will not compiler the JSP output. For example, here is the code. Thanks I am not amazed that the JSP compiler does not get invoked. After all, what orion sees is a request for an XML resource. I presume you would have to somehow generate a second request (via RequestDispatcher.forward()) for the generated JSP page after doing the transformation. This would imply that the XML is never requested directly but through a servlet, which makes 2 calls (include() to invoke the transformation, then forward() to call the JSP). just my 2c Christian
Re: EJB Clustering in Orion
Julian Khoo wrote: Does anyone have any experience clustering Orion EJB servers successfully in a production (or even development) environment? I've tried clustering a web application and it generally seems OK. However, in order to eliminate single points of failure in deployment, I assume that I would have to cluster the EJBs as well. To do that, I've tried running multiple copies of Orion on separate machines, all of them accessing a common set of ejb class files, jsp files, etc from a shared location as well as a common datasource with exclusive-write-access="false" in the orion-ejb-jar.xml files. i'm running some Orion Servers in an "Linux Virtual Server" Cluster (http://www.linuxvirtualserver.org) currently only in my development environment but in short also in production. Linux 2.2.17, Orion 1.4.0, Sun JDK 1.3, Oracle 8.0.5/8.1.6 bye klaus -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] "There's got to be more to life than compile-and-go."
RE: xml,xsl in orion
Hi Jan, I downloaded the latest version of Orion and under orion\default-web-app\examples\xsl you should find the example. But, should not the orion server do the conversion and send html to the browser, because, that would make more sense and make the process browser independent. I am very sure that I am missing something here. I am not sure what. I would definetly appreciate some help on this. Thanks, Manoj -Original Message- From: "Jan Tye" [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 3:58 PM To: "Orion-Interest" Subject: RE: xml,xsl in orion The Netscape 4.xx browsers do not support XSL. AOL 6.0 is supposed to support XSLT but I have not checked this out. I would like to check out the doc.xml demo. Where do I download it from? Thanks, Jan. At 01:29 PM 11/1/00 -0500, you wrote: Hi friends, I was able to get the doc.xml working under IE, but Netscape(4.74) displays a blank page, although, it displays the XML source when I do the view source. Is it a know issue under Netscape? The other question is, I always thought that the conversion is being done on the server side, but, it does not look so, because I can see the XML document when I do 'View Source'. Would appreciate some feedback on it. Thanks, Manoj -Original Message- From: "Johan Fredriksson" [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 3:26 AM To: "Orion-Interest" Subject: RE: xml,xsl in orion It depends on what you want to achieve with this. The easiest thing is to edit mime.types and change the text/xmlxml ent cat sty to text/htmlxml ent cat sty or move the xml entry to an existing text/html This will force internet explorer to display the xml - document properly. - Original Message - From: Terence mailto:[EMAIL PROTECTED] Kwan To: Orion-Interest mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2000 7:33 AM Subject: xml,xsl in orion I am trying out the examples/xsl/data.xml demo. However, the browser think the returned stream is xml instead of html. How can I set the return stream type to html for xml file? So the browser will display the result in html instead of xml. Basically, I want to do the following: Thanks TK - car.xml - ?xml version="1.0? ?xml-stylesheet href="car.xsl" type="text/xsl"? % // Query database to get car information String sCarName="Toyota"; % car name%=sCarName%/name /car car.xsl ?xml version="1.0"? xsl:stylesheet xmlns:xsl=" http://www.w3.org/1999/XSL/Transform http://www.w3.org/1999/XSL/Transform " version="1.0" xsl:output method="html"/ xsl:template match="car" html head titleCar /title /head body h1xsl:value-of select="name"//h1 /body /html /xsl:template /xsl:stylesheet
RE: Servlet to EJB Principals/Credentials problem! Impossible to solve?!
Hi, Matt There's not that much "seems" to it, nor black magic. :-) I can't tell why EJBs in one scenario see "guest" and in the other they see the proper user, since I don't know how you're logging in and what the test program is. In short, though, there are only so many ways to identify a user to the server in a proper way: 1. jndi.properties, or type it in to the dialog, when using an app client; 2. form-based login (again, a username/password pair); 3. client certs; 4. programmatic using the RoleManager (Orion-specific). When you're using a servlet as your front-end, then, I guess the question is, how are your users logging in? If they are not then you will always see "guest". It sounds like your test program is an app client, the login dialog is popping up, and off you go - no problems. But that's just a guess. So I guess it comes down to details on how your login in the servlet situation is being accomplished, before we can offer any advice. Arved Sandstrom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Matt MacGillivray Sent: Wednesday, November 01, 2000 4:58 PM To: Orion-Interest Subject: Servlet to EJB Principals/Credentials problem! Impossible to solve?! MY GOAL: I would like to properly log into orion, from a servlet, when requesting EJB calls. I'd like to know which servlet users are hitting which EJBs without explicitly passing the username and password around. This must be possible!! Here is the situation: I'm running Orion 1.3.8 on WINNT 4.00.1381 with JDK-1.2.2_005. Orion is running a servlet that accesses EJBs also run under Orion. I am attempting to pass a username and password back through the use of the SECURITY_PRINCIPAL and SECURITY_CREDENTIAL. When the servlet sets up the call to the EJB and calls it, the PRINCIPAL, when printed out from the EJB always seems to be 'guest'. When I use a test program that calls the EJB through through orion, it seems to get the proper username and password. Why does it not work through the servlet? Why is this happening? One theory brought to my attention was that the two scenarios use different virtual machines. i.e. the first scenario (servlet - ejb) always uses a single virtual machine, while the second (test class - ejb) uses two virtual machines (one for orion, one for the test class). Why would separate virtual machines affect the PRINCIPALS and CREDENTIALS? Any and all help would be appreciated. Matt MacGillivray Technical Developer Delfour Corporation (905) 415-9779 x2021 [EMAIL PROTECTED]
Some strange behavior w/wo exclusive-write-access
Hello Orion Users, i have some strange behavior in Orion 1.3.8 , when add in orion-ejb-jar.xml entity-deployment exclusive-write-access="false" . Normally findMETHOD return one instance or Enumeration/Collection, and when findMETHOD doesn`t find instance/s it throw FinderException, but If i set exclusive-write-access="false", it doesn`t throw FinderException and myCollection.size() === 0. Are you have this behavior ? George /
Re: Oracle data-source connect
Now I have exactly: Linux2.2.16 jdk1.2.2 j2sdk1.2.1 Orion1.3.8 Oracle8.1.6.1 I tried drivers for Oracle8.1.6.x java2, and Oracle8.1.7. java2, both java thin; But I found another interesting afair ... When I want to use (jdbc/OracleEJBDS): data-source class="com.evermind.sql.ConnectionDataSource" name="Oracle" location="jdbc/OracleDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleEJBDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="tiger" url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29" inactivity-timeout="30" schema="database-schemas/oracle.xml" / and web.xml: context-param param-nameOracleEJBDS/param-name param-valuejdbc/OracleEJBDS/param-value /context-param resource-ref descriptionTest Data Source/description res-ref-nameOracleEJBDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authApplication/res-auth /resource-ref then following code throws the same exception, but much sooner ... I can't call DataSource.getConnection(xxx) method. like this: final private String dbName = "jdbc/OracleEJBDS"; InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup(dbName); Connection con = ds.getConnection();//** -- DOESN'T WORK ... ? :-( "J.T. Wenting" wrote: What version of the Oracle JDBC drivers are you using? This problem occurs with drivers with versions 8.1.6, so you probably need to upgrade. Your JDBC driver should be in a file called Classes12.zip or newer, not Classes111.zip or older. Jeroen T. Wenting [EMAIL PROTECTED] Murphy was wrong, things that can't go wrong will anyway -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Martin Dolog Sent: Thursday, November 02, 2000 10:44 To: Orion-Interest Subject: Oracle data-source connect Hello, I am new w/ Orion and I have the following problem: I can't connect however it seems to be connected but when I want to call some method from Connection class (like con.getMetaData or con.createStatement) I just get exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection When I check listener log file, there is of course no record about getting connection. I have Oracle8.0.6, jdk1.2.2, orion1.3.8 My data-source.xml looks like: data-source class="com.evermind.sql.ConnectionDataSource" name="Oracle" location="jdbc/OracleDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="tiger" url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29" inactivity-timeout="30" schema="database-schemas/oracle.xml" / web.xml looks like: context-param param-nameOracleDS/param-name param-valuejdbc/OracleDS/param-value /context-param resource-ref descriptionTest Data Source/description res-ref-nameOracleDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authApplication/res-auth /resource-ref and EJB code: final private String dbName = "jdbc/OracleDS"; String s = ""; /** THIS PART WORK FINE, BUT IT DOESN'T MAKE CONNECTION AT ALL ***/ InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup(dbName); Connection con = ds.getConnection(); s = "Conected"; if ( con.isClosed() ) s += "Closed"; else s += "NOT Closed"; / THIS PART DOESN'T WORK !!! *** DatabaseMetaData dm = con.getMetaData(); s += dm.getDriverVersion(); Statement st = con.createStatement(); ResultSet rs = st.executeQuery("SELECT ename FROM emp"); if ( rs.next() ) s += rs.getString("ename"); else s += "Empty"; */ con.close(); return s; I really don't know what to do. I spent two days over that problem and I am lost!!! Thank you VERY much for any advice. btw: I spend another day w/ java:comp/env/jdbc/OracleDS :(( Martin -- #md
Re: Supporting classes not getting picked up
The class com.ibm.cfmwk.builtin.Provider cannot be loaded. The com.tivoli.xtela.core.license.LicenseGenerator works just fine, but when I try to actually generate a license, the message "(Cannot find com.ibm.cmfwk.builtin.Provider)" appears on stderr, and Orion crashes. I'm not entirely sure who loads them, as this is pre-written code (all I have are the class files). After I posted last night, I even went so far as to copy the com/ibm/... tree to the same directory where LicenseGenerator lives. That didn't work either. At 03:08 AM 11/02/2000 -0600, you wrote: hmm, classloader-science (not rocket-science, as Rober Krueger told me lately :-)). which classes cannot be loaded? And who loads them? -Original Message- From: Drew Kidder [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Donnerstag, 2. November 2000 07:56 Subject: Supporting classes not getting picked up I'm at my wit's end. I have a class that resides in $ORION_HOME/applications/twsm/twsm-web/WEB-INF/classes/com/tivoli/xtela/cor e/license. It (apparently) needs to call a class com.ibm.cfmwk.builtin.Provider. Now, I have tried putting a fully expanded com/ibm/cfmwk/builtin/* tree under WEB-INF/classes, and that doesn't work. I jarred them up, and stuck them in the WEB-INF/lib directory. No go. Where in the world do I need to put this class hierarchy so it can be found This is really frustrating, and I could use some help on this one -- Andrew Kidder L3 SW/Support Engineer, IBU Tivoli Systems 512-436-4544 [EMAIL PROTECTED] http://www.tivoli.com
Re: Oracle data-source connect
Martin, I have been using the following entry in data-sources.xml with some success. data-source class="oracle.jdbc.pool.OracleDataSource" name="Oracle" location="jdbc/devDS" ejb-location="jdbc/devDS" xa-location="jdbc/devXA" schema="database-schemas/oracle.xml" connection-driver="oracle.jdbc.driver.OracleDriver" username="user" password="password" url="jdbc:oracle:thin:@oracle.servana.com:1521:dev" inactivity-timeout="30" / The main difference is the format of the url and the "class" entry. Good luck, Kris --- Martin Dolog [EMAIL PROTECTED] wrote: Hello, I am new w/ Orion and I have the following problem: I can't connect however it seems to be connected but when I want to call some method from Connection class (like con.getMetaData or con.createStatement) I just get exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection My data-source.xml looks like: data-source class="com.evermind.sql.ConnectionDataSource" name="Oracle" location="jdbc/OracleDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="tiger" url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29" inactivity-timeout="30" schema="database-schemas/oracle.xml" / --- snip __ Do You Yahoo!? From homework help to love advice, Yahoo! Experts has your answer. http://experts.yahoo.com/
RE: Orion w/ postgresql
Yes, I got CMP working with both EJB1.1 and EJB2.0 entity beans and dependent objects. I currently have Entity beans nested about 3 deep and each has several dependent objects. -tim -Original Message- From: Seung Bang [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 6:53 PM To: Orion-Interest Subject: Re: Orion w/ postgresql Tim, To begin with, I really appreciate your time. I have one question for you, Tim. Are you sure you are running CMP beans with THE config. files? I still can't get it working. I was able to get my BMP beans working with my original configs, but not with CMP's. Once again, thanks very much. Seung, Tim Drury wrote: Seung, Here is my data-sources.xml and postgres.xml. I'm using postgres 7.0 and the 7.0.2 jdbc driver with great success. -tim ?xml version="1.0"? !DOCTYPE data-sources PUBLIC "Orion data-sources" "http://www.orionserver.com/dtds/data-sources.dtd" data-sources !-- An example DataSource that uses an ordinary JDBC-driver to create the connections, to install; set the proper URL to the db, specify the db- driver name and unrem the below section. This creates all the needed kinds of data-sources, transactional, pooled and EJB-aware sources. -- data-source name="Default data-source" class="com.evermind.sql.ConnectionDataSource" location="jdbc/DefaultDS" pooled-location="jdbc/DefaultPooledDS" xa-location="jdbc/xa/DefaultXADS" ejb-location="jdbc/DefaultEJBDS" schema="database-schemas/postgresql.xml" url="jdbc:postgresql://localhost/ejb" connection-driver="org.postgresql.Driver" username="ejb" password="password" / /data-sources ?xml version="1.0"? !DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema" "http://www.orionserver.com/dtds/database-schemas.dtd" database-scheme name="PostGreSQL" max-table-name-length="25" not-null="not null" null="" primary-key="primary key" type-mapping type="java.lang.String" name="varchar" / type-mapping type="java.lang.Integer" name="int8" / type-mapping type="int" name="int4" / type-mapping type="long" name="int8" / type-mapping type="float" name="float4" / type-mapping type="double" name="float8" / type-mapping type="byte" name="int2" / type-mapping type="char" name="char" / type-mapping type="short" name="int2" / type-mapping type="boolean" name="bool" / type-mapping type="java.util.Date" name="timestamp" / type-mapping type="java.io.Serializable" name="oid" / type-mapping type="java.math.BigDecimal" name="decimal" / disallowed-field name="parent" / disallowed-field name="password" / disallowed-field name="username" / disallowed-field name="date" / disallowed-field name="order" / disallowed-field name="old" / disallowed-field name="user" / /database-scheme -Original Message- From: Seung Bang [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 01, 2000 1:10 PM To: Orion-Interest Subject: Re: Orion w/ postgresql Mike Guilherme: Thanks very much for your tips. I tried as you guys instructed, and the same errors were produced. My postgresql jdbc driver is now the brand new 7.0.2 driver, and the '/usr/local/orion/config/database-schemas/postgresql.xml' file has null="" section in place of null="null". And of course I tried null="null" back in. All the trials yielded the same problem. Please Anybody? Any clue??? Thanks very very much... Seung,
RE: Orion w/ postgresql
If you guys are talking about the error, SQL error: ERROR: parser: parse error at or near ")" just ignore it. everything works despite that error. I get it too. -tim -Original Message- From: Mikko Kurki-Suonio [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 1:27 AM To: Orion-Interest Subject: Re: Orion w/ postgresql On Wed, 1 Nov 2000, Seung Bang wrote: Thanks very much for your tips. I tried as you guys instructed, and the same errors were produced. My postgresql jdbc driver is now the brand new 7.0.2 driver, and the '/usr/local/orion/config/database-schemas/postgresql.xml' file has null="" section in place of null="null". And of course I tried null="null" back in. All the trials yielded the same problem. Please Anybody? Any clue??? I've had the same problem. I submitted it to bugzilla, but it didn't seem to raise any concern. Anyway: It SEEMS that the base is working ok despite the error message. Blob support, however, does not work. Possibly in 7.1. Which brings me to another point: Is there any switch that lets you log the actual SQL clauses passed? I could write a fake passthrough JDBC driver to do that, but it'd seem silly
Re: Oracle data-source connect
Martin. Perhaps your oracle driver port should be 1521 instead of 1512? That seems to be the default. I think. -- %%% Roger Mosher eMail: [EMAIL PROTECTED] Center of Geographic Sciences phone: (902)825-5230 50 Elliott Roadfax: (902)825-6733 Lawrencetown, N.S. Canadaweb: http://www.cogs.nscc.ns.ca/ B0S 1M0 %%% - Original Message - From: "Martin Dolog" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Thursday, November 02, 2000 11:31 AM Subject: Re: Oracle data-source connect Now I have exactly: Linux2.2.16 jdk1.2.2 j2sdk1.2.1 Orion1.3.8 Oracle8.1.6.1 I tried drivers for Oracle8.1.6.x java2, and Oracle8.1.7. java2, both java thin; But I found another interesting afair ... When I want to use (jdbc/OracleEJBDS): data-source class="com.evermind.sql.ConnectionDataSource" name="Oracle" location="jdbc/OracleDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleEJBDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="tiger" url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29" inactivity-timeout="30" schema="database-schemas/oracle.xml" / and web.xml: context-param param-nameOracleEJBDS/param-name param-valuejdbc/OracleEJBDS/param-value /context-param resource-ref descriptionTest Data Source/description res-ref-nameOracleEJBDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authApplication/res-auth /resource-ref then following code throws the same exception, but much sooner ... I can't call DataSource.getConnection(xxx) method. like this: final private String dbName = "jdbc/OracleEJBDS"; InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup(dbName); Connection con = ds.getConnection(); //** -- DOESN'T WORK ... ? :-( "J.T. Wenting" wrote: What version of the Oracle JDBC drivers are you using? This problem occurs with drivers with versions 8.1.6, so you probably need to upgrade. Your JDBC driver should be in a file called Classes12.zip or newer, not Classes111.zip or older. Jeroen T. Wenting [EMAIL PROTECTED] Murphy was wrong, things that can't go wrong will anyway -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Martin Dolog Sent: Thursday, November 02, 2000 10:44 To: Orion-Interest Subject: Oracle data-source connect Hello, I am new w/ Orion and I have the following problem: I can't connect however it seems to be connected but when I want to call some method from Connection class (like con.getMetaData or con.createStatement) I just get exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection When I check listener log file, there is of course no record about getting connection. I have Oracle8.0.6, jdk1.2.2, orion1.3.8 My data-source.xml looks like: data-source class="com.evermind.sql.ConnectionDataSource" name="Oracle" location="jdbc/OracleDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="tiger" url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29" inactivity-timeout="30" schema="database-schemas/oracle.xml" / web.xml looks like: context-param param-nameOracleDS/param-name param-valuejdbc/OracleDS/param-value /context-param resource-ref descriptionTest Data Source/description res-ref-nameOracleDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authApplication/res-auth /resource-ref and EJB code: final private String dbName = "jdbc/OracleDS"; String s = ""; /** THIS PART WORK FINE, BUT IT DOESN'T MAKE CONNECTION AT ALL ***/ InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup(dbName); Connection con = ds.getConnection(); s = "Conected"; if ( con.isClosed() ) s += "Closed"; else
Orion Application Classpath
Hi I am trying to write a jsp page which lists the current CLASSPATH known to orion. Obviously, if i use System.getProperty("java.class.path"), i only get "orion.jar" (or whatever I have in my shell environment when i start orion). Presumably there is a way of asking Orion to report the classpath, either for the entire server, or more possibly on a per application basis. Either is fine for me. I have looked through the Orion API docs, and i can't see anything obvious that will do what I want. Can anyone help. Thanks Chris --
Re: Oracle data-source connect
Martin: I would try this first: 1. Change your resource-ref section like this: res-ref-namejdbc/OracleEJBDS/res-ref-name 2. Change your 'final private String dbName = .' variable like this: private final String dbName = "java:comp/env/jdbc/OracleEJBDS"; Seung, Martin Dolog wrote: Now I have exactly: Linux2.2.16 jdk1.2.2 j2sdk1.2.1 Orion1.3.8 Oracle8.1.6.1 I tried drivers for Oracle8.1.6.x java2, and Oracle8.1.7. java2, both java thin; But I found another interesting afair ... When I want to use (jdbc/OracleEJBDS): data-source class="com.evermind.sql.ConnectionDataSource" name="Oracle" location="jdbc/OracleDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleEJBDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="tiger" url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29" inactivity-timeout="30" schema="database-schemas/oracle.xml" / and web.xml: context-param param-nameOracleEJBDS/param-name param-valuejdbc/OracleEJBDS/param-value /context-param resource-ref descriptionTest Data Source/description res-ref-nameOracleEJBDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authApplication/res-auth /resource-ref then following code throws the same exception, but much sooner ... I can't call DataSource.getConnection(xxx) method. like this: final private String dbName = "jdbc/OracleEJBDS"; InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup(dbName); Connection con = ds.getConnection();//** -- DOESN'T WORK ... ? :-( "J.T. Wenting" wrote: What version of the Oracle JDBC drivers are you using? This problem occurs with drivers with versions 8.1.6, so you probably need to upgrade. Your JDBC driver should be in a file called Classes12.zip or newer, not Classes111.zip or older. Jeroen T. Wenting [EMAIL PROTECTED] Murphy was wrong, things that can't go wrong will anyway -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Martin Dolog Sent: Thursday, November 02, 2000 10:44 To: Orion-Interest Subject: Oracle data-source connect Hello, I am new w/ Orion and I have the following problem: I can't connect however it seems to be connected but when I want to call some method from Connection class (like con.getMetaData or con.createStatement) I just get exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection When I check listener log file, there is of course no record about getting connection. I have Oracle8.0.6, jdk1.2.2, orion1.3.8 My data-source.xml looks like: data-source class="com.evermind.sql.ConnectionDataSource" name="Oracle" location="jdbc/OracleDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="scott" password="tiger" url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29" inactivity-timeout="30" schema="database-schemas/oracle.xml" / web.xml looks like: context-param param-nameOracleDS/param-name param-valuejdbc/OracleDS/param-value /context-param resource-ref descriptionTest Data Source/description res-ref-nameOracleDS/res-ref-name res-typejavax.sql.DataSource/res-type res-authApplication/res-auth /resource-ref and EJB code: final private String dbName = "jdbc/OracleDS"; String s = ""; /** THIS PART WORK FINE, BUT IT DOESN'T MAKE CONNECTION AT ALL ***/ InitialContext ic = new InitialContext(); DataSource ds = (DataSource) ic.lookup(dbName); Connection con = ds.getConnection(); s = "Conected"; if ( con.isClosed() ) s += "Closed"; else s += "NOT Closed"; / THIS PART DOESN'T WORK !!! *** DatabaseMetaData dm = con.getMetaData(); s += dm.getDriverVersion(); Statement st = con.createStatement(); ResultSet rs = st.executeQuery("SELECT ename FROM emp"); if ( rs.next() ) s +=
RE: more question for xml,xsl in orion
OK...I didn't get to finish because some stupid key I hit sent my email out..sorry..I'll finish in this one.. I am about to dive in to XML, XSL and all that good stuff soon. My understanding is that you would want the JSP page to return XML, then apply XSL via an XSLT engine to output HTML. To make JSP return XML you just add a tag at the start of the JSP page..I forget what it is. The main thing to remember is to use br/br or br / tags and stuff where only single tags are used in HTML. If anyone knows for sure on how this would work..could you give a couple of steps as to how to do this. My guess is that you have a submission, link whatever go to a controller servlet, which then uses a URL connection to get the JSP page output (in xml form) in a StringBuffer, it then would pass that string data along with the selected XSL is then applied via the XSLT engine and returns HTML output..which you put into the response and send back. Thanks for any help. -Original Message- From: Christian Sell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 1:04 AM To: Orion-Interest Subject: Re: more question for xml,xsl in orion I have a XML with data and XSL with the layout information AND JSP Java code in it. How can I tell orion to: 1. Put XML and XSL together and output JSP. 2. Then compile the JSP output to html. I can get XML and XSL to merge together but the JSP compiler will not compiler the JSP output. For example, here is the code. Thanks I am not amazed that the JSP compiler does not get invoked. After all, what orion sees is a request for an XML resource. I presume you would have to somehow generate a second request (via RequestDispatcher.forward()) for the generated JSP page after doing the transformation. This would imply that the XML is never requested directly but through a servlet, which makes 2 calls (include() to invoke the transformation, then forward() to call the JSP). just my 2c Christian -Original Message- From: Christian Sell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 1:04 AM To: Orion-Interest Subject: Re: more question for xml,xsl in orion I have a XML with data and XSL with the layout information AND JSP Java code in it. How can I tell orion to: 1. Put XML and XSL together and output JSP. 2. Then compile the JSP output to html. I can get XML and XSL to merge together but the JSP compiler will not compiler the JSP output. For example, here is the code. Thanks I am not amazed that the JSP compiler does not get invoked. After all, what orion sees is a request for an XML resource. I presume you would have to somehow generate a second request (via RequestDispatcher.forward()) for the generated JSP page after doing the transformation. This would imply that the XML is never requested directly but through a servlet, which makes 2 calls (include() to invoke the transformation, then forward() to call the JSP). just my 2c Christian
How about a digest version
How about offering a daily digest version of this list, where the questions and answers are grouped in one daily email? Many lists offer that feature: Jboss (www.jboss.org), Python, Opera (www.opera.com), etc. It would make it easier for some of us who want to follow the Orion discussions but get swamped with emails. Maybe such a feature exists and I don't know about it.
getServletContext().getRealPath() bug?
Can someone tell me if this is correct behavior or if this is a bug? In the init method of my servlet, I have the following line of code: System.out.println(config.getServletContext().getRealPath("test.xml")); The result I get is this: c:\projects\leadsdb\deploy\webtest.xml The root of the web site is c:\projects\leadsdb\deploy\web It seems to me that getRealPath should return: c:\projects\leadsdb\deploy\web\test.xml Is this a bug? Could someone either confirm or deny this bug for me?
RE: more question for xml,xsl in orion
You may want to have a Filter (a special servlet) to acomplish the XSLT... In the jsp, in the @page tag, add a Content-Type="text/xml" or whatever your filter requires... you may also place inside the xml a xsl tag which refernces the xsl file you want applied (may be dinamically generated, based on any criteria, say, user-agent, URI extension, etc.) -Original Message- From: Duffey, Kevin [mailto:[EMAIL PROTECTED]] Sent: Jueves, 02 de Noviembre de 2000 15:18 To: Orion-Interest Subject: RE: more question for xml,xsl in orion OK...I didn't get to finish because some stupid key I hit sent my email out..sorry..I'll finish in this one.. I am about to dive in to XML, XSL and all that good stuff soon. My understanding is that you would want the JSP page to return XML, then apply XSL via an XSLT engine to output HTML. To make JSP return XML you just add a tag at the start of the JSP page..I forget what it is. The main thing to remember is to use br/br or br / tags and stuff where only single tags are used in HTML. If anyone knows for sure on how this would work..could you give a couple of steps as to how to do this. My guess is that you have a submission, link whatever go to a controller servlet, which then uses a URL connection to get the JSP page output (in xml form) in a StringBuffer, it then would pass that string data along with the selected XSL is then applied via the XSLT engine and returns HTML output..which you put into the response and send back. Thanks for any help. -Original Message- From: Christian Sell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 1:04 AM To: Orion-Interest Subject: Re: more question for xml,xsl in orion I have a XML with data and XSL with the layout information AND JSP Java code in it. How can I tell orion to: 1. Put XML and XSL together and output JSP. 2. Then compile the JSP output to html. I can get XML and XSL to merge together but the JSP compiler will not compiler the JSP output. For example, here is the code. Thanks I am not amazed that the JSP compiler does not get invoked. After all, what orion sees is a request for an XML resource. I presume you would have to somehow generate a second request (via RequestDispatcher.forward()) for the generated JSP page after doing the transformation. This would imply that the XML is never requested directly but through a servlet, which makes 2 calls (include() to invoke the transformation, then forward() to call the JSP). just my 2c Christian -Original Message- From: Christian Sell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 1:04 AM To: Orion-Interest Subject: Re: more question for xml,xsl in orion I have a XML with data and XSL with the layout information AND JSP Java code in it. How can I tell orion to: 1. Put XML and XSL together and output JSP. 2. Then compile the JSP output to html. I can get XML and XSL to merge together but the JSP compiler will not compiler the JSP output. For example, here is the code. Thanks I am not amazed that the JSP compiler does not get invoked. After all, what orion sees is a request for an XML resource. I presume you would have to somehow generate a second request (via RequestDispatcher.forward()) for the generated JSP page after doing the transformation. This would imply that the XML is never requested directly but through a servlet, which makes 2 calls (include() to invoke the transformation, then forward() to call the JSP). just my 2c Christian
Re: Very Strange Problem
Hello Juan, Since we haven't seen this behaviour ourselves when load testing, it's hard for us to reproduce it. To be able to give a good guess on what is wrong and if it's in Orion or not we need a test-case. Please submit the suspected bug in bugzilla and attach a test-case so that we can try it out. Regards, Karl Avedal "Juan Lorandi (Chile)" wrote: orion-ejb-jar.zip Here's the deal I'm load-testing my application; Orion's behaving properly and fast while the load doesn't get too high... but when it happens (say, 50 requests/second of dynamic pages), DeadLock's start to ocurr Fine by me, I'm not ready to sacrifice data consistency to elevate the performance, BUT Somehow, Orion, after these problems start to ocurr, doesn't free the DataBase Connections it allocated (as you can see in the application log I'm attaching, first there are DeadLocks, then the server starts to fail waiting for connections). When I shut down the server, it starts printing in stdout: Datasource not closed, check out your code! Funny thing, I checked my code and guess what... no jdbc code at all. ;-) I'm using CMP This thing with variants happens when using different drivers aimed at different DBs: jConnect/Sybase OracleDriver/Oracle HSQL/HSQL SprintA2000/SQL 7 My guess is that when a request or response is cancelled by the requester, orion (perhaps OrionPooledDataSource) doesn't rollback the transactions nor it frees the connections The result being my orionserver coming to a complete halt whenever the requests are above a certain number, and sometimes it even refuses to shut down This has me VERY worried because of possible DoS attacks, or even peaks in the site's use, which will ultimately be solved only by somebody pushing the reset button... Anybody has stumbled across this before? Orion Team, comments? Regards, One worried poor latin boy (JP Lorandi) Name: orion-ejb-jar.zip orion-ejb-jar.zipType: Zip Compressed Data (application/x-zip-compressed) Encoding: base64
RE: getServletContext().getRealPath() bug?
Yes we see this too and have since I think 1.3.8. It compiles but does have a runtime exception, e.g. can't find the method. So we're doing hacks now using relative paths to figure out where we are. Basically ever since the experimental 2.3 servlet and jsp stuff it seems to have disappeared. I didn't know if this was apart of the new spec or not and they're didn't seem to be a replacement. MD -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Rowland Sent: Thursday, November 02, 2000 1:27 PM To: Orion-Interest Subject: getServletContext().getRealPath() bug? Can someone tell me if this is correct behavior or if this is a bug? In the init method of my servlet, I have the following line of code: System.out.println(config.getServletContext().getRealPath("test.xml")); The result I get is this: c:\projects\leadsdb\deploy\webtest.xml The root of the web site is c:\projects\leadsdb\deploy\web It seems to me that getRealPath should return: c:\projects\leadsdb\deploy\web\test.xml Is this a bug? Could someone either confirm or deny this bug for me?
Re: getServletContext().getRealPath() bug?
I dont see a direct contradiction with the API docs. The example that is given there prepends the file name with a "/", which also makes more sense (relative to what should "test.xml" be interpreted?). The implementation of obviously simply prepends the deployment path of the context. -Original Message- From: Jason Rowland [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Donnerstag, 2. November 2000 22:12 Subject: getServletContext().getRealPath() bug? Can someone tell me if this is correct behavior or if this is a bug? In the init method of my servlet, I have the following line of code: System.out.println(config.getServletContext().getRealPath("test.xml")); The result I get is this: c:\projects\leadsdb\deploy\webtest.xml The root of the web site is c:\projects\leadsdb\deploy\web It seems to me that getRealPath should return: c:\projects\leadsdb\deploy\web\test.xml Is this a bug? Could someone either confirm or deny this bug for me?
Re: Supporting classes not getting picked up
I recently had a similar problem with the JavaMail APIs and a custom pop3 provider which would not load wherever I moved the classes (mine were jarred, but that should not make the difference). It turned out that in order to get loaded these classes had to be in orions "master classpath". I ended up with the following alternatives to achieve this: - copy all mail + provider jars into java_home/jre/lib/ext (which you will normally only do with standard java extension APIs) - invoke orion via "java -classpathall jars including mine orion-launcher-class" instead of java -jar orion.jar - modify orion.jars manifest file to include my jars (a hack, but I did it) now, I cannot exactly explain why this is so (and I think it is weird. I would rather have all my application jars in WEB-INF/lib, and with most this does indeed work fine), since I am not a classloader guru. Supposedly there is logic in this, and it is really simple and informative to figure out. However, I have so many things to figure out that more directly pertain to my livelihood... -Original Message- From: Drew Kidder [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Donnerstag, 2. November 2000 18:39 Subject: Re: Supporting classes not getting picked up The class com.ibm.cfmwk.builtin.Provider cannot be loaded. The com.tivoli.xtela.core.license.LicenseGenerator works just fine, but when I try to actually generate a license, the message "(Cannot find com.ibm.cmfwk.builtin.Provider)" appears on stderr, and Orion crashes. I'm not entirely sure who loads them, as this is pre-written code (all I have are the class files). After I posted last night, I even went so far as to copy the com/ibm/... tree to the same directory where LicenseGenerator lives. That didn't work either. At 03:08 AM 11/02/2000 -0600, you wrote: hmm, classloader-science (not rocket-science, as Rober Krueger told me lately :-)). which classes cannot be loaded? And who loads them? -Original Message- From: Drew Kidder [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Donnerstag, 2. November 2000 07:56 Subject: Supporting classes not getting picked up I'm at my wit's end. I have a class that resides in $ORION_HOME/applications/twsm/twsm-web/WEB-INF/classes/com/tivoli/xtela/cor e/license. It (apparently) needs to call a class com.ibm.cfmwk.builtin.Provider. Now, I have tried putting a fully expanded com/ibm/cfmwk/builtin/* tree under WEB-INF/classes, and that doesn't work. I jarred them up, and stuck them in the WEB-INF/lib directory. No go. Where in the world do I need to put this class hierarchy so it can be found This is really frustrating, and I could use some help on this one -- Andrew Kidder L3 SW/Support Engineer, IBU Tivoli Systems 512-436-4544 [EMAIL PROTECTED] http://www.tivoli.com
Failed to initialize chaining servlet for contenttype text/xml (xsl)
I am able to view the file examples/xsl/data.xml via the servlet-chaining definition in config/global-web-application.xml file that performs a XSLT using examples/xsl/data.xsl - no problems, no errors, no log file entries. All other xml files in this directory (I also duplicated this file to data2.xml) generate the error: 500 Internal Server Error Failed to initialize chaining servlet for contenttype text/xml (xsl) and the following error is in the global-application.log: 11/2/00 5:30 PM defaultWebApp: Error initializing servlet java.lang.NoClassDefFoundError: org/apache/xalan/xslt/XSLProcessorException I have looked at the mailing list archives and have not seen this problem. Does anyone have any insight as to how to solve this problem? My system consists of Orion 1.3.8 with JDK 1.3.0 running on Solaris 8/SPARC.
Limitations of Orion's JNDI implementation?
Greetings, Unless I'm seriously misunderstanding some part of JMS or JNDI, it appears that Orion's JNDI implementation prevents one from using Orion's JMS server across a cluster of Orion EJB containers. Suppose I have two Orion servers, A and B, each running its own set of EJ beans, and I want to use server A as the JMS server for the pair. On server A I can get the appropriate JMS ConnectionFactory through JNDI by fetching the default InitialContext and looking up jms/TopicConnectionFactory. On server B, however, I'd need to get the InitialContext from server A to look up the factory. I haven't been able to figure out how to do this. The RMIInitialContextFactory (default?) apparently ignores the Context.PROVIDER_URL setting, so I always end up with the local InitialContext on B. The ApplicationClientInitialContextFactory, on the other hand, always throws the exception starting with javax.naming.NamingException: META-INF/application-client.xml resource not found at com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext (JAX) although I made a sample application-client.xml and put it in META-INF of my application. Even if this worked, it is my understanding that this InitialContext would be useful only for getting to remote EJBs described in application-client.xml and not anything else on server A, so it doesn't really solve my problem. Is there any way of getting ahold of JMS ConnectionFactories from remote machines? Thanks, Dejan Vucinic [EMAIL PROTECTED]
RE: getServletContext().getRealPath() bug?
this isnt the behaviour I get in Orion 1.4.0 I get c:\projects\leadsdb\deploy\web\test.xml when I call this.getServletContext().getRealPath("test.xml"); or when I call this.getServletCOnfig().getServletContext().getRealPath("test.xml"); I think you may have something setup incorrectly in your various xml config files. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Rowland Sent: Friday, 3 November 2000 6:27 To: Orion-Interest Subject: getServletContext().getRealPath() bug? Can someone tell me if this is correct behavior or if this is a bug? In the init method of my servlet, I have the following line of code: System.out.println(config.getServletContext().getRealPath("test.xml")); The result I get is this: c:\projects\leadsdb\deploy\webtest.xml The root of the web site is c:\projects\leadsdb\deploy\web It seems to me that getRealPath should return: c:\projects\leadsdb\deploy\web\test.xml Is this a bug? Could someone either confirm or deny this bug for me?
RE: Orion w/ postgresql
Indeed - completely ignorable, it's an error in Datasource.getMetaData() I believe. It's fixed in the CVS version if you build the latest driver. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Drury Sent: Friday, November 03, 2000 3:10 AM To: Orion-Interest Subject: RE: Orion w/ postgresql If you guys are talking about the error, SQL error: ERROR: parser: parse error at or near ")" just ignore it. everything works despite that error. I get it too. -tim -Original Message- From: Mikko Kurki-Suonio [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 02, 2000 1:27 AM To: Orion-Interest Subject: Re: Orion w/ postgresql On Wed, 1 Nov 2000, Seung Bang wrote: Thanks very much for your tips. I tried as you guys instructed, and the same errors were produced. My postgresql jdbc driver is now the brand new 7.0.2 driver, and the '/usr/local/orion/config/database-schemas/postgresql.xml' file has null="" section in place of null="null". And of course I tried null="null" back in. All the trials yielded the same problem. Please Anybody? Any clue??? I've had the same problem. I submitted it to bugzilla, but it didn't seem to raise any concern. Anyway: It SEEMS that the base is working ok despite the error message. Blob support, however, does not work. Possibly in 7.1. Which brings me to another point: Is there any switch that lets you log the actual SQL clauses passed? I could write a fake passthrough JDBC driver to do that, but it'd seem silly
RE: Orion as a Service under NT (Log out problem)
Title: RE: Orion as a Service under NT (Log out problem) Orioners, As some of you may know there is a problem with JRE/JDK 1.3 that causes it to shut down if the current user logs out while Java is running as a service on NT. I found a small wrapper that will prevent the shutdown call from stopping the JVM. http://www.kcmultimedia.com/jvmi/ though others might find it useful. Larry
Placement of jars for JSP
I've done the JSP tutorials for making a taglib. Easy... Worked first time... Modified it to accept a parameter to query a database (ORACLE) to verify that the data-source... relatively easy - some path hiccups locating libraries... all sorted. but... I'd like to avoid the rebuilding and copying of the jar file each time to test. 1. Can a JSP be directed to a class tree (folder structure with a meta-inf folder) rather than a .jar. 2. if not can the jar be placed elsewhere than in the folder with the .jsp file itself. eg a classes folder in the web-inf folder? -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax
Re: Oracle data-source connect
url="jdbc:oracle:thin:scott/tiger@localhost:1512:pc29" The port is usually 1521 isn't it, not 1512 -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax
RE: Placement of jars for JSP
You can place the JAR anywhere - orion will automatically detect it has changed when you recompile / rejar, and it will load the new driver. Just change the location with the taglib-location attribute in web.xml. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron Scott-Boddendijk Sent: Friday, November 03, 2000 11:44 AM To: Orion-Interest Subject: Placement of jars for JSP I've done the JSP tutorials for making a taglib. Easy... Worked first time... Modified it to accept a parameter to query a database (ORACLE) to verify that the data-source... relatively easy - some path hiccups locating libraries... all sorted. but... I'd like to avoid the rebuilding and copying of the jar file each time to test. 1. Can a JSP be directed to a class tree (folder structure with a meta-inf folder) rather than a .jar. 2. if not can the jar be placed elsewhere than in the folder with the .jsp file itself. eg a classes folder in the web-inf folder? -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax
Re[2]: xml,xsl in orion
Thursday, November 02, 2000, 4:52:16 AM, you wrote: Hi Jan, I downloaded the latest version of Orion and under orion\default-web-app\examples\xsl you should find the example. But, should not the orion server do the conversion and send html to the browser, because, that would make more sense and make the process browser independent. I am very sure that I am missing something here. I am not sure what. I would definetly appreciate some help on this. Thanks, Manoj Hello everybody attempting the JSP=XML=XSL process. We are currently working with this exact procedure, and you are correct Manoj, the transformation (XSLT) happens server-side and HTML is just fed to the clients browser. We are using the XSLTServlet that used to exist on the old OrionSupport site.. I don't believe it is available there anymore. There was problems with Orion's xslt servlet.. (may be fixed now)... also we are using SAXON to do the XSLT Transformations (called from the XSLTServlet)... Does anyone know what came of this servlet? Is it still supported? Being updated? I notice that there are issues with using it with the latest version of Saxon (5.5.1)... Anyway Orion's implementation of the XSLServlet worked.. but had some limitations with the xsl:param element. If you look in your global-web-application.xml you'll see something like the following : servlet-chaining servlet-name="xsl" mime-type="text/xml" / And also a little later... something like : servlet servlet-namexsl/servlet-name servlet-classcom.evermind.servlet.XSLServlet/servlet-class init-param param-namedefaultContentType/param-name param-valuetext/html/param-value /init-param /servlet This performs servlet chaining... so when your JSP produces an XML document with content type text/xml... the servlet-chaining within Orion captures it and passes it to the XSL servlet... which process it.. produces HTML and displays HTML to the end-user. What version of Orion are you using? 1.3.8 is our current development version and the described process is working for us. Dylan Parker Feel free to ask me more questions.
RE: Orion as a Service under NT (Log out problem)
Title: Orion as a Service under NT (Log out problem) I am wondering if you finished your email? Anyways..I use JNT and it seems to work except that when I STOP the Win2K Service of JNT/Orion, it never stops "officially"..I have to manually hit the CLOSE button, then restart the service. I don't know if thats JNT or JNT trying to shut down Orion. Is there any chance Orion can just give us its own "wrapped" service runner for Win NT/2K? I think that is the least we can exepect since every other vendor appears to have a wrapper to run the products as a service. -Original Message-From: Larry Velez [mailto:[EMAIL PROTECTED]]Sent: Thursday, November 02, 2000 4:26 PMTo: Orion-InterestSubject: Orion as a Service under NT (Log out problem) Orioners, As some of you may know there is a problem with JRE/JDK 1.3 that causes it to shut down if the current user logs out while Java is running as a service on NT. I found a small wrapper that will prevent the shutdown call from stopping the JVM.
Re: Placement of jars for JSP
You can place the JAR anywhere - orion will automatically detect it has changed when you recompile / rejar, and it will load the new driver. Just change the location with the taglib-location attribute in web.xml. Ok that's working - can the taglib-location be a folder rather than a jar to test without rebuilding the jar each time... EG place the tag-location refering to the top of our package hierarchy and add a META-INF folder with the relevent taglib/tag info... I've tried it with no luck - is there a way for this to work? -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax
RE: Placement of jars for JSP
I don't see why not, but if you use a build tool (eg Ant) it's probably just as easy to build a JAR? Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Aaron Scott-Boddendijk Sent: Friday, November 03, 2000 2:03 PM To: Orion-Interest Subject: Re: Placement of jars for JSP You can place the JAR anywhere - orion will automatically detect it has changed when you recompile / rejar, and it will load the new driver. Just change the location with the taglib-location attribute in web.xml. Ok that's working - can the taglib-location be a folder rather than a jar to test without rebuilding the jar each time... EG place the tag-location refering to the top of our package hierarchy and add a META-INF folder with the relevent taglib/tag info... I've tried it with no luck - is there a way for this to work? -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax
orion-*.xml
The documentation describes these orion-*.xml files as being Orion-specific descriptors, but does not say where one can put these files inside the EAR/JAR/WAR files. I'm guessing that they go along side the standard descriptors because the filenames are their analogues (e.g. ejb-jar.xml to orion-ejb-jar.xml), but I can't find confirmation of this. Can someone please shed some light? Thanks. Gerald.
Re: Placement of jars for JSP
I have been doing it that way for quite a while. Heres the taglib declaration from my web.xml: taglib taglib-uriwww.itsit.de/webcomponents/taglibs/wcf01.tld/taglib-uri taglib-location/META-INF/taglib.tld/taglib-location /taglib -Original Message- From: Aaron Scott-Boddendijk [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Date: Freitag, 3. November 2000 05:54 Subject: Re: Placement of jars for JSP You can place the JAR anywhere - orion will automatically detect it has changed when you recompile / rejar, and it will load the new driver. Just change the location with the taglib-location attribute in web.xml. Ok that's working - can the taglib-location be a folder rather than a jar to test without rebuilding the jar each time... EG place the tag-location refering to the top of our package hierarchy and add a META-INF folder with the relevent taglib/tag info... I've tried it with no luck - is there a way for this to work? -- Aaron Scott-Boddendijk INTAZ Limited +64 7 838 3371 Voice +64 7 838 3372 Fax
Re: choosing database for EJB use?
James Ho wrote: Hi all... Can anyone pls tell me, is there any searching criteria for RDBMS for use with EJB/Orion and why? Is transactions support necessarily for CMPs? No transaction support is not necessary. However if you use a RDBMS without transactions, your EJB application will not support transactions. If you're looking for a db that has transactions and is free, i'd recomend Sybase 11.3. It's free on Linux. sven -- == Sven E. van 't Veer http://www.cachoeiro.net Java Developer [EMAIL PROTECTED] ==