Re: Orion application clients and Java Web Start

2001-11-21 Thread Anders Dahlberg

 Suggestions? Is the Java Web Start environment (classloader,
 security manager, etc) interfering with Orion?

IIRC this is an old issue discussed a lot at the java web start forums on 
forums.java.sun.com.
Try to do a search on Java Web Start + Weblogic/J2EE/EJB, and I think you will 
probably find some information about problem with the use of the context classloader. 
(I have actually gotten a JWS + EJB development-hack to work, so it is possible - I 
just don't remember the actual details ;)

 Regards,
 /Magnus
/Anders





Re: Redirection of HTTP requests

2001-04-28 Thread Anders Dahlberg

At 10:23 2001-04-26, S.Badrinarayanan wrote:
Hi

Here is a set of lines that we add to server.xml in a Tomcat server to 
redirect http requests:
Context path=/soap
docBase=c:/ApacheSoap/soap-
2_0/webapps/soapdebug=
1 reloadable=true
/Context

What files need to be updated to get a similar functionality with Orion?

add following to orion dir\config\default-web-site.xml

web-app application=default name=soap root=/apache-soap /

in web-site tag

and this web-module id=soap path=c:\java\soap-2_1\webapps\soap /
to orion dir\config\application.xml

thanx
sb

/Anders





Re: cant start orion after the auto update.....

2001-04-26 Thread Anders Dahlberg

At 00:55 2001-04-28, you wrote:
Hello all, i just updated to 1.4.8 and now i get an error using :

java -jar orion.jar

i got the following error :

java.lang.NoSuchMethodError: org.xml.sax.Attributes: method 
getQName(I)Ljava/lang/String; not found
 at org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139)
 at 
 org.apache.crimson.tree.XmlDocumentBuilder.startElement(XmlDocumentBuilder.java:463)
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449)
 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
 at 
 org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
 at 
 org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)
 at com.evermind._yw.getJavaxDocument(Unknown Source)
 at com.evermind.xml.XMLUtils.getDocument(Unknown Source)
 at com.evermind.xml.XMLConfig._iw(Unknown Source)
 at com.evermind.xml.XMLConfig._iw(Unknown Source)
 at com.evermind._kh.run(Unknown Source)
 at java.lang.Thread.run(Thread.java:498)
 at com.evermind._jw.run(Unknown Source)

i  dont even use crimson.
Any idea ?
Thx in advance
Chris

Ps: i moved the principals.xml reference to config/application.xml

javax.xml.parsers.FactoryConfigurationError: 
java.lang.ClassNotFoundException: o
rg.apache.crimson.jaxp.DocumentBuilderFactoryImpl
 at 
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderF
actory.java:118)
 at com.evermind.xml.e.getJavaxDocument(JAX)
 at com.evermind.xml.XMLUtils.getDocument(JAX)
 at com.evermind.xml.XMLConfig.az(JAX)
 at com.evermind.xml.XMLConfig.az(JAX)
 at com.evermind.server.hk.run(JAX)
 at java.lang.Thread.run(Unknown Source)
 at com.evermind.util.f.run(JAX)

+1

/Anders





Re: cant start orion after the auto update.....

2001-04-26 Thread Anders Dahlberg

At 00:55 2001-04-28, you wrote:
Hello all, i just updated to 1.4.8 and now i get an error using :

java -jar orion.jar

i got the following error :

java.lang.NoSuchMethodError: org.xml.sax.Attributes: method 
getQName(I)Ljava/lang/String; not found
 at org.apache.crimson.tree.AttributeSet.init(AttributeSet.java:139)
 at 
 org.apache.crimson.tree.XmlDocumentBuilder.startElement(XmlDocumentBuilder.java:463)
 at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1449)
 at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
 at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
 at 
 org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
 at 
 org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)
 at com.evermind._yw.getJavaxDocument(Unknown Source)
 at com.evermind.xml.XMLUtils.getDocument(Unknown Source)
 at com.evermind.xml.XMLConfig._iw(Unknown Source)
 at com.evermind.xml.XMLConfig._iw(Unknown Source)
 at com.evermind._kh.run(Unknown Source)
 at java.lang.Thread.run(Thread.java:498)
 at com.evermind._jw.run(Unknown Source)

