• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Migration from VAJ 3.5 to WSAD.

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
We had just migrate our application from VAJ 3.5 to WSAD. Following are few important points related to appln architecture.
- We have 90 EJBs (which are ported in EJB Project)
- Around 3000 classes (which are ported in Application Client project)
- 200 JSPs (which are ported in Web Project).
- All the above project are in one Enterprise Application Project.
After porting the code to WSAD we got some EJB 1.1 specification issues which we had already resolved. Now there are no errors in project, but still there are some warnings related to JSP specification (only related to session.putvalue() method).
When we are trying to access our first jsp it gives following error :
Error Message: com/citigroup/cepaac/arch/crypto/SecurityException
Error Code: 500
Target Servlet: null
Error Stack:
java.lang.Exception: com/citigroup/cepaac/arch/crypto/SecurityException
at arch.FirstPage_jsp_3._jspService(FirstPage.jsp :101)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:286)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:105)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:123)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

Error Page Exception:
Error Message: JSPG0113E: JSP file "D:\Program Files\IBM\Application Developer\workspace\CePACWeb\webApplication\error.jsp (The system cannot find the file specified)" not found
Error Code: 404
Target Servlet: JSP 1.1 Processor
Error Stack:
com.ibm.servlet.engine.webapp.WebAppErrorReport: JSPG0113E: JSP file "D:\Program Files\IBM\Application Developer\workspace\CePACWeb\webApplication\error.jsp (The system cannot find the file specified)" not found
at com.ibm.servlet.engine.webapp.WebAppDispatcherResponse.sendError(WebAppDispatcherResponse.java:97)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:296)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager.java:827)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycleServlet.java:159)
at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServlet.java:286)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycleServlet.java:106)
at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:472)
at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletManager.java:1012)
at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManager.java:913)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:499)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:278)
at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:111)
at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:620)
at com.ibm.servlet.engine.webapp.WebApp.sendError(WebApp.java:546)
at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:92)
at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:123)
at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:67)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:122)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

When i had tried to debug then found out that it throws error after executing of following sequence of code :
- Jsp calls a method java bean (which is in Application Client Project) and from this method we are accessing static variable of a class (which is also in Application client project and also in same package as of java bean). At this point system throws error and comes out. it seems that as if static variables are not loaded as Test Environment goes up.

