vibeeshan kambli

Ranch Hand
+ Follow
since Jan 22, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by vibeeshan kambli

Hi
I am new to struts 2 validation. I configured every thing correctly
even validation of the field works.
However some fields throws validation error message even after entering value.
but some of the other fields work fine

following field throws error



I am using simple theme. Any help is greatly appreciated . thank you
13 years ago
Hi ,
I am trying to work with one of my new application to JBoss AS 6 inside the eclipse.
I have a ejb 3 session bean, I am trying to look it up in my struts 2 action class

InitialContext ctx = new InitialContext();
Object remote = ctx.lookup(beanId);

where bean id is jGurukulEar/LoginServiceImpl/remote ( <ear-file-name>/<ejb-name>/remote)
I am getting NameNotFoundException. I verified jboss jmx-consile , the session bean bounded with jndi name GurukulEar/LoginServiceImpl/remote
I tried to look it up using jndi name using java:comp/env/GurukulEar/LoginServiceImpl/remote still not working
What could be going wrong here ?



javax.naming.NameNotFoundException: EAR not bound
org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
org.jnp.server.NamingServer.getObject(NamingServer.java:785)
org.jnp.server.NamingServer.lookup(NamingServer.java:396)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:728)
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)
javax.naming.InitialContext.lookup(Unknown Source)
com.bht.gurukul.common.ServiceLocator.getSessionBean(ServiceLocator.java:58)
com.bht.gurukul.action.LoginAction.execute(LoginAction.java:23)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

Hi Ivan,
Thanks for the reply. I am not manipulating headers, I am using soap UI request page to specify user name,password,timeout etc.
14 years ago
Hello,
I am trying to test a .net webservice with Soap UI and I am getting following error. I do specify username and password in the request properties but service still throws following error

The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm=""'.

Any help is greatly appreciated.
14 years ago
Finally figured out a problem. I was using userid on a unix box to execute a batch job that does not permission to write a file.
What was happening was , when I use a JEE application client to execute a batch , websphere tries to expand EAR file , looks like default location it will use for expanding EAR file is websphere root directory. giving permissions to that directory solved the issue.
14 years ago
Hello,
I am trying to use J2ee application client and webservice together on Websphere server V7.
Here is what's happening , any help is greatly appreciated.

We have older application that uses J2ee application client to run batch.
This batch does several things but I recently integrated a jax-ws webservice cleint.
This webservice client invokes .Net webservice. I took the wsdl from .Net service
and generated proxy classes.
When I invoke this application with in RSA, it runs fine but when I run this batch application on unix server using shell script
I will get the following error

Caused by: java.lang.ClassNotFoundException: com.ibm.ws.webservices.exception.WSDLPostProcessingException
at java.lang.Throwable.<init>(Throwable.java:80)
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:351)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 71 more

I have spcified com.ibm.jaxws.thinclient_7.0.0.jar in the classpath
I greatly appreciate your help. Thank you.

14 years ago
Gurus,
Does any one have some idea about this exception, here is the complete StackTrace

WSCL0100E: Exception received: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.ws.client.applicationclient.launchClient.createContainerAndLaunchApp(launchClient.java:788)
at com.ibm.ws.client.applicationclient.launchClient.main(launchClient.java:493)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:213)
at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:93)
at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:74)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.Main.run(Main.java:981)
at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:340)
at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:110)
at com.ibm.websphere.client.applicationclient.launchClient.main(launchClient.java:246)
Caused by: java.lang.NoClassDefFoundError: com.ibm.ws.webservices.exception.WSDLPostProcessingException
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at com.ibm.ws.wspolicy.DefaultWSPolicyInternalFactory.createWSDLPostProcessorExtended(DefaultWSPolicyInternalFactory.java:88)
at com.ibm.ws.wspolicy.WSPolicyInternalFactory.createWSDLPostProcessorExtended(WSPolicyInternalFactory.java:182)
at com.ibm.ws.wspolicy.attachment.WSDLPostProcessorImpl.<clinit>(WSDLPostProcessorImpl.java:41)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at java.lang.J9VMInternals.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1325)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:157)
at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:770)
at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)
at com.ibm.ws.webservices.utils.PluginUtils$1.run(PluginUtils.java:85)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
at com.ibm.ws.webservices.utils.PluginUtils.discoverExtensions(PluginUtils.java:81)
at com.ibm.ws.webservices.deployment.WSDLPostProcessorPluginMgr.discoverWSDLPostProcessorPlugins(WSDLPostProcessorPluginMgr.java:74)
at com.ibm.ws.webservices.deployment.WSDLPostProcessorPluginMgr.getInstance(WSDLPostProcessorPluginMgr.java:61)
at com.ibm.ws.websvcs.deployment.WASWSDLReaderConfigurator.configureReaderInstance(WASWSDLReaderConfigurator.java:55)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.getWSDLReader(WSDL4JWrapper.java:493)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.access$300(WSDL4JWrapper.java:77)
at org.apache.axis2.jaxws.util.WSDL4JWrapper$12.run(WSDL4JWrapper.java:724)
at org.apache.axis2.java.security.AccessController.doPrivileged(AccessController.java:132)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.loadDefinition(WSDL4JWrapper.java:722)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.getDefinition(WSDL4JWrapper.java:670)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.commonPartsURLConstructor(WSDL4JWrapper.java:224)
at org.apache.axis2.jaxws.util.WSDL4JWrapper.<init>(WSDL4JWrapper.java:156)
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.setupWsdlDefinition(ServiceDescriptionImpl.java:1071)
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:237)
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:160)
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:133)
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescription(DescriptionFactoryImpl.java:79)
at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescription(DescriptionFactory.java:76)
at org.apache.axis2.jaxws.spi.ServiceDelegate.<init>(ServiceDelegate.java:212)
at org.apache.axis2.jaxws.spi.Provider.createServiceDelegate(Provider.java:59)
at javax.xml.ws.Service.<init>(Service.java:67)
at org.tempuri.ReportServiceB.<init>(ReportServiceB.java:39)
at org.spc.document.inventory.webservice.consumer.DocumentInventoryServiceAdapter.getService(DocumentInventoryServiceAdapter.java:128)
at org.spc.document.inventory.webservice.consumer.DocumentInventoryServiceAdapter.getReportMetaDataByFilter(DocumentInventoryServiceAdapter.java:78)
at org.spc.reports.app.batch.GenerateReports.run(GenerateReports.java:134)
at org.spc.reports.app.batch.BatchLauncher.run(BatchLauncher.java:71)
at org.spc.reports.app.batch.BatchLauncher.main(BatchLauncher.java:31)
... 28 more
Caused by: java.lang.ClassNotFoundException: com.ibm.ws.webservices.exception.WSDLPostProcessingException
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:351)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 71 more
14 years ago
Hello,
I am trying to use J2ee application client and webservice together on Websphere server V7.
Here is what's happening , any help is greatly appreciated.

