Re: connecting tomcat server to eclipse java ee

2023-03-10 Thread stephanie.panah
Thank you! I did not reply Sent from my T-Mobile 5G Device
 Original message From: Mark Thomas  Date: 
3/10/23  1:11 AM  (GMT-08:00) To: users@tomcat.apache.org Subject: Re: 
connecting tomcat server to eclipse java ee This idiot has been unsubscribed 
from the mailing list and blocked from re-subscribing.MarkOn 10/03/2023 03:03, 
Veliz Broncano wrote:> Hi! You are very 
pretty-To
 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.orgFor additional 
commands, e-mail: users-h...@tomcat.apache.org

Re: connecting tomcat server to eclipse java ee

2023-03-10 Thread Mark Thomas
This idiot has been unsubscribed from the mailing list and blocked from 
re-subscribing.


Mark


On 10/03/2023 03:03, Veliz Broncano wrote:

Hi! You are very pretty




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



AW: connecting tomcat server to eclipse java ee

2023-03-09 Thread Thomas Hoffmann (Speed4Trade GmbH)
Hello,

as an alternative, you can also create a normal java debug configuration with 
the main class
org.apache.catalina.startup.Bootstrap

Add all the service parameters to the tab Arguments --> VM-arguments.
As a program argument I use 
-config "\server.xml" start

Add the needed Tomcat jars to the dependencies.

Greetings, Thomas

> -Ursprüngliche Nachricht-
> Von: JIM HENK 
> Gesendet: Freitag, 10. März 2023 07:58
> An: Tomcat Users List 
> Betreff: Re: connecting tomcat server to eclipse java ee
> 
> Well….
> 
> When you see that message, Eclipse has gone through it’s table of Tomcat
> version possibilities known at the time your version of Eclipse was published,
> and hasn't found it.  Must’ve come *after*.
> 
> Therefore, The version of Eclipse you need to use has got to have been 
> released
> *after* the version of Tomcat that you’ve got installed.  That way, it will 
> have
> that version of Tomcat in it’s table of known Tomcat versions it can choose
> from.
> 
> Folks, do you concur, or am I wrong here?
> 
>- Jim Henk
> 
> > On Mar 9, 2023, at 6:36 PM, Stephanie Panah
>  wrote:
> >
> > Help please. I have installed: Java EE, Eclipse and Tomcat.
> > When I try to connect the server, I encounter:
> > Unknown version of Tomcat was specified.
> > I am looking all over. please help
> >
> > Java EE for web developers
> > C:\Users\steph> java -fullversion
> > java full version "17.0.6+9-LTS-190"
> >
> > and
> > Eclipse IDE for Enterprise Java and Web Developers
> > Version: 2022-12 (4.26.0)
> > Build id: 20221201-1913
> >
> > and
> > http://localhost:8080/
> > Apache Tomcat/10.1.7
> > If you're seeing this, you've successfully installed Tomcat.
> > Congratulations!
> > C:\Program Files\Apache Software Foundation\Tomcat 10.1 and Tomcat is
> > running in Services
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org



Re: connecting tomcat server to eclipse java ee

2023-03-09 Thread JIM HENK
Well….

When you see that message, Eclipse has gone through it’s table of Tomcat 
version possibilities known at the time your version of Eclipse was published, 
and hasn't found it.  Must’ve come *after*.

Therefore, The version of Eclipse you need to use has got to have been released 
*after* the version of Tomcat that you’ve got installed.  That way, it will 
have that version of Tomcat in it’s table of known Tomcat versions it can 
choose from.

Folks, do you concur, or am I wrong here?

   - Jim Henk

> On Mar 9, 2023, at 6:36 PM, Stephanie Panah  wrote:
> 
> Help please. I have installed: Java EE, Eclipse and Tomcat.
> When I try to connect the server, I encounter:
> Unknown version of Tomcat was specified.
> I am looking all over. please help
> 
> Java EE for web developers
> C:\Users\steph> java -fullversion
> java full version "17.0.6+9-LTS-190"
> 
> and
> Eclipse IDE for Enterprise Java and Web Developers
> Version: 2022-12 (4.26.0)
> Build id: 20221201-1913
> 
> and
> http://localhost:8080/
> Apache Tomcat/10.1.7
> If you're seeing this, you've successfully installed Tomcat.
> Congratulations!
> C:\Program Files\Apache Software Foundation\Tomcat 10.1
> and Tomcat is running in Services


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



