Skip to Content

Problems in creating war files from NWDS

HI All,

I am working in enhancements of MAU application.

I have some questions regarding the creation of war files from NWDS.

1. I am trying to create the war file from NWDS.

While exporting I am selecting "Add JSP as compiled classes" and my application is not running because my .war file does not contains any source files (.class files) if I select this option.

Note :- if I am not selecting JSP as compiled classes my .war gets generated properly and application runs properly.

My question is , is there any problem which NWDS is giving ? I am using NWDS version 7.0.0.1 . Any idea how to overcome this?

Thanks and Regards

Neha Mahanty

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jul 21, 2008 at 10:02 AM

    Hi,

    Usually when you generate a .War file by chosing option "Add JSP as precompiled classes", all generated classes will be put into a jar file and this you can find out from folder
    webapps\applicationfolder name\web-inf\lib".

    Do check if there is any jar file created with the application name which contains precompiled JSP's. If they are present and still you are not able to run the application, then I would say there is a problem with web.xml file you are using.

    Atleast with my past expereince, the web.xml file is different for precompiled jsp's and normal jsp's. With precompiled JSP's there will be correct path of .class file mentioned in web.xml file but where as in normal jsp's there will not be any path but the client runtime will search for the .jsp file in folder and creates one class file in WORK folder.

    Hope it helps.

    Best Regards,

    Siva.

    Add comment
    10|10000 characters needed characters exceeded

    • HI All,

      The problem is solved and I am able to run the application.

      The reason was , When we are executing a war file with precompile jsp , the web.xml file gets chnaged and it should contain the .class file path of Jsp pages.

      In my case it was still showing the jsp path instead of the .class path.

      <servlet>

      <servlet-name>mam_0005fstart</servlet-name>

      <!-- <jsp-file>/mam_start.jsp</jsp-file>

      -->

      <servlet-class>mam_0005fstart</servlet-class>

      </servlet>

      After I chnaged the web.xml file , I was able to run the application

      Regards

      Neha