Raghuveer Rawat

Ranch Hand
+ Follow
since Apr 03, 2003
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 Raghuveer Rawat

Well, Regarding Skinning. I was talking about below link on struts site..

http://struts.apache.org/2.0.12/docs/skinning.html

Looking ahead for your Book Release.
15 years ago
Hello Dave,
I would love to see a chapter on practical sample web application using Struts2 which uses struts2 best practices. I would also like to see Struts2 Integration with Tiles2 or SiteMash, Sturts2 - Spring, Struts2 with Jquery or any other java script framework with lots of examples, lots of ajax example of practical use, theme customization, error & exception handling, Struts2 localization & internalization features, Sturts2 Skinning, REST examples, menu support, some breadcrumb example etc...
15 years ago
Have you covered enough examples? especially examples on writing interceptors, struts2 skinning, Json examples, struts2 tiles2 integration, Struts2 spring integration, struts2 best practices, struts2 security, struts2 ajax support etc..
15 years ago
Dave, Did you look on my other post there were few queries on your book?
15 years ago
One more thing how about creating own theme? Is there any mention of it?
15 years ago
Hello Dave,
How you doing? Congrats for book and good luck for success.
I am using Strut2 from last 6 months and found it very good framework However I was missing a good book on Struts2 and hope your this book will fill gap. I definitely would like to read your book.
Have you covered enough examples? Specially examples on writing interceptors, struts2 skinning, Json examples, struts2 tiles2 integration, Struts2 spring integration, struts2 best practices, struts2 security, struts2 ajax support etc..
15 years ago
Hi, I don't know if this is right place for this. Just in case if you are aware of this.

I am looking for Java/J2EE Based Forum Software for one of my project..I found few software but don't know which one to try..e.g. mvnForum, JForum, Yazd, jGossip, JsForum, nemesis-forum, FreeForums, Sk Forum, JavaBB etc.

Is there anyone who have tried any of them? Pl. share your experience. This will help me in making some decision.

Thanks in Advance
Hi, I don't know if this is right place for this. Just in case if you are aware of this.

I am looking for Java/J2EE Based Forum Software for one of my project..I found few software but don't know which one to try..e.g. mvnForum, JForum, Yazd, jGossip, JsForum, nemesis-forum, FreeForums, Sk Forum, JavaBB etc.

Is there anyone who have tried any of them? Pl. share your experience. This will help me in making some decision.

Thanks in Advance
Hi Jeanne,
I am sorry I did not check...
my Jndi Name for Data Source were jdbc/OraDS and jdbc/oraDS.

But now I have changes the name but still it is giving same problem.
I also have doubt about full datasource path.

Could please clarify what one should pass in lookup.

Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/OraDS");

or

DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/OraDS");


What is the difference between two approaches?
18 years ago
Thanks Jeanne for reply.

I am using WebSphere App Server.
yeah, Server Starts Up Properly.
I am able to see Data Source properties. Test Connection is successful.

Earlier there was a problem as there were two data source with same name but with case difference under same Node.

e.g.
DataSource Name: OracleDS
JNDI Name: jndi/OraDS
and
DataSource Name: oracleDS
JNDI Name: jndi/oraDS

Is this a probem? I was getting a configuration error saying that we can not define two Data Sources Under Same Node.

I changed the name of Data Sources and jndi names but still I am getting the same error as mentioned earlier.
18 years ago
Hi ,
Have you guys faced this problem earlier. I am trying to retrieve datasource connection but it is giving error.

I have tryed these ways:

java.util.Properties parms = new java.util.Properties();
parms.setProperty(Context.INITIAL_CONTEXT_FACTORY,"com.ibm.websphere.naming.WsnInitialContextFactory");
Context jndi = new InitialContext(parms); DataSource ds=(DataSource) jndi.lookup(strDataSourceName);
objConn = ds.getConnection();

and

Context jndi = new InitialContext();
DataSource ds=(DataSource) jndi.lookup(strDataSourceName);
objConn = ds.getConnection();

Error Description

