Hellu, Ok, I got this working. I had to copy all the common jars and it works ;)
However, I still encounter some problems, please some help (I am using dbForms 1.1) ? 1) If I put the following mapping in my web.xml, tomcat gives an error and the web site doesn't work. How do I solve this ? If I do the same with Orion, I don't get an error, but I want it to work with Tomcat ------------- Apache Tomcat/4.0.3 ERROR reading java.io.ByteArrayInputStream@45eb At Line 36 /web-app/servlet-mapping/ ------------- 2) How can I change the url port in the html output ? The site is running under http://localhost:9000. However the base tag it generates doesn't contain the port. I can't find how to indicate the port as the <db:base> tag doesn't allow any attributes. 3) The buttons do work when I put the webserver that runs the dbforms temporarly on port 80. However I then get a nullpointer exception when pressing a update or delete button. Any idea why ?. I have the same problem when I press one of the "bug (list)" or "category (list)" buttons in the bugtracker application. The following appears on the screen. The strange thing is that nothing appears in the standard output while the debug level is set to 10 in the web.xml file. ----------- java.lang.NullPointerException at org.dbforms.Controller.process(Controller.java:234) at org.dbforms.Controller.doPost(Controller.java:107) at javax.servlet.http.HttpServlet.service(HttpServlet.java:211) at javax.servlet.http.HttpServlet.service(HttpServlet.java:309) at javax.servlet.http.HttpServlet.service(HttpServlet.java:336) at com.evermind[Orion/1.5.4 (build 10585)]._deb._lnc(.:514) at com.evermind[Orion/1.5.4 (build 10585)]._deb._wmb(.:170) at com.evermind[Orion/1.5.4 (build 10585)]._co._wbb(.:581) at com.evermind[Orion/1.5.4 (build 10585)]._co._fs(.:189) at com.evermind[Orion/1.5.4 (build 10585)]._bt.run(.:62) ------------ 4) When I use the GUI to generate the JSP's the JSP shows that data type "bit", "uniqueidentifier", "datetime" are not supported. If I then insert an entry for this data type manual it is correctly shown in the HTML. Are these types supported ? or how should I handle them ? 5) How and where can I search only the dbForms mailinglist ? BTW: I do have the following control section in the web.xml file: ------------- <servlet> <servlet-name>control</servlet-name> <servlet-class>org.dbforms.Controller</servlet-class> <init-param> <param-name>maxUploadSize</param-name> <param-value>80000</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>control</servlet-name> <url-pattern>servlet/control</url-pattern> </servlet-mapping> ------------- 6) I put the debug mode on 10 in the web.xml file, and see that when calling a jsp the following error appears in the standard output: ----------- Set org.dbforms.util.DbConnection properties Fire begin() for SetNextRule[methodName=setDbConnection, paramTyp e=org.dbforms.util.DbConnection] endElement(,dbconnection,dbconnection) Fire body() for ObjectCreateRule[className=org.dbforms.util.DbCon nection, attributeName=null] Fire body() for SetPropertiesRule[] Fire body() for SetNextRule[methodName=setDbConnection, paramType =org.dbforms.util.DbConnection] Fire end() for SetNextRule[methodName=setDbConnection, paramType= org.dbforms.util.DbConnection] Call org.dbforms.DbFormsConfig.setDbConnection(DbConnection = name= jdbc:inetdae7:localhost,jndi=false,conClass=com.inet.tds.PDataSourc e,username=WebStagingUser) Fire end() for SetPropertiesRule[] Fire end() for ObjectCreateRule[className=org.dbforms.util.DbConn ection, attributeName=null] Pop org.dbforms.util.DbConnection characters( ) endElement(,dbforms-config,dbforms-config) endDocument() setDocumentLocator(org.apache.crimson.parser.Parser2$DocLocator@12f 9ee) startDocument() Parse Fatal Error at line 1 column -1: Document root element is mis sing. org.xml.sax.SAXParseException: Document root element is missing. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:303 5) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:302 3) at org.apache.crimson.parser.Parser2.parseInternal(Parser2. java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:304 ) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderI mpl.java:433) at org.apache.commons.digester.Digester.parse(Digester.java :1206) at org.dbforms.ConfigServlet.initXMLErrors(ConfigServlet.ja va:363) at org.dbforms.ConfigServlet.init(ConfigServlet.java:113) at javax.servlet.GenericServlet.init(GenericServlet.java:44 ) at com.evermind._cp._vnc(.:1630) at com.evermind._cp._wxc(.:3891) at com.evermind._cp._vqc(.:3990) at com.evermind._cp._wcc(.:546) at com.evermind._cp.<init>(.:348) at com.evermind._aj._qad(.:536) at com.evermind._cr._qad(.:581) at com.evermind._cw._cd(.:372) at com.evermind._co._wbb(.:287) at com.evermind._co._fs(.:189) at com.evermind._bt.run(.:62) --------------- Eddie >From: Dirk Kraemer <[EMAIL PROTECTED]> >To: Eddie Post <[EMAIL PROTECTED]> >Subject: Re: [dbforms] Just starting >Date: Tue, 28 May 2002 08:46:32 +0200 > >Hi Eddie, > >you seem to have problems with your XML parsing library. >DbForms now uses Digester class from commons project, so >you need to have > >commons-digester.jar > >within your WEB-INF/lib directory. Please unpack the bugtracker >example application by doing a > >jar -xvf bucktracker.war > >in an empty directory and compare jar files found in WEB-INF/lib >with your ones. Using tomcat you do not need xerces.jar any >more, it is now in $TOMCAT_HOME/common/lib available to all >applications, so remove it from your WEB-INF/lib. If you still have >problems, please report what is in your WEB-INF/lib directory. > >Regards > >Dirk _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms
