windows2k professional , apache2.0.43, tomcat4.1.18 ,mod_jk2-2.0.43.dll,页面部分有的可以正常运行,有的却不可以 (急)

shekarry 2003-09-11 11:38:35
apache2.0.43, tomcat4.1.18 ,mod_jk2-2.0.43.dll

配置文件如下:


1)将mod_jk2-2.0.43.dll复制到APACHE安装目录下的modules子目录下,编辑APACHE2的配置文件httpd.conf,在文件的最后加上以下几行。

LoadModule jk2_module modules/mod_jk2-2.0.43.dll
<VirtualHost *>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "D:/jakarta-tomcat-4.1.12/webapps"
ServerName dummy-host.example.com
DirectoryIndex index.htm index.html index.jsp
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

2)在APACHE2安装目录的conf子目录下加入文件workers2.properties,其内容如下:

[shm]
file=${serverRoot}/logs/shm.file
size=1048576

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# Uri mapping
[uri:/*]
worker=ajp13:localhost:8009

当然可以在APACHE2的logs目录下建一个空白文件shm.file ,也可以没有!
这样就可以了!



-----------------------------------------------
运行是有的部分可以正常运行,有的却报配置有错,无法正常运行,请问这是什么原因。。。

apache 报错:
.....
[Thu Sep 11 10:58:20 2003] [error] channelSocket.open() connect failed 127.0.0.1:8009 61 Unknown error
[Thu Sep 11 10:58:20 2003] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Sep 11 10:58:21 2003] [error] ajp13.service() failed to connect endpoint errno=61 Unknown error
[Thu Sep 11 10:58:21 2003] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 1
[Thu Sep 11 10:58:21 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
.....


tomcat:
.......................
2003-09-11 10:58:09 action: No errors detected, accepting input
2003-09-11 10:58:09 action: Looking for Action instance for class com.grad.query.InputAction
2003-09-11 10:58:09 action: Double checking for Action instance already there
2003-09-11 10:58:09 action: Creating new Action instance
...全文
43 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
Sheepy 2003-10-26
  • 打赏
  • 举报
回复
说错了,不是没有改动,是只加了一句LoadModule把mod_jk2.dll装载进来,没有设置VirtualHost。
Sheepy 2003-10-25
  • 打赏
  • 举报
回复
我配制成功的,没有改动httpd.conf文件。要改动Tomcat的conf下的jk2.properties文件,将shm指向workers2.properties中的同一文件。
klbt 2003-10-25
  • 打赏
  • 举报
回复
友情支持,帮你顶。
shekarry 2003-09-12
  • 打赏
  • 举报
回复
两个人同时访问是会报以上的错误
shekarry 2003-09-12
  • 打赏
  • 举报
回复
我要访问一个数据库,这个数据库限制了同时访问的人数,同一时间只能有一个人访问,访问数据库是通过一个dll 文件访问的。
我自己觉得: 理论上 有两个人访问的时候应该是一个调到了数据,另一个再调数据。
可是,结果却是服务自动关闭
提示错误:An unexpected exception has been detected in native code outside the VM.
Unexpected Signal :EXCEPTION_ACCESS_VIOLATION occurred at PC=0xEDE2DBC
Function=CDatabaseFunction::GetFieldValue+0x19C
Library=E:\forwork\j2sdk1.4.1_02\jre\bin\WebPacsDB.dll
Source file= i:\work\paces\source\pacsview\pacsviewfunc\pacsdbfunc\databasefunction.cpp:3463

Current Java thread:
at com.grad.database.GreenWebPacsDB.StringArray(Native Method)
............

apache :error.log 有下边的提示
[Thu Sep 11 10:58:20 2003] [error] ajp13.connect() failed ajp13:localhost:8009
[Thu Sep 11 10:58:21 2003] [error] ajp13.service() failed to connect endpoint errno=61 Unknown error
[Thu Sep 11 10:58:21 2003] [error] ajp13.service() Error forwarding ajp13:localhost:8009 1 1
[Thu Sep 11 10:58:21 2003] [error] mod_jk.handler() Error connecting to tomcat 120000
请问这试怎么回事,方便的话发邮件给我,好嘛, sshekarry@yahoo.com.cn
什么情况下tomcat 服务会自动关闭?
谢谢
yophoo 2003-09-11
  • 打赏
  • 举报
回复
具体是什么时候报这样的错误?

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