Projects tigase _server server-core Issues #1393
can not open http://localhost:8080 (#1393)
Unknown opened 5 years ago

I run it in eclipse, the console output "Please setup server at http://localhost:8080/" , but i can't open http://localhost:8080 , use command netstat -ano | findstr "8080" , not found port 8080, Is the configuration wrong?

Unknown commented 5 years ago

Do you have all dependencies in your project? Especially https://github.com/tigase/tigase-http-api ?

I'd recommend using complete release from https://github.com/tigase/tigase-server/releases/tag/tigase-server-8.0.0 ( -dist-max package) and use binaries from there.

Alternatively, if you use maven, use same list that use in generating distribution package (https://github.com/tigase/tigase-server-distribution/blob/master/pom.xml#L761)

Unknown commented 4 years ago

@lmdegit

My IDE: Intellij IDEA My JDK: 11.0.9

As the woj-tek said, I use the pom: https://github.com/tigase/tigase-server-distribution/blob/master/pom.xml#L761, but I got some error when I run the XmppServer, java.lang.NoClassDefFoundError: groovy/lang/GroovyObject. So I modified the POM file with:

 <dependency>
    <groupId>org.codehaus.groovy</groupId>
    <artifactId>groovy-all</artifactId>
    <version>3.0.0</version>
    <type>pom</type>
 </dependency>

and

 <exclusions>
      <exclusion>
          <groupId>org.codehaus.groovy</groupId>
          <artifactId>groovy</artifactId>
      </exclusion>
    </exclusions>

I access the http://localhost:8080 successful.

By the way, you must make sure you have all dependencies in your project. If you are not the user of https://maven.pkg.github.com, see these links before you run mvn clean install:

https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token https://docs.github.com/en/enterprise-server@2.22/packages/guides/configuring-apache-maven-for-use-with-github-packages

Hope help!

issue 1 of 1
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1393
Please wait...
Page is in error, reload to recover