精华内容
下载资源
问答
  • 启动Tomcat出现Using CATALINA_BASE

    千次阅读 2016-04-13 14:54:00
    有一次命令行启动Tomcat的时候,...Using CATALINA_BASE: "D:\apache-tomcat-6.0.35"Using CATALINA_HOME: "D:\apache-tomcat-6.0.35"Using CATALINA_TMPDIR: "D:\apache-tomcat-6.0.35\temp"Using JRE_HOME: "D:...

      有一次命令行启动Tomcat的时候,出现:

    Using CATALINA_BASE:   "D:\apache-tomcat-6.0.35"
    Using CATALINA_HOME: "D:\apache-tomcat-6.0.35"
    Using CATALINA_TMPDIR: "D:\apache-tomcat-6.0.35\temp"
    Using JRE_HOME: "D:\Program Files\Java\jdk1.6.0_43"
    Using CLASSPATH: "D:\apache-tomcat-6.0.35\bin\bootstrap.jar"
    D:\apache-tomcat-6.0.35\bin>

    有点诧异,平时都好好的,为什么就突然间不行了个呢?!
    原来是因为刚才打开的Eclipse调试的时候启动了Eclipse里面的Tomcat,不能同时启动两个,只能启动一个,所以把eclipse里面的Tomcat停掉然后重新双击Startup.bat重新启动就可以了。

    转载于:https://www.cnblogs.com/ismallboy/p/5387149.html

    展开全文
  • <p>When trying to configure the tomcat_service, CATALINA_BASE provided in the env_vars seems to be added in addition to the CATALINA_BASE that is using the install_path. This behavior seems to have ...
  • One of the key things I took away is setting up apache tomcat by externalizing the application deployment space with CATALINA_BASE. First off, a couple of mini-explanations: CATALINA_HOME the...

    Last year, I attended the Tomcat Expert Series Seminar sponsored by SpringSource. One of the key things I took away is setting up apache tomcat by externalizing the application deployment space with CATALINA_BASE.

    First off, a couple of mini-explanations:

    CATALINA_HOME
    the expanded (unzipped) tomcat installation
    CATALINA_BASE
    the location for a given instance.

    By default, CATALINA_BASE is set to CATALINA_HOME. This is how many use tomcat. So, why would anyone want to break it out? The key reasons are, it makes creating multiple instances much easier and it simplifies upgrading the tomcat install, and upgrade rollback is trivialized.

    Setup a Directory for CATALINA_BASE

    mkdir -p /usr/local/mywebbase/{bin,conf,logs,temp,webapps,work}

    This will give a directory structure that looks like this:

    /usr/local/mywebbase/
    |-- bin
    |-- conf
    |-- logs
    |-- temp
    |-- webapps
    `-- work
    

    Next, some files to help set stuff up.

    /usr/local/mywebbase/
    |-- bin
    |   `-- setenv.sh
    |-- conf
    |   |-- server.xml
    |   `-- web.xml
    |-- logs
    |-- temp
    |-- webapps
    `-- work
    

    What Are These Files?

    _

    The setenv.sh is there to allow setting up any environment configuration, memory for java, garbage collection, Terracotta setup, etc. Basically, instead of making edits to catalina.sh, just add whatever is needed to setenv.sh

    The server.xml file is there to configure this particular instance. For example, if you needed two tomcat instances running on two different ports, each instance would share the same CATALINA_HOME, they would have their own CATALINA_BASE directories, and the ports would be configured in each on their server.xml files.

    web.xml, this file isn't really needed (assuming, your app's web.xml defines everything). However, in the real world, just copy the one out of $CATALINA_HOME/conf to here.

    Connecting Everything Together

    The final thing to do is, create a startup script in /etc/init.d/ for each instance of tomcat. The first thing the script should do is set both CATALINA_HOME and CATALINA_BASE. CATALINA_HOME will be the same in all of the startup scripts, CATALINA_BASE will be distinct for each instance.

    Alternative to Editing the Startup Script

    If you don't want to edit the startup script, just set CATALINA_HOME, CATALINA_BASE and JAVA_HOME in the setenv.sh file. Next, copy over catalina.sh from CATALINA_HOME/bin into CATALINA_BASE/bin. The catalina.sh file will read your setenv.sh and start tomcat normally.

    Final Notes:

    Finally, war files should be deployed to the webapps directory for a given CATALINA_BASE. Also note, if you use variables in your log4j files, be sure to use ${catalina.base} instead of ${catalina.home}. Or, your log files may not show up where you expect.

    Upgrading Tomcat

    The two basic techniques to use are, either create a symlink from the actual expanded tomcat (CATALINA_HOME)
    example: ln -s /usr/local/apache-tomcat-6.0.16 /usr/local/tomcat6
    To upgrade/downgrade, stop the server, change the symbolic link, and start the server back up.

    The other method is, stop the server, edit the CATALINA_BASE variable in the startup script, and start the server.

    Either way you choose, the key is, you don't need to redeploy your application when updating the actual server.

     

    http://willcode4beer.com/ware.jsp?set=tomcat_config

    http://stackoverflow.com/questions/3090398/tomcat-catalina-base-and-catalina-home-variables

    http://blog.sina.com.cn/s/blog_48a45b950100rayz.html

     

     

    展开全文
  • idea启动项目 无法找到所打包好的工程WAR包,仔细...D:\apache-tomcat-7.0.67\bin\catalina.bat run [2015-12-24 10:17:01,766] Artifact trunk:Web exploded: Server is not connected. Deploy is not available....

    在这里插入图片描述idea启动项目 无法找到所打包好的工程WAR包,仔细查看 配置是没有问题的 在这里插入图片描述下面看一下具体的错误:

    D:\apache-tomcat-7.0.67\bin\catalina.bat run
    [2015-12-24 10:17:01,766] Artifact trunk:Web exploded: Server is not connected. Deploy is not available.
    Using CATALINA_BASE:   "C:\Users\****\.IntelliJIdea14\system\tomcat\Unnamed_CloudIPAWebServer_6"
    Using CATALINA_HOME:   "D:\apache-tomcat-7.0.67"
    Using CATALINA_TMPDIR: "D:\apache-tomcat-7.0.67\temp"
    Using JRE_HOME:        "C:\Program Files\Java\jdk1.6.0_45\jre"
    Using CLASSPATH:       "D:\apache-tomcat-7.0.67\bin\bootstrap.jar;D:\apache-tomcat-7.0.67\bin\tomcat-juli.jar"
    

    错误的重点 是在于:Using CATALINA_BASE: “C:\Users****.IntelliJIdea14\system\tomcat\Unnamed_CloudIPAWebServer_6”,这个地方 日志什么的都不贴出来了 因为 出现这个错误相比你的日志打印出来的跟我要贴出来是一样的 。
    不在多做其他啰嗦话
    网上很多的改这改那都不靠谱 亲测 都不对
    唯有 改变tomcat 版本 亲测效果直接就出来了 :比如:当前版本是8 更改成9版本 然后运行

    展开全文
  • Using CATALINA_BASE: “D:\Java\apache-tomcat-8.5.31” Using CATALINA_HOME: “D:\Java\apache-tomcat-8.5.31” Using CATALINA_TMPDIR: “D:\Java\apache-tomcat-8.5.31\temp” Using JRE_HOME: “D:\Java\...
    	在tomcat的bin目录中点击startup.bat启动时,一闪而过。
    	点击网页显示无法找到localhost:8080。
    
    	用Edit with Notapad ++打开startup.bat。在尾行加入pause。
    
    再次点击starup.bat启动。
    控制台显示
    

    D:\Java\apache-tomcat-8.5.31\bin>startup.bat
    Using CATALINA_BASE: “D:\Java\apache-tomcat-8.5.31”
    Using CATALINA_HOME: “D:\Java\apache-tomcat-8.5.31”
    Using CATALINA_TMPDIR: “D:\Java\apache-tomcat-8.5.31\temp”
    Using JRE_HOME: “D:\Java\jdk-9.0.4”
    Using CLASSPATH: “D:\Java\apache-tomcat-8.5.31\bin\bootstrap.jar;D:\Java\apache-tomcat-8.5.31\bin\tomcat-juli.jar”
    D:\Java\apache-tomcat-8.5.31\bin>

    原因是之前已在IDEA中启动过tomcat,不能同时启动两次。
    停止IDEA中tomcat,再次运行就成功了。

    展开全文
  • 这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、...
  • 这是最简单的:$ /path/to/catalina.sh versionUsing CATALINA_BASE: /usr/local/apache-tomcat-7.0.29Using CATALINA_HOME: /usr/local/apache-tomcat-7.0.29Using CATALINA_TMPDIR: /usr/local...
  • 因为我的idea安装的是在D盘的,但是启动的时候...Using CATALINA_BASE:“C:/user/…” 参考:idea启动是CTATLINA_BASE显示的是C盘 这里面还有点问题,修改idea.properties文件时要修改三个地方: 改完后重启即可 ...
  • Using CATALINA_BASE: /opt/special/tomcat_docs_7_0_42 Using CATALINA_HOME: /opt/special/tomcat_docs_7_0_42 Using CATALINA_TMPDIR: /opt/special/tomcat_docs_7_0_42/temp Using JRE_HOME: /usr/lib/jvm/jdk...
  • 一、异常现象: 二、异常原因 JAVA的堆栈设置太小 ...出现此异常之后,会引发其他...修改 TOMCAT_HOME/bin/catalina.sh,在 echo "Using CATALINA_BASE: $CATALINA_BASE"上面加入以下行: JAVA_OPTS="-serve...
  • [yeqiang@localhost apache-tomcat-7.0.73]$ sh bin/shutdown.sh Using CATALINA_BASE: /tmp/apache-tomcat-7.0.73 Using CATALINA_HOME: /tmp/apache-tomcat-7.0.73 Using CATALINA_TMPDIR: /tmp/apache-tomca...
  • Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/tomcat/temp Using JRE_HOME: /usr/java/jdk1.7.52 /usr/local/tomcat/bin/c
  • [root@mysql logs]# /usr/local/tomcat/bin/shutdown.shUsing CATALINA_BASE:/usr/local/tomcatUsing CATALINA_HOME:/usr/local/tomcatUsing CATALINA_TMPDIR:/usr/local/tomcat/tempUsing JRE_HOME:/usr/local/java...
  • Linux启动Tomcat返回JRE_HOME字段错误

    千次阅读 2017-07-31 13:47:43
    最近有朋友在启动服务器的Tomcat时,返回启动信息中JRE_HOME字段出现错误,同时Tomcat服务器...Using CATALINA_BASE: /apache-tomcat-8.5.16 Using CATALINA_HOME: /apache-tomcat-8.5.16 Using CATALINA_TMPDIR: /a
  • 问题描述通常,我们都会直接使用tomcat提供的脚本执行关闭操作,如下:# sh bin/shutdown.shUsing CATALINA_BASE: /usr/local/apache-tomcat-7.0.59Using CATALINA_HOME: /usr/local/apache-tomcat-7.0.59Using ...
  • 如将内存增加至1024M第一种: 使用startup.sh 启动tomcat的解决方法修改 TOMCAT_HOME/bin/catalina.sh在“echo "Using CATALINA_BASE: $CATALINA_BASE"”上面加入以下行:JAVA_OPTS="-server -XX:PermSize=512M -XX:...
  • 解决在linux环境下面不显示验证码的问题1、tomcat(1)需要在执行文件里面加上shell代码 unset DISPLAY(2)Tomcat中修改TOMCAT_HOME/bin/catalina.sh,在“echo "Using CATALINA_BASE: $CATALINA_BASE"”上面加入以下行...
  • Tomcat默认的Java虚拟机JVM启动内存参数大约只有64MB或者128MB,...具体设置方法为:Tomcat修改TOMCAT_HOME/bin/catalina.bat,在[echo Using CATALINA_BASE: "%CATALINA_BASE%"] 上面加入,比如:set JAVA_OPTS=...
  • 这篇文章主要介绍了JAVA内存溢出解决方案图解,文中通过...在apache-tomcat-7.0.70\bin\catalina.bat(Linux 系统则在catalina.sh) 文件下的 echo Using CATALINA_BASE: "%CATALINA_BASE%" 上面插入以下代码set JAV...
  • Using CATALINA_BASE: "D:\NetBeans\apache-tomcat-8.0.12" Using CATALINA_HOME: "D:\NetBeans\apache-tomcat-8.0.12" Using CATALINA_TMPDIR: "D:\NetBeans\apache-tomcat-8.0.12\temp" Using JRE_HOM
  • 这篇文章主要介绍了JAVA内存溢出解决方案图解,文中通过...在apache-tomcat-7.0.70\bin\catalina.bat(Linux 系统则在catalina.sh) 文件下的 echo Using CATALINA_BASE: "%CATALINA_BASE%" 上面插入以下代码set JAV...
  • 在配置测试环境时,将生产服务器的Tomcat目录打包过来后...[tomcat@gsp bin]$ ./shutdown.sh Using CATALINA_BASE: /usr/local/tomcat Using CATALINA_HOME: /usr/local/tomcat Using CATALINA_TMPDIR: /usr/local/...
  • [root@alone bin]# ./catalina.sh runUsing CATALINA_BASE: /usr/local/tomcatUsing CATALINA_HOME: /usr/local/tomcatUsing CATALINA_TMPDIR: /usr/local/tomcat/tempUsing JRE_HOME: /usrUsing CLASSPA...
  • Using CATALINA_BASE: /home/apache-tomcat-7.0.72 Using CATALINA_HOME: /home/apache-tomcat-7.0.72 Using CATALINA_TMPDIR: /home/apache-tomcat-7.0.72/temp Using JRE_HOME: /home/jdk1.7...
  • 查看Linux、tomcat、JAVA版本信息1 [root@test1 bin]# cd /usr/local/tomcat/tomcat_jdt/bin/2 [root@test1 bin]# sh version.sh3 Using CATALINA_BASE: /usr/local/tomcat/tomcat_jdt4 Using CATALINA_HOME: /usr/...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 1,075
精华内容 430
关键字:

catalina_baseusing