i  dont even use crimson.
Any idea ?
Thx in advance
Chris

Ps: i moved the principals.xml reference to config/application.xml

run autoupdate again, and it works





Newbie question on howto run simple HelloWorld application

2000-08-07 Thread Anders Dahlberg



Hello,

I'm very new to j2ee and are trying to get my 
first app to run. I've written a stateless session bean and added it to an ear 
file and deployed this to application-deployments. when I try to run my 
HelloClient I gt the following error:

C:\WINDOWS\Profiles\Anders\Visual Studio 
Projects\Hellojava 
hello.HelloClientjavax.naming.NoInitialContextException: Need to specify 
class name in environment or system property, or as an applet parameter, or 
in an application resource file: 
java.naming.factory.initial at 
javax.naming.spi.NamingManager.getInitialContext(Unknown 
Source) at 
javax.naming.InitialContext.getDefaultInitCtx(Unknown 
Source) at 
javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown 
Source) at 
javax.naming.InitialContext.lookup(Unknown 
Source) at 
hello.HelloClient.main(HelloClient.java:14)

/Anders

// HelloClient.java:
package hello;

import javax.ejb.*;import 
javax.naming.*;import javax.rmi.*;import 
java.util.Properties;

public class 
HelloClient{public static void main(String 
args[]){try{Properties props = 
System.getProperties();Context context = new 
InitialContext(props);java.lang.Object objref = 
context.lookup("HelloHome");HelloHome home = 
(HelloHome)PortableRemoteObject.narrow(objref, HelloHome.class);

Hello hello = 
home.create();System.out.println(hello.hello());hello.remove();}catch(Exception 
e){e.printStackTrace();}}}

// orion-application.xml
?xml version="1.0"?!DOCTYPE 
orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://www.orionserver.com/dtds/orion-application.dtd"

orion-application 
deployment-version="1.1.37"ejb-module remote="false" 
path="HelloWorld.jar" /client-module path="HelloClient.jar" 
deployment-time="e0d64eb260" auto-start="false" /persistence 
path="persistence" /principals path="principals.xml" 
/logfile path="application.log" 
//lognamespace-accessread-accessnamespace-resource 
root=""security-role-mappinggroup 
name="administrators" 
//security-role-mapping/namespace-resource/read-accesswrite-accessnamespace-resource 
root=""security-role-mappinggroup 
name="administrators" 
//security-role-mapping/namespace-resource/write-access/namespace-access/orion-application

// orion-ejb-jar.xml
?xml version="1.0"?!DOCTYPE 
orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://www.orionserver.com/dtds/orion-ejb-jar.dtd"

orion-ejb-jar deployment-version="1.1.37" 
deployment-time="e0c7693860"enterprise-beanssession-deployment 
name="HelloHome" location="HelloHome" 
wrapper="HelloHome_StatelessSessionHomeWrapper19" timeout="10" 
persistence-filename="HelloHome" 
//enterprise-beansassembly-descriptordefault-method-accesssecurity-role-mapping 
impliesAll="true" 
//default-method-access/assembly-descriptor/orion-ejb-jar


Getting IOException when trying to build jdom with ant

2000-08-06 Thread Anders Dahlberg



I've got windows 98 running on a pentium mmx 
200

Here is the error:

C:\Anders\java\xml\jdombuildJava and 
XML Build System---Building with classpath 
c:\jdk1.2\lib\tools.jar;.\lib\xerces.jar;.\lib\ant.jar;.;c:\java\lib;c:\anders\java\jakarta-tomcat\webapps\taif;c:\anders\java\xml\jdom;c:\java\lib\lotusxsl.jar;c:\java\lib\xalan.jar;c:\java\lib\xerces.jar;c:\anders\java\orion;c:\windows\profiles\anders\minado~1\visual~1\Native~1Starting 
Ant...Buildfile: build.xmlBUILD CONFIG ERROR: Can't open config file: 
build.xml due to: java.io.IOException: 
java.lang.reflect.InvocationTargetExceptionorg.apache.tools.ant.BuildException: 
Can't open config file: build.xml due to: java.io.IOException: 
java.lang.reflect.InvocationTargetException 
at 
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:88) 
at org.apache.tools.ant.Main.runBuild(Compiled 
Code) at 
org.apache.tools.ant.Main.main(Compiled Code)