Re: SSL key generation, yet again

2000-07-10 Thread Michael Peacock

I had something very similar with Windows98 and JDK1.2.2. I had to install
JSSE 1.0.1 to get the RSA algorithm (and configure a new security provider
in jre/lib/security/java/security).
Rgds, Mick
- Original Message -
From: "Joseph B. Ottinger" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: 08 July 2000 12:52
Subject: SSL key generation, yet again


 Okay, this is very frustrating. :(

 I'm using Sun's JDK 1.3.0 for Linux, Orion 1.1.9. Output from java
 -version:

 java version "1.3.0beta"
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0beta-b07)
 Java HotSpot(TM) Client VM (build 1.3.0beta-b04, mixed mode)


 I've tried the SSL-howto steps from www.orionserver.com; if I
 use -keyalg "RSA", I get this message:

 keytool error: java.security.NoSuchAlgorithmException: RSA
 KeyPairGenerator not available

 That's fairly self-explanatory, although odd. So, being intrepid and all,
 I simply remove the RSA specification, since this is just a test cert,
 after all.

 That allows me to create the keystore. The key password for mykey is
 left as the same as the keystore password.

 So I go happily along my way, generating the .csr file with no obvious
 difficulty. I go to thawte.com, as the howto suggests. My only deviation
 from the howto is, as mentioned, the elimination of '-keyalg "RSA"' from
 the keytool invocation.

 At thawte.com, I post my certificate request via IE5, set validity for 360
 days, valid from now, type of certificate is "Test SSL Chained CA Cert",
 and use the default certificate format. I hit the "Generate Test
 Certificate" submit button and get a certificate, in PKCS #7 SIGNED DATA
 format.

 I take the certificate source, cat it into a .cer file, as the howto
 suggests.

 And here's where things start falling apart.

 % keytool -keystore keystore -import -trustcacerts -file cupid.cer
 Enter keystore password:  123456
 keytool error: java.lang.Exception: Certificate chain in reply does not
 verify: MD5WITHRSA Signature not available

 Well, since I don't have RSA in the JDK, I suppose that makes sense.

 However, there's not a lot I can do about it, since chained certs
 apparently only use the RSA algorithm; thawte says they ignore any
 specifications for chained CA certs, using ONLY PKCS #7 for these. I don't
 know where to get a version of the RSA algorithm for JSSE (I downloaded
 the JSSE stuff from Sun, but Orion's version looks more recent, so I'm
 using Orion's). jcert.jar does, in fact, have an MD5RSA algorithm, but I
 have no idea how to tell Java that, or why it's not realising it on its
 own.

 Can anyone help? This is a critical issue for me and I am royally stuck.

 ---
 Joseph B. Ottinger   [EMAIL PROTECTED]
 http://cupid.suninternet.com/~joeo  HOMES.COM Developer








RE: Servlet handling both *.html and /

2000-07-10 Thread Joe Walnes

 I have a servlet that I want to handle all the URLs. It acts as a super
 servlet and allows us to parse the URLs we receive and act accordingly.
 Right now I have it set up to handle .html. However, when someone makes
 a request to a directory such as:
 http://www.domain.com/whatever/

You need to set up a servlet-chain for mime-type text/html. This will allow
orion to process all pages as normal, and then pass the final output to your
servlet if the mime-type is text/html,however the page is produced (static
html file, servlet, jsp, cgi, etc).

Have a look at the docs for orion-web.xml to see how to do this.

-Joe Walnes





Orion 1.1.12 to 1.1.16 big problems

2000-07-10 Thread Dave Smith

Can anybody tell me what has changed in Orion 1.1.12  to 1.1.16 over 1.1.8?

I have just tried it and my JSP/servlet based app stopped working big-time.
I have a servlet that is used to provide access to individual functions each
time they are accessed, recording the source and target URLs. These have
stopped working!

It seems that getRequestURI or sendRedirect has changed 

getRequestURI gives /tablepro/tablefill 
sendRedirect ("/tablepro/tablefill") goes to /tablepro/tablepro/tablefill
(i.e. adds the context name)
Absolute redirects are being treated as relative.

The ServiceConsole looks like it will be nice though!

Dave Smith
Senior Team Leader
Aristocrat Technologies Australia Pty Ltd

mailto:[EMAIL PROTECTED]





RE: XML / XSL

2000-07-10 Thread David Middleton

I can get all the XSL transforms working with XML - HTML, but it doesn't
work with XML - WML.

The phone rejects the page, since the MIME type is always set to TEXT/HTML
by the XSLServlet. (ie. the defaultContentType parameter in the
global-web-application.xml file.)

Is there a way to dynamically specify what content type you want XSLServlet
to return, as I would like to return various different types depending on
what the client is using.

Thanks,

David Middleton.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B.
Ottinger
Sent: 10 July 2000 01:45
To: Orion-Interest
Cc: Orion-Interest
Subject: Re: XML / XSL



Dale, see global-web-application.xml, where mime-mappings / and
servlet-chaining / are set. It's not only .xml, but MIME type text/xml
that get passed to the XSL servlet.


On Sun, 9 Jul 2000, Dale Bronk wrote:

 I looked at the sample xml / xsl pages that come with Orion.  They work
fine, but what I can't seem to figure out is how.

 I see that if I browse to doc.xml in the samples then it specifies
doc.xsl.  I also see the if I browse to doc.jsp, then that is simply a xml
file built via jsp and instructs to use doc.xsl.

 In which config xml file is this behavior specified?  I do not see any
mapping for /*.xml and the mapping for /*.jsp goes to the jsp servlet.  How
does it know what to do with *.xml files and what to do if an *.jsp produces
xml?

 Thanks,

 Dale Bronk
 [EMAIL PROTECTED]
 Windscape Consulting, Inc.
 http://www.windscape.com


---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo  HOMES.COM Developer







RE: HOWTO Sun's Java Pet Store Orion 1.0 Cloudscape JDBMS win98

2000-07-10 Thread Rob Lapensee








Kirk,



I just
sent an e-mail to [EMAIL PROTECTED] with a normal e-mail attachment (I am
using outlook) and it seemed to work, the stuff even showed up in the e-mail
archives on the Orion servers.



Hope this helps.



Regards,



Rob Lapensee

Director of Technology

Delfour Corporation

[EMAIL PROTECTED]

www.delfour.com



-Original
Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Kirk Kalvar
Sent: Friday, July 07, 2000 9:59
PM
To: Orion-Interest
Subject: HOWTO Sun's Java Pet
Store Orion 1.0 Cloudscape JDBMS win98



I developed a how to for jps and Orion 1.0 and tried
to post it to orion-interest.
There was a zip file included in the post so I dont think it made
it. What do I need to do to post
the how to and zip as an attachment?



The zip file contains the Orion configuration files
for jps and the updated estore-patched.ear with the orionsecurityadapter
included. The howto.txt has
detailed instructions on installing jvm, j2ee, Orion (cloudscape) and jps for
win98.



Would be good for newbies just getting onboard with
orion (like me recently).



Thanks,



Kirk S.
Kalvar








Debugging servlets with Orion

2000-07-10 Thread Robert Nicholson

How can I debug a servlet if Orion is my servlet engine?
 




help:file aliase setting in orion server.

2000-07-10 Thread Satish Musale

Hi,
How can we set up file aliase in orion webserver1.0 .

Regards,
Umesh Dengale.
Cyberware Labs India.

__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/




No Subject

2000-07-10 Thread Aleksi Kallio

I have a shared partition for Java source and class files (directory is a shared Samba 
directory, which is mapped to a partition under NT). Compiling and running Java 
programs with JDK (javac and java) works fine. But Orionserver has problems running 
Java classes which reside on that shared partition. 

Error report from JSP-page compilation:

Syntax error in source
__jspPage2_project_project_jsp.java:7: Ambiguous name: fi is both a class and a 
package. 
import fi.infomates.project.*; 

If I copy the contents of that shared partition to a local drive everything works just 
fine.

Does Orion access disk resources somehow differently? It's the only program having 
difficulties with that mapped partition.


Aleksi Kallio
Infomates Software Technologies





Problem with deploying struts-documentation.war AND any way to search archives?

2000-07-10 Thread Megan Ray

Hi Mike and Malcolm!  (And Orion-Interest list - moved from jakarta-struts
list.)

Thanks for the information.

Mike, I revised my Orion.xml files as you suggested - but still having
problems.   (I think there is a "hole" in my understanding of this whole
setup issue.)

Here is my current setup:

My WAR file is c:\orion\applications\struts-documentation.war

My application.xml refers to:   web-module id="struts-documentation"
path="../applications/struts-documentation.war" /

My default-web-site.xml refers to: web-app
application="struts-documentation" name="struts-documentation"
root="/struts-documentation" /

Under this setup - Orion initializes fine.   However - when I enter
"http://localhost/struts-documentation" in a browser, I get the following
error message:

Error instantiating web-application
No application named 'struts-documentation' found in the server


This leads me to believe that I need to add "something" back to the
server.xml file.But when I add the following: application
name="struts-documentation" path="../applications/struts-documentation.war"
/

to server.xml - Orion does not initialize and I receive the original error
message (error instantiating application at file
c:/orion/applications/struts-documentation.war:  unable to find/read/
assembly information for c:\orion\applications\struts-documentation
META-INF/application.xml)

OK - so back to my original question - don't I need an application.xml for
my .WAR?   Do I need to include the application.xml in the WAR file?


Malcolm - I appreciate your hints.   But what specific element to you mean
by download the J2EE "stuff" from Sun.   What utility are you referring to
create the WAR?   I'm obviously an idiot - so any specific information will
be helpful.

Thanks again for all of your help!



-Original Message-
From:   Mike Cannon-Brookes [mailto:[EMAIL PROTECTED]]
Sent:   Saturday, July 08, 2000 7:36 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject:RE: Problem with deploying struts-documentation.war AND any way to
search archives?

This is actually not a problem, it's a misunderstanding ;)

The application tag is for J2EE applications, WAR files are "web
applications", not whole J2EE applications. WARs are one of the modules that
makes up an EAR.

There is no need to build an EAR to deploy WAR files in Orion (or any J2EE
compliant server).

In your config/application.xml file add:
web-module id="strutsDoc"
path="d:\scratch\jakarta-struts\webapps\struts-documentation.war" /

Then in config/default-web-site.xml (or ANY website file) add:
web-app application="default" name="strutsDoc" root="/struts/doc" /

And any WAR will deploy.

Hope this helps,

Mike

 -Original Message-
 From: Megan Ray [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, 8 July 2000 3:11
 To: [EMAIL PROTECTED]
 Subject: Problem with deploying struts-documentation.war AND any way to
 search archives?


 I'm a newbie to struts- and web development in general  - trying to deploy
 it on Orion webserver

 I followed the instructions for deploying Struts - when I try to start
 Orion - I get the following error message:

 "unable to find/read assembly info for
 c:\orion\applications\struts-documentation META-INF/application.xml

 Here is a summary of my Orion setup for the documentation.war:

 struts-documentation.war is located in c:\orion\applications

 the server.xml has the following line added:

   application name="struts-doc"
 path="../applications/struts-documentation.war"/

 the default-web-site.xml has the following line added:

   web-app application="struts-doc" name="struts-documentation"
 root="/struts-documentation" /

 Am I setting this up incorrectly?

 I assume the struts-documentation.war doesn't have the application.xml
 (required by Orion?)I thought about trying to deploy the
 struts example
 without the war - but the build.bat file will not work (to create
 directory
 structure.)

 Any hints are appreciated.   I would like to access both the documentation
 and struts example.

 Thanks!

 P.S.   Is there any way to search the struts-user e-mail archives?   I'm
 sure most of my questions have been asked before.

 Thanks again!






EJB's JMS

2000-07-10 Thread Tom Wnuk

Is anyone using JMS via EJB's with Orion?

I haven't gotten any responses; therefore, I'm assuming no one is doing this
or just hasn't come across the similar problems.

Thanks 
Tom

Tom Wnuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]


 winmail.dat


HELP: Session time out TOOOO early!

2000-07-10 Thread Steven Punte



Help:

 I'm having serious problem with 
the servlet session timing-out
 way before it should. I'm 
running Orion on Solaris, and typically
 only see the problem when development 
is active (i.e. team
 members changing server side java bean 
files).


 I have set the session 
time-out to 6 hours in the web.xml file as show 
below:

web-app 
servlet 
servlet-namesnoop/servlet-name 
display-namesnoop/display-name 
servlet-classSnoopServlet/servlet-class 
/servlet 
session-config 
session-timeout360/session-timeout 
/session-config 
login-config 
auth-methodBASIC/auth-method 
/login-config/web-app
 My JSP file is as simple as 
possible:

%@ page language="java" session="true" 
%%@ page import="java.util.*" 
%htmlheadtitle%= "Session Bug" 
%/title/headbodybrbr 
Session Information: brLast Accessed %= new Date( 
session.getLastAccessedTime()) % brCreation Time %= 
new Date( session.getCreationTime() ) % brID %= 
session.getId() % brMax Interval %= 
session.getMaxInactiveInterval() 
%/body/html
 In the above examples, the 
creation time typically only hold from 5 minutes to 15 minutes,
 and will then move forward to 
the present time forgetting all other session information.
 
 Any suggestion greatly 
appreciated:


STeve Puntee-Business Software 
ArchitectTechnologent Inc[EMAIL PROTECTED]


Hypersonic SQL and autocreating tables

2000-07-10 Thread Vidur Dhanda

Hello,

How do I create cached tables in Hypersonic SQL when Orion autocreates
tables?  I believe, issuing a "create table" in HSQL creates an
in-memory table only.

Thanks,
Vidur






RE: Problem with deploying struts-documentation.war AND any way to search archives?

2000-07-10 Thread Kevin Duffey

Here is what I have that works:

in server.xml I have:


?xml version="1.0"?
!DOCTYPE application-server PUBLIC "Orion Application Server Config"
"http://www.orionserver.com/dtds/application-server.dtd"

application-server
library path="../lib" /

rmi-config path="./rmi.xml" /
data-sources path="./data-sources.xml" /
principals path="./principals.xml" /

log
file path="../log/server.log" /
/log

global-application name="bm" path="c:\\applications\\bm\\" /

global-web-app-config path="global-web-application.xml" /

web-site path="./default-web-site.xml" /
/application-server



in default-web-site.xml I have:

?xml version="1.0"?
!DOCTYPE web-site PUBLIC "Orion Web-site"
"http://www.orionserver.com/dtds/web-site.dtd"

web-site host="[ALL]" port="80" display-name="WebSite"
default-web-app application="bm" name="www" /

access-log path="c:\\applications\\logs\\bm-access.log" /
/web-site



in c:\applications\bm\META-INF\application.xml

?xml version="1.0"?
!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE
Application 1.2//EN"  "http://java.sun.com/j2ee/dtds/application_1_2.dtd"

application
display-namebm/display-name
module
web
web-uriwww/web-uri
context-root//context-root
/web
/module
security-role
role-nameadministrators/role-name
/security-role
security-role
role-nameusers/role-name
/security-role
/application



In web.xml I have:

?xml version="1.0"?
!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app
servlet
servlet-nameaction/servlet-name
display-nameaction/display-name
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
param-namemapping/param-name

param-valueorg.apache.struts.action.ActionMappingBase/param-value
/init-param
init-param
param-nameapplication/param-name

param-valueorg.apache.struts.action.ActionResources/param-value
/init-param
init-param
param-nameconfig/param-name
param-value/action.xml/param-value
/init-param
init-param
param-namedebug/param-name
param-value0/param-value
/init-param
/servlet
servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
/servlet-mapping
welcome-file-list
welcome-fileindex.jsp/welcome-file
/welcome-file-list
taglib
taglib-uri/config/struts.tld/taglib-uri
taglib-location/WEB-INF/struts.tld/taglib-location
/taglib
login-config
auth-methodBASIC/auth-method
/login-config
/web-app



I put the action.xml file into the www root path, since Orion does not allow
it to be loaded from inside the WEB-INF. This is due to a descrepancy in the
understanding of the Servlet 2.2 WEB-INF dir spec. Until its resolved via
the Orion team, STRUTS will not work as it does on every other app server.
The workaround is as I have done..move it to somewhere above the WEB-INF
folder and indicate that in the web.xml file in the init-param for config.

I also put struts.tld in a /config folder off of the root, but I think
leaving it in WEB-INF is ok.

Hope this helps.






Session time-out when any class is reloaded

2000-07-10 Thread Steven Punte



Dear Orion Community:

 I have figured out that any time 
a server side java
 bean (not EJB) is recompiled and 
reloaded, all
 active user sessions are 
deleted.

 Are there any configuration 
parameters associated
 with this?


STeve Puntee-Business Software 
ArchitectTechnologent Inc[EMAIL PROTECTED]


EJB 2.0 Depend Objects

2000-07-10 Thread Jen Hsien Huang

How Orion works in OR Mapping of dependent objects? Can someone give me a example.
I can't make it work, even a simple one-to-one relation

Regards.,
Jen Hsien Huang 




Web Stats

2000-07-10 Thread Dale Bronk



Can I use WebTrends or any other standard package for web 
traffic analysis with Orion? If so, how to I turn on full logging of data 
needed by these applications?
Dale Bronk[EMAIL PROTECTED]Windscape 
Consulting, Inc.http://www.windscape.com


Re: HELP: Session time out TOOOO early!

2000-07-10 Thread Joel Shellman

 Steven Punte wrote:
 
 Help:
 
 I'm having serious problem with the servlet session timing-out
 way before it should.  I'm running Orion on Solaris, and typically
 only see the problem when development is active (i.e. team
 members changing server side java bean files).
 
 
 I have set the session time-out to 6 hours in the web.xml file as
 show below:
 
 web-app
 servlet
 servlet-namesnoop/servlet-name
 display-namesnoop/display-name
 servlet-classSnoopServlet/servlet-class
 /servlet
 session-config
 session-timeout360/session-timeout
 /session-config
 login-config
 auth-methodBASIC/auth-method
 /login-config
 /web-app
 My JSP file is as simple as possible:
 
 %@ page language="java" session="true" %
 %@ page import="java.util.*" %
 html
 head
 title%= "Session Bug" %/title
 /head
 body
 brbr
   Session Information:
   brLast Accessed %= new Date( session.getLastAccessedTime()) %
   brCreation Time %= new Date( session.getCreationTime() ) %
   brID %= session.getId() %
   brMax Interval %= session.getMaxInactiveInterval() %
 /body
 /html
 In the above examples, the creation time typically only hold from
 5 minutes to 15 minutes,
 and will then move forward to the present time forgetting all
 other session information.
 
 Any suggestion greatly appreciated:

Are you using admin.jar to shutdown/restart Orion? We're seeing session
timeouts whenver we use admin.jar to restart server so we've resorted to
just killing the pid to stop and manually start it.

Haven't gotten around to posting a question on the list about it yet,
but now that I'm here is this your problem, too, and if so, anyone
know if this is a bug or what?

To fix it, we just deleted whatever's in the persistence directory.
-- 
Joel Shellman
Ants.com: the world's fastest growing freelance marketplace
http://www.ants.com/90589781