We have older application that uses J2ee application client to run batch.
This batch does several things but I recently integrated a jax-ws webservice cleint.
This webservice client invokes .Net webservice. I took the wsdl from .Net service
and generated proxy classes.
When I invoke this application with in RSA, it runs fine but when I run this batch application on unix server using shell script
I will get the following error

Caused by: java.lang.ClassNotFoundException: com.ibm.ws.webservices.exception.WSDLPostProcessingException
at java.lang.Throwable.<init>(Throwable.java:80)
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:77)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:351)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(ClassLoader.java:618)
... 71 more

I have spcified com.ibm.jaxws.thinclient_7.0.0.jar in the classpath
I greatly appreciate your help. Thank you.
14 years ago
you are right , i am not doing any jdbc stuff here. Scheduler part is i am not worried.
As you said I look into Spring 3.0 but I would appreciate if somebody tells me is there any other direction for this requirement.
15 years ago
Hi,
I have a requirment where I need to monitor few log files. here is the requirment

Create a batch program that
1. Read system.out.logs of websphere server and pull some critical infrastructure specific error information for every fifteen minutes ( which is not logged in application logs)
2. write that information in a seperate file. current day file will be error1 , yesterday's will be error2 like that.
3. keep all the generated files for 2 weeks , if more than 2 weeks old files delete them

I am planning to write Java program using Spring Batch , is this good or do you guys think any aleternative scripting/tool will fit this requirement.
appreciate your help.
15 years ago
Hi,
I need your advise on serialization.
I need to send stream to my server which one is efficient

Method 1:
1. read the object
2. convert the object using xstream in to xml string
3. convert to bytes and write to servlet output stream
4. read the bytes and convert bytes to xml string
5. convert xml string back to object


Method 2:-

1. read the object
2. convert to bytes using object output stream and write to servlet output stream
4. read the bytes and convert back to object using object input stream

my question is which is efficient ?
using method 1 and method 2 ?
by looking at the steps , one could argue that method 1 having xml over head
am I right? or using object output stream is more over head ( method 2 ) ?

my result set could be (comes back from servlet) could be several thousands be records
Any help is greatly appreciated
15 years ago
Hi,
I have swing application, When user clicks a menu item, I would like
to open the browser and post some data using post method.
User needs to see the web page in IE.
Is there any mechnaism to do this one? I understand that we can easily do
this using query string, but I am intrested only using post method because
my data contain sensitive information
15 years ago
Thank you Mark !, Great and Helpful Advise!



15 years ago


Are you using Spring? There are many remoting options in Spring Framework for this. You can use the HttpInvoker since both sides are Java.



Mark, Thanks for the suggestion. I have plans to rewrite this remoting layer using Spring's http invoker.
But The question here is whether service layer need to maintain its own DTOs and pass it client or
do we need to use DTO's that is given by DAO layer ( these complicated and composite FAT DTO's , we cannot change this )
do you think Jason is best alternative too.? or using spring http invoker solves this problem too?

You can just use XML to communicate.



Kengkaj, Yes I am afraid of over head and big data sizes. Also we may not stick to one schema because our domain is too big
and different clients has different needs.
I will look in to Jason more.

Thank you for your time.
15 years ago
Hi everybody,
I have architecture problem, I greatly appreciate your time if you have some time on this problem.

I am developing service layer for my project.

I have to communicate with swing client and web ( that deployed in different container)
We have remoting mechanism in place ( written using apache http client )
New Service layer that I am trying to develope is going to reside in another different container.

All the applications will be with in same firewall and they will not going to outside firewall

Also I have existing DAO layer and it give a set of DTO objects

With the above things in mind

I am planning to have my own set of DTO's to pass to clients. Here is what I want to do

1. Swing/Web client calls Remoting layer using DTO's given by service layer
2. Remoting Layer translates every thing in to XML ( we are using xstream ?? is it bad? what are the alternatives?)
3. Service Layer unmarshalls the XML in to DTO's back ( Do I need introduce Domain Objects ?? ,
Current services do not have domain objects concept )
4. Takes the clients request and communicates with DAO Layer
5. Fills the results in to DTO's back

Is the above architecure good ? I am afraid not because I feel I do not have concept of Domain objects
Also I have 2 different set of DTO's ( one from DAO layer and one from Service Layer)
Also Service Layer is trying to give DTO's back to client ? We do not want xml over head because everything in one firewall
am I doing it right? Where can I improve this architecure?


Thanks for your time, I really appreciate your help







15 years ago