Kalpesh Soni

Ranch Hand
+ Follow
since Jan 02, 2001
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
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Kalpesh Soni

Eswar Nec wrote:Hi Preethi,


In your project use Tomcat server,

1. Just click Service in netbeans -> open Tomcat - Right click the project - Choose undeploy option

In your project use glassfish server

1. Just click Service in netbeans -> open GlassFisf - Right click the project - Choose undeploy option




3 years ago
This is how I solved it

I use createEjbContainer api without passing properties

look for your temp folder, it creates a glassfish 3 temp domain there

checkin that folder structure under src/test/resources/gfv3

this is what i have




Then you can edit domain.xml add datasources there

then use code to test ejb

I used glassfish v3, maven, oracle db




and test



this is how the config looks



good luck


I was reading some article and someone said A | B, A ^ B, A ^ B swaps variables without tempraroay 3rd var

but it doesnt, you have to use 3 XORs

Ryan Asleson wrote: This way, each DAO can just get its own Connection using our custom connection factory, without having to rely on something that was passed in.



If you use datasources, jee server would "know" and manage transactions for you

if you use DriverManager api, the container wont know that you are creating a connection and it wont enlist/manage those connections

something lot of people forget and run into trouble
if you find maven learning curve too steep

you could use ANT with ivy
5 years ago
Welcome Sean!
6 years ago
cant read any text

I am using windows xp


7 years ago
I have seen this error today

reason? I was using websphere and changing class loader strategy to parent last

this means my jars will be loaded first from war and then from lib/ext or whatever websphere gives

I was trying to control commons logging to use log4j



morale of the story?

you need all the jars that your app needs

struts uses - commons digester, lang, bean utils, logging and xerces

dump all and everything in your web-inf /lib

and you are good to go!

Hope this helps
7 years ago
its 2010 and I still have the same issue

last week we had tons of changes in wsdl and xsd

and now when I hit the service url I get npe

[7/9/10 13:26:28:908 CDT] 00000038 EngineConfigu E com.ibm.ws.webservices.engine.configuration.EngineConfigurationFactoryFinder$1 run WSWS3345E: Error: Unable to locate a valid EngineConfigurationFactory.
[7/9/10 13:26:28:998 CDT] 00000038 EngineConfigu E com.ibm.ws.webservices.engine.configuration.EngineConfigurationFactoryFinder$1 run WSWS3345E: Error: Unable to locate a valid EngineConfigurationFactory.
[7/9/10 13:26:29:000 CDT] 0000022c DefaultMessag 3 org.springframework.jms.listener.AbstractPollingMessageListenerContainer doReceiveAndExecute Consumer [com.ibm.ws.sib.api.jms.impl.JmsMsgConsumerImpl@15c415c4] of session [com.ibm.ws.sib.api.jms.impl.JmsSessionImpl@48ec48ec] did not receive a message
[7/9/10 13:26:29:003 CDT] 00000038 ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: xxxServicePort. Exception thrown : java.lang.NullPointerException
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.reportAvailableServices(WebServicesServlet.java:681)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doGet(WebServicesServlet.java:629)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)

[7/9/10 13:26:29:015 CDT] 00000038 WebApp E [Servlet Error]-[xxxServicePort]: java.lang.NullPointerException
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.reportAvailableServices(WebServicesServlet.java:681)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doGet(WebServicesServlet.java:629)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1146)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:592)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:524)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3548)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:269)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:818)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1478)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:125)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:267)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:205)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
7 years ago