NMSV0610I: A NamingException is being thrown from a javax.naming.Context implementation. Details follow:
Context implementation: com.ibm.ws.naming.java.javaURLContextRoot
Context method: list(Name)
Context name: java:
Target name: comp/env/jdbc/ORADS
Other data:
Exception stack trace: javax.naming.NotContextException: The object bound under the name "comp/env/jdbc/ORADS" is not a context


18 years ago
Hi All
I want to invoke a web service(WSDL) which is implemented using VB 6.0 and MS SOAP Toolkit 3.0 from the Java/J2EE Client.
JAX-RPC defines three different ways to invoke web services from a Java Platform.
1.) Stub
2.) Dynamic Proxy
3.) DII

I m wondering which method to using for this invokation. Stub can not be used for obvious reason, I am also not able to use Dynamic Proxy and DII.
Is there anyone who have invoked VB 6.0 Web Service from the Java/J2EE Client???
Hi All
I want to invoke a web service(WSDL) which is implemented using VB 6.0 and MS SOAP Toolkit 3.0 from the Java/J2EE Client.
JAX-RPC defines three different ways to invoke web services from a Java Platform.
1.) Stub
2.) Dynamic Proxy
3.) DII

I m wondering which method to using for this invokation. Stub can not be used for obvious reason, I am also not able to use Dynamic Proxy and DII.
Is there anyone who have invoked VB 6.0 Web Service from the Java/J2EE Client???
18 years ago
Hi WebService Experts
I have developed a very simple web service with JWSDP 1.5 and trying to deploy on tomcat50-jwsdp app server(JWSDP1.5 integrated Tomcat app server).
I am trying for JAX-RPC Service Endpoint and for this I have written following files:
/WEB-INF
/WEB-INF/web.xml
/WEB-INF/webservices.xml
/WEB-INF/mapping.xml
/WEB-INF/classes/math/MathFace.class
/WEB-INF/classes/math/MathImpl.class
/WEB-INF/wsdl/MathService.wsdl

and all these files have been packaged in math.war

Full source code for all these file is as follows:
web.xml
<?xml version="1.0" encoding='UTF-8'?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<servlet>
<servlet-name>MathService</servlet-name>
<servlet-class>math.MathImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MathService</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file/>
</welcome-file-list>

</web-app>

webservices.xml
<?xml version='1.0' encoding='UTF-8'?>
<webservices
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
version="1.1">

<webservice-description>
<webservice-description-name>MathService</webservice-description-name>
<wsdl-file>/WEB-INF/wsdl/MathService.wsdl</wsdl-file>
<jaxrpc-mapping-file>/WEB-INF/mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>MathService</port-component-name>
<wsdl-port>MathFacePort</wsdl-port>
<service-endpoint-interface>math.MathFace
</service-endpoint-interface>
<service-impl-bean>
<servlet-link>MathService</servlet-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>

mapping.xml
<?xml version="1.0" encoding="UTF-8"?>
<java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
<package-mapping>
<package-type>math</package-type>
<namespaceURI>urn:Foo</namespaceURI>
</package-mapping>
<package-mapping>
<package-type>math</package-type>
<namespaceURI>urn:Foo</namespaceURI>
</package-mapping>
<service-interface-mapping>
<service-interface>math.MathService</service-interface>
<wsdl-service-name xmlns:serviceNS="urn:Foo">serviceNS:MathService</wsdl-service-name>
<port-mapping>
<port-name>MathFacePort</port-name>
<java-port-name>MathFacePort</java-port-name>
</port-mapping>
</service-interface-mapping>
<service-endpoint-interface-mapping>
<service-endpoint-interface>math.MathFace</service-endpoint-interface>
<wsdl-port-type xmlns ortTypeNS="urn:Foo">portTypeNS:MathFace</wsdl-port-type>
<wsdl-binding xmlns:bindingNS="urn:Foo">bindingNS:MathFaceBinding</wsdl-binding>
<service-endpoint-method-mapping>
<java-method-name>add</java-method-name>
<wsdl-operation>add</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
<param-type>int</param-type>
<wsdl-message-mapping>
<wsdl-message xmlns:wsdlMsgNS="urn:Foo">wsdlMsgNS:MathFace_add</wsdl-message>
<wsdl-message-part-name>int_1</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<method-param-parts-mapping>
<param-position>1</param-position>
<param-type>int</param-type>
<wsdl-message-mapping>
<wsdl-message xmlns:wsdlMsgNS="urn:Foo">wsdlMsgNS:MathFace_add</wsdl-message>
<wsdl-message-part-name>int_2</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
<method-return-value>int</method-return-value>
<wsdl-message xmlns:wsdlMsgNS="urn:Foo">wsdlMsgNS:MathFace_addResponse</wsdl-message>
<wsdl-message-part-name>result</wsdl-message-part-name>
</wsdl-return-value-mapping>
</service-endpoint-method-mapping>
</service-endpoint-interface-mapping>
</java-wsdl-mapping>

