Juan,

 

Firstly, thanks for taking an interest in my issue regarding .jsp files and possibly taking on the challenge of installing Tomcat development environment to investigate this.

 

To answer your questions from the last few emails,

 

Running Netbeans 12.6 on Windows 10 with JDK 17, although Tomcat is currently built with 11, but using either JDK yields the same issue.

 

In essence, all I was trying to do was get Tomcat to compile and deploy on my local machine

 

So I forked and cloned a copy of main from https://github.com/apache/tomcat into its own folder (C:\Community in my case, to keep it separate from my local developments) .

 

I worked through the BUILDING.txt file (Build & Test) – note ‘ant test’ takes 35 minutes on a 4 core i7 chip!

 

Then CONTRIBUTING.md (ant ide-netbeans) that creates a free form project with an nbproject folder containing a number of files, including project.xml

 

There are a few issues with the quality of the project.xml file (that I am still working through with Tomcat) but this doesn’t affect the two issues I reported to Netbeans (rogue [!] for no reason and [!] for some .jsp files.

 

I have attached the version of project.xml that I am using and you can do a text compare to see the differences.

 

You don’t need to run Tomcat to see the issues that appear in the Projects window, but if you do then

 

CMD prompt (if Windows, don’t know the UNIS equivalent)

cd output\build\bin       (from the folder you cloned Tomcat into)

catalina.bat run

 

launches Tomcat, Ctrl-C to terminate the session

 

I have successfully done all this and so if you have issues, rather than spending ages trying to resolve them, happy to share my experience.

 

John

 

From: Juan Algaba
Sent: 24 February 2022 00:32
To: John Barrow
Cc: NetBeans User Group
Subject: Re: .jsp files showing exceptions

 

Found this in the Tomcat source code

 

https://github.com/apache/tomcat/tree/main/res/ide-support/netbeans

 

¿Are these the instructions you followed?

 

On Wed, Feb 23, 2022 at 4:20 PM Juan Algaba <jalg...@colef.mx> wrote:

> 

> Also HOW, did you open the tomcat source code using netbeans? Netbeans

> as far as I'm aware, won't recognize ant projects without modification

> like it does with maven, it needs to generate an IDE-generated ant

> script (i.e. build.xml), ¿Did you use the "new project with existing

> sources"? ¿What options did you select during that wizard?

> 

> On Wed, Feb 23, 2022 at 3:57 PM Juan Algaba <jalg...@colef.mx> wrote:

> >

> > Would you mind telling us exactly what branch/commit did you clone

> > tomcat from so that people can try reproducing your issue?

> >

> > https://github.com/apache/tomcat

> >

> > Also, have you modified build.xml after cloning the project? (e.g.

> > adding <import file="nbproject/build-impl.xml"/> )

> >

> >

> > On Wed, Feb 23, 2022 at 4:13 AM John Barrow <jbarrow...@gmail.com> wrote:

> > >

> > > Hi,

> > >

> > > Similar to the previous email (sent a few minutes ago), I am working

> > > with the Tomcat project and NetBeans is reporting exceptions on a few

> > > of the .jsp files. I have attached screen shots of one (very basic)

> > > .jsp file and I can't seem to resolve the exception. I suspect that it

> > > is some sort of configuration issue in NetBeans / project definition

> > > of Tomcat. Again, Tomcat is an Ant based project.

> > >

> > > I have googled around and found very old reported issues with Eclipse

> > > lying about exceptions, but not about NetBeans and so wondering if

> > > this is something I should just ignore.

> > >

> > > I used the lightbulb at the top right-hand-side of the file to disable

> > > HTML error checking for this file but that didn't have any effect.

> > >

> > > Again, attached three screen shots of the exceptions reported. While

> > > not an expert, this 'Hello World' jsp page looks to be valid with it

> > > just including a simple string _expression_.

> > >

> > > Thanks

> > >

> > > John

> > >

> > > ---------------------------------------------------------------------

> > > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org

> > > For additional commands, e-mail: users-h...@netbeans.apache.org

> > >

> > > For further information about the NetBeans mailing lists, visit:

> > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

> >

> >

> >

> > --

> >

> > -Juan Algaba

> 

> 

> 

> --

> -Juan Algaba

 

 

 

--

-Juan Algaba

 

--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to