RE: UNSUSCRIBE

2001-07-05 Thread Romy Chan









UNSUSCRIBE

2001-07-05 Thread Ken Eisner

UNSUSCRIBE




Orion and blazix

2001-07-05 Thread Kemp Randy-W18971

I came across a server called blazix, which has cluster, gui's, support, and
only 1.5 mg at www.blazix.com for $2000.  Does anyone have any exposure or
experience with this server?  How does it compare and contrast with Orion?





RE: UNSUSCRIBE

2001-07-05 Thread Manuel Beltrán
Title: UNSUSCRIBE





  -Mensaje original-De: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]En nombre de Rodriguez 
  Muñoz, RosanaEnviado el: Thursday, July 05, 2001 12:58 
  PMPara: Orion-InterestAsunto: 
  UNSUSCRIBE
  -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
  Rosana Rodríguez Muñoz
  GRUPO IBERMÁTICA
  Outsourcing Multisectorial
  Pº Mikeletegi, 5. 20009 San Sebastián 
  (Spain)
  Phone: (+34) 943 413500 - Fax: (+34) 
  943 426393
  mailto:[EMAIL PROTECTED] 
  http://www.ibermatica.com
  -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-


Jabber and Orion

2001-07-05 Thread Elhadi barkat

Has anyone tried Jabber with Orion? what is your experience?
Hadi

Jabber is an instant messaging server similar to ICQ..., completely built on
XML
www.jabber.org






Re: Classpath and library path ERROR ??? -- PLEASE again ???

2001-07-05 Thread Eddie

Thank elephantwalker,

I did exactly the same thing as you did (even unpacked the log4j-core.jar
file), that is, my ear file contains:

META-INF/
META-INF/application.xml
META-INF/orion-application.xml
META-INF/MANIFEST.MF
lib/
lib/org/apache/..
um-ejb.jar
...

And the orion-application.xml contains:
--
.
persistence path=persistence /
 library path=lib /
principals path=principals.xml /
...

( I deployed it in the $ORION_HOME/applications dir)
But it keeps on complaining that it can't find a class called
org/apache/log4j/PropertyConfigurator, which sure is there:
-
bash-2.04$ cd lib/
bash-2.04$ ll org/apache/log4j/PropertyConfigurator.class
-rw-r--r--1 program  web 10685 Jul  5 16:24
org/apache/log4j/PropertyConfigurator.class
--

I am getting (still) grazy. The ear file is 250k, and less if a kick out the
web.war file (containing the html stuff). Can someone deploy it and test it,
to have a look if the problem is in the Orion configuration on my side ??
Let me know, and I will send it.

The strange thing is, that when I put a no existence path in the  lib.../ 
tag, Orion sure complaints that it can't find the file/directory, so it does
recognize the file, but then ???

Any idea's are welcome ?

