• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

war on servlets 4

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
sorry to post this question buti havent still found ananswer to it. i am new to websphere
1- made a directory c:\websphere\appserver\deneb
2- had a servelt FirstServlet.java
3- compiled it in dos prompt to FirstServlet.class
4- with the assembly tool made a war in it
5- then made the ear with the same tool
6- installed the application ear file with the help of the administrative tool
7- saved the config
8- restarted the appserver
9- started the ibmwebserver
10- tried to access but failed
i thinkin the error i get a message ClassnotFound . this means the servlet could not be found.
i can send the ear file that i made. couls someone help me out
thnx alot
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Post the error and the web.xml file that is in your war file -- the rest is binary (and not that much use). If you want to post the source code of your servlet, that might help too.
Kyle Brown
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
deneb shah
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
Exception
WebSphere�com.ibm.servlet.engine.WebGroupNotFoundException: The web group /demo has not been defined
at com.ibm.servlet.engine.ServletHost.findWebGroupByURI(ServletHost.java:99)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:101)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
==============================================================
application.ear file
<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">;
<application id="Application_ID">
<display-name>demoAPP</display-name>
<module id="WebModule_1">
<web>
<web-uri>demoWAR.war</web-uri>
<context-root>demo</context-root>
</web>
</module>
</application>
================================================================
web.xml file
<?xml version="1.0" encoding="UTF-8"?>
< !DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">;
<web-app id="WebApp_ID">
<display-name>demoApp</display-name>
<servlet id="Servlet_1">
<servlet-name>hello</servlet-name>
<display-name>HelloJsp</display-name>
<servlet-class>FirstServlet</servlet-class>
</servlet>
<servlet-mapping id="ServletMapping_1">
<servlet-name>hello</servlet-name>
<url-pattern>/demopage</url-pattern>
</servlet-mapping>
</web-app>
===============================================================
in the new war file i have a Hello.jsp and FirstServlet.class
 
deneb shah
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
===============================================================
Exception
WebSphere�com.ibm.servlet.engine.WebGroupNotFoundException: The web group /demo has not been defined
at com.ibm.servlet.engine.ServletHost.findWebGroupByURI(ServletHost.java:99)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:101)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)

===============================================================
application.xml

===============================================================
web.xml file
 
deneb shah
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
the war fiel i made works on tomcat 3.2 so i think the problem could be either with application.xml file or the the method of installing an application from the admin page
could u help me in this please ...
deneb
 
deneb shah
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
this is the log file that i have tried to put.
if someone could help me i would be grateful
i have 2 files in the war file
1- Hello.jsp
2- FirstServlet.class
================================================================
activity.log