MathService.wsdl
<?xml version="1.0" encoding="UTF-8"?>

<definitions name="MathService" targetNamespace="urn:Foo" xmlns:tns="urn:Foo" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types/>
<message name="MathFace_add">
<part name="int_1" type="xsd:int"/>
<part name="int_2" type="xsd:int"/></message>
<message name="MathFace_addResponse">
<part name="result" type="xsd:int"/></message>
<portType name="MathFacePort">
<operation name="add" parameterOrder="int_1 int_2">
<input message="tns:MathFace_add"/>
<output message="tns:MathFace_addResponse"/>
</operation>
</portType>
<binding name="MathFaceBinding" type="tns:MathFace">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="add">
<soap peration soapAction=""/>
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Foo"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Foo"/></output></operation></binding>
<service name="MathService">
<port name="MathFacePort" binding="tns:MathFaceBinding">
<soap:address location="http://127.0.0.1:8080/math/MathService"/>
</port>
</service>
</definitions>

math.MathFace.java Interface

package math;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface MathFace extends Remote {
public int add(int a, int b) throws RemoteException;
}


math.MathImpl.java Implementation class

package math;

import java.rmi.RemoteException;

public class MathImpl implements MathFace {
public int add(int a, int b) throws RemoteException {
return a + b;
}
}


After deploying the application when I am trying to access the application using http://localhost:8080/math/MathService, It is giving error message that math.MathImpl is not a servlet.

What I read from books is for JAX-RPC Service Endpoint our Java implementation class(math.MathImpl) acts as a servlet then why I am getting this error.
Is there anyone who have faced this problem earlier? Don't know how to solve this problem.

Any help please...

Thanks in advance for spending time on this problem...
Hi All
I have developed a very simple web service with JWSDP 1.5 and trying to deploy on tomcat50-jwsdp app server(JWSDP1.5 integrated Tomcat app server).
I am trying for JAX-RPC Service Endpoint and for this I have written following files:
/WEB-INF
/WEB-INF/web.xml
/WEB-INF/webservices.xml
/WEB-INF/mapping.xml
/WEB-INF/classes/math/MathFace.class
/WEB-INF/classes/math/MathImpl.class
/WEB-INF/wsdl/MathService.wsdl

and all these files have been packaged in math.war

Full source code for all these file is as follows:
web.xml
<?xml version="1.0" encoding='UTF-8'?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>

<servlet>
<servlet-name>MathService</servlet-name>
<servlet-class>math.MathImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MathService</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>

<welcome-file-list>
<welcome-file/>
</welcome-file-list>

</web-app>

webservices.xml
<?xml version='1.0' encoding='UTF-8'?>
<webservices
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
version="1.1">

<webservice-description>
<webservice-description-name>MathService</webservice-description-name>
<wsdl-file>/WEB-INF/wsdl/MathService.wsdl</wsdl-file>
<jaxrpc-mapping-file>/WEB-INF/mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>MathService</port-component-name>
<wsdl-port>MathFacePort</wsdl-port>
<service-endpoint-interface>math.MathFace
</service-endpoint-interface>
<service-impl-bean>
<servlet-link>MathService</servlet-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>

