Lib entry and tools.jar placement

2000-12-08 Thread August Linnman

Hello everybody,

The need of a java compiler for JSP is probably well known, as well as the trick to 
copy the "tools.jar" to the Orion root directory. And failing to do this results in 
the following error message:

Compiler error: Javac not installed, copy tools.jar from your sun JDK dir's lib dir to 
the orion dir or add a library path="the/path/to/tools.jar" / and restart

I would like to try the second alternative, by adding this "library" element to some 
XML file, which i assume is config/application.xml. However, after a lot of 
trial-and-horror I have not been able to make this technique working. Anyone knowns of 
any tricks, or better, can describe the loading mechanisms involved using the 
"library" statement. 
I use Orion 1.3.8 on a Windows NT / Windows 2000 configuration. 

Best regards
/August






Use of the Plug-in 1.3 from Sun with an Orion EJB.

2000-08-27 Thread August Linnman



Hello everyone!

Has anyone tried to use a plug-in solution to convert a 
EJB-client-JavaBean into an ActiveX-control object with Orion?
We will consider this solution:

VB/C++ scripting client or similar ---COM--- 
EJB-client JAR/Bean --ORMI/IIOP--- Enterprise Java Bean deployed in 
Orion 

Everything works out nice, except for one crucial 
point:

com.dewire.common.messaging.MessagingException: Unable to 
locate home interface for a class __Proxy1at 
com.dewire.common.messaging.MessageSenderImpl.createInstance(MessageSenderImpl.java:398)at 
com.dewire.common.messaging.MessageSenderImpl.send(MessageSenderImpl.java:324)Nested 
exception : 
java.lang.ClassCastExceptionat 
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:296)at 
javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)at 
com.dewire.common.messaging.MessageSenderImpl.createInstance(MessageSenderImpl.java:390)at 
com.dewire.common.messaging.MessageSenderImpl.send(MessageSenderImpl.java:324)
This exception seems to occur *only* when trying to run the 
plug-in setup, it never occurs in a regular client setup (e g using startup in a 
EJB client JAR). 
The platform chosen is: JDK 1.3, Orion 1.2.0, Win98, Plug-in 
from Sun 1.3.0. The plug-in has been setup (through the control panel) to use 
the JDK runtime environment (1.3). 
What exactly is the "__Proxy1" class which I retreive in the 
JNDI lookup? Is the use of the "com.sun.corba.se" an indication of use of an 
incorrect SPI for underlying network communication? 

Excerpt from the client code (where the exception is 
thrown):

 Object objRef = null; 
