Hi,
I am a new bee to Shark and want to integrate it in Ofbiz but as a first step i was trying to do a hello world Example,got struck with this problem. I have download stable Beta Version of Shark from http://forge.objectweb.org/project/showfiles.php?group_id=74&release_id=1715 I extracted this file and make the following configurations In Configure.properties file i changed the following Jdk location, --> jdk_dir=/usr/lib/jdk1.5.0_04 Created a Database in Mysql and configured same as follows in Configurre.properties file, db_loader_job=mysql mysql_JdbcDriver=org.gjt.mm.mysql.Driver mysql_Connection_Url=jdbc:mysql://192.168.0.99/shark mysql_user=phani mysql_passwd=phani123 After thias i executed the script from terminal as follows $./configure.sh I got the Message after creation of databases as follows [java] Application is finished. [java] All jobs duration: 10,352 seconds makeWebAppArchive: [war] Building war: /home/phani/ws-for-ofbiz/shark/JSPClient/sharkworklisthandler.war _configure-dist: BUILD SUCCESSFUL Total time: 16 seconds War file got created at Building war: /home/phani/ws-for-ofbiz/shark/JSPClient/sharkworklisthandler.war Now i wantted to use the sample application define I made the following Changes in shark/bin/runTS.sh file /usr/local/jdk1.5.0_04/bin/java \ -Xmx128M -Djava.ext.dirs=lib:lib/engine:lib/client:lib/contrib: \ $TEST_CLASS conf/Shark.conf repository/external/test-JavaScript.xpdltest_js basic 1 1 $* Now i deployed the war file in my Tomcat application server and when i tried to access the Following page http://localhost:8080/sharkworklisthandler/index.jsp i am getting following error javax.servlet.ServletException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver' org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848) org.apache.jasper.runtime.PageContextImpl.handlePageException (PageContextImpl.java:781) org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:386) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java :802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java :241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) *root cause* org.enhydra.shark.api.client.wfbase.BaseException: Cannot load JDBC driver class 'org.hsqldb.jdbcDriver' org.enhydra.shark.SharkConnectionImpl.connect(SharkConnectionImpl.java:92) test.JSPClientUtilities.connect (JSPClientUtilities.java:200) org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:126) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java :802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291) org.apache.jasper.servlet.JspServlet.service(JspServlet.java :241) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) Is the process i am following is correct or please guide me & also provide me the information where can i get the detailed information on shark configuration G.Venkata Phanindra Mob:: 9849852989 -- G.Venkata Phanindra Mob:: 9849852989 |
Free forum by Nabble | Edit this page |