Objective: To configure VAJ to develop WCS5.1 application Developers have VAJ 3.5(fixpack2) and DB2 Client (connected to WCS5.1 db: Mall) Developers will create commands, and task commands from VAJ and test it in WTE. WCStudio is not installed. Do i need to install WCStudio, and run the vajconfig.bat file? Problem: Not able to configure VAJ WTE 3.5 Work Done: Followed the steps given in the VAJ WebSphere Test Environment Configurations document. Copied WCS directory from WCS5.1 machine to the local machine (eg. C:\IBM\WCS) VAJ class path is changed as given in the doc. Added Datasource in WTE as given. EJB Server - Properties -> referred Datasource config as done in WTE. Modified the default_app.webapp file for <configfile> to refer local instance xml file <name>configfile</name> <value>C:\ibm\WCS\instances\demo\xml\demo.xml</value> instance name as the local machine name (eg.prasad)
<name>instancename</name> <value>prasad</value> Modified instance (eg.demo.xml) file to refer local path Changed all path to local folder
There are two java.security files found under c:\IBM\WCS folder and "security.provider.2=com.ibm.crypto.provider.IBMJCE" line is appended in both files
Started PNS, and EJB Server Servlet Engine properties got altered. Modified the Classpath (Selected All Projects, and pasted the Classpath set for VAJ) Started the Servlet Engine also
When we invoked the following URL in IE: "http://localhost:8080/webapp/wcs/stores/servlet/StoreCatalogDisplay?storeId=10001&catalogId=10001&langId=-1"
Output: HTTP 500 Internal server error: "The page cannot be displayed"
Console output:
***Servlet Engine is started*** Instantiate: com.ibm.commerce.server.RequestServlet IBM WebSphere Commerce Edition Version 5.1 Dump servletConfig parameters ServletConfig Init parameters: instancename=prasad ServletConfig Init parameters: configfile=C:\ibm\WCS\instances\demo\xml\demo.xml Dump servletContext parameters Dump servletContext attributes ServletContext attributes: com.ibm.websphere.servlet.application.host=default_host ServletContext attributes: com.ibm.websphere.servlet.application.classpath=c:\ibm\vajava\ide\project_resources\_WCSSamples;c:\ibm\vajava\ide\project_resources\CTP;c:\ibm\vajava\ide\project_resources\IBM Common Connector Framework;c:\ibm\vajava\ide\project_resources\IBM EJB Samples;c:\ibm\vajava\ide\project_resources\IBM EJB Tools;c:\ibm\vajava\ide\project_resources\IBM Enterprise Extension Libraries;c:\ibm\vajava\ide\project_resources\IBM IDE Utility class libraries;c:\ibm\vajava\ide\project_resources\IBM Java Implementation;c:\ibm\vajava\ide\project_resources\IBM Java Record Library;c:\ibm\vajava\ide\project_resources\IBM JSP Examples;c:\ibm\vajava\ide\project_resources\IBM WCS Commerce Server;c:\ibm\vajava\ide\project_resources\IBM WCS Enterprise Beans;c:\ibm\vajava\ide\project_resources\IBM WebSphere Test Environment;c:\ibm\vajava\ide\project_resources\IBM XML Parser for Java;c:\ibm\vajava\ide\project_resources\Java class libraries;c:\ibm\vajava\ide\project_resources\JSP Page Compile Generated Code;c:\ibm\vajava\ide\project_resources\Secure Socket Layer;c:\ibm\vajava\ide\project_resources\Servlet API Classes;c:\ibm\vajava\ide\project_resources\Sun class libraries PM Win32;c:\ibm\vajava\ide\project_resources\VisualAge Persistence;c:\ibm\vajava\ide\project_resources\VisualAge Persistence Common Runtime;c:\ibm\vajava\ide\project_resources\IBM WebSphere Test Environment;c:\ibm\vajava\ide\project_resources\IBM JSP Examples;c:\ibm\vajava\ide\project_resources\Servlet API Classes;c:\ibm\vajava\ide\project_resources\IBM XML Parser for Java;c:\ibm\vajava\ide\project_resources\JSP Page Compile Generated Code;c:\ibm\vajava\ide\project_resources\IBM IDE Utility class libraries;C:\IBM\VAJAVA\IDE\project_resources\JSP Page Compile Generated Code;C:\IBM\VAJAVA\IDE\project_resources\IBM WebSphere Test Environment\;C:\IBM\VAJAVA\IDE\project_resources\IBM WebSphere Test Environment\hosts\default_host\default_app\servlets;C:\IBM\VAJAVA\IDE\project_resources\IBM WebSphere Test Environment\hosts\default_host\default_app\web;C:\IBM\VAJAVA\IDE\project_resources\IBM WebSphere Test Environment\lib\ns.jar;C:\IBM\VAJAVA\IDE\project_resources\IBM WebSphere Test Environment\lib\ibmwebas.jar;C:\IBM\VAJAVA\IDE\project_resources\IBM WebSphere Test Environment\lib\servlet.jar;C:\IBM\VAJAVA\IDE\project_resources\IBM WebSphere Test Environment\temp\temp_dir;C:\IBM\VAJAVA\IDE\project_resources\JFC class libraries\;C:\IBM\VAJAVA\IDE\project_resources\IBM Persistence EJB Library\;C:\IBM\VAJAVA\IDE\project_resources\IBM JSP Examples\;C:\IBM\VAJAVA\IDE\project_resources\Servlet API Classes\;C:\IBM\VAJAVA\IDE\project_resources\IBM Data Access Beans\;C:\IBM\VAJAVA\IDE\project_resources\IBM XML Parser for Java\;C:\IBM\VAJAVA\IDE\project_resources\IBM IDE Utility local implementation\;C:\IBM\VAJAVA\IDE\project_resources\IBM IDE Utility class libraries\;C:\ibm\SQLLIB\java\db2java.zip;C:\ibm\WCS\lib;C:\ibm\WCS\properties;C:\ibm\WCS\lib\xml4j.jar;C:\ibm\WCS\lib\ibmjcefw.jar;C:\ibm\WCS\lib\ibmjceprovider.jar;C:\ibm\WCS\lib \local_policy.jar;C:\ibm\WCS\lib\US_export_policy.jar;C:\ibm\WCS\stores\properties;C:\ibm\VAJava\ide\tools\com-ibm-ivj-ui-webcontrolcenter\;C:\ibm\VAJava\ide\project_resources\IBM IDE Utility class libraries;C:\ibm\VAJava\ide\project_resources\IBM IDE Utility local implementation;C:\ibm\VAJava\ide\project_resources\IBM IDE UI class libraries;C:\ibm\VAJava\ide\project_resources\JFC class libraries;C:\ibm\SQLLIB\java\db2java.zip;C:\ibm\WCS\lib;C:\ibm\WCS\properties;C:\ibm\WCS\lib\xml4j.jar;C:\ibm\WCS\lib\ibmjcefw.jar;C:\ibm\WCS\lib\ibmjceprovider.jar;C:\ibm\WCS\lib\ local_policy.jar;C:\ibm\WCS\lib\US_export_policy.jar;C:\ibm\WCS\stores\properties;.\JFace\ControlCenter_jfaceall.jar;.\JFace\;C:\ibm\VAJava\ide\project_resources\IBM WebSphere Test Environment;C:\ibm\VAJava\ide\tools\com-ibm-ivj-ui-webcontrolcenter;C:\ibm\VAJava\ide\project_resources\IBM Enterprise Extension Libraries;C:\ibm\VAJava\ide\project_resources\IBM Persistence EJB Libraries;C:\ibm\VAJava\ide\project_resources\IBM XML Parser for Java;C:\ibm\VAJava\ide\project_resources\IBM WebSphere Test Environment\lib\idb.jar;C:\ibm\VAJava\ide\project_resources\IBM WebSphere Test Environment\properties\;C:\ibm\VAJava\ide\project_resources\IBM WebSphere Test Environment\hosts\default_host\default_app\servlets;C:\ibm\VAJava\ide\project_resources\IBM WebSphere Test Environment\servlets ServletContext attributes: com.ibm.websphere.servlet.application.name=default ServletContext attributes: com.ibm.servlet.engine.webapp.WebAppServletRegistry=com.ibm.servlet.engine.webapp.WebAppServletRegistry@7283 ServletContext attributes: com.ibm.websphere.servlet.event.ServletContextEventSource=com.ibm.servlet.engine.webapp.WebAppEventSource@1057 ServletContext attributes: javax.servlet.context.tempdir=C:\ibm\VAJava\ide\project_resources\IBM WebSphere Test Environment\temp\default_host\default_app *** Begin processing file : C:\ibm\WCS\instances\demo\xml\demo.xml
When F5 is pressed, still the same error, but in the console, the following line is appended.
On another machine, the exception is thrown: Got Exception: javax.servlet.Exception Can u help us in solving this problem? thanks in advance. Rgds, T.Prasad. prasad@lincsoftware.soft.net
Do a search on this forum for WCS5.1 there is a documented issue with the ssl certificate that comes with the software. You need to reissue one using the apache certificate utility. The certificate is self-signed when you reissue it. This should really clear up the error.