• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in Windows-XP platform  RSS feed

 
Rama Dev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
I am a new entrant to this forum. I seek your help in resolving the following:
We are deploying an application in MS-windows XP platform. The application is currently working in linux platform. The application is deployed in Jboss 3.2 with postgreSQL database.
We modified values in the files such as web.xml and ejb-jar.xml for initialization parameters that correspond to the absolute directory paths for the resources (that is, html files and images) accessed by the application. These were the only changes made in the xml files.
The problem is this: when the application is launched (after successful login), it displays the message "/app/docroot/resource/start.html not found". Be assured that required html files exist in resource folder. I guess the problem lies in the specification of init-parameter values. Please note that the application works fine in unix-like systems.

Here is the relevant part of web.xml file
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<servlet>
<servlet-name>AddNewUnit</servlet-name>
<display-name>AddNewUnit</display-name>
<description>AddNewUnit</description>
<servlet-class>com.ddp.servlet.AddNewUnit</servlet-class>
<init-param>
<param-name>temp</param-name>
<param-value>C:\tmp</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>ViewUnitDetails</servlet-name>
<display-name>ViewUnitDetails</display-name>
<description>ViewUnitDetails</description>
<servlet-class>com.ddp.servlet.ViewUnitDetails</servlet-class>
<init-param>
<param-name>docroot</param-name>
<param-value>C:\app\docroot</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>LaunchUnit</servlet-name>
<display-name>LaunchUnit</display-name>
<description>LaunchUnit</description>
<servlet-class>com.ddp.servlet.LaunchUnit</servlet-class>
<init-param>
<param-name>repositoryPath</param-name>
<param-value>\app\docroot\resource</param-value>
</init-param>
</servlet>
......

</webapp>


Here is the relevant part of ejb-jar.xml file
<?xml version="1.0"?>

<!DOCTYPE ejb-jar PUBLIC
'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN'
'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>

<ejb-jar>
<enterprise-beans>
.......
<entity>
<ejb-name>Unit</ejb-name>
<home>com.lnk.ejb.unit.UnitHome</home>
<remote>com.lnk.damsel.ejb.unit.Unit</remote>
<local-home>com.lnk.damsel.ejb.unit.UnitLocalHome</local-home>
<local>com.lnk.damsel.ejb.unit.UnitLocal</local>
<ejb-class>com.lnk.damsel.ejb.unit.UnitImpl</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>com.lnk.damsel.ejb.unit.UnitPK</prim-key-class>
<reentrant>False</reentrant>
<env-entry>
<env-entry-name>file_repository_path</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>\app\docroot\resource</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>temp_path</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>c:\tmp</env-entry-value>
</env-entry>
<resource-ref>
<res-ref-name>jdbc/res_db</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
....
</ejb-jar>

As I indicated, only changes were in the values of init-parameters in the form of windows-directory path (with \) in place of unix path format (with /). The application is working in unix platform but displays error messages in windows-XP environment. Any suggestions from experts to solve this problem?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37395
531
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rama,
Welcome to JavaRanch!

The repository path still has a UNIX directory (no c: in it.) The others, like docroot, already have the proper path.
 
Rama Dev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no "unix type" path for repositoryPath parameter. I am not sure whether I understood your response. Pl. explain that.
 
Rama Dev
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.There is no "unix type" path for repositoryPath parameter. I am not sure whether I understood your response. Pl. explain that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!