You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(20) |
Nov
(11) |
Dec
(27) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(11) |
Feb
(8) |
Mar
(17) |
Apr
(11) |
May
(9) |
Jun
(30) |
Jul
(18) |
Aug
|
Sep
(4) |
Oct
(34) |
Nov
(83) |
Dec
(28) |
| 2004 |
Jan
(4) |
Feb
|
Mar
(13) |
Apr
(20) |
May
(4) |
Jun
(26) |
Jul
(5) |
Aug
(2) |
Sep
(3) |
Oct
(7) |
Nov
(10) |
Dec
(24) |
| 2005 |
Jan
(7) |
Feb
(44) |
Mar
(9) |
Apr
(16) |
May
(9) |
Jun
(64) |
Jul
(48) |
Aug
(36) |
Sep
(27) |
Oct
(24) |
Nov
(20) |
Dec
(11) |
| 2006 |
Jan
(12) |
Feb
(13) |
Mar
(7) |
Apr
|
May
(16) |
Jun
(5) |
Jul
(2) |
Aug
(7) |
Sep
(19) |
Oct
(5) |
Nov
(9) |
Dec
(13) |
| 2007 |
Jan
(21) |
Feb
(12) |
Mar
(6) |
Apr
|
May
(2) |
Jun
(14) |
Jul
(1) |
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2008 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(5) |
May
(2) |
Jun
(1) |
Jul
(6) |
Aug
|
Sep
(9) |
Oct
(3) |
Nov
(25) |
Dec
(32) |
| 2009 |
Jan
(11) |
Feb
(12) |
Mar
(18) |
Apr
(19) |
May
(31) |
Jun
(23) |
Jul
(35) |
Aug
(7) |
Sep
(2) |
Oct
|
Nov
|
Dec
(8) |
| 2010 |
Jan
(3) |
Feb
(3) |
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Mattias J <ma...@ex...> - 2004-06-25 10:34:19
|
After this I ran into some other problems so here goes the full story:
I am trying to send an ebXML message in our development environment from
computer Macbeth to computer Othello.
I have compiled Hermes from the latest CVS sources and installed on both
machines.
Macbeth is running JDK 1.4.2 and using Resin 2.1.13 as servlet container.
Othello is running JDK 1.4.1 and using Resin 2.1.11 as servlet container.
(Both are running Windows XP.)
First I created a self-signed certificate for Othello, using its IP as CN
keytool -genkey -keyalg RSA -alias othello -keystore othello.keystore
-storepass changeit
I installed this certificate in Resin and was able to call Hermes on
Othello from a browser on Macbeth using SSL (after manually accepting
myself as certificate authority, of course).
Then I exported the public key using
keytool -export -rfc -alias othello -file othello.cer -keystore
othello.keystore -storepass changeit
This cert I imported into another keystore
keytool -import -alias othello -file othello.cer -keystore
trusted.keystore -storepass changeit
I set up this keystore in the msh.properties.xml of Macbeth as follows
<DigitalSignature>
<TrustedAnchor>
<KeyStore>
<Path>/hermes</Path>
<File>trusted.keystore</File>
<Password>changeit</Password>
</KeyStore>
</TrustedAnchor>
(I can see in the logs that the keystore is found)
Then I created a small client on Macbeth trying to send an ebXML message
through Macbeths MSH to Othello using this request:
Request mshReq = new Request(appCtx, new
URL("https://213.15.xxx.xxx/msh/"), null, Constants.TRANSPORT_TYPE_HTTPS);
The error in the log was the same whether I had added the trusted keystore
in msh.properties.xml above or not:
[10505] Cannot send SOAP message
Exception: javax.net.ssl.SSLHandshakeException
Message: sun.security.validator.ValidatorException: No trusted
certificate found
Therefore I added the public key into the global JRE store
(jre/lib/security/cacerts) using
keytool -import -alias othello -file othello.cer -keystore cacerts
-storepass changeit
After restarting Resin on Macbeth I got rid of the error above but instead got
[10505] Cannot send SOAP message
Exception: java.io.IOException
Message: HTTPS hostname wrong: should be <213.15.xxx.xxx>
This I didn't understand either, so I thought I'd try to create my own
com.sun.net.ssl.HostnameVerifier (from a tip I found in the mailing list
archives). I configured Macbeth with this hostname verifier
(<HostnameVerifier>foo.bar.MyHostnameVerifier</HostnameVerifier>) but
noticed it was not being used. Through looking at the source and adding
some debug output I found out that not only
com.sun.net.ssl.HostnameVerifier but also
com.sun.net.ssl.HttpsURLConnection is deprecated and instead
javax.net.ssl.HttpsURLConnection (and javax.net.ssl.HostnameVerifier) is
used on my machine. That is the reason that
hk.hku.cecid.phoenix.message.transport.Http never configured my HTTPS
connection to use my own HostnameVerifier and problably also the reason why
my Hermes-local trusted keystore is not being used.
That is where I am at now.
- Is Hermes outdated, is my computer misconfigured or why does the HTTPS
connection implementation not match?
- How do I get rid of the "HTTPS hostname wrong" (preferrably without
implementing my own HostnameVerifier)?
Thanks in advance.
Mattias Jiderhamn
Expert Systems
At 2004-06-25 03:24, you wrote:
>No. It works fines for me when I do the testing for SSL part. Can you tell
>me more on how you use it?
>
>Regards,
>Bob Koon
>
>Mattias J wrote:
>
>>It seems to me (both through testing and though looking at the souce
>>code) that even if you define a keystore with trusted certificates in
>>msh.properties.xml, it is not used. Is this correct?
>>
>>This is the setting I would like to use:
>> <SSL>
>> <!-- Trust keystore for SSL Server Authentication -->
>> <TrustedAnchor>
>> <KeyStore>
>> <Path>/hermes</Path>
>> <File>trusted.keystore</File>
>> <Password>foobar</Password>
>> </KeyStore>
>> </TrustedAnchor>
>> </SSL>
|
|
From: Bob K. <py...@ce...> - 2004-06-25 01:24:10
|
No. It works fines for me when I do the testing for SSL part. Can you tell me more on how you use it? Regards, Bob Koon Mattias J wrote: > It seems to me (both through testing and though looking at the souce > code) that even if you define a keystore with trusted certificates in > msh.properties.xml, it is not used. Is this correct? > > This is the setting I would like to use: > <SSL> > <!-- Trust keystore for SSL Server Authentication --> > <TrustedAnchor> > <KeyStore> > <Path>/hermes</Path> > <File>trusted.keystore</File> > <Password>foobar</Password> > </KeyStore> > </TrustedAnchor> > </SSL> > > > > Mattias Jiderhamn > Expert Systems > > ma...@ex... > www.expertsystem.se > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital > self defense, top technical experts, no vendor pitches, unmatched > networking opportunities. Visit www.blackhat.com > _______________________________________________ > ebxmlms-general mailing list > ebx...@li... > https://lists.sourceforge.net/lists/listinfo/ebxmlms-general > |
|
From: Mattias J <ma...@ex...> - 2004-06-24 15:16:43
|
It seems to me (both through testing and though looking at the souce code)
that even if you define a keystore with trusted certificates in
msh.properties.xml, it is not used. Is this correct?
This is the setting I would like to use:
<SSL>
<!-- Trust keystore for SSL Server Authentication -->
<TrustedAnchor>
<KeyStore>
<Path>/hermes</Path>
<File>trusted.keystore</File>
<Password>foobar</Password>
</KeyStore>
</TrustedAnchor>
</SSL>
Mattias Jiderhamn
Expert Systems
ma...@ex...
www.expertsystem.se
|
|
From: Julien <ju...@ni...> - 2004-06-22 19:11:07
|
Hello all,
like i told you i'm interested in implementing a servlet Monitor for Hermes.
I began to write a simple servlet to just send an ebxml message using fixed parameters.
I have several questions:
- is the code I wrote the correct way to use the hermes api (code included below) ? Is there something missing in the building of this minimal ebxml message?
Would the Command object be of any use? How to use it?
- does someone has an idea what the error stack i get is due to (included after the code) ? (java.lang.LinkageError: loader constraints violated when linking javax/activation/DataHandler class)
thx!
Julien.
-----------------------------------------------------------------------------
Code:
-----------------------------------------------------------------------------
package ESIAL.GUI;
import java.io.IOException;
import java.io.PrintWriter;
import java.lang.String;
import java.lang.StringBuffer;
import java.net.URL;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.xml.soap.SOAPException;
import hk.hku.cecid.phoenix.message.handler.Request;
import hk.hku.cecid.phoenix.message.handler.RequestException;
import hk.hku.cecid.phoenix.message.handler.ApplicationContext;
import hk.hku.cecid.phoenix.message.handler.NoMessageListenerImpl;
import hk.hku.cecid.phoenix.message.packaging.EbxmlMessage;
public class HermesMonitor extends HttpServlet {
private Request req;
private EbxmlMessage ebxmlm;
private String fromPartyId;
private String toPartyId;
private String cpaId;
private String conversationId;
private String service;
private String action;
private String messageId;
private String timestamp;
private String transportType;
private String retryInterval;
private int numRetry;
/* a StringBuffer to build the reponse before sending */
private StringBuffer sb;
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
fromPartyId = "http://localhost:8080/msh";
toPartyId = "http://localhost:8080/msh";
cpaId = "CPA2002";
conversationId = "Item_No_128";
service = "http://www.cecid.hku.hk/ebxml/service";
action = "Order";
messageId = "Julien";
timestamp = new Date().toString();
transportType = "HTTP";
retryInterval = "30000";
numRetry = 2;
try {
ebxmlm = new EbxmlMessage();
ebxmlm.addMessageHeader(fromPartyId, toPartyId, cpaId,
conversationId, service, action, messageId, timestamp);
} catch (SOAPException x) {
x.printStackTrace();
}
ApplicationContext ac = new ApplicationContext(cpaId,
conversationId, service, action);
NoMessageListenerImpl nmli = new NoMessageListenerImpl();
try {
req = new Request(ac, new URL(toPartyId), nmli, transportType,
numRetry, retryInterval);
} catch(RequestException x) {
x.printStackTrace();
}
try {
req.send(ebxmlm);
} catch(RequestException x) {
x.printStackTrace();
}
/* Builds the response */
sb = new StringBuffer();
sb.append("<html>\n");
sb.append("<head>\n");
sb.append("</head>\n");
sb.append("<body>\n");
sb.append("<h1>Hermes Monitor</h1>\n");
sb.append("</body>\n");
sb.append("</html>\n");
/* Displays the response */
PrintWriter out = response.getWriter();
out.println(sb.toString());
}
}
-----------------------------------------------------------------------------
Stack:
-----------------------------------------------------------------------------
Starting service Tomcat-Apache
Apache Tomcat/4.0.3
Info: using property file in /usr/local/jakarta-tomcat-4.0.3/msh_client.properties.xml
java.lang.LinkageError: loader constraints violated when linking javax/activation/DataHandler class
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:124)
at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32)
at hk.hku.cecid.phoenix.message.packaging.EbxmlMessage.<clinit>(Unknown Source)
at hk.hku.cecid.phoenix.message.handler.MessageServer.getMessageFromFile(Unknown Source)
at hk.hku.cecid.phoenix.message.handler.MessageServer.getMessageFromFile(Unknown Source)
at hk.hku.cecid.phoenix.message.handler.Command.readObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at hk.hku.cecid.phoenix.message.handler.MessageServiceHandler.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
at java.lang.Thread.run(Thread.java:534)
On Sat, 19 Jun 2004 14:37:09 +0200
Ronald van Kuijk <rv...@ab...> wrote:
> Patrick Yee wrote:
>
> >
> >>> - is it possible to build a servlet client for Hermes keeping all
> >>> the features that are managed by a regular java application? In
> >>> other words is there something a Hermes client like "Monitor" can't
> >>> do with servlets? (authentication using the existing authentication
> >>> file system, etc...)
> >>>
> >>
> >>
> >> Not yet, but there is some thinking going on to make these things
> >> possible in the future
> >>
> >>
> >>
> > If Julien means can we write "Monitor" as a servlet, then I guess it
> > is possible. Of course, our assumption is, the information which is
> > currently captured interactively using Java Swing, like keystore
> > location, password, etc, shall be managed by the servlet in other
> > ways. One possible way is by pre-configuration.
>
> Yes, I agree. Some other person on this list (won't mention any names
> Sacha ;-) ) likes to have a xml-rpc implementation. Since I made the
> monitor part rather flexible (see the 'WebAdmin and other contrib'
> thread this would not be to difficult now. Just find the time somewhere.
> One thing I like to do there is move the Command object internal into
> Hermes and not expose it to the outside world. Each monitor is then
> responsible for mapping a request into a Command object. e.g.
> - an xml structure can have all command elements in tags
> - a jms monitor gets the command elements from jms headers
> - a servlet monitor gets it from request parameters
>
> This is exactely what I was proposing on the other thread by splitting
> the use of the one servlet into separate things. Each implementation of
> a monitor is then also responsible for their own authentication (which I
> hope will one day be based on the principal from the servlet/j2ee engine
>
> Ronald
>
>
|
|
From: Ronald v. K. <rv...@ab...> - 2004-06-19 12:37:22
|
Patrick Yee wrote: > >>> - is it possible to build a servlet client for Hermes keeping all >>> the features that are managed by a regular java application? In >>> other words is there something a Hermes client like "Monitor" can't >>> do with servlets? (authentication using the existing authentication >>> file system, etc...) >>> >> >> >> Not yet, but there is some thinking going on to make these things >> possible in the future >> >> >> > If Julien means can we write "Monitor" as a servlet, then I guess it > is possible. Of course, our assumption is, the information which is > currently captured interactively using Java Swing, like keystore > location, password, etc, shall be managed by the servlet in other > ways. One possible way is by pre-configuration. Yes, I agree. Some other person on this list (won't mention any names Sacha ;-) ) likes to have a xml-rpc implementation. Since I made the monitor part rather flexible (see the 'WebAdmin and other contrib' thread this would not be to difficult now. Just find the time somewhere. One thing I like to do there is move the Command object internal into Hermes and not expose it to the outside world. Each monitor is then responsible for mapping a request into a Command object. e.g. - an xml structure can have all command elements in tags - a jms monitor gets the command elements from jms headers - a servlet monitor gets it from request parameters This is exactely what I was proposing on the other thread by splitting the use of the one servlet into separate things. Each implementation of a monitor is then also responsible for their own authentication (which I hope will one day be based on the principal from the servlet/j2ee engine Ronald |
|
From: Patrick Y. <kc...@ce...> - 2004-06-19 11:35:54
|
>> - is it possible to build a servlet client for Hermes >>keeping all the features that are managed by a regular java >>application? In other words is there something a Hermes >>client like "Monitor" can't do with servlets? (authentication >>using the existing authentication file system, etc...) >> >> > >Not yet, but there is some thinking going on to make these things >possible in the future > > > If Julien means can we write "Monitor" as a servlet, then I guess it is possible. Of course, our assumption is, the information which is currently captured interactively using Java Swing, like keystore location, password, etc, shall be managed by the servlet in other ways. One possible way is by pre-configuration. Regards, -Patrick |
|
From: Patrick Y. <kc...@ce...> - 2004-06-19 05:32:48
|
Hi Chamikara, I forwarded your question to the mailing list for Hermes discussion. You=20 can subscribe to the mailing list from http://sourceforge.net/mail/?group_id=3D56612. Regarding your question, you may try to delete servlet.jar from the=20 deployed package. Normally, it's located at <TOMCAT_HOME>/webapps/msh/WEB-INF/lib. The one used by Hermes may get=20 conflicts with the Tomcat one. Hope this helps. Regards, -Patrick chamikara wrote: > Hi, > > This morning I downloaded your hermes_ebms2_all_in_one_0931.zip and=20 > installed it. I=92m using Tomcat (Ant 1.5) bundled with JWSDP 1.3 and=20 > have installed JDK 1.4.2 and J2EE 1.4 > > I compiled source locally and deployed to tomcat. However MSH do not=20 > start, it gives the following error. > > Jun 16, 2004 9:14:29 PM org.apache.catalina.startup.HostConfig deployWA= Rs > > INFO: Deploying web application archive msh.war > > Jun 16, 2004 9:14:29 PM org.apache.catalina.core.StandardHostDeployer=20 > install > > INFO: Installing web application at context path /msh from URL=20 > jar:file:D:\Java\jwsdp-1.3\webapps\msh.war!/ > > Jun 16, 2004 9:14:30 PM org.apache.catalina.loader.WebappClassLoader=20 > validateJarFile > > INFO:=20 > validateJarFile(D:\Java\jwsdp-1.3\work\Catalina\localhost\msh\WEB-INF\l= ib\servlet.jar)=20 > - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending=20 > class: javax/servlet/Servlet.class > > Info: using property file in C:\Program Files\Common=20 > Files\System\Mapi\1033\msh.properties.xml > > Jun 16, 2004 9:14:36 PM org.apache.catalina.core.StandardContext start > > SEVERE: Error listenerStart > > Jun 16, 2004 9:14:36 PM org.apache.catalina.core.StandardContext start > > SEVERE: Context startup failed due to previous errors > > Would you be able to help to sort out this problem. > > I=92m currently working on my MSc dissertation (@ University of Sussex,= =20 > England) where I test the feasibility of using Java Web Services to=20 > implements ebXML. > > Kind regards > > Chamikara > |
|
From: Ronald v. K. <rv...@ab...> - 2004-06-15 16:03:08
|
> -----Oorspronkelijk bericht----- > Van: Julien [mailto:ju...@ni...] > Verzonden: dinsdag 15 juni 2004 15:52 > Aan: ebx...@li... > Onderwerp: [ebxmlms-general] Servlet client for Hermes > > > hi all, > > i'm interested in integrating Hermes features in a web > application which was used to send simple SOAP messages with > servlets controlled by a workflow engine. My questions are: > > - is it possible to build a servlet client for Hermes > keeping all the features that are managed by a regular java > application? In other words is there something a Hermes > client like "Monitor" can't do with servlets? (authentication > using the existing authentication file system, etc...) Not yet, but there is some thinking going on to make these things possible in the future > - is it possible to use just part of it, for example to > build the ebxml soap message? Yes, look at the command object. It uses an ebxml message and some commands parameters. Trace back a little and you will se how a ebxml message is composed > - It is said in the documentation of Hermes that the > architecture chosen (a stub between the client and the > server) is used to resolve firewall issue. What kind of > firewall protection does it go through? In the case of > servlets on the client side sending information to the server > side, is there any firewall security aspect to consider? The client communicating with the server is based on http. A command object is passed to the server. So if the firewall does nothing more than port filtering you should be fine. If it does more and block e.g. none text/html mime times there is a problem since the mime time of this command object is different > should this design be kept? Again, there are some discussions going on on this issues as well. Nothing for the near future, but keep watching this forum, or better.... join the discussion, come with good ideas :-) Ronald |
|
From: Julien <ju...@ni...> - 2004-06-15 14:01:20
|
hi all, i'm interested in integrating Hermes features in a web application which was used to send simple SOAP messages with servlets controlled by a workflow engine. My questions are: - is it possible to build a servlet client for Hermes keeping all the features that are managed by a regular java application? In other words is there something a Hermes client like "Monitor" can't do with servlets? (authentication using the existing authentication file system, etc...) - is it possible to use just part of it, for example to build the ebxml soap message? - It is said in the documentation of Hermes that the architecture chosen (a stub between the client and the server) is used to resolve firewall issue. What kind of firewall protection does it go through? In the case of servlets on the client side sending information to the server side, is there any firewall security aspect to consider? should this design be kept? thanks for the info, julien |
|
From: Patrick Y. <kc...@ce...> - 2004-06-14 14:48:39
|
I am not quite sure about what you mean by changing this password a = second time. Anyway, this password will be sent along each message from = client to server. And at the server side, the password would be checked = against a password file. You should be able to find a property entry = called AuthenticationFile in msh.properties.xml. This is the password = file used in server side. However, if you comment out the = AuthenticationFile property in msh.properties.xml. The server will skip = the checking of password sent from client side. Regards, -Patrick ----- Original Message -----=20 From: Julien=20 To: Patrick Yee=20 Cc: ebx...@li...=20 Sent: Monday, June 14, 2004 10:16 PM Subject: Re: [ebxmlms-general] [Fwd: [freebxml-dev] pb config with = Hermes under Linux] On Sat, 12 Jun 2004 16:37:17 +0800 Patrick Yee <kc...@ce...> wrote: Patrick, like you suggested, the msh_client.properties.xml file was not = properly set, but the error was comming from the fact that i didn't = change the password in the section <!-- the user name and password for = sending commands to MSH --> leaving the default "changeit" password, = which leads to the error i reported in my previous message. It was quite = hard to detect this error since the message is not really explicit... = And now a second question: how come that if you change this password a = second time, the same error raises? thx, julien > Julien, > Loopback program is actually a Hermes client. Every Hermes client = will=20 > connect to Hermes server for sending and receiving messages. In the=20 > client side, the URL of the Hermes server is specified in=20 > msh_client.properties.xml. Therefore, in your case, please check the = > configuration in the msh_client.properties.xml file to see if the=20 > specified URL is the correct one.. > > Regards, -Patrick >=20 >=20 > Patrick Yee wrote: >=20 > > hi, > > > > i'm trying to install Hermes under Linux. When it comes to run the = > > sample app RunLoopBack, i get the following: > > > > Packaging... > > Info: using property file in=20 > > /usr/local/hermes/my_msh_client/sample/msh_client.properties.xml > > hk.hku.cecid.phoenix.message.handler.RequestException: > > Failed to send query to MSH. > > HTTP response code =3D 200 > > HTTP response message =3D OK > > at=20 > > = hk.hku.cecid.phoenix.message.handler.Request.expectMapResponse(Unknown=20 > > Source) > > at=20 > > = hk.hku.cecid.phoenix.message.handler.Request.sendMessageServiceHandlerCon= fig(Unknown=20 > > Source) > > at=20 > > hk.hku.cecid.phoenix.message.handler.Request.register(Unknown=20 > > Source) at=20 > > hk.hku.cecid.phoenix.message.handler.Request.<init>(Unknown = Source) > > at = hk.hku.cecid.phoenix.message.handler.Request.<init>(Unknown=20 > > Source) > > at LoopBack.run(LoopBack.java:31) > > at LoopBack.main(LoopBack.java:11) > > > > > > can someone tell me where it comes from? > > > > PS: > > Hermes is running and gives me that when i call=20 > > http://localhost:8080/msh : Hermes is alive. However, Hermes does = not=20 > > respond to HTTP GET method. > > > > Thanks! > > > > Julien >=20 >=20 >=20 >=20 |
|
From: Julien <ju...@ni...> - 2004-06-14 14:21:12
|
On Sat, 12 Jun 2004 16:37:17 +0800 Patrick Yee <kc...@ce...> wrote: Patrick, like you suggested, the msh_client.properties.xml file was not properly set, but the error was comming from the fact that i didn't change the password in the section <!-- the user name and password for sending commands to MSH --> leaving the default "changeit" password, which leads to the error i reported in my previous message. It was quite hard to detect this error since the message is not really explicit... And now a second question: how come that if you change this password a second time, the same error raises? thx, julien > Julien, > Loopback program is actually a Hermes client. Every Hermes client will > connect to Hermes server for sending and receiving messages. In the > client side, the URL of the Hermes server is specified in > msh_client.properties.xml. Therefore, in your case, please check the > configuration in the msh_client.properties.xml file to see if the > specified URL is the correct one.. > > Regards, -Patrick > > > Patrick Yee wrote: > > > hi, > > > > i'm trying to install Hermes under Linux. When it comes to run the > > sample app RunLoopBack, i get the following: > > > > Packaging... > > Info: using property file in > > /usr/local/hermes/my_msh_client/sample/msh_client.properties.xml > > hk.hku.cecid.phoenix.message.handler.RequestException: > > Failed to send query to MSH. > > HTTP response code = 200 > > HTTP response message = OK > > at > > hk.hku.cecid.phoenix.message.handler.Request.expectMapResponse(Unknown > > Source) > > at > > hk.hku.cecid.phoenix.message.handler.Request.sendMessageServiceHandlerConfig(Unknown > > Source) > > at > > hk.hku.cecid.phoenix.message.handler.Request.register(Unknown > > Source) at > > hk.hku.cecid.phoenix.message.handler.Request.<init>(Unknown Source) > > at hk.hku.cecid.phoenix.message.handler.Request.<init>(Unknown > > Source) > > at LoopBack.run(LoopBack.java:31) > > at LoopBack.main(LoopBack.java:11) > > > > > > can someone tell me where it comes from? > > > > PS: > > Hermes is running and gives me that when i call > > http://localhost:8080/msh : Hermes is alive. However, Hermes does not > > respond to HTTP GET method. > > > > Thanks! > > > > Julien > > > > |
|
From: Patrick Y. <kc...@ce...> - 2004-06-12 08:37:22
|
Julien, Loopback program is actually a Hermes client. Every Hermes client will connect to Hermes server for sending and receiving messages. In the client side, the URL of the Hermes server is specified in msh_client.properties.xml. Therefore, in your case, please check the configuration in the msh_client.properties.xml file to see if the specified URL is the correct one.. Regards, -Patrick Patrick Yee wrote: > hi, > > i'm trying to install Hermes under Linux. When it comes to run the > sample app RunLoopBack, i get the following: > > Packaging... > Info: using property file in > /usr/local/hermes/my_msh_client/sample/msh_client.properties.xml > hk.hku.cecid.phoenix.message.handler.RequestException: > Failed to send query to MSH. > HTTP response code = 200 > HTTP response message = OK > at > hk.hku.cecid.phoenix.message.handler.Request.expectMapResponse(Unknown > Source) > at > hk.hku.cecid.phoenix.message.handler.Request.sendMessageServiceHandlerConfig(Unknown > Source) > at > hk.hku.cecid.phoenix.message.handler.Request.register(Unknown > Source) at > hk.hku.cecid.phoenix.message.handler.Request.<init>(Unknown Source) > at hk.hku.cecid.phoenix.message.handler.Request.<init>(Unknown > Source) > at LoopBack.run(LoopBack.java:31) > at LoopBack.main(LoopBack.java:11) > > > can someone tell me where it comes from? > > PS: > Hermes is running and gives me that when i call > http://localhost:8080/msh : Hermes is alive. However, Hermes does not > respond to HTTP GET method. > > Thanks! > > Julien |
|
From: Patrick Y. <kc...@ce...> - 2004-06-12 08:32:25
|
-------- Original Message --------
Subject: [freebxml-dev] pb config with Hermes under Linux
Date: Thu, 10 Jun 2004 11:21:05 -0400
From: Julien <ju...@ni...>
Reply-To: fre...@ya...
To: fre...@ya...
hi,
i'm trying to install Hermes under Linux. When it comes to run the
sample app RunLoopBack, i get the following:
Packaging...
Info: using property file in
/usr/local/hermes/my_msh_client/sample/msh_client.properties.xml
hk.hku.cecid.phoenix.message.handler.RequestException:
Failed to send query to MSH.
HTTP response code = 200
HTTP response message = OK
at
hk.hku.cecid.phoenix.message.handler.Request.expectMapResponse(Unknown
Source)
at
hk.hku.cecid.phoenix.message.handler.Request.sendMessageServiceHandlerConfig(Unknown
Source)
at hk.hku.cecid.phoenix.message.handler.Request.register(Unknown
Source) at
hk.hku.cecid.phoenix.message.handler.Request.<init>(Unknown Source)
at hk.hku.cecid.phoenix.message.handler.Request.<init>(Unknown
Source)
at LoopBack.run(LoopBack.java:31)
at LoopBack.main(LoopBack.java:11)
can someone tell me where it comes from?
PS:
Hermes is running and gives me that when i call
http://localhost:8080/msh : Hermes is alive. However, Hermes does not
respond to HTTP GET method.
Thanks!
Julien
|
|
From: Patrick Y. <kc...@ce...> - 2004-06-07 11:30:45
|
If you know it is safe to turn off the poller, you can try to call
request.enablePoller(false) to shut down it.
Regards, -Patrick
Simen Andre Skjervum wrote:
>On Sat, May 29, 2004 at 11:10:55AM +0800, Patrick Yee wrote:
>| Hi,
>| Have you written a Hermes client to receive messages? If you implement
>| onMessage() method in MessageListener, Hermes client will create a
>| polling thread to poll for received message periodically. The polled
>| message will then be passed to you via the onMessage() method.
>
>Yes, I use a serlvet client to send and receive messages as a synchronous service,
>to query a remote msh and backend system. Now I understand that the
>polling threads don't terminate, and that is why I experiance
>performance problems.
>
>Basicly what I do is:
>
>messageQueue = new MessageQueue(); // class implementing MessageListener
>
>ac = new ApplicationContext(cpa, messageId, service, "*" );
>request = new Request(ac, partnerUrl, messageQueue, transportType);
>craftedMessage = createMessage( messageId, EnquiryPayload, action ); // creates message with given payload
>request.sendReliably( craftedMessage, false );
>
>do {
>
>response = messageQueue.receiveMessage();
>conversationId = response.getMessageHeader().getConversationId();
>refToMessageId = response.getMessageHeader().getRefToMessageId();
>
>} while (!messageId.equals(refToMessageId));
>
>|
>| To cut down the loading of these polling activities, you can tune the
>| polling interval in msh_client.properties.xml. Or you can use other
>| message delivery modes to eliminate polling activities altogether.
>| Please see the documentation for more information. Thanks.
>
>Could you provide examples of how I can use other message delivery
>modes to eliminate polling activities?
>E.g Can the client receive the messages directly without polling ?
>
>Or maybe help me out on how I can properly terminate the polling threads
>after the servlet has done it's job. That should solve my problem.
>
>/* Heres the MessageQueue class I use:
>public class MessageQueue implements MessageListener {
> private List queue = new LinkedList();
> public synchronized void onMessage(EbxmlMessage ebxmlMessage) {
> queue.add(ebxmlMessage);
> notifyAll();
> }
> public synchronized EbxmlMessage receiveMessage() throws InterruptedException {
> while (queue.isEmpty()) {
> wait();
> }
> return (EbxmlMessage) queue.remove(0);
> }
> public URL getClientUrl() {
> return null;
> }
> }
>
>|
>| Regards, -Patrick
>|
>|
>| Simen Andre Skjervum wrote:
>|
>| >Hello,
>| >
>| >I have a test environment running Hermes (ebms2) MSH v.pre-1.0.0.0. I
>| >have made a servlet using msh as part of an ordering system with
>| >a supplier. I could need some advice on how to better control the msh.
>| >
>| >When using the Servlet Heavily I encounter some serious performance
>| >issue with the mysql db ( I use mysql as a msh database ).
>| >The performance issue is due to some queries running from the msh
>| >like:
>| >SELECT MessageStore.c_messageid, MessageInfo.c_conversationid,
>| >MessageStore.c_filename, MessageStore.c_sequencenumber FROM
>| >MessageStore, MessageInfo WHERE
>| >MessageStore.c_messageid=MessageInfo.c_messageid AND
>| >MessageStore.c_sequencenumber>=-9998 AND MessageStore.c_cpaid='*' AND
>| >MessageStore.c_conversationid='*' AND MessageStore.c_service='*' AND
>| >MessageStore.c_action='*' AND MessageStore.c_state>=-7 AND
>| >MessageStore.c_state<=-5
>| >
>| >Looking in to msh.log I see loads of this:
>| >2004-04-30 11:03:18,165 INFO [http8080-Processor2]: Process command: Get
>| >message (32)
>| >2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: =>
>| >MessageServiceHandler.processCommand
>| >2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: =>
>| >MessageServiceHandler.getMessage
>| >2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: =>
>| >MessageServiceHandler.getNextUndeliveredMessage
>| >2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: =>
>| >MessageServer.getUndeliveredMessages
>| >2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: =>
>| >DbConnectionPool.getConnection
>| >2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: <=
>| >DbConnectionPool.getConnection
>| >2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: <=
>| >MessageServer.getUndeliveredMessages
>| >2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: <=
>| >MessageServiceHandler.getNextUndeliveredMessage with no message
>| >2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: => Transaction.commit
>| >(txID: #1530)
>| >2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: =>
>| >DbConnectionPool.freeConnection
>| >2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: <=
>| >DbConnectionPool.freeConnection
>| >2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: <= Transaction.commit
>| >2004-04-30 11:03:18,198 DEBUG [http8080-Processor2]: <=
>| >MessageServiceHandler.getMessage
>| >2004-04-30 11:03:18,198 DEBUG [http8080-Processor2]: <=
>| >MessageServiceHandler.processCommand
>| >
>| >These keeps running on even after I stop using the servlet.
>| >When I stop-start tomcat they go away until I start using the servlet
>| >again. Obviously(?) I need to find a way to tell the
>| >MessageServiceHandler to stop polling for messages, but I can't seem
>| >to get at it. Can anyone advice me how to solve this?
>| >
>| >
>| >
>|
>|
>|
>| -------------------------------------------------------
>| This SF.Net email is sponsored by: Oracle 10g
>| Get certified on the hottest thing ever to hit the market... Oracle 10g.
>| Take an Oracle 10g class now, and we'll give you the exam FREE.
>| http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
>| _______________________________________________
>| ebxmlms-general mailing list
>| ebx...@li...
>| https://lists.sourceforge.net/lists/listinfo/ebxmlms-general
>
>
>
|
|
From: Simen A. S. <ssk...@no...> - 2004-06-01 11:21:10
|
On Sat, May 29, 2004 at 11:10:55AM +0800, Patrick Yee wrote:
| Hi,
| Have you written a Hermes client to receive messages? If you implement=20
| onMessage() method in MessageListener, Hermes client will create a=20
| polling thread to poll for received message periodically. The polled=20
| message will then be passed to you via the onMessage() method.
Yes, I use a serlvet client to send and receive messages as a synchronous=
service,
to query a remote msh and backend system. Now I understand that the
polling threads don't terminate, and that is why I experiance
performance problems.=20
Basicly what I do is:
messageQueue =3D new MessageQueue(); // class implementing MessageListene=
r
ac =3D new ApplicationContext(cpa, messageId, service, "*" );
request =3D new Request(ac, partnerUrl, messageQueue, transportType);
craftedMessage =3D createMessage( messageId, EnquiryPayload, action ); /=
/ creates message with given payload
request.sendReliably( craftedMessage, false );
do {
response =3D messageQueue.receiveMessage();
conversationId =3D response.getMessageHeader().getConversationId();
refToMessageId =3D response.getMessageHeader().getRefToMessageId();
} while (!messageId.equals(refToMessageId));
|=20
| To cut down the loading of these polling activities, you can tune the=20
| polling interval in msh_client.properties.xml. Or you can use other=20
| message delivery modes to eliminate polling activities altogether.=20
| Please see the documentation for more information. Thanks.
Could you provide examples of how I can use other message delivery
modes to eliminate polling activities?=20
E.g Can the client receive the messages directly without polling ?
Or maybe help me out on how I can properly terminate the polling threads=20
after the servlet has done it's job. That should solve my problem.
/* Heres the MessageQueue class I use:
public class MessageQueue implements MessageListener {
private List queue =3D new LinkedList();
public synchronized void onMessage(EbxmlMessage ebxmlMess=
age) {
queue.add(ebxmlMessage);
notifyAll();
}
public synchronized EbxmlMessage receiveMessage() throws =
InterruptedException {
while (queue.isEmpty()) {
wait();
}
return (EbxmlMessage) queue.remove(0);
}
public URL getClientUrl() {
return null;
}
}
|=20
| Regards, -Patrick
|=20
|=20
| Simen Andre Skjervum wrote:
|=20
| >Hello,
| >
| >I have a test environment running Hermes (ebms2) MSH v.pre-1.0.0.0. I
| >have made a servlet using msh as part of an ordering system with
| >a supplier. I could need some advice on how to better control the msh.
| >
| >When using the Servlet Heavily I encounter some serious performance
| >issue with the mysql db ( I use mysql as a msh database ).
| >The performance issue is due to some queries running from the msh
| >like:=20
| >SELECT MessageStore.c_messageid, MessageInfo.c_conversationid,
| >MessageStore.c_filename, MessageStore.c_sequencenumber FROM
| >MessageStore, MessageInfo WHERE
| >MessageStore.c_messageid=3DMessageInfo.c_messageid AND
| >MessageStore.c_sequencenumber>=3D-9998 AND MessageStore.c_cpaid=3D'*' =
AND
| >MessageStore.c_conversationid=3D'*' AND MessageStore.c_service=3D'*' A=
ND
| >MessageStore.c_action=3D'*' AND MessageStore.c_state>=3D-7 AND
| >MessageStore.c_state<=3D-5
| >
| >Looking in to msh.log I see loads of this:
| >2004-04-30 11:03:18,165 INFO [http8080-Processor2]: Process command: =
Get=20
| >message (32)
| >2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: =3D>=20
| >MessageServiceHandler.processCommand
| >2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: =3D>=20
| >MessageServiceHandler.getMessage
| >2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: =3D>=20
| >MessageServiceHandler.getNextUndeliveredMessage
| >2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: =3D>=20
| >MessageServer.getUndeliveredMessages
| >2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: =3D>=20
| >DbConnectionPool.getConnection
| >2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: <=3D=20
| >DbConnectionPool.getConnection
| >2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: <=3D=20
| >MessageServer.getUndeliveredMessages
| >2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: <=3D=20
| >MessageServiceHandler.getNextUndeliveredMessage with no message
| >2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: =3D> Transaction.=
commit=20
| >(txID: #1530)
| >2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: =3D>=20
| >DbConnectionPool.freeConnection
| >2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: <=3D=20
| >DbConnectionPool.freeConnection
| >2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: <=3D Transaction.=
commit
| >2004-04-30 11:03:18,198 DEBUG [http8080-Processor2]: <=3D=20
| >MessageServiceHandler.getMessage
| >2004-04-30 11:03:18,198 DEBUG [http8080-Processor2]: <=3D=20
| >MessageServiceHandler.processCommand
| >
| >These keeps running on even after I stop using the servlet.
| >When I stop-start tomcat they go away until I start using the servlet
| >again. Obviously(?) I need to find a way to tell the
| >MessageServiceHandler to stop polling for messages, but I can't seem
| >to get at it. Can anyone advice me how to solve this?
| >
| >=20
| >
|=20
|=20
|=20
| -------------------------------------------------------
| This SF.Net email is sponsored by: Oracle 10g
| Get certified on the hottest thing ever to hit the market... Oracle 10g=
.=20
| Take an Oracle 10g class now, and we'll give you the exam FREE.
| http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick
| _______________________________________________
| ebxmlms-general mailing list
| ebx...@li...
| https://lists.sourceforge.net/lists/listinfo/ebxmlms-general
--=20
Med vennlig hilsen / Best Regards / Cordiali saluti
Tiscali AS - Simen Skjervum (Amministratore di sistema)
Postboks 598, Sk=F8yen - N-0214 Oslo - Norway
Tel. (+47) 24 11 24 00 - Fax (+47) 24 11 24 11
|
|
From: Patrick Y. <kc...@ce...> - 2004-05-29 03:11:03
|
Hi, Have you written a Hermes client to receive messages? If you implement onMessage() method in MessageListener, Hermes client will create a polling thread to poll for received message periodically. The polled message will then be passed to you via the onMessage() method. To cut down the loading of these polling activities, you can tune the polling interval in msh_client.properties.xml. Or you can use other message delivery modes to eliminate polling activities altogether. Please see the documentation for more information. Thanks. Regards, -Patrick Simen Andre Skjervum wrote: >Hello, > >I have a test environment running Hermes (ebms2) MSH v.pre-1.0.0.0. I >have made a servlet using msh as part of an ordering system with >a supplier. I could need some advice on how to better control the msh. > >When using the Servlet Heavily I encounter some serious performance >issue with the mysql db ( I use mysql as a msh database ). >The performance issue is due to some queries running from the msh >like: >SELECT MessageStore.c_messageid, MessageInfo.c_conversationid, >MessageStore.c_filename, MessageStore.c_sequencenumber FROM >MessageStore, MessageInfo WHERE >MessageStore.c_messageid=MessageInfo.c_messageid AND >MessageStore.c_sequencenumber>=-9998 AND MessageStore.c_cpaid='*' AND >MessageStore.c_conversationid='*' AND MessageStore.c_service='*' AND >MessageStore.c_action='*' AND MessageStore.c_state>=-7 AND >MessageStore.c_state<=-5 > >Looking in to msh.log I see loads of this: >2004-04-30 11:03:18,165 INFO [http8080-Processor2]: Process command: Get message (32) >2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: => MessageServiceHandler.processCommand >2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: => MessageServiceHandler.getMessage >2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: => MessageServiceHandler.getNextUndeliveredMessage >2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: => MessageServer.getUndeliveredMessages >2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: => DbConnectionPool.getConnection >2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: <= DbConnectionPool.getConnection >2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: <= MessageServer.getUndeliveredMessages >2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: <= MessageServiceHandler.getNextUndeliveredMessage with no message >2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: => Transaction.commit (txID: #1530) >2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: => DbConnectionPool.freeConnection >2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: <= DbConnectionPool.freeConnection >2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: <= Transaction.commit >2004-04-30 11:03:18,198 DEBUG [http8080-Processor2]: <= MessageServiceHandler.getMessage >2004-04-30 11:03:18,198 DEBUG [http8080-Processor2]: <= MessageServiceHandler.processCommand > >These keeps running on even after I stop using the servlet. >When I stop-start tomcat they go away until I start using the servlet >again. Obviously(?) I need to find a way to tell the >MessageServiceHandler to stop polling for messages, but I can't seem >to get at it. Can anyone advice me how to solve this? > > > |
|
From: <sb...@k4...> - 2004-05-27 07:39:31
|
|
From: <om...@no...> - 2004-05-22 15:44:25
|
Sorry for the cross posting, but I don't know where exactly put this mesage. I use MSH v.pre-1.0.0.0, build from cvs (date : approx 11/03/2004). I use only mail messaging. When I try to build a new EbxmlMessage using EbxmlMessage(File file), I get a javax.xml.soap.SOAPException: Cannot parse SOAP message The message is a Ack generated by MSH in the server repository. This ack doesn't have any content-type header. After investigations, I get : javax.xml.soap.SOAPException: Absent Content-Type at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:86) at com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32) at hk.hku.cecid.phoenix.message.packaging.EbxmlMessage.getMessageFromDataSource(EbxmlMessage.java:1681) at hk.hku.cecid.phoenix.message.packaging.EbxmlMessage.<init>(EbxmlMessage.java:241) The documentation says about this constructor: construct an EbxmlMessage from File using the logic in MessageServer. The file must not contain any content header like Content-Type In EbxmlMessage.getMessageFromDataSource (about line: 1673), the following is commented : /* final MimeHeaders headers = new MimeHeaders(); headers.addHeader(Constants.CONTENT_TYPE, Constants.TEXT_XML_TYPE); */ this explains why the code fails. The problem is that an ack must be loaded when retrying to send it, and it causes error. Shall I uncomment the two lines ? thanks Regards Olivier Moises |
|
From: Bob K. <py...@ce...> - 2004-05-18 01:28:58
|
In the current version, there is not feature on deleting the repository. We will try to include this feature in later version. By the way, for question on Hermes, please send the email to the ebxmlms development mailing list, that is ebx...@li... Regards, Bob Koon Alvin Huang wrote: > Hi, > I have the following question: > Is it possible to delete hermes\ebxmlms\repository in a suitable > condition ? > Is anyhermesapi. can do this ? > thanks > |
|
From: Simen A. S. <ssk...@no...> - 2004-04-30 09:23:07
|
Hello, I have a test environment running Hermes (ebms2) MSH v.pre-1.0.0.0. I have made a servlet using msh as part of an ordering system with a supplier. I could need some advice on how to better control the msh. When using the Servlet Heavily I encounter some serious performance issue with the mysql db ( I use mysql as a msh database ). The performance issue is due to some queries running from the msh like:=20 SELECT MessageStore.c_messageid, MessageInfo.c_conversationid, MessageStore.c_filename, MessageStore.c_sequencenumber FROM MessageStore, MessageInfo WHERE MessageStore.c_messageid=3DMessageInfo.c_messageid AND MessageStore.c_sequencenumber>=3D-9998 AND MessageStore.c_cpaid=3D'*' AND MessageStore.c_conversationid=3D'*' AND MessageStore.c_service=3D'*' AND MessageStore.c_action=3D'*' AND MessageStore.c_state>=3D-7 AND MessageStore.c_state<=3D-5 Looking in to msh.log I see loads of this: 2004-04-30 11:03:18,165 INFO [http8080-Processor2]: Process command: Get= message (32) 2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: =3D> MessageServiceH= andler.processCommand 2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: =3D> MessageServiceH= andler.getMessage 2004-04-30 11:03:18,166 DEBUG [http8080-Processor2]: =3D> MessageServiceH= andler.getNextUndeliveredMessage 2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: =3D> MessageServer.g= etUndeliveredMessages 2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: =3D> DbConnectionPoo= l.getConnection 2004-04-30 11:03:18,167 DEBUG [http8080-Processor2]: <=3D DbConnectionPoo= l.getConnection 2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: <=3D MessageServer.g= etUndeliveredMessages 2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: <=3D MessageServiceH= andler.getNextUndeliveredMessage with no message 2004-04-30 11:03:18,196 DEBUG [http8080-Processor2]: =3D> Transaction.com= mit (txID: #1530) 2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: =3D> DbConnectionPoo= l.freeConnection 2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: <=3D DbConnectionPoo= l.freeConnection 2004-04-30 11:03:18,197 DEBUG [http8080-Processor2]: <=3D Transaction.com= mit 2004-04-30 11:03:18,198 DEBUG [http8080-Processor2]: <=3D MessageServiceH= andler.getMessage 2004-04-30 11:03:18,198 DEBUG [http8080-Processor2]: <=3D MessageServiceH= andler.processCommand These keeps running on even after I stop using the servlet. When I stop-start tomcat they go away until I start using the servlet again. Obviously(?) I need to find a way to tell the MessageServiceHandler to stop polling for messages, but I can't seem to get at it. Can anyone advice me how to solve this? --=20 Med vennlig hilsen / Best Regards / Cordiali saluti Tiscali AS - Simen Skjervum (Amministratore di sistema) Postboks 598, Sk=F8yen - N-0214 Oslo - Norway Tel. (+47) 24 11 24 00 - Fax (+47) 24 11 24 11 |
|
From: <did...@ef...> - 2004-04-28 11:05:57
|
Hi Ananth,
as far as I know the only place where you can have a reference to that
GRz8gXTB3cpNOO6dhEeKCA=3D=3D object is in your msh db=2E
Starting from a clean installation (clean tables in your db and clean
%msh%/objectstore and %msh%/repository/R0000 directories), the first time
you use msh with a client, creating a Request object and sending the ebxml=
message, msh stores a serialized version of the Listener object you are
using into the %msh%/objectstore directory (the file will have a random
name)=2E
You find the reference to that file into the table MSHCONFIG, field
C_MESSAGELISTENER=2E
You may have created two instances of the msh server (both on the same or
on two different machines) to test message delivery, so you may have two
different database for msh, or instances or owners=2E=20
Try checking that, to restore a clean state, you really deleted every
record, and performed a commit, from the tables of the
database/instance/user your msh has its reference to=2E
You can know exactly which database/instance/user from the
msh=2Eproperties=2Exml file=2E
Best regards
Fabio Di Donato - senior developer and area leader
Effedue Consulting - Via Cagnoni, 55 - 00124 Roma - Italia
Consulenza, Formazione e Tecnologie per l'e-business
Consultancy, Training and Technologies for e-business
Tel +39 06 50932505 Fax +39 06 23318890
Original Message:
-----------------
From: Ananth R ananthr@csa=2Eiisc=2Eernet=2Ein
Date: Wed, 28 Apr 2004 14:56:57 +0530 (IST)
To: ebxmlms-general@lists=2Esourceforge=2Enet
Subject: RE: [ebxmlms-general] MSH Deployment Problem=20
Hello
Please see the log file=2E
The concerned part of Tomcat log file:
--------------------------------------------------------------------------=
--
-
--------------------------------------------------------------------------=
--
-
----- Root Cause -----
hk=2Ehku=2Ececid=2Ephoenix=2Emessage=2Ehandler=2EMessageServiceHandlerExce=
ption:=20
hk=2Ehku=2Ececid=2Ephoenix=2Emessag
e=2Ehandler=2EMessageServerException: Cannot get MessageListener object fr=
om=20
store: /home/ananth/tmp
/ebxmlms/objectStore/GRz8gXTB3cpNOO6dhEeKCA=3D=3D (No such file or directo=
ry)
at=20
hk=2Ehku=2Ececid=2Ephoenix=2Emessage=2Ehandler=2EMessageServiceHandler=2E<=
init>(Unknown=20
Source)
at sun=2Ereflect=2ENativeConstructorAccessorImpl=2EnewInstance0(Na=
tive=20
Method)
at=20
sun=2Ereflect=2ENativeConstructorAccessorImpl=2EnewInstance(NativeConstruc=
torAcces
sorImpl=2Ej
ava:39)
at=20
sun=2Ereflect=2EDelegatingConstructorAccessorImpl=2EnewInstance(Delegating=
Construc
torAccess
orImpl=2Ejava:27)
at java=2Elang=2Ereflect=2EConstructor=2EnewInstance(Constructor=2E=
java:274)
at java=2Elang=2EClass=2EnewInstance0(Class=2Ejava:306)
at java=2Elang=2EClass=2EnewInstance(Class=2Ejava:259)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardWrapper=2EloadServlet(StandardWra=
pper=2Ejava:90
3)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardWrapper=2Eload(StandardWrapper=2E=
java:823)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardContext=2EloadOnStartup(StandardC=
ontext=2Ejava:
3420)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardContext=2Estart(StandardContext=2E=
java:3608)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EContainerBase=2EaddChildInternal(Containe=
rBase=2Ejava:8
21)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EContainerBase=2EaddChild(ContainerBase=2E=
java:807)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardHost=2EaddChild(StandardHost=2Eja=
va:579)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardHostDeployer=2Einstall(StandardHo=
stDeployer=2Ej
ava:307)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardHost=2Einstall(StandardHost=2Ejav=
a:772)
at=20
org=2Eapache=2Ecatalina=2Estartup=2EHostConfig=2EdeployDirectories(HostCon=
fig=2Ejava:559
)
at=20
org=2Eapache=2Ecatalina=2Estartup=2EHostConfig=2EdeployApps(HostConfig=2Ej=
ava:401)
at=20
org=2Eapache=2Ecatalina=2Estartup=2EHostConfig=2Estart(HostConfig=2Ejava:7=
18)
at=20
org=2Eapache=2Ecatalina=2Estartup=2EHostConfig=2ElifecycleEvent(HostConfig=
=2Ejava:358)
at=20
org=2Eapache=2Ecatalina=2Eutil=2ELifecycleSupport=2EfireLifecycleEvent(Lif=
ecycleSuppor
t=2Ejava:16
at org=2Eapache=2Ecatalina=2Ecore=2EContainerBase=2Estart(ContainerBase=2E=
java:1196)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardHost=2Estart(StandardHost=2Ejava:=
738)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EContainerBase=2Estart(ContainerBase=2Ejav=
a:1188)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardEngine=2Estart(StandardEngine=2Ej=
ava:347)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardService=2Estart(StandardService=2E=
java:497)
at=20
org=2Eapache=2Ecatalina=2Ecore=2EStandardServer=2Estart(StandardServer=2Ej=
ava:2190)
at org=2Eapache=2Ecatalina=2Estartup=2ECatalina=2Estart(Catalina=2E=
java:512)
at org=2Eapache=2Ecatalina=2Estartup=2ECatalina=2Eexecute(Catalina=
=2Ejava:400)
at org=2Eapache=2Ecatalina=2Estartup=2ECatalina=2Eprocess(Catalina=
=2Ejava:180)
at sun=2Ereflect=2ENativeMethodAccessorImpl=2Einvoke0(Native Metho=
d)
at=20
sun=2Ereflect=2ENativeMethodAccessorImpl=2Einvoke(NativeMethodAccessorImpl=
=2Ejava:39
)
at=20
sun=2Ereflect=2EDelegatingMethodAccessorImpl=2Einvoke(DelegatingMethodAcce=
ssorImpl
=2Ejava:25)
at java=2Elang=2Ereflect=2EMethod=2Einvoke(Method=2Ejava:324)
at org=2Eapache=2Ecatalina=2Estartup=2EBootstrap=2Emain(Bootstrap=2E=
java:203)
--------------------------------------------------------------------------=
--
--
--------------------------------------------------------------------------=
--
--
=20
Regards
Ananth
On Wed, 28 Apr 2004, Ananth R wrote:
> Hello
>=20
> I have cleared all the tables of msh database=2EI have also cleared=20
> objectStore location as specified in the properties file=2EBut the same=20=
> problem persists=2E
>=20
> In the below line:
> ------------------------------------------------------------------------=
> /home/ananth/tmp/ebxmlms/objectStore/x+Ce-tJ9bWM1azJZIRaA+A=3D=3D (No su=
ch
> > > file or directory)
> ------------------------------------------------------------------------=
-
>=20
> Where is this listener located (x+Ce-tJ9bWM1azJZIRaA+A=3D=3D)? I cant fi=
nd=20
> this under objectStore=2EWhats happening here?Is there any documentation=
or=20
> reading resource where I can get good insight into how MSH servlet works=
?
>=20
> Any help will be greatly appreciated
>=20
> Thank you for your patience
>=20
> Regards =20
>=20
> Ananth
>=20
>=20
>=20
>=20
> On Wed, 28 Apr 2004, Ng Chi Yuen [Cyng] wrote:
>=20
> > Hi,
> >=20
> > > SEVERE: hk=2Ehku=2Ececid=2Ephoenix=2Emessage=2Ehandler=2EMessageServ=
erException:
> > > Cannot get MessageListener object from store:
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > > /home/ananth/tmp/ebxmlms/objectStore/x+Ce-tJ9bWM1azJZIRaA+A=3D=3D (N=
o such
> > > file or directory)
> >=20
> > Besides clearing the database, you should also clear the
> > objectStore location as specified in the properties file=2E This locat=
ion
> > stores the previous message listener objects=2E Upon restart, msh will=
try
> > to reload the objects to resume execution=2E Also, have you cleared th=
e
> > table "mshconfig"?
> >=20
> > CY
> >=20
> >
--------------------------------------------------------------------------=
--
> > Ng Chi Yuen, CY=2E cyng@csis=2Ehku=2Ehk http://www=2Ececid=
=2Ehku=2Ehk/
> > Technology Officer,
> > Centre for E-Commerce Infrastructure Development,
> > The University of Hong Kong
> >
--------------------------------------------------------------------------=
--
> >=20
> >=20
> >=20
> > -------------------------------------------------------
> > This SF=2ENet email is sponsored by: Oracle 10g
> > Get certified on the hottest thing ever to hit the market=2E=2E=2E Ora=
cle
10g=2E=20
> > Take an Oracle 10g class now, and we'll give you the exam FREE=2E=20
> > http://ads=2Eosdn=2Ecom/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick
> > _______________________________________________
> > ebxmlms-general mailing list
> > ebxmlms-general@lists=2Esourceforge=2Enet
> > https://lists=2Esourceforge=2Enet/lists/listinfo/ebxmlms-general
> >=20
>=20
>=20
--=20
A N A N T H=2E R
-------------------------------------------------------
This SF=2ENet email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market=2E=2E=2E Oracle =
10g=2E=20
Take an Oracle 10g class now, and we'll give you the exam FREE=2E=20
http://ads=2Eosdn=2Ecom/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick
_______________________________________________
ebxmlms-general mailing list
ebxmlms-general@lists=2Esourceforge=2Enet
https://lists=2Esourceforge=2Enet/lists/listinfo/ebxmlms-general
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web=2Ecom/ =2E
|
|
From: Ananth R <an...@cs...> - 2004-04-28 09:27:06
|
Hello
Please see the log file.
The concerned part of Tomcat log file:
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
----- Root Cause -----
hk.hku.cecid.phoenix.message.handler.MessageServiceHandlerException:
hk.hku.cecid.phoenix.messag
e.handler.MessageServerException: Cannot get MessageListener object from
store: /home/ananth/tmp
/ebxmlms/objectStore/GRz8gXTB3cpNOO6dhEeKCA== (No such file or directory)
at
hk.hku.cecid.phoenix.message.handler.MessageServiceHandler.<init>(Unknown
Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.j
ava:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccess
orImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:903)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:823)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3420)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3608)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:307)
at
org.apache.catalina.core.StandardHost.install(StandardHost.java:772)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:559)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:401)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:718)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:358)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:16
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Regards
Ananth
On Wed, 28 Apr 2004, Ananth R wrote:
> Hello
>
> I have cleared all the tables of msh database.I have also cleared
> objectStore location as specified in the properties file.But the same
> problem persists.
>
> In the below line:
> ------------------------------------------------------------------------
> /home/ananth/tmp/ebxmlms/objectStore/x+Ce-tJ9bWM1azJZIRaA+A== (No such
> > > file or directory)
> -------------------------------------------------------------------------
>
> Where is this listener located (x+Ce-tJ9bWM1azJZIRaA+A==)? I cant find
> this under objectStore.Whats happening here?Is there any documentation or
> reading resource where I can get good insight into how MSH servlet works?
>
> Any help will be greatly appreciated
>
> Thank you for your patience
>
> Regards
>
> Ananth
>
>
>
>
> On Wed, 28 Apr 2004, Ng Chi Yuen [Cyng] wrote:
>
> > Hi,
> >
> > > SEVERE: hk.hku.cecid.phoenix.message.handler.MessageServerException:
> > > Cannot get MessageListener object from store:
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > > /home/ananth/tmp/ebxmlms/objectStore/x+Ce-tJ9bWM1azJZIRaA+A== (No such
> > > file or directory)
> >
> > Besides clearing the database, you should also clear the
> > objectStore location as specified in the properties file. This location
> > stores the previous message listener objects. Upon restart, msh will try
> > to reload the objects to resume execution. Also, have you cleared the
> > table "mshconfig"?
> >
> > CY
> >
> > ----------------------------------------------------------------------------
> > Ng Chi Yuen, CY. cy...@cs... http://www.cecid.hku.hk/
> > Technology Officer,
> > Centre for E-Commerce Infrastructure Development,
> > The University of Hong Kong
> > ----------------------------------------------------------------------------
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: Oracle 10g
> > Get certified on the hottest thing ever to hit the market... Oracle 10g.
> > Take an Oracle 10g class now, and we'll give you the exam FREE.
> > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> > _______________________________________________
> > ebxmlms-general mailing list
> > ebx...@li...
> > https://lists.sourceforge.net/lists/listinfo/ebxmlms-general
> >
>
>
--
A N A N T H. R
|
|
From: Ananth R <an...@cs...> - 2004-04-28 09:17:11
|
Hello I have cleared all the tables of msh database.I have also cleared objectStore location as specified in the properties file.But the same problem persists. In the below line: ------------------------------------------------------------------------ /home/ananth/tmp/ebxmlms/objectStore/x+Ce-tJ9bWM1azJZIRaA+A== (No such > > file or directory) ------------------------------------------------------------------------- Where is this listener located (x+Ce-tJ9bWM1azJZIRaA+A==)? I cant find this under objectStore.Whats happening here?Is there any documentation or reading resource where I can get good insight into how MSH servlet works? Any help will be greatly appreciated Thank you for your patience Regards Ananth On Wed, 28 Apr 2004, Ng Chi Yuen [Cyng] wrote: > Hi, > > > SEVERE: hk.hku.cecid.phoenix.message.handler.MessageServerException: > > Cannot get MessageListener object from store: > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > /home/ananth/tmp/ebxmlms/objectStore/x+Ce-tJ9bWM1azJZIRaA+A== (No such > > file or directory) > > Besides clearing the database, you should also clear the > objectStore location as specified in the properties file. This location > stores the previous message listener objects. Upon restart, msh will try > to reload the objects to resume execution. Also, have you cleared the > table "mshconfig"? > > CY > > ---------------------------------------------------------------------------- > Ng Chi Yuen, CY. cy...@cs... http://www.cecid.hku.hk/ > Technology Officer, > Centre for E-Commerce Infrastructure Development, > The University of Hong Kong > ---------------------------------------------------------------------------- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > ebxmlms-general mailing list > ebx...@li... > https://lists.sourceforge.net/lists/listinfo/ebxmlms-general > -- A N A N T H. R |
|
From: Larchier C. <cla...@ax...> - 2004-04-28 08:32:59
|
Hi Patrick,
=20
Here is a summary of my attempts to make Hermes working with Weblogic.
=20
Receiving a message
*************************
=20
Here is the concerned part of log file:
=20
2004-04-28 09:06:25,653 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Process command: Get message (32)
2004-04-28 09:06:25,653 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandler.getMessage
2004-04-28 09:06:25,654 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> =
MessageServiceHandler.getNextUndeliveredMessage
2004-04-28 09:06:25,654 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServer.getUndeliveredMessages
2004-04-28 09:06:25,654 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.getConnection
2004-04-28 09:06:25,654 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.getConnection
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServer.getUndeliveredMessages
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D =
MessageServiceHandler.getNextUndeliveredMessage with no message
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> Transaction.commit (txID: #9)
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.freeConnection
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.freeConnection
2004-04-28 09:06:25,656 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D Transaction.commit
2004-04-28 09:06:25,657 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandler.getMessage
2004-04-28 09:06:31,634 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: receive incoming message
2004-04-28 09:06:31,635 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: finished retrieving raw message from HTTP =
connection
2004-04-28 09:06:31,635 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Process incoming message
2004-04-28 09:06:31,932 ERROR [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: [10002] Unknown error
Exception: java.lang.NullPointerException
Message: null
- Modification 1: This pb can be solved by the following modification in =
MessageServiceHandler.java:
// by default, javax.xml.soap.MessageFactory =3D =
weblogic.webservice.core.soap.MessageFactoryImpl
System.setProperty("javax.xml.soap.MessageFactory", =
"com.sun.xml.messaging.saaj.soap.MessageFactoryImpl");
messageFactory =3D MessageFactory.newInstance();
Sending a message
***********************
=20
Here is the concerned part of log file:
=20
2004-04-28 10:08:36,715 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Process command: Send message (31)
2004-04-28 10:08:36,715 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Received request to send message
2004-04-28 10:08:36,715 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandler.sendMessage
2004-04-28 10:08:36,725 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandlerConnection.send
2004-04-28 10:08:36,725 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: final sequence number in store: -9999
2004-04-28 10:08:36,725 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServer.store
2004-04-28 10:08:36,725 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.getConnection
2004-04-28 10:08:36,725 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.getConnection
2004-04-28 10:08:36,726 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: insert into messagestore database
2004-04-28 10:08:36,741 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServer.store
2004-04-28 10:08:36,742 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageProcessor.MessageProcessor
2004-04-28 10:08:36,742 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageProcessor.MessageProcessor
2004-04-28 10:08:36,742 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandlerConnection.send
2004-04-28 10:08:36,742 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> Transaction.commit (txID: #15)
2004-04-28 10:08:36,743 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.freeConnection
2004-04-28 10:08:36,743 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.freeConnection
2004-04-28 10:08:36,743 DEBUG [Thread-9]: =3D> MessageProcessor.run
2004-04-28 10:08:36,743 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D Transaction.commit
2004-04-28 10:08:36,743 DEBUG [Thread-9]: Send... try #1
2004-04-28 10:08:36,744 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandler.sendMessage
2004-04-28 10:08:36,744 DEBUG [Thread-9]: =3D> MessageServer.retry
2004-04-28 10:08:36,744 DEBUG [Thread-9]: =3D> =
DbConnectionPool.getConnection
2004-04-28 10:08:36,744 DEBUG [Thread-9]: <=3D =
DbConnectionPool.getConnection
2004-04-28 10:08:36,745 DEBUG [Thread-9]: current state: <Started =
Sending> specified state: <Retrying #1>
2004-04-28 10:08:36,746 DEBUG [Thread-9]: Update state to become =
<Retrying #1>
2004-04-28 10:08:36,746 DEBUG [Thread-9]: <=3D MessageServer.retry
2004-04-28 10:08:36,746 DEBUG [Thread-9]: =3D> Transaction.commit (txID: =
#16)
2004-04-28 10:08:36,747 DEBUG [Thread-9]: =3D> =
DbConnectionPool.freeConnection
2004-04-28 10:08:36,747 DEBUG [Thread-9]: <=3D =
DbConnectionPool.freeConnection
2004-04-28 10:08:36,747 DEBUG [Thread-9]: <=3D Transaction.commit
2004-04-28 10:08:36,747 DEBUG [Thread-10]: =3D> HttpSender.run
2004-04-28 10:08:36,747 DEBUG [Thread-10]: =3D> HttpServlet.send
2004-04-28 10:08:36,747 INFO [Thread-10]: Sending message to =
http://larchier-c.pc.an.sopra:8080/msh
2004-04-28 10:08:36,762 ERROR [Thread-10]: [10002] Unknown error
Exception: java.lang.IllegalArgumentException
Message: endpoint should be String or URL
- Modification 2: This pb is due to a redefinition of =
soapConnection.call method in webservices.jar (weblogic library).
It can be solved by the following modification in HttpServlet.jar:
//ret =3D soapConnection.call(message, new =
URLEndpoint(toUrl));
ret =3D soapConnection.call(message, toUrl);
Then, a new error is logged:
=20
2004-04-28 10:14:42,867 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Process command: Send message (31)
2004-04-28 10:14:42,867 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Received request to send message
2004-04-28 10:14:42,867 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandler.sendMessage
2004-04-28 10:14:42,867 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandlerConnection.send
2004-04-28 10:14:42,867 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: final sequence number in store: -9999
2004-04-28 10:14:42,867 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServer.store
2004-04-28 10:14:42,868 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.getConnection
2004-04-28 10:14:42,868 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.getConnection
2004-04-28 10:14:42,869 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: insert into messagestore database
2004-04-28 10:14:42,882 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServer.store
2004-04-28 10:14:42,883 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageProcessor.MessageProcessor
2004-04-28 10:14:42,883 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageProcessor.MessageProcessor
2004-04-28 10:14:42,883 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandlerConnection.send
2004-04-28 10:14:42,883 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> Transaction.commit (txID: #5)
2004-04-28 10:14:42,884 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.freeConnection
2004-04-28 10:14:42,884 DEBUG [Thread-8]: =3D> MessageProcessor.run
2004-04-28 10:14:42,884 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.freeConnection
2004-04-28 10:14:42,884 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D Transaction.commit
2004-04-28 10:14:42,884 DEBUG [Thread-8]: Send... try #1
2004-04-28 10:14:42,884 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandler.sendMessage
2004-04-28 10:14:42,884 DEBUG [Thread-8]: =3D> MessageServer.retry
2004-04-28 10:14:42,885 DEBUG [Thread-8]: =3D> =
DbConnectionPool.getConnection
2004-04-28 10:14:42,885 DEBUG [Thread-8]: <=3D =
DbConnectionPool.getConnection
2004-04-28 10:14:42,886 DEBUG [Thread-8]: current state: <Started =
Sending> specified state: <Retrying #1>
2004-04-28 10:14:42,886 DEBUG [Thread-8]: Update state to become =
<Retrying #1>
2004-04-28 10:14:42,887 DEBUG [Thread-8]: <=3D MessageServer.retry
2004-04-28 10:14:42,887 DEBUG [Thread-8]: =3D> Transaction.commit (txID: =
#6)
2004-04-28 10:14:42,888 DEBUG [Thread-8]: =3D> =
DbConnectionPool.freeConnection
2004-04-28 10:14:42,888 DEBUG [Thread-8]: <=3D =
DbConnectionPool.freeConnection
2004-04-28 10:14:42,888 DEBUG [Thread-8]: <=3D Transaction.commit
2004-04-28 10:14:42,888 DEBUG [Thread-9]: =3D> HttpSender.run
2004-04-28 10:14:42,888 DEBUG [Thread-9]: =3D> HttpServlet.send
2004-04-28 10:14:42,889 INFO [Thread-9]: Sending message to =
http://larchier-c.pc.an.sopra:8080/msh
2004-04-28 10:14:42,952 ERROR [Thread-9]: [10002] Unknown error
Exception: java.lang.ClassCastException
Message: com.sun.xml.messaging.saaj.soap.MessageImpl
This error seems to be linked with the correction that I have made to =
receive messages (modification 1).
If I comment the modification 1, a new error is logged:
=20
2004-04-28 10:22:10,855 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Process command: Send message (31)
2004-04-28 10:22:10,855 INFO [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: Received request to send message
2004-04-28 10:22:10,855 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandler.sendMessage
2004-04-28 10:22:10,855 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServiceHandlerConnection.send
2004-04-28 10:22:10,855 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: final sequence number in store: -9999
2004-04-28 10:22:10,855 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageServer.store
2004-04-28 10:22:10,856 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.getConnection
2004-04-28 10:22:10,856 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.getConnection
2004-04-28 10:22:10,857 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: insert into messagestore database
2004-04-28 10:22:10,870 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServer.store
2004-04-28 10:22:10,870 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> MessageProcessor.MessageProcessor
2004-04-28 10:22:10,871 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageProcessor.MessageProcessor
2004-04-28 10:22:10,871 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandlerConnection.send
2004-04-28 10:22:10,871 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> Transaction.commit (txID: #5)
2004-04-28 10:22:10,871 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: =3D> DbConnectionPool.freeConnection
2004-04-28 10:22:10,872 DEBUG [Thread-9]: =3D> MessageProcessor.run
2004-04-28 10:22:10,872 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D DbConnectionPool.freeConnection
2004-04-28 10:22:10,872 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D Transaction.commit
2004-04-28 10:22:10,872 DEBUG [ExecuteThread: '14' for queue: =
'weblogic.kernel.Default']: <=3D MessageServiceHandler.sendMessage
2004-04-28 10:22:10,872 DEBUG [Thread-9]: Send... try #1
2004-04-28 10:22:10,872 DEBUG [Thread-9]: =3D> MessageServer.retry
2004-04-28 10:22:10,872 DEBUG [Thread-9]: =3D> =
DbConnectionPool.getConnection
2004-04-28 10:22:10,872 DEBUG [Thread-9]: <=3D =
DbConnectionPool.getConnection
2004-04-28 10:22:10,874 DEBUG [Thread-9]: current state: <Started =
Sending> specified state: <Retrying #1>
2004-04-28 10:22:10,874 DEBUG [Thread-9]: Update state to become =
<Retrying #1>
2004-04-28 10:22:10,875 DEBUG [Thread-9]: <=3D MessageServer.retry
2004-04-28 10:22:10,875 DEBUG [Thread-9]: =3D> Transaction.commit (txID: =
#6)
2004-04-28 10:22:10,876 DEBUG [Thread-9]: =3D> =
DbConnectionPool.freeConnection
2004-04-28 10:22:10,876 DEBUG [Thread-9]: <=3D =
DbConnectionPool.freeConnection
2004-04-28 10:22:10,876 DEBUG [Thread-9]: <=3D Transaction.commit
2004-04-28 10:22:10,876 DEBUG [Thread-10]: =3D> HttpSender.run
2004-04-28 10:22:10,876 DEBUG [Thread-10]: =3D> HttpServlet.send
2004-04-28 10:22:10,877 INFO [Thread-10]: Sending message to =
http://larchier-c.pc.an.sopra:8080/msh
2004-04-28 10:22:11,508 ERROR [Thread-10]: [10505] Cannot send SOAP =
message
Exception: javax.xml.soap.SOAPException
Message: Failed to send message: java.io.IOException: Received a =
response from url: http://larchier-c.pc.an.sopra:8080/msh which did not =
have a valid SOAP content-type: null.
If I send a message without payload, the same error happens but this =
time, the message is received twice.
=20
Regards,
Christophe
=20
-----Message d'origine-----
De : ebx...@li... =
[mailto:ebx...@li...]De la part de =
Patrick Yee
Envoy=E9 : mercredi 28 avril 2004 04:45
=C0 : ebx...@li...
Objet : Re: [ebxmlms-general] Hermes MSH with weblogic
We have tried to deploy Hermes on Weblogic quite some times ago. Our =
objective was to see the feasibility only. Unfortunately, we cannot =
remember the version of both Hermes and Weblogic we have used. Regarding =
your question, would you please send to us the error log files in order =
to trace?
Regards, -Patrick
Larchier Christophe wrote:
Hi all,=20
Does someone succeed in making Hermes MSH working with BEA weblogic?=20
With some modifications of Hermes sources, I'm now able to receive some =
messages, but not to send.=20
My configuration:=20
AIX 5.1=20
BEA Weblogic 8.1=20
PS: Hermes MSH works on this machine with Tomcat.=20
Christophe=20
------------------------------------------------------- This SF.Net =
email is sponsored by: Oracle 10g Get certified on the hottest thing =
ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and =
we'll give you the exam FREE. =
http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick =
_______________________________________________ ebxmlms-general mailing =
list ebx...@li... =
https://lists.sourceforge.net/lists/listinfo/ebxmlms-general=20
|
|
From: Ng C. Y. [Cyng] <cy...@cs...> - 2004-04-28 08:14:13
|
Hi,
> SEVERE: hk.hku.cecid.phoenix.message.handler.MessageServerException:
> Cannot get MessageListener object from store:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> /home/ananth/tmp/ebxmlms/objectStore/x+Ce-tJ9bWM1azJZIRaA+A== (No such
> file or directory)
Besides clearing the database, you should also clear the
objectStore location as specified in the properties file. This location
stores the previous message listener objects. Upon restart, msh will try
to reload the objects to resume execution. Also, have you cleared the
table "mshconfig"?
CY
----------------------------------------------------------------------------
Ng Chi Yuen, CY. cy...@cs... http://www.cecid.hku.hk/
Technology Officer,
Centre for E-Commerce Infrastructure Development,
The University of Hong Kong
----------------------------------------------------------------------------
|