`
vencent888
  • 浏览: 139498 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

tomcat 迁移到websphere的问题

阅读更多

1.  ebsphere 页面显示后 立即转向res://ieframe.dll/http_404_webOC.htm
在tomcat下部署完全正常,换到websphere后本地访问也正常
到别人的机子访问本地时,页面正常显示后,马上跳转到“res://ieframe.dll/http_404_webOC.htm”


而且对于不同的机子访问我本机前面的路径还不一样

res://ieframe.dll/http_404_webOC.htm
res://C:\WINDOWS\system32\shdoclc.dll tp_404.htm
res://C:\WINDOWS\system32\shdoclc.dll/http_404.htm

分别是三台电脑访问时,开始页面正常,然后立即跳转到的页面(页面的路径如上)

 

在tomcat下是可以的,在websphere下就显示一下就迅速变成HTTP   404  错误的情况:

   与html代码有关,例如.css中的一个behavīor:url()没有里面那个文件,,所以出错,要求真严。

  与web.xml文件有关。例如:<welcome-file-list>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

找了很久,以为是虚拟主机或是端口问题都不是。原来是websphere对页面的校验比较严格。在引入的css文件中找不到引用的文件或引用文件中有错导致的。

 

在引入的cSS文件中 behavior:url(../CSS/HTMLComponent.htc);   的HTMLComponent.htc 文件出错导致。终于解决。

 

 

2. websphere 对于链接的写法也有限制。在tomcat中href="#" onclick ="javascripg function**"  写法可以。

   在websphere  就不行,应写成href="javascripg function**"  ;

 

 3  对于建虚拟主机和端口的步骤如下:

      环境 ->虚拟主机    新建 一个端口 号  起名全部相同   virtual_host1
     应用程序服务器 > server1 > 端口 新建端口同上        virtual_host2
     应用程序服务器 > server1 》Web 容器设置 》Web 容器传输链 》新建->将virtual_host1和virtual_host2关联   

     用自己的虚拟主机要改ibm-web-bnd.xmi 下的 virtualHostName="virtual_linggan"

 

     D:\Program Files\IBM\WebSphere\AppServer\profiles\AppSrv01\config\cells\eritl01Node01Cell\virtualhosts.xml  文件下要添加 虚拟主机的名称节点

  <host:VirtualHost xmi:id="VirtualHost_1264406888531" name="自己建的虚拟主机名称">

 

 并要加入访问的端口<aliases xmi:id="HostAlias_1" hostname="*" port="8091"/>

 

 

 

 

 

 

 

 

 

  

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics