skip to Main Content

I’m trying to set up a Tomcat Server on VSC (since it couldn’t work on IntelliJ because I don’t have the ultimate edition) but I have no experience (and neither do my colleagues) with Community Server Connector. All our documentation is written for Tomcat For Java extension, but since it’s deprecated we have to use Community Server Connector. I’ve done all the necessary steps (like LDAP certificates, changes to server.xml etc) so it should be working…right?

Once I try to start the server I get
Error: Could not find or load main class FilesApache

We don’t really have a clue where we could solve this, we looked a lot online but nothing really seems to work. If someone has an idea where to look and/or what settings to change please help!

If you need more information, just leave a message

Looked over the documentation steps to see if I missed something
Tried out all (I think) of the options within the extension
Searched online for solutions
Asked colleagues but they couldn’t find it either

2

Answers


  1. First you need to install the Community Server Connectors extension.

    enter image description here

    Then Ctrl+Shift+P –> Servers: Add Local Servers....

    enter image description here

    In the pop-up explorer window, select the decompressed tomcat root directory (that is, the value of the system environment variable CATALINA_HOME).

    enter image description here

    Confirm that the information is correct and click Finish.

    enter image description here

    Select the generated war package, right-click and select Run on Server.

    enter image description here

    In the SERVERS view, right-click on the tomcat service and select Server Actions... –> Show in browser... –> http://localhost:8080/demo/.

    enter image description here

    The browser will open and display the project page.

    enter image description here

    Login or Signup to reply.
  2. in tomcat-users.xml (in your tomcat config folder) make sure you have the roles setup. adding this should solve your problem

    <tomcat-users>
      <role rolename="manager-gui" />
      <role rolename="admin" />
      <user username="admin" password="admin" roles="admin,manager-gui" />
    </tomcat-users>
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search