mapping.xml
<?xml version="1.0" encoding="UTF-8"?>
<java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
<package-mapping>
<package-type>math</package-type>
<namespaceURI>urn:Foo</namespaceURI>
</package-mapping>
<package-mapping>
<package-type>math</package-type>
<namespaceURI>urn:Foo</namespaceURI>
</package-mapping>
<service-interface-mapping>
<service-interface>math.MathService</service-interface>
<wsdl-service-name xmlns:serviceNS="urn:Foo">serviceNS:MathService</wsdl-service-name>
<port-mapping>
<port-name>MathFacePort</port-name>
<java-port-name>MathFacePort</java-port-name>
</port-mapping>
</service-interface-mapping>
<service-endpoint-interface-mapping>
<service-endpoint-interface>math.MathFace</service-endpoint-interface>
<wsdl-port-type xmlns ortTypeNS="urn:Foo">portTypeNS:MathFace</wsdl-port-type>
<wsdl-binding xmlns:bindingNS="urn:Foo">bindingNS:MathFaceBinding</wsdl-binding>
<service-endpoint-method-mapping>
<java-method-name>add</java-method-name>
<wsdl-operation>add</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
<param-type>int</param-type>
<wsdl-message-mapping>
<wsdl-message xmlns:wsdlMsgNS="urn:Foo">wsdlMsgNS:MathFace_add</wsdl-message>
<wsdl-message-part-name>int_1</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<method-param-parts-mapping>
<param-position>1</param-position>
<param-type>int</param-type>
<wsdl-message-mapping>
<wsdl-message xmlns:wsdlMsgNS="urn:Foo">wsdlMsgNS:MathFace_add</wsdl-message>
<wsdl-message-part-name>int_2</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
<method-return-value>int</method-return-value>
<wsdl-message xmlns:wsdlMsgNS="urn:Foo">wsdlMsgNS:MathFace_addResponse</wsdl-message>
<wsdl-message-part-name>result</wsdl-message-part-name>
</wsdl-return-value-mapping>
</service-endpoint-method-mapping>
</service-endpoint-interface-mapping>
</java-wsdl-mapping>

MathService.wsdl
<?xml version="1.0" encoding="UTF-8"?>

<definitions name="MathService" targetNamespace="urn:Foo" xmlns:tns="urn:Foo" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types/>
<message name="MathFace_add">
<part name="int_1" type="xsd:int"/>
<part name="int_2" type="xsd:int"/></message>
<message name="MathFace_addResponse">
<part name="result" type="xsd:int"/></message>
<portType name="MathFacePort">
<operation name="add" parameterOrder="int_1 int_2">
<input message="tns:MathFace_add"/>
<output message="tns:MathFace_addResponse"/>
</operation>
</portType>
<binding name="MathFaceBinding" type="tns:MathFace">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="add">
<soap peration soapAction=""/>
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Foo"/></input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="encoded" namespace="urn:Foo"/></output></operation></binding>
<service name="MathService">
<port name="MathFacePort" binding="tns:MathFaceBinding">
<soap:address location="http://127.0.0.1:8080/math/MathService"/>
</port>
</service>
</definitions>

math.MathFace.java Interface

package math;

import java.rmi.Remote;
import java.rmi.RemoteException;

public interface MathFace extends Remote {
public int add(int a, int b) throws RemoteException;
}


math.MathImpl.java Implementation class

package math;

import java.rmi.RemoteException;

public class MathImpl implements MathFace {
public int add(int a, int b) throws RemoteException {
return a + b;
}
}


After deploying the application when I am trying to access the application using http://localhost:8080/math/MathService, It is giving error message that math.MathImpl is not a servlet.

What I read from books is for JAX-RPC Service Endpoint our Java implementation class(math.MathImpl) acts as a servlet then why I am getting this error.
Is there anyone who have faced this problem earlier? Don't know how to solve this problem.

Any help please...

Thanks in advance for spending time on this problem...
18 years ago