我有一个Jenkins服务器构建了一个Maven项目。当Jenkins构建这个项目时,$WORKSPACE下的所有构建工件都具有文件权限jenkins:jenkins。
在post步骤中,这些构建工件将被复制到/srv/myproject/,其中Tomcat实例为构建的工件提供服务。/srv/myproject/归tomcat7/tomcat7所有。
这个post步骤失败了,Jenkins报告说Failed to copy $WORKSPACE/somefile to /srv/myproject/somefile due to java.io.FileNotFoundException /s
当我找到tomcat版本时,它显示了关于tomcat的所有信息,如下所示。
./version.sh
Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat
我从Linux服务器(CentOS)中删除了几个Tomcat安装。在安装Tomcat 8之后,现在当我尝试启动Tomcat 8 (./startup.sh)时,会出现以下错误:
Cannot find /opt/apache-tomcat-7.0.56/bin/setclasspath.sh
This file is needed to run this program
似乎我还没有正确地删除以前安装的tomcat。我怎么才能让这个发挥作用。帮助。
更新
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/
我正在将sample.http从导入eclipse,使用Tomcat7作为服务器(linux平台)。它显示了几个问题,例如:
BundleActivator cannot be resolved to a type
No available bundle exports package 'javax.servlet.http'
以及由于插件依赖项未被导入而导致的几个这样的错误。(如果我尝试使用tomcat6,它可以工作)。有人能指出我应该做哪些改变才能使依赖项与Tomcat7兼容吗?
我有一个OpenSuse Linux,我安装了Tomcat7.0.52,但是当我运行startup.sh时,总是可以的。我在localhost中运行nmap,但是tomcat服务和端口没有出现。
Starting Nmap 5.21 ( http://nmap.org ) at 2016-01-21 18:09 UYST
Nmap scan report for localhost (127.0.0.1) Host is up (0.0000020s latency).
Not shown: 991 closed ports PORT
STATE SERVICE
22/tcp
我在服务器上使用putty停止tomcat服务时出错。
错误是
`[root@vps ~]# service tomcat7 stop
Shutting down Tomcat7:
Using CATALINA_BASE: /usr/tomcat7
Using CATALINA_HOME: /usr/tomcat7
Using CATALINA_TMPDIR: /usr/tomcat7/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/tomcat7/bin/bootstrap.jar
/usr/tom
我安装了tomcat7,但当我试图启动它时。它没能启动。以前,我安装了tomcat7,它运行良好,但是当我尝试在netbeans中添加tomcat7服务器时,它给了我一些Catalina或什么的错误。我找了那个解决方案,然后申请了。然后,在将tomcat7服务器添加到netbeans之后,它将不会启动。稍后,我安装了glassfish服务器。它也失败了。因此,我再次卸载tomcat7并再次尝试启动它。但现在还没有开始。
Creating config file /etc/logrotate.d/tomcat7 with new version
* Starting Tomcat servle
我有一个关于tomcat服务器的问题。操作系统- Ubuntu Server 12.04。
Echo by version.sh
Using CATALINA_BASE: /usr/share/tomcat7
Using CATALINA_HOME: /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME: /usr/lib/jvm/java-7-oracle/jre
Using CLASSPATH: /usr/share/tomcat7/bin/boot
我让tomcat7在服务器上运行,用于服务台票务系统(SysAid)。重新启动后,tomcat7服务不会启动。
在我的catalina.out文件中,当我对tomcat7进行grep时,我得到以下内容:WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false] WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [fals
我已经使用sudo apt-get install tomcat7安装了tomcat,当我尝试使用sudo /usr/share/tomcat7/bin/startup.sh启动tomcat服务器时,我得到了以下错误
Using CATALINA_BASE: /usr/share/tomcat7 Using CATALINA_HOME: /usr/share/tomcat7 Using CATALINA_TMPDIR: /usr/share/tomcat7/temp Using JRE_HOME: /usr Using CLASSPATH: /usr/shar