Help coderanch get a
new server
by contributing to the fundraiser

tushar joshi

+ Follow
since Feb 08, 2005
Merit badge: grant badges
For More
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 tushar joshi

Hello friends,
I have my projects having several jsps.
till now they are working fine.
but now now none jsp will get compile.
i don't know what is problem.

Exception looks like this
[ServletException in:/jsp/abc/pqr/sign.jsp] Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] javac: invalid flag: C:\Tomcat [javac] Usage: javac [javac] where possible options include: [javac] -g Generate all debugging info [javac] -g:none Generate no debugging info [javac] -g:{lines,vars,source}

Please help me urgently.
Thanks a lot.
19 years ago
Please check Lan Setting from connection tab is disbaled
i think your problem will be solved.
i have similar problem before,

Thanks a lot.
19 years ago
Hello friends,
i have very urgent problem.
i have to return array of beans from web service.

public WSEmpScheduleDO[] getEmployeeSchedule(WSEmpRequestDO wsEmpRequestDO) throws Exception

so i have written wsdd file as

<service name="EmployeeScheduleService" provider="java:RPC">

<parameter name="className" value="com.webservices.getemployeeschedule.EmployeeScheduleWS"/>

<parameter name="allowedMethods" value="*"/>

<beanMapping qname="myNS:WSEmpRequestDO" xmlns:myNS="WSEmpRequestDO"








encodingStyle="" />


and written client as

QName qname = new QName("WSEmpRequestDO", "WSEmpRequestDO");
QName schqname = new QName("WSEmpScheduleDO", "WSEmpScheduleDO");

Service service = new Service();

Call call = (Call) service.createCall();

call.setOperationName(new QName("EmployeeScheduleService", methodName));


call.registerTypeMapping(WSEmpScheduleDO[].class,Constants.SOAP_ARRAY,new ArraySerializerFactory(),new ArrayDeserializerFactory());

call.addParameter("wsEmpRequestDO", qname, ParameterMode.IN);
WSEmpScheduleDO[] schdl = (WSEmpScheduleDO[]) call.invoke(param);
System.out.println("Message from web service=" + schdl.length);

but i am getting error like this No serializer found for class com.webservices.getemployeeschedule.WSEmpScheduleDO in registry org.apache.axis.encoding.TypeMappingImp

what to do to solve this issue?
i have tried whole day for finding solution
Please help me out
Thanks in advance
19 years ago
Hello Friends,

Thanks a lot.I had made mistake of calling method without third param.

Thanks a lot for ur examples which help me out.

19 years ago

I am using this at server side validation.
it works fine for date format but fail to validate for time.
actually i am using this in web services to validate input data.
by using GenericValidator.

can u please help me?

Thanks in advance.
19 years ago

I'm trying to valitade a time field in a form using Struts-validator (Struts 1.2). This is how I've configured validation.xml:
<form ....>
<field property="time" depends="required,date">
<arg0 key="test.time"/>

The problem is that the validator always raises an validation error, no matter what data is informed, for example, like this 13:00.

Is my validation.xml correct? How do I validate a Time field?

Thanks in advance.
19 years ago
yes,i also seems like this.
when i have only added axis servlet configuration from axis's web.xml file
to my project's web.xml.
Even though i have not deployed any service, it gives me same exception.

i have followed same instructions as per specified in advanced installation
of i am not getting this problem.
can u please help me out.
as i don't have idea about it.

Thanks in advance.
19 years ago
Hello friends,
i have created one web service and written one wsdd file to deploy it.
web service deployed successfully in AXIS.
while accesssing also it will call correct web service by serialising/deserialising beans.

but when i start tomcat it will gives me error like
java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.BeanSerializerFact
ory.create(java.lang.Class, javax.xml.namespace.QName)
at java.lang.Class.getMethod0(
at java.lang.Class.getMethod(
at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base

DEBUG -- Exception:
java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.BeanDeserializerFa
ctory.create(java.lang.Class, javax.xml.namespace.QName)
at java.lang.Class.getMethod0(
at java.lang.Class.getMethod(
at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(Ba
at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSer


So what to do to solve this solution.
Web Service has no other problems,i have used SOAP Client in both Java and

Please help me urgently

19 years ago
Thanks a lot Jean-Louis Marechaux,Karthik

sorry but i am newbie in web i don't have any idea on XSD Scema and XML Beans.can u please explain me more and give some useful links.

I tell u my current situation so that u will get better idea.

I have my one data object which contain name,address etc which is passed on SOAP.
now after receiving data object on web service side,
i have to check whether Name is entered or not as Name is compulsory.
As well as length of both should be as per specified in database

So how to validate such things.
Thanks a lot for ur immediate help.

Please give me urgent reply as per requirements.

19 years ago
Hi Friends,

i have one urgent problem
is that validating input data
on web service side for e.g
compulsory fields,field
length,field value etc.

Our application have one
service which insert data into
database by taking input from
soap client.
As soap client may be another
application in any language.
so no gui is available to
validate input data.

We need to validate like
compulsory fields,field length

Tell me how i can do this
easily rather than checking
field by field validation.

Thanks in advance

19 years ago