try { objRef = 
initial.lookup ("java:comp/env/ejb/"+ location); 
} catch (NamingException e) 
{ throw new MessagingException (e, "Cannot 
resolve ejb name"); } 
RemoteMessageSenderHome home = null;
 Throwable t = null; 
try { home = 
(RemoteMessageSenderHome) objRef; } 
catch (ClassCastException e) 
{ t = e; 
try 
{ home = (RemoteMessageSenderHome) 
PortableRemoteObject.narrow(objRef, 
RemoteMessageSenderHome.class); 
} catch (ClassCastException 
f) 
{ t = 
f; } 
} if (home == null) 
throw new MessagingException (t, "Unable to locate home interface for a " + 
objRef.getClass().toString()); // Always happens in plug-in. 
 else System.out.println 
("Successfully resolved a " + objRef.getClass().toString()); // Always happens 
when not running Plug-in

Any tips regarding these matters would be greatly appreciated. 
I have plunged into different mail lists and news archives with no success. 


/August





Re: JMS question, topics mixed up? Problem fixed.

2000-08-23 Thread August Linnman



Hello everyone again!

The problem has been solved. I missed to fill in the 
topic/topic declarations in config/jms.xml. 
However, the error was confusing, and a good guess is that the 
application should not be able be run in the first place without the 
declarations in jms.xml. 

I would still be interested in clarifications and experiences 
about these matters. Also the status of the Orion JMS server would be very 
interesting to know more about, mostly since we consider to use Orion as a 
production platform. 

/August

  - Original Message - 
  From: 
  August Linnman 
  To: Orion-Interest 
  Cc: Robin Rosenberg 
  Sent: Tuesday, August 22, 2000 12:08 
  AM
  Subject: JMS question, topics mixed 
  up?
  
  Hello everyone!
  
  I have a rather mysterious problem related to Topic Pub/Sub. 
  My application defines two separate topics used for different purposes, but no 
  matter what I try all TopicSubscribers will receive data posted on *both* 
  topics. 
  I am somewhat a newbie to JMS, but not to messaging systems, 
  and this is not what I expect from the Orion JMS server.
  
  Am I running into a known problem? The mailing list contains 
  so far very few postings on JMS. What is the status of the Orion JMS server? 
  
  
  Thanks in advance for all advice.
  
  /August
  


JMS: subscribe(timeout) does not work?

2000-08-23 Thread August Linnman



Hi all,

When I call TopicSubscriber.subscribe (timeoutvalue) the call 
does not seem to return in a time-out situation. It just waits forever. 

According to spec the timeoutvalue is specified in 
milliseconds. 
Anyone knows of this problem? Is there some setup needed for a 
time-out call to work properly? 

Code sample:

 
TopicConnectionFactory factory = 
(TopicConnectionFactory)new 
InitialContext().lookup(...); 
TopicConnection connection = 
factory.createTopicConnection(); 
Topic topic = (Topic)new 
InitialContext().lookup(.); 
TopicSession session = connection.createTopicSession(false, 
TopicSession.CLIENT_ACKNOWLEDGE); 
TopicSubscriber subscriber = 
session.createSubscriber(topic); 
connection.start();
 Message theMessage 
= subscriber.receive (5000);// MAY HANG, BUT SHOULD WAIT AT MOST 5 
SECS. 
The test program on the other side is abruptly stopping its 
message delivery, either through a hard cut-wire, or through System.exit(-1). We 
want to be able to cope with abruptly stopping clients. Can this influence in 
some ways? 

It is in theory to work around this problem using subscribe() 
with no parameters and start a separate time-out/killer thread, but it seems 
very odd and awkward. 

Thanks in advance for any ideas.

/August



JMS question, topics mixed up?

2000-08-21 Thread August Linnman



Hello everyone!

I have a rather mysterious problem related to Topic Pub/Sub. 
My application defines two separate topics used for different purposes, but no 
matter what I try all TopicSubscribers will receive data posted on *both* 
topics. 
I am somewhat a newbie to JMS, but not to messaging systems, 
and this is not what I expect from the Orion JMS server.

Am I running into a known problem? The mailing list contains 
so far very few postings on JMS. What is the status of the Orion JMS server? 


Thanks in advance for all advice.

/August



Problem with Class.forName

2000-08-15 Thread August Linnman



Hello all!

I seems to be impossible for my session bean to load a class 
dynamically through Class.forName(String) or Class.forName(String, boolean, 
ClassLoader). The class I try to load is placed in the EJB-JAR. 
Any attempt always causes a ClassNotFoundException. I can 
recall vaguely that this might be a security thing.

Anyone has any indication to this kind of 
problem?

Thanks in advance

/August



Sharing code between web-app and ejbs

2000-08-10 Thread August Linnman



Hello everyone!

This is maybe not orion-specific (off-topic) but may be 
relevant anyway.

How can you in a manageable way include "library" code, i e 
common code in an EAR which should be accessible from both the WAR and the 
EJB-JAR, and also preferably be put in the same EAR. The only way I can think of 
now is to duplicate code between the EJB-JAR part and the WEB-INF/classes 
directory, which is not a very nice solution. 

Another way would be to link the external code through another 
JAR-file, and tie together using a Manifest, but I cannot resolve exactly which 
Manifest should be used (the EAR or the JAR?) and how this should be done. I 
have read the Sun specs aboutthe Jar-manifest format but either they are 
very unclear, or I have not found the right information. 

Any clarity in this matter would be greatly appreciated. 


/August




Re: JMS sample error

2000-08-08 Thread August Linnman



Hello everyone again.

The problem disappeared after having done a "java -jar 
autoupdate.jar". Maybe a bug that was corrected. :-) 

/August

- Original Message - 

  From: 
  August 
  Linnman 
  To: Orion-Interest 
  Sent: Tuesday, August 08, 2000 5:38 
  PM
  Subject: JMS sample error
  
  Hello everyone. 
  
  When trying to run the coffemaker sample I get the error 
  below. I think I follow the instructions carefully. This error resembles many 
  other similar cases related to class loading problems. I use JDK 1.3. 
  
  
  Anyone having a clue?
  
  /August Linnman, Dewire Innovation AB, 
  Stockholm.
  
  ===
  
  D:\orion\demo\jmsjava -jar coffeemaker.jar
  Login for admin account - works fine
  .. After appr 5 seconds this happens
  java.lang.ClassNotFoundException: 
  com/evermind/server/administration/ResourceFinder 
  at 
  com.evermind.server.rmi.a8.invokeMethod(JAX) 
  at 
  com.evermind.server.rmi.a_.invoke(JAX) 
  at 
  com.evermind.server.rmi.a0.invoke(JAX) 
  at __Proxy0.getLocation(Unknown 
  Source) at 
  com.evermind.server.administration.LazyResourceFinder.getLocation(JAX) 
  at 
  com.evermind.server.Application.akc(JAX) 
  at 
  com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX) 
  at javax.naming.spi.NamingManager.getInitialContext(Unknown 
  Source) at 
  javax.naming.InitialContext.getDefaultInitCtx(Unknown 
  Source) at 
  javax.naming.InitialContext.init(Unknown 
  Source) at 
  javax.naming.InitialContext.init(Unknown 
  Source) at 
  CoffeeMaker.main(CoffeeMaker.java:23)


doPost/doGet confusion

2000-05-25 Thread August Linnman

Hello!

We have experienced a most strange behaviour on a fresh installation of Orion 1.0rc1 
deploying a web application of ours. When executing a "POST" request on a servlet 
(using a java client program using a HTTPUrlConnection) the orion server seems to 
dispatch to the "doGet" method instead of "doPost"!! 
We have tried to swap the Orion server for a Tomcat 3.1, using exactly the same client 
software and the same deployed WEB-archive and code, and Tomcat correctly invokes the 
"doPost" method for the same request. 

Is this a common and known bug, or do we need to dig deeper to get more debug 
information? 

Any information useful in solving this mystery would be greatly appreciated. 

Best Regards
/August Linnman, ITEC OBI AB, Stockholm.


==========
August Linnman, ITEC Open Business Integrator AB. Stockholm, Sweden
Telephone: +4670 930 61 05
PGP key lookup: http://certserver.pgp.com:11371/pks/lookup?op=getsearch=0x2BF524E7
==



BEGIN:VCARD
VERSION:2.1
N:Linnman;August
FN:August Linnman
ORG:ITEC Open Business Integrator AB;Software development
TITLE:System Engineer
NOTE;ENCODING=QUOTED-PRINTABLE:PGP key lookup: http://certserver.pgp.com:11371/pks/lookup?op=3Dgetsearch=
=3D0x2BF524E7=0D=0A
TEL;WORK;VOICE:+468-343431
TEL;WORK;VOICE:+4670-4928641
TEL;HOME;VOICE:+468-308917
TEL;CELL;VOICE:+4670-9306105
TEL;WORK;FAX:+468-343438
TEL;HOME;FAX:+468-314954
ADR;WORK:;;Ynglingagatan 17;Stockholm;Stockholm;11347;Stockholm
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Ynglingagatan 17=0D=0AStockholm, Stockholm 11347=0D=0AStockholm
ADR;HOME:;;Torbjörn Klockares g 13;Stockholm;Stockholm;113 30;Sweden
LABEL;HOME;ENCODING=QUOTED-PRINTABLE:Torbj=F6rn Klockares g 13=0D=0AStockholm, Stockholm 113 30=0D=0ASweden
X-WAB-GENDER:2
URL:http://www.itec.se/august.htm
URL:http://www.itec.se
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:2525T112300Z
END:VCARD