Following is the console log of server. There is no line which says that initialising Application Client PRoject.
*** Starting the server ***
IBM WebSphere Application Server, Release 4.0.1
Advanced Single Server Edition for Multiplatforms
Copyright IBM Corp., 1997-2001
************ Start Display Current Environment ************
WebSphere AEs 4.0.1 a0131.07 running with process name localhost/Default Server and process id 245
Host Operating System is Windows NT, version 4.0
Java version = J2RE 1.3.0 IBM build cn130-20010609 (JIT disabled), Java Compiler =
server.root = D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.runtime
Java Home = D:\Program Files\IBM\Application Developer\plugins\com.ibm.etools.server.jdk\jre
ws.ext.dirs = D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.server.jdk/lib;D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.runtime/classes;D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.runtime/lib;D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.runtime/lib/ext;D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.runtime/web/help;D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.tools/runtime/wasListener.jar;D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.webservice/runtime/worf.jar
Classpath = D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.runtime/properties;D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.runtime/lib/bootstrap.jar;D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.tools/runtime/wteServers.jar;D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.tools/runtime/wasTools.jar
Java Library path = D:/Program Files/IBM/Application Developer/plugins/com.ibm.etools.websphere.runtime/bin;D:\Program Files\IBM\Application Developer\jre\bin;.;C:\WINNT\System32;C:\WINNT;C:\Oracle\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\IBM Connectors\Encina\bin;C:\WINNT\system32;C:\WINNT;C:\Fujitsu\iflow\bin;C:\Fujitsu\iflow\jre\bin;C:\Fujitsu\iflow\jre\bin\classic;C:\Fujitsu\iflow\win32\lib;C:\Fujitsu\iflow\vrt\Bin;C:\Fujitsu\iflow\jrt\bin;C:\Sybase\DLL;C:\Sybase\BIN;C:\sybtools\WIN32;C:\sybtools\ASEP;d:\Program Files\jdk1.3.0_02\bin;d:\WebSphere\AppServer\bin;D:\Program Files\Rational\common;D:\Program Files\Rational\ClearCase\bin;;C:\PROGRA~1\E!PC;
Current trace specification =
************* End Display Current Environment *************
[02.09.06 13:38:38:986 GMT+08:00] 42d85e9e Server U Version : 4.0.1
[02.09.06 13:38:39:226 GMT+08:00] 42d85e9e Server U Edition: Advanced Single Server Edition for Multiplatforms
[02.09.06 13:38:39:226 GMT+08:00] 42d85e9e Server U Build date: Thu Aug 09 00:00:00 GMT+08:00 2001
[02.09.06 13:38:39:236 GMT+08:00] 42d85e9e Server U Build number: a0131.07
[02.09.06 13:38:54:488 GMT+08:00] 42d85e9e DrAdminServer I WSVR0053I: DrAdmin available on port 7000
[02.09.06 13:38:55:209 GMT+08:00] 42d85e9e ResourceBinde I WSVR0049I: Binding Session Persistence datasource as jdbc/Session
[02.09.06 13:38:55:920 GMT+08:00] 42d85e9e ResourceBinde I WSVR0049I: Binding CePACAPP as ApplicationDB
[02.09.06 13:39:10:571 GMT+08:00] 42d85e9e EJBEngine I WSVR0037I: Starting EJB jar: CePACEJB
[02.09.06 13:40:48:142 GMT+08:00] 42d85e9e ServletEngine A SRVE0161I: IBM WebSphere Application Server - Web Container. Copyright IBM Corp. 1998-2001
[02.09.06 13:40:49:223 GMT+08:00] 42d85e9e ServletEngine A SRVE0162I: Servlet Specification Level: 2.2
[02.09.06 13:40:49:233 GMT+08:00] 42d85e9e ServletEngine A SRVE0163I: Supported JSP Specification Level: 1.1
[02.09.06 13:40:52:418 GMT+08:00] 42d85e9e ServletEngine A SRVE0167I: Session Manager is Configured - Initializing...
[02.09.06 13:40:55:682 GMT+08:00] 42d85e9e CacheManager A DYNA0011E: Servlet cache file dynacache.xml not found; caching is disabled
[02.09.06 13:40:56:113 GMT+08:00] 42d85e9e ServletEngine A SRVE0169I: Loading Web Module: UTC.
[02.09.06 13:40:56:824 GMT+08:00] 42d85e9e SystemOut U Getting tempdir: D:\Program Files\IBM\Application Developer\workspace\.metadata\.plugins\com.ibm.etools.server.tools\tmp1\cache\localhost\Default Server\IBMUTC\UTC.war
[02.09.06 13:40:57:966 GMT+08:00] 42d85e9e WebGroup I SRVE0091I: [Servlet LOG]: JSP 1.1 Processor: init
[02.09.06 13:40:58:186 GMT+08:00] 42d85e9e WebGroup I SRVE0091I: [Servlet LOG]: SimpleFileServlet: init
[02.09.06 13:40:58:316 GMT+08:00] 42d85e9e ServletEngine A SRVE0169I: Loading Web Module: CePACWeb.
[02.09.06 13:40:58:366 GMT+08:00] 42d85e9e SystemOut U Getting tempdir: D:\Program Files\IBM\Application Developer\workspace\.metadata\.plugins\com.ibm.etools.server.tools\tmp1\cache\localhost\Default Server\CePAC\CePACWeb.war
[02.09.06 13:40:58:787 GMT+08:00] 42d85e9e WebGroup I SRVE0091I: [Servlet LOG]: JSP 1.1 Processor: init
[02.09.06 13:40:58:827 GMT+08:00] 42d85e9e WebGroup I SRVE0091I: [Servlet LOG]: SimpleFileServlet: init
[02.09.06 13:40:58:887 GMT+08:00] 42d85e9e WebGroup I SRVE0091I: [Servlet LOG]: InvokerServlet: init
[02.09.06 13:40:59:638 GMT+08:00] 42d85e9e HttpTransport A SRVE0171I: Transport http is listening on port 8,080.
[02.09.06 13:41:00:089 GMT+08:00] 42d85e9e Server A WSVR0023I: Server Default Server open for e-business