Re: connecting tomcat server to eclipse java ee

2023-03-09 Thread Mark Eggers

Stephanie,

On 3/9/2023 7:06 PM, Stephanie Panah wrote:

I was able to resolve the issue. I found:

https://stackoverflow.com/questions/62764029/unknown-version-of-tomcat-was-specified-with-tomcat-9-0-37
--you need to open the folder once
--It will ask you for permission to enter after which its contents will be
visible to you as well as Eclipse
--after setting up and installing Tomcat, open the folder & then try
connecting from Eclipse
--Instead of changing permissions, try this

I had to change permissions, and that took some jiggling, but I can open
and access the Tomcat folder, now

You may wish to add this to your documentation

And now, when I tried to start the Tomcat server from Eclipse (even though
it is running in Services)
I am seeing: The server cannot be started because one or more of the ports
are invalid. Open the server editor and correct the invalid ports.
I set the admin port to 8005.

After more searching, I stopped the Tomcat server in Services and tried to
start in eclipse.
omgosh, it worked. good grief.

and, thank you,
Stephanie





On Thu, Mar 9, 2023 at 6:36 PM Stephanie Panah 
wrote:



Help please. I have installed: Java EE, Eclipse and Tomcat.
When I try to connect the server, I encounter:
Unknown version of Tomcat was specified.
I am looking all over. please help

Java EE for web developers
C:\Users\steph> java -fullversion
java full version "17.0.6+9-LTS-190"

and
Eclipse IDE for Enterprise Java and Web Developers
Version: 2022-12 (4.26.0)
Build id: 20221201-1913

and
http://localhost:8080/
Apache Tomcat/10.1.7
If you're seeing this, you've successfully installed Tomcat.
Congratulations!
C:\Program Files\Apache Software Foundation\Tomcat 10.1
and Tomcat is running in Services









If you're doing development, you really do not want to run Tomcat as a 
service.


1. Download the appropriate zip file from tomcat.apache.org
2. Unzip it in a place that you have R/W access
3. Add the runtime to Eclipse

in Window->Preferences->Server->Runtime Environments
a. click on the Add button
b. open up the Apache folder
c. browse to the version of Tomcat that you want
d. select it and click on the Next button

e. click on the Browse button and browse to where you unzipped Apache Tomcat
f. select the folder, leave the default names as is
g. click finish

Now, you'll need to create a new server based on the default runtime. 
This is handy, because you can have several servers based on the default 
runtime. You can run them on different ports, have one set up for 
debugging, choose different JREs, etc.


1. Go to Window->Show View
2. Select Other
3. Type in Server in the search text
4. Select Servers
5. Click on the Open button

It will complain that you have no servers configured. I know, you're 
going why? I configured a server runtime environment, so why no server. 
That's because you can have several servers based on the same runtime 
(see above).


So:

a. create a new server - opens up a Define a New Server dialogue.
b. open the Apache folder, and select the desired Tomcat version (same 
as before)

c. give it a unique name in Server name: field
d. The server runtime environment should be populated with the one added 
above

e. click on the Next button
f. this will show you a list of projects to add - since you don't have 
any, just click Finish


Now you should see a new line in the Servers window that describes your 
server. If you double-click on the line, you'll get a nice configuration 
screen.


There are lots of things to tweak. However, you should note the following:

Server Path: .metadata\.plugins\org.eclipse.wst.server.core\tmp0

If you have more than one server, they'll be located in tmp1, tmp2, etc.

If you need to change anything besides the ports for your Tomcat server, 
create the same directory structure that you see in Tomcat under the 
tmpN directory:


bin
conf
lib
logs
temp
webapps
work

Note, you may only need to create what you need, and probably not 
webapps. It's been a while, and I'm a NetBeans person, not an Eclipse 
person.


You can add things like database drivers in the lib subdirectory. You 
should be able to see logs in the logs directory. I recommend using 
log4j2 in your applications (along with commons-logging) and log to the 
${ sys:catalina.base}/logs directory.


