sujith delpachithra

Greenhorn
+ Follow
since Oct 14, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by sujith delpachithra

you have to set FILE Content type in http response.

contentType = "image/jpeg";

Google for more ............
13 years ago
hi all,
i am in big problem with creating a java client to call a .asmx web sevice. i am using jdeveloper for development. when i am going to create a web proxy to call the service i am getting following error.

here is the error:

oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "http://testurl.com/mservice.asmx?wsdl": undefined element declaration 's:schema'
at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1455)
at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2835)
at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2600)
at oracle.jdeveloper.webservices.model.java.JavaWebService.<init>(JavaWebService.java:439)
at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy$ProxyJavaWebService.<init>(WebServiceProxy.java:2117)
at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.updateServiceModel(WebServiceProxy.java:1581)
at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.setDescription(WebServiceProxy.java:506)
at oracle.jdevimpl.webservices.wizard.jaxrpc.proxy.ProxyJaxWsSpecifyWSDLPanel.setDescription(ProxyJaxWsSpecifyWSDLPanel.java:234)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1068)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$6.run(SpecifyWsdlPanel.java:639)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:643)
at java.lang.Thread.run(Thread.java:619)
Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "http://testurl.com/msservice.asmx?wsdl": undefined element declaration 's:schema'
at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:652)
at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:469)
at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1352)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.jdeveloper.webservices.Assembler$2.invoke(Assembler.java:145)
at $Proxy29.getJaxWsSeiInfo(Unknown Source)
at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1550)
at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1296)
... 11 more
Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: undefined element declaration 's:schema'
at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:188)
at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:635)
... 21 more
Caused by: oracle.j2ee.ws.common.databinding.common.spi.DatabindingException: undefined element declaration 's:schema'
at oracle.j2ee.ws.common.tools.databinding.jaxb20.JAXB20TypeGenerator.generateJavaTypes(JAXB20TypeGenerator.java:119)
at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:186)
... 22 more

Please, help???
15 years ago
i am using informix server as my database. i have some data in it with dirty values like new line chars,tab chars etc.

i want to remove those from my database.

Please, reply.
15 years ago
wow, great.
it works

thanks a lot.
15 years ago
which "weblogic.xml" file should i edit? in weblogic server there are a few files calles as "weblogic.xml".
waiting for kind response
thanks
15 years ago
thanks for the reply.

in order to your reply, i tried editing weblogic.xml file. but it didn't work.

suppose i have a file in "d:\test\t.pdf".
i used the below code fragment to achieve you proposed.but i was failed.

<virtual-directory-mapping>
<local-path>D:/</local-path>
<url-pattern>/test/*</url-pattern>
<url-pattern>*.pdf</url-pattern>
</virtual-directory-mapping>


please, help me with more details.

thanks again
15 years ago
Hi,

i am new to weblogic server.
i want my web clients to direct download file in a weblogic server. like sun app server docroot.
Users should be able to type "http://url.com/test.txt" to download the files. if any one knows how to do this, please help me.

thanks,
sujith.
15 years ago
<Feb 27, 2009 3:56:59 PM IST> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application Tutorial is not versioned.>
<Feb 27, 2009 3:56:59 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1235730419147' for task '13'. Error is: 'weblogic.management.DeploymentException: '
weblogic.management.DeploymentException:
at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:171)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:99)
at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
Truncated. see log file for complete stacktrace
>
<Feb 27, 2009 3:56:59 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'Tutorial'.>
<Feb 27, 2009 3:56:59 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.management.DeploymentException:
at weblogic.application.internal.flow.BaseLifecycleFlow$CreateListenerAction.run(BaseLifecycleFlow.java:171)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.application.internal.flow.BaseLifecycleFlow$BaseAction.invoke(BaseLifecycleFlow.java:99)
at weblogic.application.internal.flow.HeadLifecycleFlow.createListener(HeadLifecycleFlow.java:117)
Truncated. see log file for complete stacktrace
java.lang.ClassNotFoundException: oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
Truncated. see log file for complete stacktrace
>

i am new to ADF. when i am running a ADF tutorial i got the above error? if anyone knows the answer please help?
15 years ago
hi all,
i am having in a trouble with converting a .tiff file to .jpg. if any one know a way, please let me know?
16 years ago

stmt.executeUpdate("insert into Employee(EMP_ID,FIRSTNAME) values("+name+","+empid+")");


this should be change as
stmt.executeUpdate("insert into Employee(EMP_ID,FIRSTNAME) values('"+name+"','"+empid+"')");

because you are using string.
try this
16 years ago
Before constructing the B object it calls B's foo(). if it created B object it should call B's constructor first. i am too confused with the result. explain how the results are printed?
16 years ago
class A{
public A(){
System.out.println("A:A");
this.foo();
}
public void foo(){
System.out.println("A:Fooo");
}
}

class B extends A{
int i =90;
public B(){
i =98;
System.out.println("B:B");

}

public void foo(){
System.out.println("b:Fooo");
System.out.println(i);
}
}

public class NewClass {

public static void main(String[] args) {

A a = new B();
}
}

This prints
A:A
b:Fooo
0
B:B

But, it is not the expected value. Explain this?
16 years ago