Re: Project will not build
hint Are you asking here because you got no answers on the NetBeans list? Nor the Ant list? /hint On Tue, 2012-07-24 at 15:11 -0400, Cotton, Joseph B wrote: This question concerns a Project that used to work nicely. Now it will not build. I am using NetBeans IDE 7.1.1 with Apache Tomcat 7.0.22 I left this project alone for a few months. Now when I come back and try to build or run, it errors with this message: Copying 1 file to D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\build\web\WEB-INF\lib D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\nbproject\build-impl.xml:687: Warning: Could not find file D:\Documents and Settings\cottonjb\My Documents\Downloads\javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to copy. BUILD FAILED (total time: 0 seconds) It refers to this in build-impl.xml: target depends=init name=library-inclusion-in-archive unless=dist.ear.dir copyfiles files=${file.reference.winzipaes-20100321.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-sources.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.jstl-1.2.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${libs.JSP121.classpath} todir=${build.web.dir}/WEB-INF/lib/ /target I manually added the javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to the NetBeans library and the Project library. The winzip jar is found. The jsp jars are not found. Am I reading this correctly? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: This is a digitally signed message part
RE: Project will not build
http://grepcode.com/snapshot/repo1.maven.org/maven2/javax.servlet.jsp.jstl/javax.servlet.jsp.jstl-api/1.2.1 This is what youre looking for ..if the ant guy is looking the other way you can easily integrate this depdency with maven3 and insert this dependency into your depdendency list: dependencies dependency groupIdjavax.servlet.jsp.jstl/groupId artifactIdjavax.servlet.jsp.jstl-api/artifactId version1.2.1/version /dependency ...other dependencies.. /dependencies if the ant guy is on top of you or has sufficient power to stop the project then copy the jar from the liunk above to the location pointed by ${file.reference.winzipaes-20100321.jar} (you should see the exact location from the reference of file.reference.winzipaes-20100321.jar located somewhere at the top of the build.xml) then rerun the ant script and make sure the init target is executed e.g. ant init Martin Gainty __ I know a little about Orson's childhood and seriously doubt if he ever was a child... - Joseph Cotton Subject: Project will not build Date: Tue, 24 Jul 2012 15:11:40 -0400 From: bcot...@dpscs.state.md.us To: users@tomcat.apache.org This question concerns a Project that used to work nicely. Now it will not build. I am using NetBeans IDE 7.1.1 with Apache Tomcat 7.0.22 I left this project alone for a few months. Now when I come back and try to build or run, it errors with this message: Copying 1 file to D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\build\web\WEB-INF\lib D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\nbproject\build-impl.xml:687: Warning: Could not find file D:\Documents and Settings\cottonjb\My Documents\Downloads\javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to copy. BUILD FAILED (total time: 0 seconds) It refers to this in build-impl.xml: target depends=init name=library-inclusion-in-archive unless=dist.ear.dir copyfiles files=${file.reference.winzipaes-20100321.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-sources.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.jstl-1.2.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${libs.JSP121.classpath} todir=${build.web.dir}/WEB-INF/lib/ /target I manually added the javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to the NetBeans library and the Project library. The winzip jar is found. The jsp jars are not found. Am I reading this correctly? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Project will not build
Actually, no. But a little more poking around fixed it. By the way, is there any really good reference for Tomcat? I have three O'reiley books and they don’t seem to help much. I can read the How-To pages all day and nothing seems to stick. I am looking for somehting that decribes what happens when And what each of the xml files are for. Is there a component list? -Original Message- From: Tim Watts [mailto:t...@cliftonfarm.org] Sent: Tuesday, July 24, 2012 3:36 PM To: Tomcat Users List Subject: Re: Project will not build hint Are you asking here because you got no answers on the NetBeans list? Nor the Ant list? /hint On Tue, 2012-07-24 at 15:11 -0400, Cotton, Joseph B wrote: This question concerns a Project that used to work nicely. Now it will not build. I am using NetBeans IDE 7.1.1 with Apache Tomcat 7.0.22 I left this project alone for a few months. Now when I come back and try to build or run, it errors with this message: Copying 1 file to D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\build\web\WEB-INF\lib D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\nbproject\build-impl.xml:687: Warning: Could not find file D:\Documents and Settings\cottonjb\My Documents\Downloads\javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to copy. BUILD FAILED (total time: 0 seconds) It refers to this in build-impl.xml: target depends=init name=library-inclusion-in-archive unless=dist.ear.dir copyfiles files=${file.reference.winzipaes-20100321.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-sources.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.jstl-1.2.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${libs.JSP121.classpath} todir=${build.web.dir}/WEB-INF/lib/ /target I manually added the javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to the NetBeans library and the Project library. The winzip jar is found. The jsp jars are not found. Am I reading this correctly? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Project will not build
On Tue, 2012-07-24 at 15:46 -0400, Martin Gainty wrote: http://grepcode.com/snapshot/repo1.maven.org/maven2/javax.servlet.jsp.jstl/javax.servlet.jsp.jstl-api/1.2.1 This is what youre looking for ..if the ant guy is looking the other way you can easily integrate this depdency with maven3 and insert this dependency into your depdendency list: dependencies dependency groupIdjavax.servlet.jsp.jstl/groupId artifactIdjavax.servlet.jsp.jstl-api/artifactId version1.2.1/version /dependency ...other dependencies.. /dependencies 1. I don't think he's using Maven. if the ant guy is on top of you or has sufficient power to stop the project then copy the jar from the liunk above to the location pointed by ${file.reference.winzipaes-20100321.jar} 2. Red Herring. That could be an entirely different location. (you should see the exact location from the reference of file.reference.winzipaes-20100321.jar located somewhere at the top of the build.xml) then rerun the ant script and make sure the init target is executed e.g. ant init Martin Gainty __ I know a little about Orson's childhood and seriously doubt if he ever was a child... - Joseph Cotton 3. That's Joseph Cotten Subject: Project will not build Date: Tue, 24 Jul 2012 15:11:40 -0400 From: bcot...@dpscs.state.md.us To: users@tomcat.apache.org This question concerns a Project that used to work nicely. Now it will not build. I am using NetBeans IDE 7.1.1 with Apache Tomcat 7.0.22 I left this project alone for a few months. Now when I come back and try to build or run, it errors with this message: Copying 1 file to D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\build\web\WEB-INF\lib D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\nbproject\build-impl.xml:687: Warning: Could not find file D:\Documents and Settings\cottonjb\My Documents\Downloads\javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to copy. BUILD FAILED (total time: 0 seconds) It refers to this in build-impl.xml: target depends=init name=library-inclusion-in-archive unless=dist.ear.dir copyfiles files=${file.reference.winzipaes-20100321.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-sources.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.jstl-1.2.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${libs.JSP121.classpath} todir=${build.web.dir}/WEB-INF/lib/ /target I manually added the javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to the NetBeans library and the Project library. The winzip jar is found. The jsp jars are not found. Am I reading this correctly? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: This is a digitally signed message part
RE: Project will not build
Thanks all - it is building now. Here is what I did: Right click on the project Select Properties Select Libraries Select compile tab Removed the libraries that could not be found Added the library to be found OK Question for the Tomcat list: Isnt /WEB-INF/lib a Tomcat folder? It is refered to in the Tomcat documentation, right? (confused look) My question for the NetBeans list would be why didn’t it find my libraries after I added the libraries to the project under the Libraries folder? But as Tim hinted, this question is off topic here. Unfortunately, in my haste, I restored the code from a backup, which now needs to be updated... Which leads to my other question, if I make a backup of the folders, why didn't just copying the the folders back in fix it? There seems to be multiple places to configure... Thanks and regards Joe -Original Message- From: Tim Watts [mailto:t...@cliftonfarm.org] Sent: Tuesday, July 24, 2012 4:04 PM To: Tomcat Users List Subject: RE: Project will not build On Tue, 2012-07-24 at 15:46 -0400, Martin Gainty wrote: http://grepcode.com/snapshot/repo1.maven.org/maven2/javax.servlet.jsp. jstl/javax.servlet.jsp.jstl-api/1.2.1 This is what youre looking for ..if the ant guy is looking the other way you can easily integrate this depdency with maven3 and insert this dependency into your depdendency list: dependencies dependency groupIdjavax.servlet.jsp.jstl/groupId artifactIdjavax.servlet.jsp.jstl-api/artifactId version1.2.1/version /dependency ...other dependencies.. /dependencies 1. I don't think he's using Maven. if the ant guy is on top of you or has sufficient power to stop the project then copy the jar from the liunk above to the location pointed by ${file.reference.winzipaes-20100321.jar} 2. Red Herring. That could be an entirely different location. (you should see the exact location from the reference of file.reference.winzipaes-20100321.jar located somewhere at the top of the build.xml) then rerun the ant script and make sure the init target is executed e.g. ant init Martin Gainty __ I know a little about Orson's childhood and seriously doubt if he ever was a child... - Joseph Cotton 3. That's Joseph Cotten Subject: Project will not build Date: Tue, 24 Jul 2012 15:11:40 -0400 From: bcot...@dpscs.state.md.us To: users@tomcat.apache.org This question concerns a Project that used to work nicely. Now it will not build. I am using NetBeans IDE 7.1.1 with Apache Tomcat 7.0.22 I left this project alone for a few months. Now when I come back and try to build or run, it errors with this message: Copying 1 file to D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\build\web\WEB-INF\lib D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\nbproject\build-impl.xml:687: Warning: Could not find file D:\Documents and Settings\cottonjb\My Documents\Downloads\javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to copy. BUILD FAILED (total time: 0 seconds) It refers to this in build-impl.xml: target depends=init name=library-inclusion-in-archive unless=dist.ear.dir copyfiles files=${file.reference.winzipaes-20100321.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-sources.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.jstl-1.2.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${libs.JSP121.classpath} todir=${build.web.dir}/WEB-INF/lib/ /target I manually added the javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to the NetBeans library and the Project library. The winzip jar is found. The jsp jars are not found. Am I reading this correctly? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Project will not build
On Tue, 2012-07-24 at 16:00 -0400, Cotton, Joseph B wrote: Actually, no. But a little more poking around fixed it. Glad you worked it out. By the way, is there any really good reference for Tomcat? I have three O'reiley books and they don’t seem to help much. I can read the How-To pages all day and nothing seems to stick. I am looking for somehting that decribes what happens when And what each of the xml files are for. Is there a component list? Well, as far as an actual *Reference* it's hard to get more authoritative than the online docs. Based on some of the traffic here, there seem to be a number of dubious tutorials floating around the 'net but I'm sure there are quality ones as well. Perhaps you would find the wiki helpful: http://wiki.apache.org/tomcat/FrontPage It has a link for suggested books although some look pretty outdated. HTH -Original Message- From: Tim Watts [mailto:t...@cliftonfarm.org] Sent: Tuesday, July 24, 2012 3:36 PM To: Tomcat Users List Subject: Re: Project will not build hint Are you asking here because you got no answers on the NetBeans list? Nor the Ant list? /hint On Tue, 2012-07-24 at 15:11 -0400, Cotton, Joseph B wrote: This question concerns a Project that used to work nicely. Now it will not build. I am using NetBeans IDE 7.1.1 with Apache Tomcat 7.0.22 I left this project alone for a few months. Now when I come back and try to build or run, it errors with this message: Copying 1 file to D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\build\web\WEB-INF\lib D:\Documents and Settings\cottonjb\My Documents\NetBeansProjects\MAFSS2\nbproject\build-impl.xml:687: Warning: Could not find file D:\Documents and Settings\cottonjb\My Documents\Downloads\javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to copy. BUILD FAILED (total time: 0 seconds) It refers to this in build-impl.xml: target depends=init name=library-inclusion-in-archive unless=dist.ear.dir copyfiles files=${file.reference.winzipaes-20100321.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1-sources.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.javax.servlet.jsp.jstl-api-1.2.1.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${file.reference.jstl-1.2.jar} todir=${build.web.dir}/WEB-INF/lib/ copyfiles files=${libs.JSP121.classpath} todir=${build.web.dir}/WEB-INF/lib/ /target I manually added the javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar to the NetBeans library and the Project library. The winzip jar is found. The jsp jars are not found. Am I reading this correctly? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org signature.asc Description: This is a digitally signed message part
RE: Project will not build
From: Cotton, Joseph B [mailto:bcot...@dpscs.state.md.us] Subject: RE: Project will not build Isnt /WEB-INF/lib a Tomcat folder? Not really. It's usage is defined in the servlet spec; the Tomcat doc avoids duplicating information from the spec, since that's required reading before embarking on a servlet project. Which leads to my other question, if I make a backup of the folders, why didn't just copying the the folders back in fix it? There seems to be multiple places to configure... Again, you're asking NetBeans questions, not Tomcat ones. The IDEs often have ideas of their own about how to set up and configure a project, to the point that some of them completely ignore and override the configuration in the Tomcat .xml files. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Project will not build
- Original Message - From: Caldarale, Charles R chuck.caldar...@unisys.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Tuesday, July 24, 2012 6:05 PM Subject: RE: Project will not build From: Cotton, Joseph B [mailto:bcot...@dpscs.state.md.us] Subject: RE: Project will not build Isnt /WEB-INF/lib a Tomcat folder? Not really. It's usage is defined in the servlet spec; the Tomcat doc avoids duplicating information from the spec, since that's required reading before embarking on a servlet project. Which leads to my other question, if I make a backup of the folders, why didn't just copying the the folders back in fix it? There seems to be multiple places to configure... Again, you're asking NetBeans questions, not Tomcat ones. The IDEs often have ideas of their own about how to set up and configure a project, to the point that some of them completely ignore and override the configuration in the Tomcat .xml files. - Chuck In my experience, NetBeans is really good about not doing the wrong thing. 1. You define a dependency in your project on the server you've registered with the IDE NetBeans will then add all of the jars found in CATALINA_BASE. This includes not only the standard jars, but things like JDBC drivers that you've added in there. 2. Do NOT make a WEB-INF/lib in your project NetBeans will create that in the war file. If you need to add third party jars in your project, put them somewhere else and add the jars in Project-Properties-Libraries. Better yet, use Ivy or Maven . . . . NetBeans supports both. You can also add libraries / jars solely for testing, as well as adding them solely for compilation (but not packaging in the war file). 3. Netbeans offers lots of standard jars as packages (the standards.jar and taglibs.jar is one) Use those instead of copying your own around. 4. NetBeans uses startup.bat / startup.sh This means it behaves and uses setenv.bat / setenv.bat if found. Basically it's just like running Tomcat from the batch files / shell files. In short, I've found that NetBeans is quite amenable to running stock Tomcat installations. I just untar or unzip a distribution, add the appropriate manager roles and user names (NetBeans will complain if you do not), edit setenv.[bat/sh] to generate JMX, and register it with NetBeans. Log files end up where you expect, with the exception of catalina.out / catalina.[date].out, which is scrolled in two separate output windows. . . . . just my two cents. /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org