> 4V Websphere Activity Log Windows 2000 ebd-deneb���� � IBM WebSphere AEs 4.0.1 a0131.07 "com.ibm.ejs.cm.pool.ConnectionPool 6754d850 2400 ebd-deneb/Default Server MSG_CONM_6007I "com.ibm.ejs.resources.CONMMessages �@�w Samples IDB Datasource �������� � IBM WebSphere AEs 4.0.1 a0131.07 "com.ibm.ejs.cm.pool.ConnectionPool 6754d850 2400 ebd-deneb/Default Server MSG_CONM_6007I "com.ibm.ejs.resources.CONMMessages �@�V Increment Bean Datasource �������� � IBM WebSphere AEs 4.0.1 a0131.07 +com.ibm.servlet.engine.http11.HttpTransport 6754d850 2400 ebd-deneb/Default Server transport.is.stopped %com.ibm.ejs.resources.seriousMessages �@� http 9080 �������� � IBM WebSphere AEs 4.0.1 a0131.07 +com.ibm.servlet.engine.http11.HttpTransport 6754d850 2400 ebd-deneb/Default Server transport.is.stopped %com.ibm.ejs.resources.seriousMessages �@�� https 9443 �������� � IBM WebSphere AEs 4.0.1 a0131.07 +com.ibm.servlet.engine.http11.HttpTransport 6754d850 2400 ebd-deneb/Default Server transport.is.stopped %com.ibm.ejs.resources.seriousMessages �@�! http 9090 �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6754d850 2400 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@�W demoApp �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6754d850 2400 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@� WebTier �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6754d850 2400 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@�� theme Web Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6754d850 2400 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@ I YourCo Web Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6754d850 2400 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@ � Samples Web Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6754d850 2400 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@ Examples Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6754d850 2400 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@v admin �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6754d850 2400 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@V; Default Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 com.ibm.ws.naming.util.Helpers 293e6425 2496 ebd-deneb/Default Server jndiNamingException (com.ibm.ws.naming.util.WsnResourceBundle �@�� -com.ibm.ws.naming.urlns.genericURLContextRoot createSubcontext(Name) local: jdbc/jdbc �javax.naming.NameNotFoundException: Name jdbc not found in context "local:".
at com.ibm.ws.naming.ipbase.NameSpace.getParentCtxInternal(NameSpace.java:1443)
at com.ibm.ws.naming.ipbase.NameSpace.getParentContext(NameSpace.java:1342)
at com.ibm.ws.naming.urlbase.UrlContext.getParentBindingData(UrlContext.java:1529)
at com.ibm.ws.naming.urlbase.UrlContext.createSubcontext(UrlContext.java:703)
at com.ibm.websphere.naming.JndiHelper.createSubcontexts(JndiHelper.java:261)
at com.ibm.websphere.naming.JndiHelper.createSubcontextsDriver(JndiHelper.java:237)
at com.ibm.websphere.naming.JndiHelper.recursiveBind(JndiHelper.java:499)
at com.ibm.websphere.naming.JndiHelper.recursiveRebind(JndiHelper.java:317)
at com.ibm.ws.runtime.utils.ResourceBinder.bind(ResourceBinder.java:271)
at com.ibm.ws.runtime.utils.ResourceBinder.bind(ResourceBinder.java:212)
at com.ibm.ws.runtime.Server.bindResource(Server.java:827)
at com.ibm.ws.runtime.StandardServer.bindResource(StandardServer.java:451)
at com.ibm.ws.runtime.StandardServer.bindResources(StandardServer.java:444)
at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:344)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:882)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
�������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server web.container.copyright %com.ibm.ejs.resources.seriousMessages �@w� �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server web.container.servlet.spec.level %com.ibm.ejs.resources.seriousMessages �@y �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server web.container.jsp.spec.level %com.ibm.ejs.resources.seriousMessages �@y2 �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server session.manager.configured %com.ibm.ejs.resources.seriousMessages �@z� �������� � IBM WebSphere AEs 4.0.1 a0131.07 &com.ibm.servlet.dynacache.CacheManager 293e6425 2496 ebd-deneb/Default Server dynacache.fileNotFound #com.ibm.servlet.resources.dynacache �@}�
dynacache.xml �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server loading.web.module %com.ibm.ejs.resources.seriousMessages �@t Default Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server loading.web.module %com.ibm.ejs.resources.seriousMessages �@�� Examples Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server loading.web.module %com.ibm.ejs.resources.seriousMessages �@�� admin �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server loading.web.module %com.ibm.ejs.resources.seriousMessages �@�J YourCo Web Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server loading.web.module %com.ibm.ejs.resources.seriousMessages �@�� Samples Web Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server loading.web.module %com.ibm.ejs.resources.seriousMessages �@�` theme Web Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server loading.web.module %com.ibm.ejs.resources.seriousMessages �@�, WebTier �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 293e6425 2496 ebd-deneb/Default Server loading.web.module %com.ibm.ejs.resources.seriousMessages �@�[ demoApp �������� � IBM WebSphere AEs 4.0.1 a0131.07 +com.ibm.servlet.engine.http11.HttpTransport 293e6425 2496 ebd-deneb/Default Server transport.is.listening %com.ibm.ejs.resources.seriousMessages �@�� http 9080 �������� � IBM WebSphere AEs 4.0.1 a0131.07 +com.ibm.servlet.engine.http11.HttpTransport 293e6425 2496 ebd-deneb/Default Server transport.is.listening %com.ibm.ejs.resources.seriousMessages �@�! https 9443 �������� � IBM WebSphere AEs 4.0.1 a0131.07 +com.ibm.servlet.engine.http11.HttpTransport 293e6425 2496 ebd-deneb/Default Server transport.is.listening %com.ibm.ejs.resources.seriousMessages �@�� http 9090 �������� � IBM WebSphere AEs 4.0.1 a0131.07 com.ibm.ws.runtime.Server 293e6425 2496 ebd-deneb/Default Server WSVR0023 com.ibm.ws.runtime.runtime �@�� Default Server �������� � IBM WebSphere AEs 4.0.1 a0131.07 "com.ibm.servlet.engine.ServletHost 618de42e 2496 ebd-deneb/Default Server Web.Group.Not.Found %com.ibm.ejs.resources.seriousMessages �@�Q
/ �������� q IBM WebSphere AEs 4.0.1 a0131.07 2com.ibm.servlet.engine.srp.ServletRequestProcessor 618de42e 2496 ebd-deneb/Default Server Web.Group.Not.Found %com.ibm.ejs.resources.seriousMessages �@�B �com.ibm.servlet.engine.WebGroupNotFoundException: The web group / has not been defined
at com.ibm.servlet.engine.ServletHost.findWebGroupByURI(ServletHost.java:99)
at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:101)
at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener.java:315)
at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.java:60)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242)
at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122)
�������� < IBM WebSphere AEs 4.0.1 a0131.07 8com.ibm.servlet.engine.oselistener.OSEListenerDispatcher 618de42e 2496 ebd-deneb/Default Server CServlet.Request.Processor.Exception.Virtual.Host.WebGroup.Not.Found %com.ibm.ejs.resources.seriousMessages �@�~ &: The web group / has not been defined �������� � IBM WebSphere AEs 4.0.1 a0131.07 "com.ibm.ejs.cm.pool.ConnectionPool 6c972427 2496 ebd-deneb/Default Server MSG_CONM_6007I "com.ibm.ejs.resources.CONMMessages �@�T Samples IDB Datasource �������� � IBM WebSphere AEs 4.0.1 a0131.07 "com.ibm.ejs.cm.pool.ConnectionPool 6c972427 2496 ebd-deneb/Default Server MSG_CONM_6007I "com.ibm.ejs.resources.CONMMessages �@�� Increment Bean Datasource �������� � IBM WebSphere AEs 4.0.1 a0131.07 +com.ibm.servlet.engine.http11.HttpTransport 6c972427 2496 ebd-deneb/Default Server transport.is.stopped %com.ibm.ejs.resources.seriousMessages �@�� http 9080 �������� � IBM WebSphere AEs 4.0.1 a0131.07 +com.ibm.servlet.engine.http11.HttpTransport 6c972427 2496 ebd-deneb/Default Server transport.is.stopped %com.ibm.ejs.resources.seriousMessages �@�� https 9443 �������� � IBM WebSphere AEs 4.0.1 a0131.07 +com.ibm.servlet.engine.http11.HttpTransport 6c972427 2496 ebd-deneb/Default Server transport.is.stopped %com.ibm.ejs.resources.seriousMessages �@�� http 9090 �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6c972427 2496 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@�| demoApp �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6c972427 2496 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@�� WebTier �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6c972427 2496 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@ { theme Web Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6c972427 2496 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@9 YourCo Web Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6c972427 2496 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@� Samples Web Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6c972427 2496 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@� Examples Application �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6c972427 2496 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@� admin �������� � IBM WebSphere AEs 4.0.1 a0131.07 $com.ibm.servlet.engine.ServletEngine 6c972427 2496 ebd-deneb/Default Server stopping.web.module %com.ibm.ejs.resources.seriousMessages �@ Default Application ����
================================================================
 
deneb shah
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey folks !!!
i am happy that i got a soln on my own
i have a jsp Hello.jsp and a servelet FirstServlet.class
web.xml
the url pattern for the servlet is -- /demopage
application.xml
the context for the application is -- demo
now to access
jsp --> http://127.0.0.1/demo/Hello.jsp
servlet --> http://127.0.0.1:9080/demo/demopage --- ???
i didnt understand why one would require port 9080 to be used for servlet.. could anyone give me a reason ???
also one more thing...
when installing the application from the AAT there are 3 textboxes
1-- path for the ear file
2-- name
3-- context root
i didnt understand the reaon for the 3rd textbox
could someone please answer these questions ???
 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Port 9080 is the one used by the appliation server. Port 80 is the one used by the web server to pass requests on to the appliation server. You should NEVER have to use port 9080. I strongly suspect that your problem is that you have not regenerated the plugin configuration file.
See the earlier posting (http://www.javaranch.com/ubb/Forum46/HTML/000503.html) where I told another reader that they need to run the GenPluginCfg batch file. This file (when given the appropriate information at the command line) will update the plugin so that you can use Port 80.
Kyle Brown
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
[This message has been edited by Kyle Brown (edited September 30, 2001).]
 
deneb shah
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hey thnx buddy
u r a genius !!! but honestly i didnt understand why do u need the plugin after the deployment.
one more thing
the ear is an application server file. when one types http://hosts/appname its the webserver that redirects it to the corresponding thing. how an where is this mapping done
for eg when we have app server then we write a virtual host such that the webserver understands and picks up the appropriate file and then forwards it to the servelt/jsp engine. how does it work in here

 
Kyle Brown
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The plugin configuration file (plugin-cfg.xml) contains the mappings for the context roots for the application that WebSphere uses. Take a look at the contents of this file and you'll understand how it works. Also, be sure to read the documentation on this subject (search for "plugin").
Kyle Brown
------------------
Kyle Brown,
Author of Enterprise Java (tm) Programming with IBM Websphere
 
Every plan is a little cooler if you have a blimp. And a tiny ad.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic