• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Using IBM HTTP Server with WebSphere Application Server

 
Ranch Hand
Posts: 70
Android Hibernate Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I would like to know whether it is necessary to use IBM HTTP Server along with WebSphere Application Server 7.0. I have deployed my EAR file in WAS but when I try to access my application , I am getting the default error page.I am not getting any issues when I run the same from my workspace.

web.xml has entry like.


When I try to access my mainscreen of the application , I am getting error in sysout logs as,



Please suggest what should I do.

Thanks

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, its not necessary to use IHS with WAS. You can have IIS or APACHE configured to do the same things. But if you do not want any webserver at all , then you better be having a standalone JVM and not a cluster JVM.
Secondly , I see that the that you have given context uri as - http://localhost/desktop/contextmap.jsp which is incorrect, this may work when you are trying to directly access it on your desktop.
But in JVM you need to give relative path and not the absolute path.
E.g
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>

So, if you app is installed and file is located as -
C:\IBM\SDP\runtimes\base_v7\profiles\AppSrv01\installedApps\RRNode01Cell\Test.ear\Test.war\WEB-INF\contextmap.jsp
web.xml should be --- <param-value>/WEB-INF/contextmap.jsp</param-value>
-----------
Again I might be in-accurate as not a developer , but I hope you get what I wanted to convey.

Regards,
Harneet
 
Ramesh Jothimani
Ranch Hand
Posts: 70
Android Hibernate Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Harneet .I got what has been explained.

I have changed my web.xml as,




I am getting error as,

<Map file URL string parameter must be a well-formed URL string. <java.net.MalformedURLException: no protocol: /desktop/contextmap.jsp> >
<Failed to create a URL object for /desktop/contextmap.jsp>



Please suggest me what else could be checked.

Thanks

 
Harneet Singh
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well what I guess is that your url is still incorrect.
I think your file location is - C:\IBM\SDP\runtimes\base_v7\profiles\AppSrv01\installedApps\RRNode01Cell\Test.ear\Test.war\WEB-INF\contextmap.jsp
and NOT - C:\IBM\SDP\runtimes\base_v7\profiles\AppSrv01\installedApps\RRNode01Cell\Test.ear\Test.war\WEB-INF\desktop\contextmap.jsp

Try following -

<context-param id="ContextParam_3">
<param-name>RequestContextMapFileURI</param-name>
<param-value>/WEB-INF/contextmap.jsp</param-value>
</context-param>

--------------------
If it still does not work , then it will be tough for me to suggest you anything else ...
If it still fails then kindly let me know the absolute path of your file - contextmap.jsp or modify the param-value accordingly and try
 
Ramesh Jothimani
Ranch Hand
Posts: 70
Android Hibernate Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The complete path of contextmap.jsp is,

C:\IBM\SDP\runtimes\base_v7\profiles\AppSrv01\installedApps\RRNode01Cell\Test.ear\Test.war\iAdvisorWeb\desktop\contextmap.jsp

Web.xml exists in,

C:\IBM\SDP\runtimes\base_v7\profiles\AppSrv01\installedApps\RRNode01Cell\Test.ear\Test.war\WEB-INF


I have tried changing in web.xml as,


But still it's not working.Kindly suggest.

Thanks
 
We're all out of roofs. But we still have tiny ads:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic