Topic
3 replies Latest Post - ‏2013-12-14T13:40:12Z by MyScreen2
MyScreen2
MyScreen2
41 Posts
ACCEPTED ANSWER

Pinned topic Problem with database access

‏2013-12-13T20:47:24Z |

I am having an issue with a newly installed war file in Liberty Profile.  I placed the war file in the server1\apps directory and I can successfully hit a simple servlet.  However, when I try to hit other servlets that access the database, I get the following error.  I do not yet know if this is a config issue on the Liberty side or how I built the war file.  I am new to Liberty (just a few hours into it, and it looks very cool) but have deployed apps in other versions of WAS.  I will try to deploy this same war file in my WAS 8.0 app server to see if I have the same error there but I thought someone might know right off what the problem is.

 

********************************************************************************
product = WebSphere Application Server 8.5.5.1 (wlp-1.0.4.cl50120131011-1639)
wlp.install.dir = D:/vbs/wlp/
java.home = C:\Program Files (x86)\Java\jre7
java.version = 1.7.0_40
java.runtime = Java(TM) SE Runtime Environment (1.7.0_40-b43)
os = Windows 7 (6.1; x86) (en_US)
********************************************************************************
[12/13/13 15:22:23:304 EST] 00000001 com.ibm.ws.logging.internal.TraceSpecification               I TRAS0018I: The trace state has been changed. The new trace state is *=info.
[12/13/13 15:22:23:315 EST] 00000001 com.ibm.ws.kernel.launch.internal.FrameworkManager           A CWWKE0001I: The server server1 has been launched.
[12/13/13 15:22:23:870 EST] 00000001 com.ibm.ws.kernel.launch.internal.FrameworkManager           I CWWKE0002I: The kernel started after 0.52 seconds
[12/13/13 15:22:23:882 EST] 00000016 com.ibm.ws.kernel.feature.internal.FeatureManager            I CWWKF0007I: Feature update started.
[12/13/13 15:22:24:229 EST] 0000001b com.ibm.ws.tcpchannel.internal.TCPChannel                    I CWWKO0219I: TCP Channel defaultHttpEndpoint has been started and is now listening for requests on host 127.0.0.1  (IPv4: 127.0.0.1) port 9080.
[12/13/13 15:22:24:284 EST] 0000000f com.ibm.ws.app.manager.internal.monitor.DropinMonitor        A CWWKZ0058I: Monitoring dropins for applications.
[12/13/13 15:22:24:318 EST] 00000012 com.ibm.ws.app.manager.internal.statemachine.StartAction     I CWWKZ0018I: Starting application vbs_dev_x.
[12/13/13 15:22:24:791 EST] 00000012 m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W SRVE9967W: The manifest class path jcifs.jar can not be found in jar file wsjar:file:/D:/vbs/wlp/usr/servers/server1/apps/vbs_dev_x.war!/WEB-INF/lib/jtds-1.2.jar or its parent.
[12/13/13 15:22:24:968 EST] 00000012 m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W SRVE9967W: The manifest class path jcifs.jar can not be found in jar file wsjar:file:/D:/vbs/wlp/usr/servers/server1/apps/vbs_dev_x.war!/WEB-INF/lib/jtds-1.2.jar or its parent.
[12/13/13 15:22:25:064 EST] 00000012 com.ibm.ws.webcontainer.osgi.webapp.WebGroup                 I SRVE0169I: Loading Web Module: VBS_Dev_X.
[12/13/13 15:22:25:064 EST] 00000012 com.ibm.ws.webcontainer                                      I SRVE0250I: Web Module VBS_Dev_X has been bound to default_host.
[12/13/13 15:22:25:065 EST] 00000012 com.ibm.ws.http.internal.VirtualHostImpl                     A CWWKT0016I: Web application available (default_host): http://localhost:9080/vbs_dev_x/
[12/13/13 15:22:25:069 EST] 00000012 com.ibm.ws.app.manager.internal.statemachine.StartAction     A CWWKZ0001I: Application vbs_dev_x started in 0.750 seconds.
[12/13/13 15:22:25:071 EST] 00000012 com.ibm.ws.app.manager.internal.statemachine.StartAction     I CWWKZ0018I: Starting application HelloWorld.
[12/13/13 15:22:25:129 EST] 00000012 m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W SRVE9967W: The manifest class path jcifs.jar can not be found in jar file wsjar:file:/D:/vbs/wlp/usr/servers/server1/dropins/HelloWorld.war!/WEB-INF/lib/jtds-1.2.jar or its parent.
[12/13/13 15:22:25:148 EST] 00000012 m.ibm.ws.container.service.app.deploy.ManifestClassPathUtils W SRVE9967W: The manifest class path jcifs.jar can not be found in jar file wsjar:file:/D:/vbs/wlp/usr/servers/server1/dropins/HelloWorld.war!/WEB-INF/lib/jtds-1.2.jar or its parent.
[12/13/13 15:22:25:148 EST] 00000012 com.ibm.ws.webcontainer.osgi.webapp.WebGroup                 I SRVE0169I: Loading Web Module: HelloWorld.
[12/13/13 15:22:25:148 EST] 00000012 com.ibm.ws.webcontainer                                      I SRVE0250I: Web Module HelloWorld has been bound to default_host.
[12/13/13 15:22:25:148 EST] 00000012 com.ibm.ws.http.internal.VirtualHostImpl                     A CWWKT0016I: Web application available (default_host): http://localhost:9080/HelloWorld/
[12/13/13 15:22:25:148 EST] 00000012 com.ibm.ws.app.manager.internal.statemachine.StartAction     A CWWKZ0001I: Application HelloWorld started in 0.077 seconds.
[12/13/13 15:22:25:156 EST] 00000016 com.ibm.ws.kernel.feature.internal.FeatureManager            I CWWKF0008I: Feature update completed in 1.286 seconds.
[12/13/13 15:22:25:156 EST] 00000016 com.ibm.ws.kernel.feature.internal.FeatureManager            A CWWKF0011I: The server server1 is ready to run a smarter planet.
[12/13/13 15:22:35:029 EST] 00000020 com.ibm.ws.session.WASSessionCore                            I SESN8501I: The session manager did not find a persistent storage location; HttpSession objects will be stored in the local application server's memory.
[12/13/13 15:22:35:031 EST] 00000020 com.ibm.ws.session.WASSessionCore                            I SESN0176I: A new session context will be created for application key default_host/vbs_dev_x
[12/13/13 15:22:35:037 EST] 00000020 com.ibm.ws.util                                              I SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
[12/13/13 15:22:40:885 EST] 00000016 com.ibm.ws.webcontainer.servlet                              I SRVE0242I: [vbs_dev_x] [/vbs_dev_x] [hwi2000]: Initialization successful.
[12/13/13 15:22:48:713 EST] 00000016 com.ibm.ws.webcontainer.servlet                              I SRVE0242I: [vbs_dev_x] [/vbs_dev_x] [hwb0400]: Initialization successful.
[12/13/13 15:22:48:950 EST] 00000016 com.ibm.ws.webcontainer.util.ApplicationErrorUtils           E SRVE0777E: Exception thrown by application class 'com.genexus.webpanels.GXWebObjectStub.callExecute:-1'
javax.servlet.ServletException: java.lang.NullPointerException
 at java.io.File.<init>(Unknown Source)
 at com.genexus.db.driver.GXResultSet.getBLOBFile(Unknown Source)
 at com.genexus.db.driver.GXResultSet.getBLOBFile(Unknown Source)
 at psy1903__default.getResults(psy1903.java:323)
 

  • MyScreen2
    MyScreen2
    41 Posts
    ACCEPTED ANSWER

    Re: Problem with database access

    ‏2013-12-13T21:19:19Z  in response to MyScreen2

    I was able to deploy this war file to my WAS 8.0 server and open the first page without this error.  I know it is not an apples to apples comparison but at least the war file works in what I already have.

    • AlexMulholland
      AlexMulholland
      32 Posts
      ACCEPTED ANSWER

      Re: Problem with database access

      ‏2013-12-13T21:45:54Z  in response to MyScreen2

      Hi,

      I'm not familiar with the Genexus driver, but one source of unexpected NullPointerExceptions in Liberty can be the use of ServletContext.getRealPath in an unexpanded war file.  This is compliant with the Servlet specification but different app servers tend to give different results.  So, if you are deploying your application as an unexpanded war file you could try expanding it in place to see if that changes the behavior.  You can unpack it into a directory with the same name as the file (i.e.  to get apps/vbs_dev_x.war/WEB-INF/classes etc).

      ​If you have already expanded your app, or that doesn't solve the problem, let us know and we'll dig a bit deeper.

      Regards, Alex

  • MyScreen2
    MyScreen2
    41 Posts
    ACCEPTED ANSWER

    Re: Problem with database access

    ‏2013-12-14T13:40:12Z  in response to MyScreen2

    Thanks so much for the quick response.  And your suggestion worked perfectly the first time!  I really wanted it expanded anyway but had not gotten to doing that yet.

     Anyway, I really appreciate the help!

    Regards,

    Scott