Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#33147 - [netbeans,tomcat6] New Web Application Wizard fails

Attached to Project: Community Packages
Opened by Marc Rechté (mrechte) - Friday, 21 December 2012, 09:12 GMT
Last edited by Guillaume ALAUX (galaux) - Monday, 14 January 2013, 11:31 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Alexander F. Rødseth (xyproto)
Guillaume ALAUX (galaux)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

Trying to create a new Web Application project using the wizard, I get:

javax.xml.transform.TransformerConfigurationException: Failed to compile stylesheet. 1 error detected.

when pressing the Finish button.


Additional info:

The third wizard step (Server and settings):
Server: Apache Tomcat
Java EE Version: JavaEE 5

I don't know if it is relevant, I found this on Google:
http://netbeans.org/bugzilla/show_bug.cgi?id=220283

* package version(s)
netbeans 7.2.1-1
jdk7-openjdk 7.u9_2.3.3-1
jre7-openjdk 7.u9_2.3.3-1
jre7-openjdk-headless 7.u9_2.3.3-1
tomcat6 6.0.36-2
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Guillaume ALAUX (galaux)
Monday, 14 January 2013, 11:31 GMT
Reason for closing:  Not a bug
Additional comments about closing:  No action taken. It works for OP and devs.
Comment by Alexander F. Rødseth (xyproto) - Sunday, 23 December 2012, 04:07 GMT
Hi!

Thanks for reporting, and thanks for reporting it upstream and including a link.
Often, Arch uses libraries that are so new that the upstream developers of an application hasn't tested with that version yet and assumes the library is broken.
I don't know for sure, but I wonder if this could be the case here.
Adding which version of libxslt and if you're using 32 or 64-bit Arch Linux might perhaps help them out.
Also if you, like me, don't have any $JAVA_HOME/lib/endorsed directory, it might give them further clues.

Thanks.
Comment by Alexander F. Rødseth (xyproto) - Thursday, 03 January 2013, 09:56 GMT
I am unable to reproduce. But, when creating a Web Application for Glassfish3, I do get this when trying to run it: java.io.IOException: Unknown repository format "null"; expected "0".

However, that is not the same error. What, exactly, are the steps to reproduce?
Comment by Alexander F. Rødseth (xyproto) - Saturday, 05 January 2013, 00:56 GMT
I'm trying to test with tomcat6 as well. Which directory do you give as server location when adding Tomcat 6?
Comment by Marc Rechté (mrechte) - Saturday, 05 January 2013, 09:36 GMT
Hello Alexander. Thanks for attending this problem.
Catalina home / base: /usr/share/tomcat6
Comment by Alexander F. Rødseth (xyproto) - Friday, 11 January 2013, 18:34 GMT
When trying to reproduce, the Wizard won't let me go to the next step at step 2 (Installation and Login Details). It says:

"The <CATALINA_BASE>/conf/server.xml can't be read."

When looking at the files in the tomcat6 package, it doesn't contain any "server.xml" file in any "conf" directory. There's only /etc/tomcat6/server.xml.

How did you get past this step?

I also see that the tomcat6 package has been updated. Could this be related?

Thanks.
Comment by Guillaume ALAUX (galaux) - Friday, 11 January 2013, 19:38 GMT
> When looking at the files in the tomcat6 package, it doesn't contain any "server.xml" file in any "conf" directory. There's only /etc/tomcat6/server.xml.
pacman -Ql tomcat6 | grep server.xml
tomcat6 /etc/tomcat6/server.xml

This file is in /etc/tomcat6 and there is a link from /usr/share/tomcat6/conf -> /etc/tomcat6

> The <CATALINA_BASE>/conf/server.xml can't be read
The server.xml is a _sensitive_ file that only root can read/write and tomcat can read.
If this is a dev environment, one could chmod it. Once I do that I can get to the next step that says something similar about /etc/tomcat-users.xml. You would need to chmod the entire /etc/tomcat6 dir.

Usually, in a developer environment, one uses a freshly unzipped tarball from apache.org. This prevents messing with a packaged distribution AND also prevents unwanted upgrade.
Comment by Guillaume ALAUX (galaux) - Friday, 11 January 2013, 20:08 GMT
@Marc: I manage to create a new webapp using the wizard with both a freshly untarred tomcat6 from apache.org AND with Arch's tomcat6-6.0.36-3 once I chmod -R me:users /etc/tomcat6.

It seems I cannot reproduce your error. Care to try from a fresh tomcat6/netbeans install?
Comment by Marc Rechté (mrechte) - Monday, 14 January 2013, 11:12 GMT
It is now working ! I only did the recent tomcat6 update... Sorry for reporting apparently a problem not related to a bug and thank you for the time you spent reproducing it. Regards
Comment by Guillaume ALAUX (galaux) - Monday, 14 January 2013, 11:30 GMT
No worries. Glad it could be solved.

Loading...