tushar joshi

Greenhorn
+ Follow
since Feb 08, 2005
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 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.
bye
16 years ago
JSP
Please check Lan Setting from connection tab is disbaled
i think your problem will be solved.
i have similar problem before,

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

like
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"

languageSpecificType="java:com.webservices.getemployeeschedule.WSEmpRequestDO"/>


<typeMapping


qname="myNS1:WSEmpScheduleDO"

xmlns:myNS1="WSEmpScheduleDO"

languageSpecificType="java:com.webservices.getemployeeschedule.WSEmpScheduleDO[]"

serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"

deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"

encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />


</service>


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.setTargetEndpointAddress(new java.net.URL(endPointURL));
call.setOperationName(new QName("EmployeeScheduleService", methodName));

call.registerTypeMapping(WSEmpRequestDO.class,qname,BeanSerializerFactory.class,BeanDeserializerFactory.class);

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

java.io.IOException: No serializer found for class com.webservices.getemployeeschedule.WSEmpScheduleDO in registry org.apache.axis.encoding.TypeMappingImp
l@162e703

what to do to solve this issue?
i have tried whole day for finding solution
Please help me out
Thanks in advance
16 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.

bye
16 years ago
Hi

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.
16 years ago
Hi.

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"/>
<var>
<var-name>datePattern</var-name>
<var-value>HH:mm</var-value>
</var>
</field>
...
</form>

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.
16 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 axis.so i am not getting this problem.
can u please help me out.
as i don't have idea about it.

Thanks in advance.
16 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
Exception:
java.lang.NoSuchMethodException: org.apache.axis.encoding.ser.BeanSerializerFact
ory.create(java.lang.Class, javax.xml.namespace.QName)
at java.lang.Class.getMethod0(Class.java:1756)
at java.lang.Class.getMethod(Class.java:963)
at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(Base
SerializerFactory.java:234)

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(Class.java:1756)
at java.lang.Class.getMethod(Class.java:963)
at org.apache.axis.encoding.ser.BaseDeserializerFactory.createFactory(Ba
seDeserializerFactory.java:203)
at org.apache.axis.deployment.wsdd.WSDDService.deployTypeMapping(WSDDSer
vice.java:536)

etc.

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

Please help me urgently

Bye
Tushar
16 years ago
Thanks a lot Jean-Louis Marechaux,Karthik

sorry but i am newbie in web services.so 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.

Thanks
16 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
etc.

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

Thanks in advance

Bye
16 years ago