:{




- Original Message -
From: elephantwalker [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 12:31 AM
Subject: RE: Classpath and library path ERROR ??? -- PLEASE again ???


 Eddie,

 I thought I gave a good answer before. I implemented a selfmade
usermanager,
 which I wanted all applications to have access to.

 Here was my file structure in the .ear file:


 /lib
 /lib/test/myusermanager.class
 /META-INF
 /META-INF/application.xml
 /META-INF/orion-application.xml
 /usermanager/META-INF/ejb-jar.xml
 /myotherejbs.jar
 /myapp.war

 the orion-application.xml has the following line after the persistance tag
 and before principals tag :

  library path=lib /

 The applications have no problems finding the myusermanager.class.

 Regards,

 the elephantwalker


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Eddie
 Sent: Wednesday, July 04, 2001 1:54 PM
 To: Orion-Interest
 Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???


 Helllu 

 I still haven't been able to solve the problem below and I already had a
lot
 of sleepless nights... so please some help, as I realy can't continue!!
 (see below for the problem).
 Does someone has a tiy example that proves that it must work, which I
 can test on my Orion 

 Eddie
 - Original Message -
 From: Eddie
 To: Orion-Interest
 Sent: Friday, June 29, 2001 11:19 PM
 Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???


 Hellu again,

 Finally I have been able to jar the project to a ear file and deploy it. I
 included the log4j-core.jar file in my ear file, by including it in a
 ejb.jar file.
 I did this like Magnus suggested below: including the jar file in one of
the
 ejb.jar files and put it in the MANIFEST.MF file.
 However, Orion still complains that it can't find the log4j-core.jar
file!!
 Please some help with the configuration ??:
 The ear files contains (locates in $ORION_HOME/applications):
 -
 META-INF
 sgs-web.war
 um-ejb.jar
 


 They um-ejb.jar contains :
 --
 
 log4j-core.jar
 META-INF/MANIFEST.MF
 META-INF/ejb-jar.xml
 
 --


 And the MANIFEST.MF file contains:
 ---
 Manifest-Version: 1.0
 Created-By: Ant 1.3
 Class-Path: log4j-core.jar
 ---


 So, please can someone tell me what the ... am I doing wrong, as it drives
 my grazy !!!

 BTW: I also included the log4j-core.jar file in a lib dir, which I did put
 in the orion-application.xml file with the 'library path' tag, like the
 elephantwalker suggested, but still had the same problem!! (ofcourse I
 included everything in the ear file).

 Musn't I include the log4j-core.jar in the MANIFEST.MF file of the ear
file,
 instead of the ejb.jar file, as Magnus suggested ??


 Gr,
 Eddie
 - Original Message -
 From: Magnus Rydin
 To: Orion-Interest
 Sent: Monday, June 25, 2001 8:22 AM
 Subject: SV: Classpath and library path ERROR ??? -- PLEASE again ???


 I guess thats orion-application.xml right?
 Another way would be to include the jar in the .ear file, and make one of
 the ejb .jar:s manifest files point it out. This is according to my
 interpretation of the specification, so Im pretty sure this will work with
 most J2EE servers out there.
 WR
  -Ursprungligt meddelande-
  Från: Ye He [mailto:[EMAIL PROTECTED]]
  Skickat: den 22 juni 2001 09:09
  Till: Orion-Interest
  Ämne: Re: Classpath and library path ERROR ??? -- PLEASE again ???
 
 
  i speicify my CLASSPATH thru applications.xml's
  library path=.. / tag, using absolute path.  i'm on
  SuSE 7.1 (kernel 2.4.0) with IBM jdk 1.3.0
 
  --- Eddie [EMAIL PROTECTED] wrote:
   Helllu ??
  

Re: Classpath and library path ERROR ??? -- PLEASE again ???

2001-07-05 Thread Eddie

Thanks Ray,

But I am still having bad luck.
When I include the lib tag, as you have in my orion-application.xml:
  library path=../../applications/sgs/log4j-core.jar /

I still get the same ClassNotFoundError.

BTW: I am having a symbolic link between /opt/Orion/ and /opt/Oron_5.1.
It won't have anything to do with this, or not ??

Any idea is welcome.
Does anyone want's to deploy my ear file, to see if it complaints ??

:{


- Original Message -
From: Ray Harrison [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 12:59 AM
Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???


 Eddie (posting to your email address directly - hope you don't mind as the
list can take a while)-
 I am sure this is not the best way to approach this, but here's what I did
in a (perhaps?) similar
 situation where I needed to have access to an ldap security manager jar
file. The MyApp.ear file
 as in your case is deployed in the %ORION_HOME%\applications directory.
Expanded, of course it
 becomes %ORION_HOME%\applications\MyApp

 So within the ear file I have, among other items...

 MyApp-ejb.jar
 MyApp-web.war
 META-INF...etc
 and then I have...
 MySecurity-app.jar (its own separate file)
 (which is the file I need access to)

 Within my orion-application.xml for my lib dir, after playing around I
ended up specifying it by
 giving it the relative address as in:

 library path=..\..\applications\MyApp\MySecurity-app.jar /

 after which I was able to set my user manager class and all that good
stuff - since it had access
 to the classes stored in the jar file listed in the library path.


 Try setting the library path as above...sorry if I am not quite getting
what you are trying to do.

 Cheers
 Ray

 --- Eddie [EMAIL PROTECTED] wrote:
  SV: Classpath and library path ERROR ??? -- PLEASE again ???Helllu 
 
  I still haven't been able to solve the problem below and I already had a
lot of sleepless
  nights... so please some help, as I realy can't continue!!
  (see below for the problem).
  Does someone has a tiy example that proves that it must work, which
I can test on my Orion
  
 
  Eddie
- Original Message -
From: Eddie
To: Orion-Interest
Sent: Friday, June 29, 2001 11:19 PM
Subject: Re: Classpath and library path ERROR ??? -- PLEASE again ???
 
 
Hellu again,
 
Finally I have been able to jar the project to a ear file and deploy
it. I included the
  log4j-core.jar file in my ear file, by including it in a ejb.jar file.
I did this like Magnus suggested below: including the jar file in one
of the ejb.jar files and
  put it in the MANIFEST.MF file.
However, Orion still complains that it can't find the log4j-core.jar
file!!
Please some help with the configuration ??:
The ear files contains (locates in $ORION_HOME/applications):
-
META-INF
sgs-web.war
um-ejb.jar

 
 
They um-ejb.jar contains :
--

log4j-core.jar
META-INF/MANIFEST.MF
META-INF/ejb-jar.xml

--
 
 
And the MANIFEST.MF file contains:
---
Manifest-Version: 1.0
Created-By: Ant 1.3
Class-Path: log4j-core.jar
---
 
 
So, please can someone tell me what the ... am I doing wrong, as it
drives my grazy !!!
 
BTW: I also included the log4j-core.jar file in a lib dir, which I did
put in the
  orion-application.xml file with the 'library path' tag, like the
elephantwalker suggested, but
  still had the same problem!! (ofcourse I included everything in the ear
file).
 
Musn't I include the log4j-core.jar in the MANIFEST.MF file of the ear
file, instead of the
  ejb.jar file, as Magnus suggested ??
 
 
Gr,
Eddie
  - Original Message -
  From: Magnus Rydin
  To: Orion-Interest
  Sent: Monday, June 25, 2001 8:22 AM
  Subject: SV: Classpath and library path ERROR ??? -- PLEASE again
???
 
 
  I guess thats orion-application.xml right?
 
  Another way would be to include the jar in the .ear file, and make
one of the ejb .jar:s
  manifest files point it out. This is according to my interpretation of
the specification, so Im
  pretty sure this will work with most J2EE servers out there.
 
  WR
 
   -Ursprungligt meddelande-
   Från: Ye He [mailto:[EMAIL PROTECTED]]
   Skickat: den 22 juni 2001 09:09
   Till: Orion-Interest
   Ämne: Re: Classpath and library path ERROR ??? -- PLEASE again
???
  
  
   i speicify my CLASSPATH thru applications.xml's
   library path=.. / tag, using absolute path.  i'm on
   SuSE 7.1 (kernel 2.4.0) with IBM jdk 1.3.0
  
   --- Eddie [EMAIL PROTECTED] wrote:
Helllu ??
   
What do you need to do to get an answer from this newsgroup
when you are
really in trouble ?? :(
   
I still haven't be able to include a jar file in the
orion-application.xml,
that can 

RE: UNSUSCRIBE

2001-07-05 Thread Manuel De Jesus

Freggin idiot ... *no offence* *G*

Does it really take that much to spend 2 seconds to check your spelling on
UNSUBSCRIBE ! Maybe a fool proof web interface to allow for
unsubscribing  like we would have for a john doe user ... would expect
more from a developer though.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ken Eisner
Sent: Thursday, July 05, 2001 2:47 PM
To: Orion-Interest
Subject: UNSUSCRIBE


UNSUSCRIBE





Re: Test Post to Servlet Doesn't Work.

2001-07-05 Thread Boris Erukhimov

It looks like you are not properly supplying arguments for POST method
The right order based on Jason Hunter book example is below:
To use it in your case just put your xml string into Properties object
as a value against cmd as a name

 public static final InputStream sendPostMessage(Properties args, URL
destination) 
throws IOException
  {
String argString = ; 
if (args != null) 
{  
argString = toEncodedString(args);  
}

URLConnection con = destination.openConnection();

// Prepare for both input and output
con.setDoInput(true);
con.setDoOutput(true);

// Turn off caching
con.setUseCaches(false);

// Work around a Netscape bug
con.setRequestProperty(Content-Type,
application/x-www-form-urlencoded);

// Write the arguments as post data
DataOutputStream out = new DataOutputStream(con.getOutputStream());

out.writeBytes(argString);
out.flush();
out.close();

return (con.getInputStream());
  }
/sendPostMessage


 private static final String toEncodedString(Properties args)
  {
StringBuffer buf = new StringBuffer();
Enumeration names = args.propertyNames();
while (names.hasMoreElements()) 
{
String name = (String) names.nextElement();
String value = args.getProperty(name);
buf.append(URLEncoder.encode(name) + = + URLEncoder.encode(value));
if (names.hasMoreElements()) 
buf.append();
}
return buf.toString();
  }
toEncodedString

Hope it helps
~boris

Milton S wrote:
 
 Orion Interest Group,
 
 I have written a Java class to test server to server communication for a
 servlet running on Orion 1.5.2. Nothing seems to happen when I run the
 class while the same URL sent from the address/location edit box on a
 browser works perfectly. The host URL I am using is
 http://ducati:8080/petroweb/report; where ducati is the name of my
 notebook, petroweb is the application name, and report is the servlet I
 am trying to access. Following is the code I am using to make the
 POST. What should I look for to make this work?
 
 I have System.out.println's in my servlet code to notify the open
 command prompt, in which Orion is running, of any requests received. I
 also have, in my servlet, all GET requests resolving to the doPost
 method.
 
 My environment is Intel P850, MS Windows 2000 Professional. Sun jdks,
 Orion 1.5.2 (stable binaries).
 
 Thank you for your help.
 
 import java.io.*;
 import java.net.*;
 import java.util.*;
 
 public class PostTest {
 
   public static void main( String args[] ){
 String xml = ?xml version=\1.0\ encoding=\utf-8\? +
  pwCmdXML +
  CommandSubmitJob/Command +
  CommandPasswordaPwd/CommandPassword +
  ProjectNameTheProject/ProjectName +
  ProjectTypepType/ProjectType +
  ObjectClassstuff/ObjectClass +
  ObjectList1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, +
  16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31, +
  32,33,34,35,36/ObjectList +
  /pwCmdXML;
 
 try{
   URL url = new URL( http://ducati:8080/petroweb/report?; );
   HttpURLConnection conn = (HttpURLConnection)url.openConnection();
 
   conn.setDoOutput( true );
   conn.setRequestMethod( POST );
   PrintWriter out = new PrintWriter(conn.getOutputStream() );
 
   out.println( cmd= + URLEncoder.encode( xml ) );
   conn.connect();
   out.flush();
   out.close();
 }
 catch( MalformedURLException err ){
   System.out.println( MalformedURLException =  + err.getMessage()
 );
 }
 catch( IOException err ){
   System.out.println( IOException =  + err.getMessage() );
 }
   }
 }




Re: Data source for Sybase with Jconnect 5.2

2001-07-05 Thread Boris Erukhimov

Thanks Ray, Juan, Michael I've got it working.

The trick to use rught core class for pooled connection
which, thanks to you guys, happen to be
com.evermind.sql.ConnectionDataSource

Thanks again
~boris

Ray Harrison wrote:
 
 Boris -
 Here is an example of a Sybase datasource - we use only the ejb-location but you may
 be able to find others who use the pooled-location by searching through the mailing 
list.
 
 Cheers
 Ray
 
data-source
name=MyDataSource
class=com.evermind.sql.ConnectionDataSource
location=jdbc/DefaultDS
pooled-location=jdbc/DefaultPooledDS
xa-location=jdbc/xa/DefaultXADS
ejb-location=jdbc/DefaultEJBDS
url=jdbc:sybase:Tds:hostname:8000/mydbname
connection-driver=com.sybase.jdbc2.jdbc.SybDriver
username=user
password=pwd
schema=database-schemas/sybase.xml
max-connections=4
inactivity-timeout=3600
 /data-source
 
 --- Boris Erukhimov [EMAIL PROTECTED] wrote:
  I'm trying to ask it second time.
 
  Does anyone use Jconnect 5.2 ?
  If so could you please share your data-source.xml and access code.
  I'm particularly interested to see how pooled-location works, not
  ejb-location.
 
  Thanks
  ~boris
 
 
 __
 Do You Yahoo!?
 Get personalized email addresses from Yahoo! Mail
 http://personal.mail.yahoo.com/




Re: Orion and blazix

2001-07-05 Thread Andy Chapman

I downloaded the evaulation copy and had the web and ejb servers up and
running in no time. Didn't have time to test it properly but I did notice
that the servers time-out after a few hours to prevent production use.

- Original Message -
From: Kemp Randy-W18971 [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, July 05, 2001 2:20 PM
Subject: Orion and blazix


 I came across a server called blazix, which has cluster, gui's, support,
and
 only 1.5 mg at www.blazix.com for $2000.  Does anyone have any exposure or
 experience with this server?  How does it compare and contrast with Orion?







RE: xerces conflict (and a hack solution).

2001-07-05 Thread Andre Vanha

Actually, thats not the way it works.  Classloaders form a hierachy.  At the
top of the tree there is the bootstrap classloader.  Underneath there is a
URL classloader, followed by orion's (1 or more) own classloaders.  You're
right that each application then gets it's own classloader, but it's always
a child of one of orion's classlaoders.   Since classloaders always delegate
to their parents, classes will always be loaded from the highest level
possible.  Now I don't think xerces is part of orion's internal classpath
anymore (1.5.2), so I'm not sure why it's having a conflict, but in general
keep in mind that classes are always loaded at the top.

Andre

-Original Message-
From: Vimal Kansal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 4:48 PM
To: Orion-Interest
Subject: Re: xerces conflict (and a hack solution).


I also ran into this problem. I think this is a bug
with Orion. Each application deployed to Orion should
get its own unique classloader, which is distinct not
only from all other applications, it is also distinct
from the classloader that Orion uses for itself.

Vimal
--- Mark Kettner [EMAIL PROTECTED] wrote:
 :Hello all,
 
 In our web application we use an old version of
 xerces. We deploy the 
 application with xerces.jar in the
 WEB-INF/lib directory.
 However, when the application is started we get the
 error:
 
 java.lang.ClassNotFoundException:
 org.apache.xerces.parsers.SAXParser
at 

org.xml.sax.helpers.XMLReaderFactory.createXMLReader(XMLReaderFactory.java:1
18)
at 

com.fredhopper.frob.question.QuestionManager.loadQuestions(QuestionManager.j
ava:163)
at 

com.fredhopper.frob.question.QuestionManager.loadQuestions(QuestionManager.j
ava:78)
at

com.fredhopper.frob.FredEngine.init(FredEngine.java:373)
at

com.fredhopper.frob.FredEngine.startingUp(FredEngine.java:138)
at 

com.fredhopper.jsp.Bridge$EngineInServletContainer.fredhopper(Bridge.java:83
7)
at 

com.fredhopper.jsp.Bridge$EngineInServletContainer.run(Bridge.java:779)
 
 A bit cryptic, because SAXParser is in fact
 available twice (once in our 
 application and once in the
 'global' orion space).
 
 A solution is:
 1) Move the following jars:
crimson.jar
jaxp.jar
parser.jar
xalan.jar
 2) Move our own xerces.jar in orion home directory
 2) Start orion as follows:
 java -Xbootclasspath/a:xerces.jar -jar orion.jar
 
 This is not a real solution, because we also had to
 remove the encoding 
 attribute out of the application.xml and web.xml.
 And this should then 
 be done for every application you deploy on the
 application server.
 
 Shouldn't it be that when the application server
 looks for a class, it 
 first looks in the classes directory of that web
 application, then in 
 the lib directory of the web application and if it
 still can't resolve 
 the class it looks in the global space (not a good
 idea, since this 
 depends on which application server you use, but
 trade of to save memory 
 usage)?
 So is this a bug in orion, or are we doing something
 wrong here?
 
 Mark
 
 -- 
 --o-o--
 Mark Kettner
 http://www.fredhopper.com
 Amsterdam, The Netherlands
 Phone:  +31 20 3206203 Mobile: +31 620 609 817
 fax:+31 20 8848747
 E-mail: [EMAIL PROTECTED], [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




Re: Test Post to Servlet Doesn't Work.

2001-07-05 Thread Milton S

Thank you for your suggestion.

I just tried it but it doesn't perform a connection either. The only difference
between what Hunter is doing in his code and mine is he is using a
DataOutputStream and I am using a PrintWriter which shouldn't make any
difference. He is also using the URLEncoder.encode method for both the name and
value. All the URLEncoder.encode method does is scan the string for reserved and
unsafe characters and replaces them with their URL encodings. This is equivalent
to my line:
out.println( cmd= + URLEncoder.encode( xml ) );
I don't bother to encode cmd because it doesn't have any reserved or unsafe
characters in it. It is producing the same string value as Hunter's
toEncodedString() method.

I am beginning to think I don't have Orion configured properly or my application
deployed properly because all the code examples I see all have the same structure
and others seem to be able to make them work.

Thank you for taking the time to look at my problem.

Milton S.

Boris Erukhimov wrote:

 It looks like you are not properly supplying arguments for POST method
 The right order based on Jason Hunter book example is below:
 To use it in your case just put your xml string into Properties object
 as a value against cmd as a name

  public static final InputStream sendPostMessage(Properties args, URL
 destination)
 throws IOException
   {
 String argString = ;
 if (args != null)
 {
 argString = toEncodedString(args);
 }

 URLConnection con = destination.openConnection();

 // Prepare for both input and output
 con.setDoInput(true);
 con.setDoOutput(true);

 // Turn off caching
 con.setUseCaches(false);

 // Work around a Netscape bug
 con.setRequestProperty(Content-Type,
 application/x-www-form-urlencoded);

 // Write the arguments as post data
 DataOutputStream out = new DataOutputStream(con.getOutputStream());

 out.writeBytes(argString);
 out.flush();
 out.close();

 return (con.getInputStream());
   }
 /sendPostMessage

  private static final String toEncodedString(Properties args)
   {
 StringBuffer buf = new StringBuffer();
 Enumeration names = args.propertyNames();
 while (names.hasMoreElements())
 {
 String name = (String) names.nextElement();
 String value = args.getProperty(name);
 buf.append(URLEncoder.encode(name) + = + URLEncoder.encode(value));
 if (names.hasMoreElements())
 buf.append();
 }
 return buf.toString();
   }
 toEncodedString

 Hope it helps
 ~boris

 Milton S wrote:
 
  Orion Interest Group,
 
  I have written a Java class to test server to server communication for a
  servlet running on Orion 1.5.2. Nothing seems to happen when I run the
  class while the same URL sent from the address/location edit box on a
  browser works perfectly. The host URL I am using is
  http://ducati:8080/petroweb/report; where ducati is the name of my
  notebook, petroweb is the application name, and report is the servlet I
  am trying to access. Following is the code I am using to make the
  POST. What should I look for to make this work?
 
  I have System.out.println's in my servlet code to notify the open
  command prompt, in which Orion is running, of any requests received. I
  also have, in my servlet, all GET requests resolving to the doPost
  method.
 
  My environment is Intel P850, MS Windows 2000 Professional. Sun jdks,
  Orion 1.5.2 (stable binaries).
 
  Thank you for your help.
 
  import java.io.*;
  import java.net.*;
  import java.util.*;
 
  public class PostTest {
 
public static void main( String args[] ){
  String xml = ?xml version=\1.0\ encoding=\utf-8\? +
   pwCmdXML +
   CommandSubmitJob/Command +
   CommandPasswordaPwd/CommandPassword +
   ProjectNameTheProject/ProjectName +
   ProjectTypepType/ProjectType +
   ObjectClassstuff/ObjectClass +
   ObjectList1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, +
   16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31, +
   32,33,34,35,36/ObjectList +
   /pwCmdXML;
 
  try{
URL url = new URL( http://ducati:8080/petroweb/report?; );
HttpURLConnection conn = (HttpURLConnection)url.openConnection();
 
conn.setDoOutput( true );
conn.setRequestMethod( POST );
PrintWriter out = new PrintWriter(conn.getOutputStream() );
 
out.println( cmd= + URLEncoder.encode( xml ) );
conn.connect();
out.flush();
out.close();
  }
  catch( MalformedURLException err ){
System.out.println( MalformedURLException =  + err.getMessage()
  );
  }
  catch( IOException err ){
System.out.println( IOException =  + err.getMessage() );
  }
}
  }





Re: Test Post to Servlet Doesn't Work.

2001-07-05 Thread Boris Erukhimov

OK, I still doubt some of your code lines.

1. When you do 
out.println( cmd= + URLEncoder.encode( xml ) );
it is not getting exactly URL-encoded becaouse of the newline symbol
added by println.

2. Your client sends HTTP request but there is no line in code to get
InputStream back.
That's obviously not a correct way to deal with HTTP socket and it's on
web server's (orion's here) developer mercy how to react. For instance
if there is no input socket open in certain time interval they can
simply ignore your POST request

Milton S wrote:
 
 Thank you for your suggestion.
 
 I just tried it but it doesn't perform a connection either. The only difference
 between what Hunter is doing in his code and mine is he is using a
 DataOutputStream and I am using a PrintWriter which shouldn't make any
 difference. He is also using the URLEncoder.encode method for both the name and
 value. All the URLEncoder.encode method does is scan the string for reserved and
 unsafe characters and replaces them with their URL encodings. This is equivalent
 to my line:
 out.println( cmd= + URLEncoder.encode( xml ) );
 I don't bother to encode cmd because it doesn't have any reserved or unsafe
 characters in it. It is producing the same string value as Hunter's
 toEncodedString() method.
 
 I am beginning to think I don't have Orion configured properly or my application
 deployed properly because all the code examples I see all have the same structure
 and others seem to be able to make them work.
 
 Thank you for taking the time to look at my problem.
 
 Milton S.
 
 Boris Erukhimov wrote:
 
  It looks like you are not properly supplying arguments for POST method
  The right order based on Jason Hunter book example is below:
  To use it in your case just put your xml string into Properties object
  as a value against cmd as a name
 
   public static final InputStream sendPostMessage(Properties args, URL
  destination)
  throws IOException
{
  String argString = ;
  if (args != null)
  {
  argString = toEncodedString(args);
  }
 
  URLConnection con = destination.openConnection();
 
  // Prepare for both input and output
  con.setDoInput(true);
  con.setDoOutput(true);
 
  // Turn off caching
  con.setUseCaches(false);
 
  // Work around a Netscape bug
  con.setRequestProperty(Content-Type,
  application/x-www-form-urlencoded);
 
  // Write the arguments as post data
  DataOutputStream out = new DataOutputStream(con.getOutputStream());
 
  out.writeBytes(argString);
  out.flush();
  out.close();
 
  return (con.getInputStream());
}
  /sendPostMessage
 
   private static final String toEncodedString(Properties args)
{
  StringBuffer buf = new StringBuffer();
  Enumeration names = args.propertyNames();
  while (names.hasMoreElements())
  {
  String name = (String) names.nextElement();
  String value = args.getProperty(name);
  buf.append(URLEncoder.encode(name) + = + URLEncoder.encode(value));
  if (names.hasMoreElements())
  buf.append();
  }
  return buf.toString();
}
  toEncodedString
 
  Hope it helps
  ~boris
 
  Milton S wrote:
  
   Orion Interest Group,
  
   I have written a Java class to test server to server communication for a
   servlet running on Orion 1.5.2. Nothing seems to happen when I run the
   class while the same URL sent from the address/location edit box on a
   browser works perfectly. The host URL I am using is
   http://ducati:8080/petroweb/report; where ducati is the name of my
   notebook, petroweb is the application name, and report is the servlet I
   am trying to access. Following is the code I am using to make the
   POST. What should I look for to make this work?
  
   I have System.out.println's in my servlet code to notify the open
   command prompt, in which Orion is running, of any requests received. I
   also have, in my servlet, all GET requests resolving to the doPost
   method.
  
   My environment is Intel P850, MS Windows 2000 Professional. Sun jdks,
   Orion 1.5.2 (stable binaries).
  
   Thank you for your help.
  
   import java.io.*;
   import java.net.*;
   import java.util.*;
  
   public class PostTest {
  
 public static void main( String args[] ){
   String xml = ?xml version=\1.0\ encoding=\utf-8\? +
pwCmdXML +
CommandSubmitJob/Command +
CommandPasswordaPwd/CommandPassword +
ProjectNameTheProject/ProjectName +
ProjectTypepType/ProjectType +
ObjectClassstuff/ObjectClass +
ObjectList1,2,3,4,5,6,7,8,9,10,11,12,13,14,15, +
16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31, +
32,33,34,35,36/ObjectList +
/pwCmdXML;
  
   try{
 URL url 

Re: Help With JNDI properties

2001-07-05 Thread Ashok Banerjee

You need an application-client.xml file as in 
$ORION_HOME/demo/ejb/product/META-INF/application-client.xml.
Cheers,
Ash

[EMAIL PROTECTED] wrote:

 Hi All.
 Is there anything wrong with this set of properties I'm trying to use with Orion?
 (the username and password is correct!

 Properties p = new Properties();
 // ... Specify the JNDI properties specific to the vendor.
 
p.setProperty(java.naming.factory.initial,com.evermind.server.ApplicationClientInitialContextFactory);
 p.setProperty(java.naming.provider.url,ormi://localhost);
 p.setProperty(java.naming.security.principal,username);
 p.setProperty(java.naming.security.credentials,password);

 This compiles fine but when run gives the error:

 javax.naming.NamingException: META-INF/application-client.xml resource not found 
(see J2EE spec, application-client chapter for requirements and format of the file)
 at 
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(Unknown 
Source)
 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
 at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
 at javax.naming.InitialContext.init(InitialContext.java:222)
 at javax.naming.InitialContext.init(InitialContext.java:198)
 at Client_1.getInitialContext(Client_1.java:35)
 at Client_1.main(Client_1.java:13)

 I can't find this application-client.xml file anywhere in the primer example or the 
other examples.
 Thanks,
 Albert.

 -

 Be passionate about your email
 Just click here: http://another.com





I wish to contact you on the ICQ Network

2001-07-05 Thread bouger

Hello! 


I have tried to contact you through ICQ but couldn't find you in the ICQ Community! If 
you are using ICQ, please send me your ICQ number by ICQ Email Express to 
[EMAIL PROTECTED]

If you are not using ICQ, I would like to invite you to join the ICQ community so we 
can send messages, chat and find more friends to join us.

Download ICQ by going to:

http://www.icq.com/download

Once you do so, we can communicate online.

Seek you @ ICQ 
Kim hyunil
ICQ #: 122120982

Here are the 4 ways you can find me in the ICQ community:
- My ICQ number is 122120982
- My Personal Communication Center on the Web, from which you can send me a message 
without having the ICQ program is: http://wwp.icq.com/122120982
- You can send me an Email Express which will appear directly on my computer screen to 
[EMAIL PROTECTED]
- My ICQ Web Front is members.icq.com/122120982. If I am online and activated my ICQ 
Web Front, you will be able to have a 2 way dialog with me from this page.