Discussion:
Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
Karen Goh
2018-09-09 05:08:54 UTC
Permalink
Hi,

I would like to seek advice how to tackle the above problem.

What happened is that I changed my Eclipse to Photon and when I imported my project into workspace I was told that everything will be upgraded to which I replied ok.

After running my web app serveral times, I sort of lost the steps to debug my app.

And before I can test out my web app further, the JVM configuration under run configuration is all GONE....

The error message shown is : Error: Could not find or load main class org.apache.catalina.startup.Bootstrap

My system setting :

Tomcat with JDK 1.8.05
Tomcat 8.0 running on Eclipse Oxygen with upgraded
workspace from Eclipse Photon
Windows 10

I attempted the below URL solution but it is still giving me the above error.

https://stackoverflow.com/questions/29196994/run-configuration-missing-arguments-tab

Please help me how to restore the JVM configuration.

Tks !

Karen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Karen Goh
2018-09-11 04:46:21 UTC
Permalink
Hi,

I would like to add in further information about above problem and I hope someone can tell me the solution to make it work again.

Please see image as per the latest error I am getting:

https://ibb.co/eR1cep

I'd also like to add that I have deleted the .project folder in Eclipse and so I am not sure if this has cause all the havoc I am experiencing now.

Tks & rgds,
Karen
Subject: Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
Date: Sunday, September 9, 2018, 1:08 PM
Hi,
I would like to seek advice how to
tackle the above problem.
What happened is that I changed my
Eclipse to Photon and when I imported my project into
workspace I was told that everything will be upgraded to
which I replied ok.
After running my web app serveral
times, I sort of lost the steps to debug my app.
And before I can test out my web app
further, the JVM configuration under run configuration is
all GONE....
Could not find or load main class
org.apache.catalina.startup.Bootstrap
Tomcat with JDK 1.8.05
Tomcat 8.0 running on Eclipse Oxygen
with upgraded
workspace from Eclipse Photon
Windows 10
I attempted the below URL solution but
it is still giving me the above error.
https://stackoverflow.com/questions/29196994/run-configuration-missing-arguments-tab
Please help me how to restore the JVM
configuration.
Tks !
Karen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Burghard Britzke
2018-09-11 05:09:49 UTC
Permalink
That might not be be a Tomcat problem. Just import your project files into a new Eclipse project to regain a .project file. But this will probably not fix your issue. To fix it, you have to define a new „Runtime Environment“ and a new server in Eclipse (see Window->Preferences->Server->Runtime Environments. To be sure download the Tomcat distribution again before defining it in Eclipse.
--
Gruß
burghard.britzke
https://britzke.berlin/
Post by Karen Goh
Hi,
I would like to add in further information about above problem and I hope someone can tell me the solution to make it work again.
https://xxxxxxxxx
I'd also like to add that I have deleted the .project folder in Eclipse and so I am not sure if this has cause all the havoc I am experiencing now.
Tks & rgds,
Karen
Subject: Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
Date: Sunday, September 9, 2018, 1:08 PM
Hi,
I would like to seek advice how to
tackle the above problem.
What happened is that I changed my
Eclipse to Photon and when I imported my project into
workspace I was told that everything will be upgraded to
which I replied ok.
After running my web app serveral
times, I sort of lost the steps to debug my app.
And before I can test out my web app
further, the JVM configuration under run configuration is
all GONE....
Could not find or load main class
org.apache.catalina.startup.Bootstrap
Tomcat with JDK 1.8.05
Tomcat 8.0 running on Eclipse Oxygen
with upgraded
workspace from Eclipse Photon
Windows 10
I attempted the below URL solution but
it is still giving me the above error.
https://stackoverflow.com/questions/29196994/run-configuration-missing-arguments-tab
Please help me how to restore the JVM
configuration.
Tks !
Karen
---------------------------------------------------------------------
Igal Sapir
2018-09-12 15:31:35 UTC
Permalink
Karen,
Post by Karen Goh
Hi,
I would like to add in further information about above problem and I hope
someone can tell me the solution to make it work again.
https://ibb.co/eR1cep
I'd also like to add that I have deleted the .project folder in Eclipse
and so I am not sure if this has cause all the havoc I am experiencing now.
Is your runtime directory set correctly?

See for example the warning in the screenshot that you posted:
"Problem with directory C:\Prog...\Apache\apache-tomcat-8.0.27\lib EXISTS:
FALSE"
Post by Karen Goh
Tks & rgds,
Karen
Subject: Error: Could not find or load main class
org.apache.catalina.startup.Bootstrap
Date: Sunday, September 9, 2018, 1:08 PM
Hi,
I would like to seek advice how to
tackle the above problem.
What happened is that I changed my
Eclipse to Photon and when I imported my project into
workspace I was told that everything will be upgraded to
which I replied ok.
After running my web app serveral
times, I sort of lost the steps to debug my app.
And before I can test out my web app
further, the JVM configuration under run configuration is
all GONE....
Could not find or load main class
org.apache.catalina.startup.Bootstrap
Tomcat with JDK 1.8.05
Tomcat 8.0 running on Eclipse Oxygen
with upgraded
workspace from Eclipse Photon
Windows 10
I attempted the below URL solution but
it is still giving me the above error.
https://stackoverflow.com/questions/29196994/run-configuration-missing-
arguments-tab
Please help me how to restore the JVM
configuration.
Tks !
Karen
---------------------------------------------------------------------
Karen Goh
2018-09-13 04:43:50 UTC
Permalink
--------------------------------------------
On Wed, 9/12/18, Igal Sapir <***@lucee.org> wrote:

Subject: Re: Fw: Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
To: "Tomcat Users List" <***@tomcat.apache.org>, "Karen Goh" <***@yahoo.com>
Date: Wednesday, September 12, 2018, 11:31 PM

Karen,

On Mon, Sep 10, 2018 at 9:46 PM, Karen Goh
<***@yahoo.com.invalid>
wrote:
Hi,
Post by Karen Goh
I would like
to add in further information about above problem and I
hope
Post by Karen Goh
someone can tell me the solution
to make it work again.
Post by Karen Goh
Please see image as per the latest error I
https://ibb.co/eR1cep
I'd also like to
add that I have deleted the .project folder in Eclipse
Post by Karen Goh
and so I am not sure if this has cause all
the havoc I am experiencing now.
Is your runtime directory set
correctly?


Hi Igal, I think you are spot-on my problem. Tks. Thanks to Burghard also for suggesting re-importing the project.

I just since corrected the directory address inside my run configuration as follows ;

-Dcatalina.base="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4" -Dcatalina.home="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4" -Dwtp.deploy="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\webapps" -Djava.endorsed.dirs="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\endorsed"

-agentlib:jdwp=transport=dt_socket,address=8006, server=y,suspend=n

Now, I am not sure what this address is referring to and I just can't find the explanation on the internet.
Cos what happened is that Tomcat is giving me errors all my ports are being used and so I have altered it as follows :

Tomcat admin port 8006
HTTP/1.1 8082
AJP/1.3 8010

Please let me know if address should be changed to 8006

Cos now I got this latest error :(


ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]

And I can't do make Tomcat switch to Debug mode even though I have followed what you guys have taught me the last time.



See for example
the warning in the screenshot that you posted:
"Problem with directory
C:\Prog...\Apache\apache-tomcat-8.0.27\lib EXISTS:
FALSE"
Post by Karen Goh
Tks & rgds,
Karen
Subject: Error: Could not find or
load main class
org.apache.catalina.startup.Bootstrap
Post by Karen Goh
Date: Sunday, September 9, 2018, 1:08
PM
Post by Karen Goh
Hi,
I would like to seek advice
how to
Post by Karen Goh
tackle the above
problem.
What happened is that I changed my
Eclipse to Photon and when I imported my project into
Post by Karen Goh
workspace I was told that everything
will be upgraded to
Post by Karen Goh
which I
replied ok.
Post by Karen Goh
After running my web app serveral
times, I sort of lost the steps to debug my app.
And before
I can test out my web app
Post by Karen Goh
further,
the JVM configuration under run configuration is
Post by Karen Goh
all GONE....
Could not find or load main
class
org.apache.catalina.startup.Bootstrap
Post by Karen Goh
Tomcat with
JDK 1.8.05
Post by Karen Goh
Tomcat 8.0 running on
Eclipse Oxygen
Post by Karen Goh
with upgraded
workspace from Eclipse Photon
Windows 10
I attempted the below URL
solution but
Post by Karen Goh
it is still giving me
the above error.
Post by Karen Goh
https://stackoverflow.com/questions/29196994/run-configuration-missing-
arguments-tab
Please help me how to restore the
JVM
Post by Karen Goh
configuration.
Tks !
Karen
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Igal Sapir
2018-09-13 06:15:53 UTC
Permalink
Karen,
Post by Karen Goh
Hi Igal, I think you are spot-on my problem. Tks. Thanks to Burghard also for suggesting re-importing the project.
I just since corrected the directory address inside my run configuration as follows ;
-Dcatalina.base="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4" -Dcatalina.home="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4" -Dwtp.deploy="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\webapps" -Djava.endorsed.dirs="C:\Program Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\endorsed"
-agentlib:jdwp=transport=dt_socket,address=8006, server=y,suspend=n
Now, I am not sure what this address is referring to and I just can't find the explanation on the internet.
Tomcat admin port 8006
HTTP/1.1 8082
AJP/1.3 8010
Please let me know if address should be changed to 8006
Cos now I got this latest error :(
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [debugInit.c:750]
And I can't do make Tomcat switch to Debug mode even though I have followed what you guys have taught me the last time.
No. "8006" is not a valid address, it's just the port. If you want to use port 8006 on localhost then you need to use "localhost:8006". The -agentlib value therefore should be like so:

-agentlib:jdwp=transport=dt_socket,address=localhost:8006,server=y,suspend=n

But you might be better off using the environment variable

JPDA_ADDRESS=localhost:8006

Since your other values are set to defaults.

HTH,

Igal



---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Igal Sapir
2018-09-13 06:34:19 UTC
Permalink
Karen,
Post by Igal Sapir
Karen,
  Hi Igal, I think you are spot-on my problem. Tks.  Thanks to
Burghard also for suggesting re-importing the project.
I just since corrected the directory address inside my run
configuration as follows ;
-Dcatalina.base="C:\Program
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4"
-Dcatalina.home="C:\Program
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4"
-Dwtp.deploy="C:\Program
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\webapps"
-Djava.endorsed.dirs="C:\Program
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\endorsed"
-agentlib:jdwp=transport=dt_socket,address=8006, server=y,suspend=n
Now, I am not sure what this address is referring to and I just can't
find the explanation on the internet.
Cos what happened is that Tomcat is giving me errors all my ports are
Tomcat admin port 8006
HTTP/1.1   8082
AJP/1.3 8010
Please let me know if address should be changed to 8006
Cos now I got this latest error :(
ERROR: transport error 202: connect failed: Connection refused
ERROR: JDWP Transport dt_socket failed to initialize,
TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports
initialized [debugInit.c:750]
And I can't do make Tomcat switch to Debug mode even though I have
followed what you guys have taught me the last time.
No.  "8006" is not a valid address, it's just the port.  If you want
to use port 8006 on localhost then you need to use "localhost:8006". 
-agentlib:jdwp=transport=dt_socket,address=localhost:8006,server=y,suspend=n
But you might be better off using the environment variable
    JPDA_ADDRESS=localhost:8006
A small clarification/correction:

The environment variable above will work if you pass the `jpda` command
to catalina.bat.  If you are not doing that then you need to specify the
`-agentlib` argument explicitely.

Igal



---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Karen Goh
2018-09-15 04:57:39 UTC
Permalink
--------------------------------------------
On Thu, 9/13/18, Igal Sapir <***@apache.org> wrote:

Subject: Re: Fw: Error: Could not find or load main class org.apache.catalina.startup.Bootstrap
To: "Tomcat Users List" <***@tomcat.apache.org>, "Igal Sapir" <***@apache.org>, "Karen Goh" <***@yahoo.com>
Date: Thursday, September 13, 2018, 2:34 PM

Karen,
Post by Igal Sapir
Karen,
  Hi Igal, I think you are spot-on my
problem. Tks.  Thanks to
Post by Igal Sapir
Burghard
also for suggesting re-importing the project.
Post by Igal Sapir
I just since
corrected the directory address inside my run
Post by Igal Sapir
configuration as follows ;
-Dcatalina.base="C:\Program
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4"
Post by Igal Sapir
-Dcatalina.home="C:\Program
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4"
Post by Igal Sapir
-Dwtp.deploy="C:\Program
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\webapps"
-Djava.endorsed.dirs="C:\Program
Files\Apache\apache-tomcat-9.0.4-windows-x64\apache-tomcat-9.0.4\endorsed"
-agentlib:jdwp=transport=dt_socket,address=8006,
server=y,suspend=n
Post by Igal Sapir
Now, I am not sure what this address
is referring to and I just can't
Post by Igal Sapir
find the explanation on the
internet.
Post by Igal Sapir
Cos what happened is that
Tomcat is giving me errors all my ports are
Post by Igal Sapir
being used and so I have altered it as
follows :
Tomcat admin port 8006
Post by Igal Sapir
HTTP/1.1  
8082
Post by Igal Sapir
AJP/1.3 8010
Please let me
know if address should be changed to 8006
Post by Igal Sapir
Cos now I got
this latest error :(
transport error 202: connect failed: Connection refused
Post by Igal Sapir
ERROR: JDWP Transport dt_socket failed
to initialize,
TRANSPORT_INIT(510)
Post by Igal Sapir
JDWP exit error
AGENT_ERROR_TRANSPORT_INIT(197): No transports
Post by Igal Sapir
initialized [debugInit.c:750]
And I
can't do make Tomcat switch to Debug mode even though I
have
Post by Igal Sapir
followed what you guys have
taught me the last time.
Post by Igal Sapir
No.  "8006" is not a valid
address, it's just the port.  If you want
Post by Igal Sapir
to use port 8006 on localhost then you
need to use "localhost:8006". 
Post by Igal Sapir
The -agentlib value therefore should be
like so:
-agentlib:jdwp=transport=dt_socket,address=localhost:8006,server=y,suspend=n
Post by Igal Sapir
But you might be
better off using the environment variable
Post by Igal Sapir
   
JPDA_ADDRESS=localhost:8006

A small clarification/correction:

The environment variable above
will work if you pass the `jpda` command
to
catalina.bat.  If you are not doing that then you need to
specify the
`-agentlib` argument
explicitely.

I just found out that the User Entries where bootstrap.jar for linking Tomcat to Eclipse is missing so I added them and it is working 'ok' now.
Not sure why it is not being attached this time round, even with Maven update etc.

Now, the thing that is not working is that the VM I have to repeatedly entered it manually.

It wasn't like that in the past version Tomcat 8.5, 8 etc...

I hope you can advise me how to make it permanently there. Tks.

The web suggested that I saved it in the common tab in the run configuration Shared File but even that it is not working

Igal



---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org

Loading...