Ravi Choudhari

Greenhorn
+ Follow
since Aug 03, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ravi Choudhari

Hi,

I am trying to implement a secure webservice using WS-Security in

JBoss 5.1 following the steps in

http://www.developer.com/java/other/article.php/3802631/Securing-Web-Services-in-JBoss-Application-Server-with-WS-Security.htm


On the server Side I have:


Service:



standard-jaxws-endpoint-config.xml



jboss-wsse-server.xml




I have copied jboss-wsse-server.xml, standard-jaxws-endpoint-config.xml, server.keystore, server.truststore to META-INF directory of the server project.



And on the client side I have:


standard-jaxws-client-config.xml



jboss-wsse-client.xml




Client Application:




I have copied standard-jaxws-client-config.xml, jboss-wsse-client.xml and client.keystore, client.truststore to META-INF directory of the client.


But, When there is request from the client, I am getting the following Execption.


Exception in thread "main"

javax.xml.ws.soap.SOAPFaultException: This service requires <wsse:Security>, which is missing.


I have checked the request SOAP message & response messages, The client is not adding any <wsse:Security>, which is expected by the server.

Is there anything I am missing on client side which is preventing adding <wsse:Security> to request?

11 years ago
Hi,

I am trying to implement a secure webservice using WS-Security in JBoss 5.1 following the steps in http://www.developer.com/java/other/article.php/3802631/Securing-Web-Services-in-JBoss-Application-Server-with-WS-Security.htm,

On the server Side I have:

Service:




standard-jaxws-endpoint-config.xml



jboss-wsse-server.xml



I hv copied jboss-wsse-server.xml, standard-jaxws-endpoint-config.xml, server.keystore, server.truststore to META-INF directory of the server project.


And on the client side I have:

standard-jaxws-client-config.xml



jboss-wsse-client.xml



Client Application:



I have copied standard-jaxws-client-config.xml, jboss-wsse-client.xml and client.keystore, client.truststore to META-INF directory of the client.

But, When there is request from the client, I am getting the following Execption.

Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: This service requires <wsse:Security>, which is missing.

I have checked the request SOAP message & response messages, The client is not adding any <wsse:Security>, which is expected by the server.

13 years ago
The DLL is in the PATH & in java.library.path, also it is present in bin directory of jboss. But still getting same error.
13 years ago
Hi,

I am getting the UnsatisfiedLinkError when calling a JNI method in JBoss 5.1

The required .dll file is in LD_LIBRARY_PATH

I have also set jna.library.path & java.library.path to the directory which has the required .dll

I have also tried to place the dll in windows\system32, jre6\lib\ext, jdk\jre6\lib\ext and jboss\bin, but getting the same error.

But there is no error if I call the methods from a standalone java application.

Also, The same method call is working perfectly in Tomcat if the dll is copied to windows\system32.


Thanks,
Ravi
13 years ago
Hi friends,

My JAX-WS web services on JBoss are using role based authentication. The application is working fine, but I need to log all web service request & responses to database.

So is there a way to find the username used to access any webservice.

Thanks,
Ravi
13 years ago
Blob blob = Hibernate.createBlob(bytes);
InputStream is = myBlob.getBinaryStream();

// IOUtils is from Apache Commons IO
byte[] a = IOUtils.toByteArray(is);
I was getting the same error with JBoss AS 4.2 & JBoss AS 5.1,

Adding -Djava.endorsed.dirs=/<JBOSS_HOME>/lib/endorsed to JBoss lauanch configuration will solve this issue

(open launch configuration -> arguments -> VM arguments)

replace <JBOSS_HOME> by Jboss installation base directory (Ex: c:/jboss-5.1.0.GA)
13 years ago