Correct way to run a servlet in a html page?
Hello, What is the correct way to run a servlet in a html page using orion? I have used: jsp:forward page="/servlet/Test" / And it works, but I have also seen something like this (which I haven't been able to get working): SERVLET NAME=Test /SERVLET Which is 'correct'? Thanks, Robert Karlsson
Re: SSL - 100% CPU
I have some experience with SSL programming (with IsaSilk a fantastic package and free for development puporse; and very cheap for commercial, just like Orion ;-) I had the same pb when intializing, very very long and 100%CPU and this was due to the random generator!!! to solve this pb, I just provided a seed for the random generator I don't know if this will help but it helps me a lot ;-) I used IsaSilk in stand alone SSL programming. Does anybody had experience with Orion + IsaSilk, is it possible ? IsaSilk: http://jcewww.iaik.tu-graz.ac.at/iSaSiLk/isasilk.htm -Message d'origine- De : Klaus Thiele [EMAIL PROTECTED] À : Orion-Interest [EMAIL PROTECTED] Date : vendredi 30 juin 2000 00:12 Objet : Re: SSL - 100% CPU On Don, 29 Jun 2000, you wrote: At last my generation of the server certificate worked. Unfortunately, when I start Orion with SSL turned on, the java process takes all the CPU time. Seems like Orion gets stuck in an endless loop. I have tried this on both Orion 1.0 and 1.1.4 I followed the instruction for setting up a secure site in the dokumentation. Has anybody experienced something similar? i have exactley the _same_ experiences! the faq for setting up an ssl-server is not easy to understand! - where/how to get an RSA-provider(?) for the jdk? - i generate a certificate with openssl - https://www.thawte.com/cgi/server/test.exe - keytool -import = 100% cpu klaus -- Klaus Thiele - Personal Informatik AG mailto:[EMAIL PROTECTED] "There's got to be more to life than compile-and-go."
Re: SSL - 100% CPU
I had the same pb when intializing, very very long and 100%CPU and this was due to the random generator!!! to solve this pb, I just provided a seed for the random generator I don't know if this will help but it helps me a lot ;-) Sorry, but how do you do that? /Mattias
SV: Java char to and from MS SQL 7.0 char(1) conversions do not work!!!
Title: BUG: Java char to and from MS SQL 7.0 char(1) conversions do not work!!! Char(1) in beans is a java String with only 1 in length, i had this problem before, and mapping it to a char dont work, but String works. Klaus -Oprinnelig melding-Fra: Byron du Preez [mailto:[EMAIL PROTECTED]]Sendt: 29. juni 2000 17:12Til: Orion-InterestEmne: BUG: Java char to and from MS SQL 7.0 char(1) conversions do not work!!! BUG: Java char to and from MS SQL 7.0 char(1) conversions do not work!!! Using Orion 1.0 and standard MS SQL mapping of char, i.e. type-mapping type="char" name="char" / makes CHAR(1) fields unusable. Reading a CHAR(1) field via a char field in a CMP Entity Bean always returns a "space" (or what looks like a space). Setting one of three char fields (e.g. to 'A', 'H', 'E') in a CMP entity bean, shows up in the MS SQL 7.0 database when viewed through MS SQL Enterprise Manager with the following problems: 1). the char field that was set in the entity shows up as a '*' (?) in the CHAR(1) database column, regardless of what was set. 2). the other char fields that were NOT EXPLICITLY SET, ALTER the other CHAR(1) database columns on the same row so that their contents show as 0. Please help, we don't want to have to revisit all our code to convert char's to Strings to get it to work!!! ... A workaround of questionable use is to map char's to smallint's, but then the database shows an ASCII/UNICODE integer value instead of the character itself. Thanks in advance Byron
disconnect me
** The opinions expressed in this e-mail are those of the individual and not necessarily the company. This e-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. ***
RE: autoupdate - proxy problem?
Use : java -DproxyHost=name of proxy -DproxyPort=poxy port number -jar autoupdate.jar Regards Torgeir -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 30. juni 2000 13:58 To: Orion-Interest Subject: autoupdate - proxy problem? Hi all, OK, I am trying to use autoupdate - but with little success. It looks like: C:\orionjava -jar autoupdate.jar Sending fileinfo to server IO Error: Operation timed out: no further information Could it be that our proxy is causing a problem? I can't seem to find any docs on "autoupdate.properties" Mine looks like: url=http://www.orionserver.com/servlet/update root=. promptTypes=xml, config, types skipTypes=log, ser Thanx and greetings. Martin
JNDI without JSP
people... 1st: sorry my english... 2nd: working with JNDI on JSP on the Orion its ok. but, now i can develop a simple bean with JNDI (with JSDK1.3) and i can't. whats my objective using this bean.? to reduce redundancy codes. there are too many jsp files that use the same code to connect to database. Does Orion implements your own Name Service/or directory Service? does it use LDAP ? how can i develop my bean to work under orion? above my codes: --- on JSP, its OK! % javax.naming.Context ctx = new javax.naming.InitialContext(); javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup("jdbc/intranet"); Connection con = ds.getConnection(); Statement stmt; stmt=con.createStatement(); ResultSet rs; % --- here the problems! javac dont find javax.naming... AND I USE JSDK 1.3! import java.util.*; import java.sql.*; import javax.naming.*; public class dbBean { String base = new String("jdbc/intranet"); private Connection dbCon; public dbBean() { super(); } public boolean connect() throws ClassNotFoundException, SQLException { Context ctx = new InitialContext(); javax.sql.DataSource ds = (javax.sql.DataSource)ctx.lookup(base); dbCon = ds.getConnection(); return true; } public void close() throws SQLException { dbCon.close(); } public ResultSet execSQL(String sql) throws SQLException { Statement s= dbCon.createStatement(); ResultSet r = s.executeQuery(sql); return (r==null) ? null : r; } } - and finally, my data-source.xml on orion dir data-source name="intranetAccess" class="com.evermind.sql.ConnectionDataSource" location="jdbc/intranet" pooled-location="jdbc/DefaultPooledDS" xa-location="jdbc/xa/DefaultXADS" ejb-location="jdbc/DefaultEJBDS" url="jdbc:odbc:cfm" connection-driver="sun.jdbc.odbc.JdbcOdbcDriver" username="" password="" / -- thanks 4 any reply _ Tamer Americo - Conselho Federal de Medicina - CFM [EMAIL PROTECTED] - ICQ#3221276 "When we are young / Wandering the face of the earth Wondering what our dreams might be worth / Learning that we're only immortal For a limited time" Dreamline - Rush _
RE: where to put servlets on orion 1?
Title: RE: where to put servlets on orion 1? If they are in the form of classes, put them in your web-app at /WEB-INF/classes If you are using the default web-app that comes with orion, you should put them in /orion/default-web-app/WEB-INF/classes If they are in jar:ed, put them in you web-app at /WEB-INF/classes or /orion/default-web-app/WEB-INF/classes You can fight / Without ever winning But never ever win / Without a fight Resist - Rush :) Magnus Rydin WebTeknik AB [EMAIL PROTECTED] -Original Message- From: Tamer [mailto:[EMAIL PROTECTED]] Sent: den 30 juni 2000 15:28 To: Orion-Interest Subject: where to put servlets on orion 1? on beta versions exists a servlet dir. where i put my servlets on final version of orion server ??? tks! __ ___ Tamer Americo - Conselho Federal de Medicina - CFM [EMAIL PROTECTED] - ICQ#3221276 When we are young / Wandering the face of the earth Wondering what our dreams might be worth / Learning that we're only immortal For a limited time Dreamline - Rush __ __ _
Paths in XML on NT
In application.xml and other such config files, how do you specify Windows paths? I have a coworker on NT. How should he do absolute paths? On linux, I can do "/home/joel/whatever..." Can he put "C:\some\path\to\his\application" ? Or does he need to put \\ or each \ or does he go ahead and use / or... Thanks, -- Joel Shellman Chief Software Architect The virally-driven B2B marketplace for outsourcing projects http://www.ants.com/90589781
XML Parser crashing
I am using Orion and taking advantage of the include xml parser. By mapping various requests to my xml translating servlet. If one of my xml pages is malformed, I get a nice xml error message as to be expected. Here is the problem: after I fix the xml page. The error continues to be generated, until I reboot the server. Is this a bug or is there something I'm doing wrong? Dave Ford Smart Soft - The Java Training Company http://www.SmartSoftTraining.com
Corba clients accessing orion ejb, is it possible?
Hi, I want to know if it is possible to acces a ejb (session bean) running in orion from corba. And if so: 1 How to do it? 2 What orb do you need, i think it is possible with sun jdk1.3 but can you also do it with for instance visibroker for c++ , and if so what version omg corba spec compliant orb do i need( i heard 2.3 but i don't know for sure) ? 3 If it is possible to acces the ejb with c++ do i have to implement the complete javax.ejb package in c++ or does somebody know's about an implementation of this?
Context Problem
I am having a problem with the EJB environment for Entity Beans and JNDI. In my client code, I set the username and password in the JNDI's InitialContext: Properties props = new Properties(); props.setProperty("java.naming.factory.initial", _config.getProperty("java.naming.factory.initial")); props.setProperty("java.naming.provider.url", _config.getProperty("java.naming.provider.url")); props.setProperty("java.naming.security.principal", "admin"); props.setProperty("java.naming.security.credentials", "admin"); InitialContext context = new InitialContext(props); I then get the ObjectFactory UserHome userhome = (UserHome)context.lookup("test:ejb/User"); Do some business logic, and then create a new entry in the database. ... ... ... ... user_home.create(username, credential, contact, profile); When I call the create method, the username in the EJB environment is not the same as the one I set in the InitialContext. Why doesn't Orion keep the same environment?
RE: Pet Store and UserManager problems
Brian: Add the following to orion/config/principals.xml: principals groups group name="gold_customer" descriptiongold_customer/description permission name="rmi:login" / permission name="com.evermind.server.rmi.RMIPermission" / /group group name="customer" descriptioncustomer/description permission name="rmi:login" / permission name="com.evermind.server.rmi.RMIPermission" / /group /groups users user username="kkalvar" password="kkalvar" group-membership group="gold_customer" / /user user username="j2ee" password="j2ee" group-membership group="gold_customer" / /user /users /principals Note: When you add a new user it will automatically place the correct "group-membership" in the user tag, if they're added to the database already you'll have to do it manually. Works good! Kirk S. Kalvar