TongWeb安装

一、介绍

    上次介绍了iServer 7c在TongWEB5.0中部署。最近发布的iServer 8c(2017)即,8.1.0beta版本,新增支持在TongWEB6.0中部署,与TongWEB5.0版本中的部署略有不同。这里不再介绍新特性等,可以自己查看相关文档。

二、TongWeb安装

    请注意:winServer2008R2上TongWEB6.0(包括5.0)使用JDK8版本可能会启动失败!

2.1 在windows上安装

    这里使用winServer2008R2 Enterprise sp1
    安装包:

windows安装包

    需要先准备JVM环境,安装JDK,注意,只能使用JDK,只有JRE_HOME无法启动TongWEB。
    JDK下载:http://www.oracle.com/technetwork/java/javase/downloads/index.html
    安装JDK后配置环境变量
    新建:

JAVA_HOME:D:\Java\jdk1.7.0_80
JRE_HOME:%JAVA_HOME%\jre 或独立JRE(JRE_HOME可以不要)
CLASSPATH: .;%JAVA_HOME%\lib;%JRE_HOME%\lib

    追加:

Path:%JAVA_HOME%\bin;%JRE_HOME%\bin

    测试是否成功:

JAVA_HOME_win

    接下来,双击运行TongWEB6.0安装包,然后一直下一步,中文引导界面,就不多说了。

默认占用端口

    以上默认占用端口。
    许可:将收到的许可文件(.dat格式)放TongWEB 6.0 安装根目录即可。
    双击快捷方式或者双击TongWEB6.0\bin目录下startserver.bat批处理文件启动TongWEB:

启动

    出现server startup complete in xx ms表示启动成功。
    浏览器访问 localhost:9060/console 进入TongWEB管理控制台:

用户名密码

    默认用户名和密码均为twnt,不可更改,只能新建用户。

管理首页

2.2 Linux上安装

    Linux上安装类似windows,这里使用Ubuntu 14.04 server x64
    安装包:

Linux安装包

    安装命令:

sh Install_TW6.0.1.0_Standard_linux.bin
  • 1

    执行安装前同样需要JDK环境,同windows,解压jdk-7u80-linux-x64.tar.gz,在/etc/profile写入环境变量:

vi /etc/profile
  • 1

    在最后加入:

export JAVA_HOME=/opt/jdk1.7.0_80
export JRE_HOME=$JAVA_HOME/jre
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
  • 1
  • 2
  • 3
  • 4

    按Esc键,输入 :wq 保存退出
使上述环境变量立即生效,执行:

source /etc/profile
  • 1

    或者重启系统后生效。

    验证:

java-v-Linux

    安装TongWEB6.0:

安装-Linux

    使用 Xshell 连接Linux操作系统安装会弹出图形化安装界面:

图形界面

    字符界面按提示一直回车或输入Y就行了。

    许可:将收到的许可文件(.dat格式)放TongWEB 6.0 安装根目录即可。

    启动TongWeb,在TongWeb6/bin目录下执行:

sh startserver.sh       #前台运行
sh startservernohup.sh  #后台运行
  • 1
  • 2

    启动后访问管理控制台同windows。

 本文全文地址请点击:https://blog.csdn.net/supermapsupport/article/details/52209154?utm_source=copy

展开阅读全文

Tongweb与cxf整合问题

04-25

