Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!

Manoj Raghuwanshi

Ranch Hand
+ Follow
since Jun 20, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Manoj Raghuwanshi

Thanks Mark for the detailed information. But my problem is bit complicated. Actaully I dig more in Spring and found that the application uses Contextsingletonbeanfactorylocator to load the spring context. This class will load the application context only once and will return the same context if try to load it again. I am using weblogic and jdk5. I have the beanRefContext.xml(I learn today that this should be the default name of config file) located in App-Inf\classes.

I have a jar in the App-Inf\lib -audit.jar which also contains beanRefContext.jar. It contents below definations:-

If you observe carefully , it has omitted abc.xml.
But my application uses spring beans defined in abc.xml. When weblogic load the context - prod.beanfactory it loads it from this jar file located in App-Inf\lib. Is there any way I can tell weblogic that load beanRefContext.xml from App-Inf\classes instead of App-Inf\lib?

Thanks for yout time.

7 years ago
In my application I am using spring configuration files from two locations , first inside a jar file and second in the classes directory. Both configuration files have the same name – beanRefContext.xml. I am not supposed to change the name of these files. I just want to know what will happen to the beans defined in these files? How these beans get initialized?

Thanks in advance

7 years ago
Hi All,

I have a message driven bean created using Spring. Transaction attribute in ejb-jar.xml is 'NotSupported' now if any method in the bean throws RunTimeException then what wil happen? By default if transaction is there spring will rollback the transaction. In this case transaction is not present then how spring will be behave?

Thanks in advance.

8 years ago
if a web page has javascipt code then would it be executed before submitting the form using HttpURlConnection?



I am trying to build a simple web service in weblogic 9.2 using servicegen task. Basically this is my java class:-

When I try to build the web service it gives me error:-
weblogic.xml.schema.binding.BindingException: No default constructor was found for class StatusEnum

So can somebody tell me how to implement Enum types in java web services?
I'm at a loss, if anybody knows what I'm doing wrong, I'd greatly appreciate the help.
8 years ago
Does Apache Tomcat going to support sevlet3 specification?
8 years ago

I'm attempting to do a joined-suclass and I get the following error:
ERROR: relation "software" does not exist

generated sql is -

select as id0_, as name0_0_, this_.description as descript3_0_0_, this_.price as price0_0_,
this_.supplierId as supplierId0_0_, this_1_.version as version1_0_,
case when this_1_.productId is not null then 1 when is not null then 0 end as clazz_0_
from Product this_ left outer join Software this_1_ on where

Here are snippets (whole hbm is too long) from my hbm:
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"

<hibernate-mapping package="com.hibernatebook.criteria">
<joined-subclass name="Software" extends="Product">
<key column="productId"/>
<property name="version" type="string"/>

I m useing Postgresql. I guess physical table Software is not actually required.

I'm at a loss, if anybody knows what I'm doing wrong, I'd greatly appreciate the help.

I am using service ant task in weblogic to generate web services EAR and client jar.
When I deploy this on weblogic 8.1 it is showing me deployed but when I try the following URL in the browser it gives nothing:-

My configuration files are like this:-


<project name="wsmdb_poc" default="all" basedir=".">

<property name="lib" value="./lib" />
<property name="build" value="./build" />
<property name="dist" value="./dist" />
<property name="config" value="./config" />
<property name="src" value="./src/com/infosys/wsmdb/" />
<property name="war_folder" value="${build}/wsmdb_webservices" />
<property name="ear_folder" value="${build}/wsmdb_poc" />
<property name="mdb_folder" value="${build}/wsmdb_mdb" />
<property name="client_folder" value="${build}/wsmdb_client" />
<property name="package" value="${build}/ear" />
<property name="war_file" value="WSMDB_MessageWriter.war" />
<property name="ear_file" value="wsmdb_poc.ear" />
<property name="mdb_jar_file" value="wsmdb_mdb.jar" />
<property name="client_jar_file" value="cadvp_client.jar" />
<property name="namespace" value="" />

<property name="file" value="Request.xml" />

<path id="library">
<fileset dir="${lib}">
<include name="**.jar" />

<taskdef classpathref="library" name="servicegen"
classname="weblogic.ant.taskdefs.webservices.servicegen.ServiceGenTask" />
<taskdef classpathref="library" name="clientgen"
classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask" />
<taskdef classpathref="library" name="wlpackage"
classname="" />

<target name="clean">
<echo message="cleaning..." />
<delete dir="${build}" />

<target name="init">
<echo message="init..." />
<mkdir dir="${build}" />
<mkdir dir="${war_folder}" />
<mkdir dir="${ear_folder}" />
<mkdir dir="${mdb_folder}" />
<mkdir dir="${client_folder}" />
<mkdir dir="${package}" />
<target name="compileWS">
<echo message="compile WS..." />
<javac classpathref="library" srcdir="${src}/webservices" destdir="${war_folder}" />
<target name="createWS" depends="compileWS" >
<servicegen destEar="${build}" warName="${war_file}" contextURI="web_services">
<classpath refid="library">
<pathelement path="${war_folder}" />
<service javaClassComponents="com.infosys.wsmdb.webservices.MessageWriter"
serviceName="MessageWriter" serviceURI="/MessageWriter"
generateTypes="True" expandMethods="True"

<target name="createClient" depends="createWS">
<clientgen ear="${build}" warName="${war_file}" packageName="com.infosys.wsmdb.client"
<classpath refid="library" />
<javac classpathref="library" srcdir="${src}/client" destdir="${client_folder}" includes="">
<classpath> <pathelement path="${client_folder}/${client_jar_file}" /> </classpath>

<target name="createEAR">
<copy file="${config}/application.xml" todir="${ear_folder}/META-INF"/>
<copy todir="${ear_folder}/APP-INF/lib">
<fileset file="${lib}/*.jar" />
<copy file="${build}/${war_file}" todir="${ear_folder}" />

<wlpackage srcdir="${ear_folder}" destdir="${package}" toFile="${package}/${ear_file}" />
<target name="run">
<java classpathref="library" classname="com.infosys.wsmdb.client.RequestClient" fork="true">
<arg value="http://localhost:7001/web_services/MessageWriter?WSDL"/>
<arg value="${file}"/>
<pathelement location="${client_folder}/${client_jar_file}"/>
<pathelement path="${client_folder}"/>
<target name="all" depends="clean, init, createWS, createClient, createEAR" />


<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN' ''>


Thanks inAdvance
9 years ago
I am using Eclipse gynemede and Axis 1.4. I am trying to configure it from

Eclipse->window->Preferences->web services->Axis2 preferences . Here on Axis2 Runtime time I have given the Axis home path but it is showing error message that- Error occurred while loading Axis2 runtime. Select the correct Axis2 runtime folder.

Any clues why this error coming?

Thanks in advance
Thanks Marcos
9 years ago
I want to upgrade weblogic 8.1 to 9.2 on solaris machine. Anybody have experience, please share there views. What steps involved in the exercise? Thanks in advance.
9 years ago
Thanks amarender. But I am using weblogic portal server. Does it support wiring?
9 years ago
I am new to portlet development.I am having two portlets(jsr168) PortletA and PortletB in a portal application. I am using weblogic workshop.
PortletA have a page which takes customerid. When user enters the customerid and click the submit button then PortletB should display details of that customer. That mean
PortletA should call processAction of PortletB . Please tell me how to do this. Thanks in advance.
9 years ago
please tell me how to do this in JSR168 portlets.
9 years ago