Anybody, pls. help me on this issue as i'm not able to find out a solution from last 3 days.
Thanks & regards,
Tarun
 
Tarun Dewan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
In Addition to above problem, in log following exception is being displayed
Log: Fri Sep 06 15:11:22 GMT+08:00 2002
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Fri Sep 06 15:11:22 GMT+08:00 2002
4 org.eclipse.ui 0 String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java(Compiled Code))
at org.eclipse.swt.custom.StyledText.styledTextWidth(StyledText.java:6282)
at org.eclipse.swt.custom.StyledText.textWidth(StyledText.java:6336)
at org.eclipse.swt.custom.StyledText.drawStyledLine(StyledText.java(Compiled Code))
at org.eclipse.swt.custom.StyledText.drawLine(StyledText.java(Compiled Code))
at org.eclipse.swt.custom.StyledText.handlePaint(StyledText.java(Compiled Code))
at org.eclipse.swt.custom.StyledText$13.handleEvent(StyledText.java:4252)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java(Compiled Code))
at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled Code))
at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code))
at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
at org.eclipse.ui.internal.Workbench.run(Workbench.java:656)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:815)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
at org.eclipse.core.launcher.Main.run(Main.java:433)
at org.eclipse.core.launcher.Main.main(Main.java:306)
Log: Fri Sep 06 15:13:23 GMT+08:00 2002
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Fri Sep 06 15:13:23 GMT+08:00 2002
4 org.eclipse.ui 0 String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java(Compiled Code))
at org.eclipse.swt.custom.StyledText.styledTextWidth(StyledText.java:6282)
at org.eclipse.swt.custom.StyledText.textWidth(StyledText.java:6336)
at org.eclipse.swt.custom.StyledText.drawStyledLine(StyledText.java(Compiled Code))
at org.eclipse.swt.custom.StyledText.drawLine(StyledText.java(Compiled Code))
at org.eclipse.swt.custom.StyledText.handlePaint(StyledText.java(Compiled Code))
at org.eclipse.swt.custom.StyledText$13.handleEvent(StyledText.java:4252)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code))
at org.eclipse.swt.widgets.Composite.WM_PAINT(Composite.java(Compiled Code))
at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled Code))
at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code))
at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code))
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code))
at org.eclipse.ui.internal.Workbench.run(Workbench.java:656)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:815)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
at java.lang.reflect.Method.invoke(Native Method)
at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
at org.eclipse.core.launcher.Main.run(Main.java:433)
at org.eclipse.core.launcher.Main.main(Main.java:306)
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, Application client projects are ONLY meant to be used for clients that run as Java applications on the command line. That is not the right sort of project for utility classes. Utility classes used by both JSP's and EJB's should be placed in a dependent JAR file. The following article by Tim Deboer describes how to build these using a special tool that is a plugin to WSAD. Move your utility classes into a standard Java project as described in Tim's article and it should help some of the classpath issues.
Kyle
 
Tarun Dewan
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kyle,
Thanks for your update. I had created a java project and applied the pattern specified in ZIP Creation example. But still same exception occurs.
pls. advice as this is very urgent.
Thanks & regards,
Tarun Dewan.
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How are the static variables supposed to be initialized normally? Are you using lazy initialization?
Kyle
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"tarun",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp.
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please edit your profile and select a new name which meets the requirements.
Thanks.
Dave
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic