tomee不会从日食开始

时间:2019-06-05 16:21:12

标签: java eclipse tomee

我从https://tomee.apache.org/安装了apache-tomee-plume-7.1.0

我使用安装工具从https://www.eclipse.org/安装了eclipse-jee。

在eclipse中,由于eclipse告诉我这是已安装的版本,所以我添加了新的tomcat v8.5服务器。

从Eclipse中启动服务器时,出现如下错误消息:

#include <string>
#include <cstring>
#include <iostream>
#include <stdlib.h>

void functoupper(char *myString)
{
    int i=0;
    char z;
    do {
        z= myString[i];
        myString[i]=toupper(z);
        ++i;
    } while(myString[i]!=0);
}

int main() {

    std::string name;

    std::cout << "Please, enter your full name in small caps: ";
    std::getline (std::cin,name);
    const char *myString = name.c_str();
    std::cout << "Hello, " << functoupper(myString) << "!\n";

    return 0;   
}

在控制台中显示:

'Starting tomcat v8.5 Server at localhost' has encountered a problem.
Server Tomcat v8.5 Server at localhost failed to start.

还有更多错误,但是我认为NoClassDefFoundError可能是主要问题...对吗? 任何帮助表示赞赏。

2 个答案:

答案 0 :(得分:1)

我最终使用了另一个tomee版本。 切换至版本:apache-tomee-plume-8.0.0-M3 这解决了我的问题。

答案 1 :(得分:0)

这两个版本的TomEE,都是Apache TomEE plume 8.0.0-M3和Apache Tomee plume 7.1.0,它似乎没有错误运行,无论是从提示符还是从Eclipse插件启动。但是,请尝试将它们解压缩到名称中不包含空格字符的目录中。

相关问题