Re: Compiling basicPortal with NetBeans 3.5 (i.e. Tomcat 4.0.6)?
Vic Cekvenich <[email protected]> Sat, 26 Apr 2003 20:30:16 -0400
| Newsgroups | gmane.comp.java.mvc.devel |
|---|---|
| Organization | baseBeans Engineering |
| Message-ID | <[email protected]> |
I definetly tested under Tomcat 4.1.x. *The configuration for Tomcat 4.1.x is in DOCO.*, with data source,so I did not mess with SQL mapping, just the data source. If you still have a problem in a day or 2, I will test the older tomcat 4.0.x for you. The message makes no sense to me. Are you using JDK 1.4x? It looks like a JSP compiler barfs. Maybe copy tools.jar to Tomcat common? In future, would it be easier for me to "ship" w/ Tomcat? I think I will. (I like Resin, but.... ) .V Hue Holleran wrote: >I've had several problems getting bp to run under netbeans - although this >seems to be more of a Tomcat 4.0.6 (old stable release) issue - Vic can you >confirm that you've been able to run this under Tomcat 4.0.6, please - the >error thrown is shown at the end of this email. > >Thanks, > >Hue. > >Also - thought I'd pass this on as this was better for me: For those who do >not want to add a container ds for testing and wish to use the ibatis >'SimpleDataSourceFactory' with just the connection details stored in the >local webapp... change the 'WEB-INF/Classes/properties/sql-map-config entry' >for the datasource, as follows: > >(obviously need to update ##HOST##, ##DB##, ##USER## and ##PASSWORD## to the >correct values) > ><datasource name = "ids" > >factory-class="com.ibatis.db.sqlmap.datasource.SimpleDataSourceFactory" > default = "true" > > <property name="JDBC.Driver" value="org.postgresql.Driver"/> > <property name="JDBC.ConnectionURL" >value="jdbc:postgresql://##HOST##:5432/##DB##?autoReconnect=true"/> > <property name="JDBC.Username" value="##USER##"/> > <property name="JDBC.Password" value="##PASSWORD##"/> > <property name="Pool.MaximumActiveConnections" value="10"/> > <property name="Pool.MaximumIdleConnections" value="5"/> > <property name="Pool.MaximumCheckoutTime" value="120000"/> > <property name="Pool.TimeToWait" value="10000"/> > <property name="Pool.PingQuery" value="select * from dual"/> > <property name="Pool.PingEnabled" value="false"/> > <property name="Pool.PingConnectionsOlderThan" value="0"/> > <property name="Pool.PingConnectionsNotUsedFor" value="0"/> > <property name="Pool.QuietMode" value="true"/> ></datasource> > > > >-- Error compiling under Tomcat 4.0.6 -- >WEB-INF/portlets/blog/Blog.jsp [-1:-1] java.lang.ExceptionInInitializerError > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:140) > at >org.apache.strutsel.taglib.html.ELFormTagBeanInfo.class$(ELFormTagBeanInfo.j >ava:81) > at >org.apache.strutsel.taglib.html.ELFormTagBeanInfo.getPropertyDescriptors(ELF >ormTagBeanInfo.java:81) > at >java.beans.Introspector.getTargetPropertyInfo(Introspector.java:436) > at java.beans.Introspector.getBeanInfo(Introspector.java:372) > at java.beans.Introspector.getBeanInfo(Introspector.java:144) > at >org.apache.jasper.compiler.TagCache.setTagHandlerClass(TagCache.java:116) > at >org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:146 >) > at >org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.addGenerator(A >nalyzerParseEventListener.java:154) > at >org.netbeans.modules.web.jspparser.AnalyzerParseEventListener.handleTagBegin >(AnalyzerParseEventListener.java:962) > at >org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe >ner.java:221) > at >org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListe >ner.java:216) > at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:878) > at org.apache.jasper.compiler.Parser.parse(Parser.java:1145) > at org.apache.jasper.compiler.Parser.parse(Parser.java:1103) > at org.apache.jasper.compiler.Parser.parse(Parser.java:1099) > at >org.apache.jasper.compiler.ParserController.parse(ParserController.java:214) > at >org.netbeans.modules.web.jspparser.JspParserImpl.callTomcatParser(JspParserI >mpl.java:126) > at >org.netbeans.modules.web.jspparser.JspParserImpl.analyzePage(JspParserImpl.j >ava:93) > at >org.netbeans.modules.web.core.jsploader.JspDataObject.createCompiler(JspData >Object.java:297) > at >org.netbeans.modules.web.core.jsploader.JspCompilerSupport.addToJob(JspCompi >lerSupport.java:62) > at >org.openide.actions.AbstractCompileAction.prepareJobFor(AbstractCompileActio >n.java:361) > at >org.openide.actions.AbstractCompileAction.createJob(AbstractCompileAction.ja >va:198) > at >org.openide.actions.AbstractCompileAction.compile(AbstractCompileAction.java >:209) > at >org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.processReque >st(CompileServlet.java:76) > at >org.netbeans.modules.tomcat.tomcat40.autocompile.CompileServlet.doGet(Compil >eServlet.java:122) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at >org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) > at org.apache.tomcat.core.Handler.service(Handler.java:286) > at >org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) > at >org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 >7) > at >org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) > at >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC >onnectionHandler.java:210) > at >org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) > at >org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) > at java.lang.Thread.run(Thread.java:536) >Caused by: java.lang.NullPointerException > at >org.apache.struts.util.MessageResources.getMessageResources(MessageResources >.java:577) > at org.apache.struts.taglib.html.FormTag.<clinit>(FormTag.java:140) > ... 38 more >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.474 / Virus Database: 272 - Release Date: 18/04/2003 > > >