You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Carles Franquesa <ca...@algorismes.cat> on 2022/12/30 16:07:35 UTC
Tomcat 10 on Windows 11 error
Hallo all,
I am trying to run a web app made with Netbeans 16 using Apache-Tomcat
10.0.27 on Windows 11. It worked fine on Windows 10 with the same tomcat.
Everything goes fine when starting the server (it takes just 625ms!) but
after that, when I try to debug the project, the next error is thrown:
[image: enter image description here] <https://i.stack.imgur.com/1eTzY.png>
Any help would be greatly appreciated!
Re: Tomcat 10 on Windows 11 error
Posted by Carles Franquesa <ca...@algorismes.cat>.
Solved, thank you very much for your help!
I don't really understand the way it has been solved, but not it works.
What I did after the new build error, and not knowing how to fix it, was to
try java 17, which kept giving the same error.
Then I went back to java 8 in the project settings, into the netbeans, and
IT WORKED!!!
I feel like Elliot from ET! It works!
Thank you very much, again.
Carles
Missatge de Carles Franquesa <ca...@algorismes.cat> del dia ds., 31 de
des. 2022 a les 1:03:
> Thanks for your answer, Shawn, deeply.
>
> Once downloaded, installed, and configured in the settings of the netbeans
> project, the error has changed, what always is very hopeful.
>
> Now, the thing is that the compiler gives this new output:
>
> [image: image.png]
>
> Tried to modify the compiler options in the project properties,
> [image: image.png]
> but, obviously, is not the place.
>
> Do you now where should I modify the compiler option Xbootclasspath?
>
> And I feel sorry for not having checked exactly "URLEncoder.encode
> TomcatManagerImpl". Trust me when I say I have been googling so far as
> extenuation...
>
> I insist, thanks for your help!
>
> Carles
>
>
>
>
>
>
>
>
>
>
>
>
>
> Missatge de Shawn Heisey <ap...@elyograg.org> del dia dv., 30 de des.
> 2022 a les 21:40:
>
>> On 12/30/22 09:07, Carles Franquesa wrote:
>> > I am trying to run a web app made with Netbeans 16 using Apache-Tomcat
>> > 10.0.27 on Windows 11. It worked fine on Windows 10 with the same
>> tomcat.
>> >
>> > Everything goes fine when starting the server (it takes just 625ms!) but
>> > after that, when I try to debug the project, the next error is thrown:
>> >
>> > [image: enter image description here] <
>> https://i.stack.imgur.com/1eTzY.png>
>>
>> Tomcat 10.0.27 only requires Java 8, but the netbeans call that is
>> failing requires at least Java 9, and apparently is not correctly marked
>> as such.
>>
>> https://github.com/apache/netbeans/issues/5134#issuecomment-1364282218
>>
>> Upgrade to Java 11 and it will probably work. Java 17 probably will
>> work too, but IMHO it's not a good idea to jump a lot of major versions
>> past the minimum requirement. Java 11 seems to do a good job with code
>> meant for Java 8.
>>
>> I don't know why it worked before with Windows 10. Maybe you had an
>> earlier version of netbeans for that.
>>
>> FYI, the link above was the first hit on a google search for
>> "URLEncoder.encode TomcatManagerImpl".
>>
>> Thanks,
>> Shawn
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
Re: Tomcat is not Coming Up
Posted by Christopher Schultz <ch...@christopherschultz.net>.
Prabu,
Please don't hijack threads. Start a new thread instead of replying to
an old message. Your question will get better visibility that way.
Keep reading.
On 1/11/23 10:19, Ganesan, Prabu wrote:
> Our Production Server Was Down, We have not Done any changes on this tomcat Level
>
> But we are seeing this Message.
> Old : INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.library.path=/usr/local/apr/lib
>
> New : INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx3072m
These command-line options are completely different. I would review all
lines with "Command line argument" in them together.
> Old : INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.6.3]
>
> New : INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.17] using APR version [1.4.8]
It appears that without "any changes" your environment has suddenly been
downgraded from tcnative 1.2.23 to tcnative 1.2.17 and from APR 1.6.3 to
APR 1.4.8.
What version of Tomcat are you trying to launch? Has that version also
changed from "Old" to "New"?
> Is That could be reason to Not coming up the server?
Maybe. We need more information.
-chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat is not Coming Up
Posted by RAVIRAJ SHAH <me...@gmail.com>.
Check your server.xml file
APR related commented config seems changed.
On Wed, 11 Jan, 2023, 20:51 Ganesan, Prabu,
<pr...@capgemini.com.invalid> wrote:
> Hi Team
>
> Need Emergency Help,
>
>
>
> Our Production Server Was Down, We have not Done any changes on this
> tomcat Level
>
> But we are seeing this Message.
>
>
>
> Old : INFO [main] org.apache.catalina.startup.VersionLoggerListener.log
> Command line argument: -Djava.library.path=/usr/local/apr/lib
>
>
>
> New : INFO [main] org.apache.catalina.startup.VersionLoggerListener.log
> Command line argument: -Xmx3072m
>
>
>
>
>
> Old : INFO [main]
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR
> based Apache Tomcat Native library [1.2.23] using APR version [1.6.3]
>
>
>
> New : INFO [main]
> org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR
> based Apache Tomcat Native library [1.2.17] using APR version [1.4.8]
>
>
>
> Is That could be reason to Not coming up the server?
>
>
> Can someone Help me Please. We are not able to Start the services.
>
>
>
> Thanks & Regards,
> _________________________________________________________
> PrabuGanesan
> Consultant|MS-Nordics
> capgemini India Pvt. Ltd. | Bangalore
> Contact: +91 8526554535
> Email: prabhu.c.ganesan@capgemini.com
>
> www.capgemini.com
> People matter, results count.
> __________________________________________________________
> Connect with Capgemini:
>
>
> Please consider the environment and do not print this email unless
> absolutely necessary.
> Capgemini encourages environmental awareness.
>
> -----Original Message-----
> From: Rob Sargent <rs...@xmission.com>
> Sent: 31 December 2022 08:33
> To: users@tomcat.apache.org
> Subject: Re: Tomcat 10 on Windows 11 error
>
> ***This mail has been sent by an external source***
>
>
> On 12/30/22 17:59, Shawn Heisey wrote:
> > On 12/30/22 17:03, Carles Franquesa wrote:
> >> Once downloaded, installed, and configured in the settings of the
> >> netbeans project, the error has changed, what always is very hopeful.
> >>
> >> Now, the thing is that the compiler gives this new output:
> >>
> >> image.png
> >>
> >> Tried to modify the compiler options in the project properties,
> >> image.png but, obviously, is not the place.
> >>
> >> Do you now where should I modify the compiler option Xbootclasspath?
> >>
> >> And I feel sorry for not having checked exactly "URLEncoder.encode
> >> TomcatManagerImpl". Trust me when I say I have been googling so far
> >> as extenuation...
> >
> > The mailing list ate your image attachments. Nobody can see them.
> >
> > You need to put the images on a file sharing site and provide a URL
> > like you did for the first message on the thread.
> >
> > The later message says you got it working, so I guess the images are
> > no longer needed.
> >
> Better yet, copy as text, paste here. You're just dealing with compiler
> output and a config file after all.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute,
> or use this message or any part thereof. If you receive this message in
> error, please notify the sender immediately and delete all copies of this
> message.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
AW: Tomcat is not Coming Up
Posted by "Thomas Hoffmann (Speed4Trade GmbH)" <Th...@speed4trade.com.INVALID>.
Hello,
> -----Ursprüngliche Nachricht-----
> Von: Ganesan, Prabu <pr...@capgemini.com.INVALID>
> Gesendet: Mittwoch, 11. Januar 2023 16:19
> An: Tomcat Users List <us...@tomcat.apache.org>
> Betreff: Tomcat is not Coming Up
>
> Hi Team
>
> Need Emergency Help,
>
>
>
> Our Production Server Was Down, We have not Done any changes on this
> tomcat Level
>
> But we are seeing this Message.
>
>
>
> Old : INFO [main] org.apache.catalina.startup.VersionLoggerListener.log
> Command line argument: -Djava.library.path=/usr/local/apr/lib
>
>
>
> New : INFO [main] org.apache.catalina.startup.VersionLoggerListener.log
> Command line argument: -Xmx3072m
>
>
>
>
>
> Old : INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent
> Loaded APR based Apache Tomcat Native library [1.2.23] using APR version
> [1.6.3]
>
>
>
> New : INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent
> Loaded APR based Apache Tomcat Native library [1.2.17] using APR version
> [1.4.8]
>
>
>
> Is That could be reason to Not coming up the server?
>
>
> Can someone Help me Please. We are not able to Start the services.
>
>
>
> Thanks & Regards,
> _________________________________________________________
There is no error visible in the provided snippet.
Usually, there are errors logged in other logfiles.
Please check every logfile in tomcat/logs folder and also check syslog for related errors.
Greetings,
Thomas
Tomcat is not Coming Up
Posted by "Ganesan, Prabu" <pr...@capgemini.com.INVALID>.
Hi Team
Need Emergency Help,
Our Production Server Was Down, We have not Done any changes on this tomcat Level
But we are seeing this Message.
Old : INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.library.path=/usr/local/apr/lib
New : INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx3072m
Old : INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.23] using APR version [1.6.3]
New : INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded APR based Apache Tomcat Native library [1.2.17] using APR version [1.4.8]
Is That could be reason to Not coming up the server?
Can someone Help me Please. We are not able to Start the services.
Thanks & Regards,
_________________________________________________________
PrabuGanesan
Consultant|MS-Nordics
capgemini India Pvt. Ltd. | Bangalore
Contact: +91 8526554535
Email: prabhu.c.ganesan@capgemini.com
www.capgemini.com
People matter, results count.
__________________________________________________________
Connect with Capgemini:
Please consider the environment and do not print this email unless absolutely necessary.
Capgemini encourages environmental awareness.
-----Original Message-----
From: Rob Sargent <rs...@xmission.com>
Sent: 31 December 2022 08:33
To: users@tomcat.apache.org
Subject: Re: Tomcat 10 on Windows 11 error
***This mail has been sent by an external source***
On 12/30/22 17:59, Shawn Heisey wrote:
> On 12/30/22 17:03, Carles Franquesa wrote:
>> Once downloaded, installed, and configured in the settings of the
>> netbeans project, the error has changed, what always is very hopeful.
>>
>> Now, the thing is that the compiler gives this new output:
>>
>> image.png
>>
>> Tried to modify the compiler options in the project properties,
>> image.png but, obviously, is not the place.
>>
>> Do you now where should I modify the compiler option Xbootclasspath?
>>
>> And I feel sorry for not having checked exactly "URLEncoder.encode
>> TomcatManagerImpl". Trust me when I say I have been googling so far
>> as extenuation...
>
> The mailing list ate your image attachments. Nobody can see them.
>
> You need to put the images on a file sharing site and provide a URL
> like you did for the first message on the thread.
>
> The later message says you got it working, so I guess the images are
> no longer needed.
>
Better yet, copy as text, paste here. You're just dealing with compiler output and a config file after all.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 10 on Windows 11 error
Posted by Carles Franquesa <ca...@algorismes.cat>.
I do not dare to uninstall Java 17 and 11 to reproduce the former error.
Anyway, I'll try to explain what has happened when migrating the
development of a Netbeans java servlet app project using Tomcat 10 from
Windows 10 to Windows 11:
Initially, a *java.lang.NoSuchMethodError: java.net.URLEncoder.encode *was
raised. At this point, Shaun Heiser, to whom I thanked so much, told me the
problem was around different versions of Java. His advice for using Java
11, and probably 17 opened the way to solve the problem. I tried first Java
11, end the error turned to be the next:
*ant -f C:\\web_reserves -Dnb.internal.action.name
<http://Dnb.internal.action.name>=rebuild -DforceRedeploy=false
-Dbrowser.context=C:\\web_reserves clean dist*
*init:undeploy-clean:deps-clean:do-clean:Deleting directory
C:\web_reserves\buildDeleting directory
C:\web_reserves\distcheck-clean:clean:init:deps-module-jar:deps-ear-jar:deps-jar:Created
dir: C:\web_reserves\build\web\WEB-INF\classesCreated dir:
C:\web_reserves\build\web\META-INFCopying 1 file to
C:\web_reserves\build\web\META-INFCopying 23 files to
C:\web_reserves\build\weblibrary-inclusion-in-archive:Copying 1 file to
C:\web_reserves\build\web\WEB-INF\liblibrary-inclusion-in-manifest:Created
dir: C:\web_reserves\build\emptyCreated dir:
C:\web_reserves\build\generated-sources\ap-source-outputCompiling 17 source
files to C:\web_reserves\build\web\WEB-INF\classeserror: option
-Xbootclasspath/p: not allowed with target 17BUILD FAILED (total time: 1
second)*
Since I didn't (and I don't yet) know where the option -Xbootclasspath/p is
set. I tried with Java 17, and nothing changed. The error was exactly the
same.
At this point, I thought to reset the Java to Java 8, as initially was.
And, miraculously, the error was away.
Is seems like older Java versions used someway newer Java methods, in such
a way that if you have installed the last Java version on your laptop, you
will safe troubles even when using previous versions.
That is all I can say. As you can see, I do not know why, but the problem
is gone and the app runs ok.
Thanks for your attention and your time.
Carles
Missatge de Rob Sargent <rs...@xmission.com> del dia ds., 31 de des.
2022 a les 4:02:
>
>
> On 12/30/22 17:59, Shawn Heisey wrote:
> > On 12/30/22 17:03, Carles Franquesa wrote:
> >> Once downloaded, installed, and configured in the settings of the
> >> netbeans project, the error has changed, what always is very hopeful.
> >>
> >> Now, the thing is that the compiler gives this new output:
> >>
> >> image.png
> >>
> >> Tried to modify the compiler options in the project properties,
> >> image.png
> >> but, obviously, is not the place.
> >>
> >> Do you now where should I modify the compiler option Xbootclasspath?
> >>
> >> And I feel sorry for not having checked exactly "URLEncoder.encode
> >> TomcatManagerImpl". Trust me when I say I have been googling so far
> >> as extenuation...
> >
> > The mailing list ate your image attachments. Nobody can see them.
> >
> > You need to put the images on a file sharing site and provide a URL
> > like you did for the first message on the thread.
> >
> > The later message says you got it working, so I guess the images are
> > no longer needed.
> >
> Better yet, copy as text, paste here. You're just dealing with compiler
> output and a config file after all.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Tomcat 10 on Windows 11 error
Posted by Rob Sargent <rs...@xmission.com>.
On 12/30/22 17:59, Shawn Heisey wrote:
> On 12/30/22 17:03, Carles Franquesa wrote:
>> Once downloaded, installed, and configured in the settings of the
>> netbeans project, the error has changed, what always is very hopeful.
>>
>> Now, the thing is that the compiler gives this new output:
>>
>> image.png
>>
>> Tried to modify the compiler options in the project properties,
>> image.png
>> but, obviously, is not the place.
>>
>> Do you now where should I modify the compiler option Xbootclasspath?
>>
>> And I feel sorry for not having checked exactly "URLEncoder.encode
>> TomcatManagerImpl". Trust me when I say I have been googling so far
>> as extenuation...
>
> The mailing list ate your image attachments. Nobody can see them.
>
> You need to put the images on a file sharing site and provide a URL
> like you did for the first message on the thread.
>
> The later message says you got it working, so I guess the images are
> no longer needed.
>
Better yet, copy as text, paste here. You're just dealing with compiler
output and a config file after all.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 10 on Windows 11 error
Posted by Shawn Heisey <ap...@elyograg.org>.
On 12/30/22 17:03, Carles Franquesa wrote:
> Once downloaded, installed, and configured in the settings of the
> netbeans project, the error has changed, what always is very hopeful.
>
> Now, the thing is that the compiler gives this new output:
>
> image.png
>
> Tried to modify the compiler options in the project properties,
> image.png
> but, obviously, is not the place.
>
> Do you now where should I modify the compiler option Xbootclasspath?
>
> And I feel sorry for not having checked exactly "URLEncoder.encode
> TomcatManagerImpl". Trust me when I say I have been googling so far as
> extenuation...
The mailing list ate your image attachments. Nobody can see them.
You need to put the images on a file sharing site and provide a URL like
you did for the first message on the thread.
The later message says you got it working, so I guess the images are no
longer needed.
Thanks,
Shawn
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 10 on Windows 11 error
Posted by Carles Franquesa <ca...@algorismes.cat>.
Thanks for your answer, Shawn, deeply.
Once downloaded, installed, and configured in the settings of the netbeans
project, the error has changed, what always is very hopeful.
Now, the thing is that the compiler gives this new output:
[image: image.png]
Tried to modify the compiler options in the project properties,
[image: image.png]
but, obviously, is not the place.
Do you now where should I modify the compiler option Xbootclasspath?
And I feel sorry for not having checked exactly "URLEncoder.encode
TomcatManagerImpl". Trust me when I say I have been googling so far as
extenuation...
I insist, thanks for your help!
Carles
Missatge de Shawn Heisey <ap...@elyograg.org> del dia dv., 30 de des. 2022
a les 21:40:
> On 12/30/22 09:07, Carles Franquesa wrote:
> > I am trying to run a web app made with Netbeans 16 using Apache-Tomcat
> > 10.0.27 on Windows 11. It worked fine on Windows 10 with the same tomcat.
> >
> > Everything goes fine when starting the server (it takes just 625ms!) but
> > after that, when I try to debug the project, the next error is thrown:
> >
> > [image: enter image description here] <
> https://i.stack.imgur.com/1eTzY.png>
>
> Tomcat 10.0.27 only requires Java 8, but the netbeans call that is
> failing requires at least Java 9, and apparently is not correctly marked
> as such.
>
> https://github.com/apache/netbeans/issues/5134#issuecomment-1364282218
>
> Upgrade to Java 11 and it will probably work. Java 17 probably will
> work too, but IMHO it's not a good idea to jump a lot of major versions
> past the minimum requirement. Java 11 seems to do a good job with code
> meant for Java 8.
>
> I don't know why it worked before with Windows 10. Maybe you had an
> earlier version of netbeans for that.
>
> FYI, the link above was the first hit on a google search for
> "URLEncoder.encode TomcatManagerImpl".
>
> Thanks,
> Shawn
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Tomcat 10 on Windows 11 error
Posted by Shawn Heisey <ap...@elyograg.org>.
On 12/30/22 09:07, Carles Franquesa wrote:
> I am trying to run a web app made with Netbeans 16 using Apache-Tomcat
> 10.0.27 on Windows 11. It worked fine on Windows 10 with the same tomcat.
>
> Everything goes fine when starting the server (it takes just 625ms!) but
> after that, when I try to debug the project, the next error is thrown:
>
> [image: enter image description here] <https://i.stack.imgur.com/1eTzY.png>
Tomcat 10.0.27 only requires Java 8, but the netbeans call that is
failing requires at least Java 9, and apparently is not correctly marked
as such.
https://github.com/apache/netbeans/issues/5134#issuecomment-1364282218
Upgrade to Java 11 and it will probably work. Java 17 probably will
work too, but IMHO it's not a good idea to jump a lot of major versions
past the minimum requirement. Java 11 seems to do a good job with code
meant for Java 8.
I don't know why it worked before with Windows 10. Maybe you had an
earlier version of netbeans for that.
FYI, the link above was the first hit on a google search for
"URLEncoder.encode TomcatManagerImpl".
Thanks,
Shawn
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org