You can also modify the launch configuration and add the database driver 
jar that way:


a. click on Open launch configuration
b. select the Classpath tab
c. click on User Entries
d. Click on the Add External JARS.. button
f. Browse to the JAR containing the database driver and add it

You can now start, stop, and control whether or not the Tomcat server is 
launched in debug mode, all from the IDE.


I hope this is not overwhelming. I worked through some of these while 
writing this up, since I'm an Apache NetBeans person. I don't want to 
get into an IDE war, but I just like NetBeans better.


. . . . just my two cents
/mde/




Re: connecting tomcat server to eclipse java ee

2023-03-09 Thread Stephanie Panah
I was able to resolve the issue. I found:

https://stackoverflow.com/questions/62764029/unknown-version-of-tomcat-was-specified-with-tomcat-9-0-37
--you need to open the folder once
--It will ask you for permission to enter after which its contents will be
visible to you as well as Eclipse
--after setting up and installing Tomcat, open the folder & then try
connecting from Eclipse
--Instead of changing permissions, try this

I had to change permissions, and that took some jiggling, but I can open
and access the Tomcat folder, now

You may wish to add this to your documentation

And now, when I tried to start the Tomcat server from Eclipse (even though
it is running in Services)
I am seeing: The server cannot be started because one or more of the ports
are invalid. Open the server editor and correct the invalid ports.
I set the admin port to 8005.

After more searching, I stopped the Tomcat server in Services and tried to
start in eclipse.
omgosh, it worked. good grief.

and, thank you,
Stephanie





On Thu, Mar 9, 2023 at 6:36 PM Stephanie Panah 
wrote:

>
> Help please. I have installed: Java EE, Eclipse and Tomcat.
> When I try to connect the server, I encounter:
> Unknown version of Tomcat was specified.
> I am looking all over. please help
>
> Java EE for web developers
> C:\Users\steph> java -fullversion
> java full version "17.0.6+9-LTS-190"
>
> and
> Eclipse IDE for Enterprise Java and Web Developers
> Version: 2022-12 (4.26.0)
> Build id: 20221201-1913
>
> and
> http://localhost:8080/
> Apache Tomcat/10.1.7
> If you're seeing this, you've successfully installed Tomcat.
> Congratulations!
> C:\Program Files\Apache Software Foundation\Tomcat 10.1
> and Tomcat is running in Services
>
>
>
>
>


Re: connecting tomcat server to eclipse java ee

2023-03-09 Thread Veliz Broncano
Hi! You are very pretty

On Thu, Mar 9, 2023, 9:37 PM Stephanie Panah 
wrote:

> Help please. I have installed: Java EE, Eclipse and Tomcat.
> When I try to connect the server, I encounter:
> Unknown version of Tomcat was specified.
> I am looking all over. please help
>
> Java EE for web developers
> C:\Users\steph> java -fullversion
> java full version "17.0.6+9-LTS-190"
>
> and
> Eclipse IDE for Enterprise Java and Web Developers
> Version: 2022-12 (4.26.0)
> Build id: 20221201-1913
>
> and
> http://localhost:8080/
> Apache Tomcat/10.1.7
> If you're seeing this, you've successfully installed Tomcat.
> Congratulations!
> C:\Program Files\Apache Software Foundation\Tomcat 10.1
> and Tomcat is running in Services
>


connecting tomcat server to eclipse java ee

2023-03-09 Thread Stephanie Panah
Help please. I have installed: Java EE, Eclipse and Tomcat.
When I try to connect the server, I encounter:
Unknown version of Tomcat was specified.
I am looking all over. please help

Java EE for web developers
C:\Users\steph> java -fullversion
java full version "17.0.6+9-LTS-190"

and
Eclipse IDE for Enterprise Java and Web Developers
Version: 2022-12 (4.26.0)
Build id: 20221201-1913

and
http://localhost:8080/
Apache Tomcat/10.1.7
If you're seeing this, you've successfully installed Tomcat.
Congratulations!
C:\Program Files\Apache Software Foundation\Tomcat 10.1
and Tomcat is running in Services