RE: jspc with taglib
my taglib entry in web.xml is as follows. it looks pretty standard to me, and i don't see where the problem is. the ant error message i'm getting back isn't saying anything about where the problem may be. taglib taglib-uri/bcs/taglib-uri taglib-location/WEB-INF/taglib.tld/taglib-location /taglib -Original Message- From: Nick Pellow [mailto:nick.pellow;mindmatics.de] Sent: Monday, October 28, 2002 6:50 AM To: Ant Users List Subject: AW: jspc with taglib -Ursprungliche Nachricht- Von: Dennis Doubleday [mailto:dennis;righthandmanager.com] No. It works for me, and my target is just: I do not suppose you are using any fully qualified taglib names are you? I am getting the following error: Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found ERROR-the file '\tools\convertUI.jsp' generated the following general exception: org.apache.jasper.JasperException: null(-1,-1) This absolute uri (http://jakarta.apache.org/taglibs/utility) cannot be resolved in either web.xml or the jar files deployed with this application Although I do have the following entry in the web.xml: taglib taglib-urihttp://jakarta.apache.org/taglibs/utility/taglib-uri taglib-location/WEB-INF/utility.tld/taglib-location /taglib Nick. jspc srcdir=${jsp.dir} destdir=${jsp.build.dir} classpathref=build.classpath include name=**/*.jsp / /jspc By the way, I should add works for me means that jsp compilation is successful, not that it achieves my goal, which is pre-compilation for deployment to Tomcat. jspc doesn't translate the files to the names Tomcat wants, so it can't use the class files anyway. -Original Message- From: Sonnek, Ryan [mailto:Ryan.Sonnek;bpc.com] Sent: Friday, October 25, 2002 4:27 PM To: 'Ant Users List' Subject: RE: jspc with taglib yes, and jspc runs just fine normally untill i decided to add a tag library to my jsp page. i only run my pages through a compiler to check for syntax errors, otherwise i normally just deploy the war file. after i added the taglibs, the tag works on the deployed war, but if i run it through jspc it fails. any ideas? -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org
RE: jspc with taglib
MORE INFO: my taglib entry in web.xml is as follows. it looks pretty standard to me, and i don't see where the problem is. the ant error message i'm getting back isn't saying anything about where the problem may be. taglib taglib-uri/bcs/taglib-uri taglib-location/WEB-INF/taglib.tld/taglib-location /taglib the jsp page that fails to compile with jspc has the following import: % taglib uri=/bcs prefix=bcs % works fine when deployed to jboss w/ jetty (my app server). i'm using jasper runtime 4.0.6, are they're any known issues, or should i update to a newer version? -Original Message- From: Nick Pellow [mailto:nick.pellow;mindmatics.de] Sent: Monday, October 28, 2002 6:50 AM To: Ant Users List Subject: AW: jspc with taglib -Ursprungliche Nachricht- Von: Dennis Doubleday [mailto:dennis;righthandmanager.com] No. It works for me, and my target is just: I do not suppose you are using any fully qualified taglib names are you? I am getting the following error: Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found ERROR-the file '\tools\convertUI.jsp' generated the following general exception: org.apache.jasper.JasperException: null(-1,-1) This absolute uri (http://jakarta.apache.org/taglibs/utility) cannot be resolved in either web.xml or the jar files deployed with this application Although I do have the following entry in the web.xml: taglib taglib-urihttp://jakarta.apache.org/taglibs/utility/taglib-uri taglib-location/WEB-INF/utility.tld/taglib-location /taglib Nick. jspc srcdir=${jsp.dir} destdir=${jsp.build.dir} classpathref=build.classpath include name=**/*.jsp / /jspc By the way, I should add works for me means that jsp compilation is successful, not that it achieves my goal, which is pre-compilation for deployment to Tomcat. jspc doesn't translate the files to the names Tomcat wants, so it can't use the class files anyway. -Original Message- From: Sonnek, Ryan [mailto:Ryan.Sonnek;bpc.com] Sent: Friday, October 25, 2002 4:27 PM To: 'Ant Users List' Subject: RE: jspc with taglib yes, and jspc runs just fine normally untill i decided to add a tag library to my jsp page. i only run my pages through a compiler to check for syntax errors, otherwise i normally just deploy the war file. after i added the taglibs, the tag works on the deployed war, but if i run it through jspc it fails. any ideas? -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org
RE: jspc with taglib
nick, are you running behind a firewall? could it be that when it parces the web.xml it's trying to access the url (http://jakarta.apache.org/taglibs/utility)? if this is the case, i don't think that my failure would be doing the same thing, since i'm not using any external urls. is it possible to set proxy settings in the build script and see if it gets a responce? just an idea.. -Original Message- From: Nick Pellow [mailto:nick.pellow;mindmatics.de] Sent: Monday, October 28, 2002 11:32 AM To: Ant Users List Subject: AW: jspc with taglib -Ursprüngliche Nachricht- MORE INFO: my taglib entry in web.xml is as follows. it looks pretty standard to me, and i don't see where the problem is. the ant error message i'm getting back isn't saying anything about where the problem may be. taglib taglib-uri/bcs/taglib-uri taglib-location/WEB-INF/taglib.tld/taglib-location /taglib the jsp page that fails to compile with jspc has the following import: % taglib uri=/bcs prefix=bcs % works fine when deployed to jboss w/ jetty (my app server). i'm using jasper runtime 4.0.6, are they're any known issues, or should i update to a newer version? No, I am using 18347 23-Sep-2002 11:22:42 org/apache/jasper/JspC.class and getting an error with the taglibs. I do not know if this is a known issue with jasper. The error I get is with a taglib directive that looks like: % taglib uri=http://jakarta.apache.org/taglibs/dbtags; prefix=sql % even though I have the follwoing entry in my web.xml. taglib taglib-urihttp://jakarta.apache.org/taglibs/dbtags/taglib-uri taglib-location/WEB-INF/dbtags.tld/taglib-location /taglib Very strange, as the jasper jspc used to work so well! Sorry I can not help. Nick -Original Message- From: Nick Pellow [mailto:nick.pellow;mindmatics.de] Sent: Monday, October 28, 2002 6:50 AM To: Ant Users List Subject: AW: jspc with taglib -Ursprungliche Nachricht- Von: Dennis Doubleday [mailto:dennis;righthandmanager.com] No. It works for me, and my target is just: I do not suppose you are using any fully qualified taglib names are you? I am getting the following error: Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: Internal Error: File /javax/servlet/resources/web-app_2_3.dtd not found ERROR-the file '\tools\convertUI.jsp' generated the following general exception: org.apache.jasper.JasperException: null(-1,-1) This absolute uri (http://jakarta.apache.org/taglibs/utility) cannot be resolved in either web.xml or the jar files deployed with this application Although I do have the following entry in the web.xml: taglib taglib-urihttp://jakarta.apache.org/taglibs/utility/taglib-uri taglib-location/WEB-INF/utility.tld/taglib-location /taglib Nick. jspc srcdir=${jsp.dir} destdir=${jsp.build.dir} classpathref=build.classpath include name=**/*.jsp / /jspc By the way, I should add works for me means that jsp compilation is successful, not that it achieves my goal, which is pre-compilation for deployment to Tomcat. jspc doesn't translate the files to the names Tomcat wants, so it can't use the class files anyway. -Original Message- From: Sonnek, Ryan [mailto:Ryan.Sonnek;bpc.com] Sent: Friday, October 25, 2002 4:27 PM To: 'Ant Users List' Subject: RE: jspc with taglib yes, and jspc runs just fine normally untill i decided to add a tag library to my jsp page. i only run my pages through a compiler to check for syntax errors, otherwise i normally just deploy the war file. after i added the taglibs, the tag works on the deployed war, but if i run it through jspc it fails. any ideas? -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org
RE: jspc with taglib
Make sure the .tld file for taglib is in the WEB-INF directory of your build environment. -Original Message- From: Sonnek, Ryan [mailto:Ryan.Sonnek;bpc.com] Sent: Friday, October 25, 2002 12:06 PM To: '[EMAIL PROTECTED]' Subject: jspc with taglib i've been working with the jspc task for quite some time, and i've decided to try using tag libraries. now, when i compile a page with a %@ taglib x % jspc fails, but with no errors. the page works fine with the simple tag without doing a jspc, but has anyone worked with taglib's and used the jspc task? Ryan J. Sonnek Brown Printing Company J2EE Application Developer 507.835.0803 mailto:ryan.sonnek;bpc.com -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org
RE: jspc with taglib
right. i've got the taglib.tld file in the WEB-INF directory when i'm running the jspc task. i'm building my war file first, then extracting it to perform the jspc. here's how i'm executing it: jspc destdir=temp/jsp srcdir=temp/war verbose=${project.verbose} classpath refid=project.class.path / include name=**/*.jsp / /jspc temp -jsp (compile to here) -war (extract war here) -*.jsp -WEB-INF -taglib.tld -web.xml do i need to force taglib.tld to be in the classpath? what would be the best way to do this? -Original Message- From: Dennis Doubleday [mailto:dennis;righthandmanager.com] Sent: Friday, October 25, 2002 11:55 AM To: 'Ant Users List' Subject: RE: jspc with taglib Make sure the .tld file for taglib is in the WEB-INF directory of your build environment. -Original Message- From: Sonnek, Ryan [mailto:Ryan.Sonnek;bpc.com] Sent: Friday, October 25, 2002 12:06 PM To: '[EMAIL PROTECTED]' Subject: jspc with taglib i've been working with the jspc task for quite some time, and i've decided to try using tag libraries. now, when i compile a page with a %@ taglib x % jspc fails, but with no errors. the page works fine with the simple tag without doing a jspc, but has anyone worked with taglib's and used the jspc task? Ryan J. Sonnek Brown Printing Company J2EE Application Developer 507.835.0803 mailto:ryan.sonnek;bpc.com -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org
RE: jspc with taglib
No. It works for me, and my target is just: jspc srcdir=${jsp.dir} destdir=${jsp.build.dir} classpathref=build.classpath include name=**/*.jsp / /jspc By the way, I should add works for me means that jsp compilation is successful, not that it achieves my goal, which is pre-compilation for deployment to Tomcat. jspc doesn't translate the files to the names Tomcat wants, so it can't use the class files anyway. -Original Message- From: Sonnek, Ryan [mailto:Ryan.Sonnek;bpc.com] Sent: Friday, October 25, 2002 4:27 PM To: 'Ant Users List' Subject: RE: jspc with taglib yes, and jspc runs just fine normally untill i decided to add a tag library to my jsp page. i only run my pages through a compiler to check for syntax errors, otherwise i normally just deploy the war file. after i added the taglibs, the tag works on the deployed war, but if i run it through jspc it fails. any ideas? -- To unsubscribe, e-mail: mailto:ant-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:ant-user-help;jakarta.apache.org