Mark,

My project is old, and is running on tomcat7 in production. It seems mysql
was updated on the production server, and now I cannot add data to
mysql/the application because of this error message:

Generated keys not requested. You need to specify
Statement.RETURN_GENERATED_KEYS to Statement.executeUpdate(),
Statement.executeLargeUpdate() or Connection.prepareStatement().

I need to update the java files for db access, so I need netbeans to work
with this project so I can make a new .war file and update the production
server.

I realize that I am using old stuff, but it works and I don't have time
right now to upgrade the entire site (launched in 2000). I tried running
the site on tomcat 9 when it came out, and there were too many issues to
resolve at that time, so I left it on tomcat7.

I still think there is something screwy with netbeans if it will allow a
tomcat7 server to be added, and run, but won't associate it with a project.

Thanks,

Mark





On Sun, Jan 9, 2022 at 10:39 AM Mark Eggers <its_toas...@yahoo.com.invalid>
wrote:

> Mark,
>
> What servlet specification is your project? Tomcat 7 (which is EOL BTW)
> will handle up to servlet specification 3.0 (J2EE 6 Web). Anything later
> will require a later version of Tomcat. Tomcat 9 is probably the best
> choice until you're ready to switch to the Jakarta namespace.
>
> . . . just my two cents
> /mde/
>
> On 1/9/2022 7:35 AM, Mark Phillips wrote:
> > Mark,
> >
> > I tried that. The problem is the server list in the project run
> properties
> > isn't populated with my tomcat installation. There is nothing in the list
> > to select.
> >
> > Mark
> >
> > On Fri, Jan 7, 2022 at 3:48 PM Mark Eggers <its_toas...@yahoo.com.invalid
> >
> > wrote:
> >
> >> Mark,
> >>
> >> On 1/7/2022 2:28 PM, Mark Phillips wrote:
> >>> I have the latest netbeans on Ubuntu (at least it says it is up to
> >> date). I
> >>> open an old project, and it says the tomcat server is missing. I click
> on
> >>> Resolve Missing Server, go through the steps to let netbeans know where
> >> my
> >>> tomcat 7 server is located, and click finish. I end up back at the same
> >>> place - "the target server has not been set or has been removed." If I
> go
> >>> to the Services tab, click on Apache Tomcat, and then start, tomcat
> >> starts.
> >>> I still can't get the project to associate with Tomcat. I remove the
> >> tomcat
> >>> instance from Services, restart netbeans, and the same thing happens.
> How
> >>> do I get out of this endless and unproductive loop?
> >>>
> >>> Mark
> >>>
> >>
> >> Did you change the project run properties?
> >>
> >> . . . just my two cents
> >> /mde/
> >>
> >
>
>

Reply via email to