tongweb启动时没有出问题,访问后报错:rnjavax.servlet.ServletException: Servlet execution threw an exceptionrn at com.tongweb.webbase.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:279)rn at com.tongweb.webbase.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:95)rn at com.tongweb.webbase.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at com.tongweb.webbase.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:197)rn at filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:169)rn at com.tongweb.webbase.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:238)rn at com.tongweb.webbase.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:95)rn at com.tongweb.webbase.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at com.tongweb.webbase.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:197)rn at com.tongweb.webbase.core.ApplicationFilterChain.wrappedDoFilter(ApplicationFilterChain.java:175)rn at com.tongweb.webbase.core.ContextManager.internalService(ContextManager.java:993)rn at com.tongweb.webbase.core.ContextManager.service(ContextManager.java:858)rn at com.tongweb.webbase.startup.TabascoAdapter.service(TabascoAdapter.java:299)rn at com.tongweb.servlet.servletManager.ServletManager.service(ServletManager.java:805)rn at com.tongweb.servlet.connectionMethods.http.HttpHandler.doARequest(HttpHandler.java:280)rn at com.tongweb.servlet.connectionMethods.http.HttpHandler.processRequests(HttpHandler.java:300)rn at com.tongweb.servlet.connectionMethods.http.HttpHandler.run(HttpHandler.java:76)rn at java.lang.Thread.run(Thread.java:595)rnRoot cause:rnjava.lang.IncompatibleClassChangeErrorrn at org.apache.cxf.staxutils.W3CDOMStreamWriter.writeStartElement(W3CDOMStreamWriter.java:132)rn at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.writeSoapEnvelopeStart(SoapOutInterceptor.java:122)rn at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessage(SoapOutInterceptor.java:81)rn at org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor.handleMessage(SoapOutInterceptor.java:61)rn at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:244)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:516)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:313)rn at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:265)rn at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)rn at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:124)rn at $Proxy42.getUserInfoByLoginLog(Unknown Source)rn at gov.init.action.InitAction.execute(InitAction.java:55)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)rn at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn at com.tongweb.webbase.facade.ServletHandler.doService(ServletHandler.java:643)rn at com.tongweb.webbase.core.Handler.invoke(Handler.java:333)rn at com.tongweb.webbase.core.Handler.service(Handler.java:235)rn at com.tongweb.webbase.facade.ServletHandler.service(ServletHandler.java:543)rn at com.tongweb.webbase.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:270)rn at com.tongweb.webbase.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:95)rn at com.tongweb.webbase.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at com.tongweb.webbase.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:197)rn at filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:169)rn at com.tongweb.webbase.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:238)rn at com.tongweb.webbase.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:95)rn at com.tongweb.webbase.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:200)rn at java.security.AccessController.doPrivileged(Native Method)rn at com.tongweb.webbase.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:197)rn at com.tongweb.webbase.core.ApplicationFilterChain.wrappedDoFilter(ApplicationFilterChain.java:175)rn at com.tongweb.webbase.core.ContextManager.internalService(ContextManager.java:993)rn at com.tongweb.webbase.core.ContextManager.service(ContextManager.java:858)rn at com.tongweb.webbase.startup.TabascoAdapter.service(TabascoAdapter.java:299)rn at com.tongweb.servlet.servletManager.ServletManager.service(ServletManager.java:805)rn at com.tongweb.servlet.connectionMethods.http.HttpHandler.doARequest(HttpHandler.java:280)rn at com.tongweb.servlet.connectionMethods.http.HttpHandler.processRequests(HttpHandler.java:300)rn at com.tongweb.servlet.connectionMethods.http.HttpHandler.run(HttpHandler.java:76)rn at java.lang.Thread.run(Thread.java:595)rnrn 论坛

大家帮忙解决下问题 TONGWEB的 [急]

06-16

这个异常时什么意思啊rnrn2010.06.16 20:27:21: Tongserver,INFO: file:/C:/cattsoft/cattsoft/TongWeb4.6/installed/temp/tongweb-admin.ear deployed successfullyrnjava.io.IOException: 设备未就绪。rn at java.io.WinNTFileSystem.canonicalize0(Native Method)rn at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:395)rn at java.io.File.getCanonicalPath(File.java:531)rn at com.tongweb.deployment.AutoDeployer.startService(AutoDeployer.java:444)rn at com.tongweb.earutil.ServiceMBeanSupport.start(ServiceMBeanSupport.java:96)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:592)rn at com.sun.jmx.mbeanserver.StandardMetaDataImpl.invoke(StandardMetaDataImpl.java:414)rn at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)rn at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)rn at com.tongweb.deployment.service.EarServiceManager.startMbean(EarServiceManager.java:140)rn at com.tongweb.deployment.service.EarServiceManager.init(EarServiceManager.java:185)rn at com.tongweb.tongServer.service.ServiceManagerWrapper.run(ServiceManagerWrapper.java:183)rn at java.lang.Thread.run(Thread.java:595)rnJ2eeDeployer are not loaded!rnjava.lang.NullPointerExceptionrn at com.tongweb.ear.adm.EarAdm.(EarAdm.java:61)rn at com.tongweb.deployment.service.EarServiceManager.init(EarServiceManager.java:186)rn at com.tongweb.tongServer.service.ServiceManagerWrapper.run(ServiceManagerWrapper.java:183)rn at java.lang.Thread.run(Thread.java:595)rn2010.06.16 20:27:21: Tongserver,INFO: System ready. 论坛

没有更多推荐了,返回首页