Remove default context in Tomcat 5.5

Hi
Can anyone tell me how to get rid of the default context in Tomcat 5.5 (Linux)? I want to make my own webapp the default context (which is easy in all previous releases) but no matter what I try, it doesn't work. I've tried editing:
1) conf/server.xml
2) conf/web.xml
3) conf/Catalina/localhost/<various>
3) <myApp>/META-INF/context.xml
But I can't even make the default context 'stop', let alone make my app take over as the default. If someone could assume it's a fresh installation, "out of the box" as it were, and tell me how to get rid of it, I'd be really grateful
Thanks!

Ok, I thought that link looked familiar, but it still doesn't help..
Here is my <context>.. this works perfectly under 5.0 as a separate xml file in the catalina/localhost folder, but under 5.5, I can only get this context to load by adding it directly to the server.xml...
     <Context path="" docBase="D:\dev\Projects\newk00l\website\games\" reloadable="true" crossContext="false">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_k00l_log." suffix=".txt"
     timestamp="true"/>
<Resource name="jdbc/netk00lextreme" auth="Container"
type="javax.sql.DataSource" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost/k00l_extreme?autoReconnect=true"
username="myusername" password="mypassword" maxActive="20" maxIdle="10" maxWait="-1"/>
     </Context>

Similar Messages

  • Remove default context menu values

    Hi,
    I'm using Jdev 11.1.2.2.0 and i've af:tree with node as command link. If i click this link, the popup in context menu facet is launched with menu items which are created by me. Also it displays menu item like 'Collapse', 'Expand All Below' and 'Collapse All Below. I do not want these menu items. Could anyone tell me how to remove these menu items?
    Thanks in advance

    You can add a showPopupBehavior to your commandLink, with triggerType="contextMenu", make sure not to keep the popup in contextMenu facet of af:tree

  • Should not happen unless default context failed to deploy

              Can somebody please throw some light on this error?
              <Mar 5, 2001 10:07:26 AM EST> <Error> <HTTP> <HttpServer5173817,null
              default ctx,POSDev01) found no context for "GET /classes/ringout_statelessSession3@/RingoutSessionBeanHomeImpl_WLStub.class
              HTTP/1.0". This should not happen unless the default context failed
              to deploy.>
              Myself and lot of other people in my team are getting this error
              when using beans in a cluster.
              I am getting this error consistently whenever I make some code
              changes in my bean class (not interface changes) and redeploy it
              and try to lookup through a stand-alone client.
              The only way I could find to overcome this problem is:
              1) edit config.xml to remove the Application element completely
              corresponding to the bean
              2) remove jar files from the applications directory
              3) re-deploy and run the client again.
              Thanks a lot
              Kiran Ganuthula
              

    Partly it could be WLS problem also. Under any circumstances default webapp should be able
              to deploy. I have seen somebody else also reported the same problem. The current problem is
              if you delete anything from apps dir, the corresponding entry is not being deleted from config.xml
              So next time when you boot the server, it tries to deploy the webapp and eventually it fails.
              I 'm not sure if this is the situation in your case.
              In anycase somehow Targets tag is not being picking up. That's why i asked you add
              "WebServers" tag. I think we have done some major changes in SP1, to make sure that
              default webapp deploys all the times.
              If you still have problems, post it to servlet or management group, we will discuss there.
              Kumar
              Kiran G wrote:
              > I edited the config.xml ONLY after getting this error. And, it worked.
              >
              > BTW, can you please be more specific about the changes to config.xml
              > to solve the problem?
              > If possible, can you give pertinent portion(s) of config.xml, highlighting
              > the changes.
              >
              > Thanks
              > Kiran G
              >
              > Kumar Allamraju <[email protected]> wrote:
              > >
              > >
              > >It appears your "default webapp" failed to deploy.
              > >Did you messed up with the config.xml?.
              > >
              > >Add the following to your default webapp tag?
              > >
              > ><Application
              > > Deployed="true"
              > > Name="DefaultWebApp_vindev1"
              > > Path="./config/vindev1/applications"
              > > >
              > > <WebAppComponent
              > > Name="DefaultWebApp_vindev1"
              > > Targets="vindev1"
              > > WebServers="vindev1"
              > > URI="DefaultWebApp_vindev1"
              > > />
              > > </Application>
              > >
              > >
              > >Here vindev1 is my domain's name..
              > >
              > >BTW, this is not a clustering question. So you better
              > >post it to servlet newsgroup where you get much
              > >better answers..
              > >
              > >Kiran G wrote:
              > >
              > >> I forgot to give these details about the problem.
              > >> I am running this cluster using WebLogic 6.0 on a SUN
              > >sparc machine.
              > >>
              > >> The error text given in my original posting appears
              > >in the managed
              > >> weblogic server's log. The exception that the client
              > >receives while
              > >> lookup is :
              > >>
              > >> javax.naming.CommunicationException. Root exception
              > >is java.rmi.UnmarshalException:
              > >> failed to unmarshal class java.lang.Object; nested exception
              > >is:
              > >> java.lang.ClassNotFoundException: RingoutSessionBeanHomeImpl_WLStub
              > >> java.lang.ClassNotFoundException: RingoutSessionBeanHomeImpl_WLStub
              > >>
              > >> "Kiran G" <[email protected]> wrote:
              > >> >
              > >> >Can somebody please throw some light on this error?
              > >> >
              > >> ><Mar 5, 2001 10:07:26 AM EST> <Error> <HTTP> <HttpServer5173817,null
              > >> >default ctx,POSDev01) found no context for "GET /classes/ringout_statelessSession3@/RingoutSessionBeanHomeImpl_WLStub.class
              > >> >HTTP/1.0". This should not happen unless the default
              > >context
              > >> >failed
              > >> >to deploy.>
              > >> >
              > >> >Myself and lot of other people in my team are getting
              > >> >this error
              > >> >when using beans in a cluster.
              > >> >
              > >> >I am getting this error consistently whenever I make
              > >some
              > >> >code
              > >> >changes in my bean class (not interface changes) and
              > >redeploy
              > >> >it
              > >> >and try to lookup through a stand-alone client.
              > >> >
              > >> >The only way I could find to overcome this problem
              > >is:
              > >> >1) edit config.xml to remove the Application element
              > >completely
              > >> >corresponding to the bean
              > >> >2) remove jar files from the applications directory
              > >> >3) re-deploy and run the client again.
              > >> >
              > >> >Thanks a lot
              > >> >Kiran Ganuthula
              > >> >
              > >> >
              > >> >
              > >> >
              > >> >
              > >
              > >
              > ><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
              > ><html>
              > >It appears your "default webapp" failed to deploy.
              > ><br>Did you messed up with the config.xml?.
              > ><p>Add the following to your default webapp tag?
              > ><p><Application
              > ><br> Deployed="true"
              > ><br> Name="DefaultWebApp_vindev1"
              > ><br> Path="./config/vindev1/applications"
              > ><br> >
              > ><br> <WebAppComponent
              > ><br> Name="DefaultWebApp_vindev1"
              > ><br> Targets="vindev1"
              > ><br> <b><font color="#CC0000">
              > >WebServers="vindev1"</font></b>
              > ><br> URI="DefaultWebApp_vindev1"
              > ><br> />
              > ><br> </Application>
              > ><br>
              > ><p>Here vindev1 is my domain's name..
              > ><br><br>
              > >BTW, this is not a clustering question. So you better
              > >post it to servlet
              > >newsgroup where you get much
              > ><br>better answers..
              > ><p>Kiran G wrote:
              > ><blockquote TYPE=CITE>I forgot to give these details about
              > >the problem.
              > ><br>I am running this cluster using WebLogic 6.0 on a
              > >SUN sparc machine.
              > ><p>The error text given in my original posting appears
              > >in the managed
              > ><br>weblogic server's log. The exception that the client
              > >receives while
              > ><br>lookup is :
              > ><p>javax.naming.CommunicationException. Root exception
              > >is java.rmi.UnmarshalException:
              > ><br>failed to unmarshal class java.lang.Object; nested
              > >exception is:
              > ><br> java.lang.ClassNotFoundException:
              > >RingoutSessionBeanHomeImpl_WLStub
              > ><br>java.lang.ClassNotFoundException: RingoutSessionBeanHomeImpl_WLStub
              > ><p>"Kiran G" <[email protected]> wrote:
              > ><br>>
              > ><br>>Can somebody please throw some light on this error?
              > ><br>>
              > ><br>><Mar 5, 2001 10:07:26 AM EST> <Error> <HTTP>
              > ><HttpServer5173817,null
              > ><br>>default ctx,POSDev01) found no context for "GET /classes/ringout_statelessSession3@/RingoutSessionBeanHomeImpl_WLStub.class
              > ><br>>HTTP/1.0". This should not happen unless the default
              > >context
              > ><br>>failed
              > ><br>>to deploy.>
              > ><br>>
              > ><br>>Myself and lot of other people in my team are getting
              > ><br>>this error
              > ><br>>when using beans in a cluster.
              > ><br>>
              > ><br>>I am getting this error consistently whenever I make
              > >some
              > ><br>>code
              > ><br>>changes in my bean class (not interface changes)
              > >and redeploy
              > ><br>>it
              > ><br>>and try to lookup through a stand-alone client.
              > ><br>>
              > ><br>>The only way I could find to overcome this problem
              > >is:
              > ><br>>1) edit config.xml to remove the Application element
              > >completely
              > ><br>>corresponding to the bean
              > ><br>>2) remove jar files from the applications directory
              > ><br>>3) re-deploy and run the client again.
              > ><br>>
              > ><br>>Thanks a lot
              > ><br>>Kiran Ganuthula
              > ><br>>
              > ><br>>
              > ><br>>
              > ><br>>
              > ><br>></blockquote>
              > ></html>
              > >
              > >
              [att1.html]
              

  • How can I remove default alarm for events in iCal on devices ios?

    Whenever I add an event to my iCal calendar in Mounain Lion it will automatically add one default alert only on my iphone and ipad. These default alarms are not displayed on my macbook or icloud.com
    Default alarms are disabled in macbook, icloud.com, and my ios devices.
    How can I remove default alarm for events in iCal on devices ios?
    Thanks and sorry for my english.
    MacBook Pro, Mac OS X 10.8

    OK, so I have had this issue for the past several months. I think it all started when I upgraded to ML from SL and migrated my calendars and contacts to iCloud. That was a couple months ago. But now I am running 10.8.2, and about two weeks ago I upgraded my iOS devices to 6.0.1.
    I don't seem to be having any issues with events that I create now, but all those old events that were migrated to iCloud a couple months ago, many of those sound alerts on the iOS devices even though there was no alert defined when the event was originally created. I have always had alerts off by default both in iCal and on the iOS devices.
    So here's the question: is there a way to go through and disable all these spurious event alerts? I've been disabling them as the event reminders come up, but it's irritating. It would be nice if there was a way to turn them off all in one shot somehow.

  • How to do Default context value For DFF in OAF

    Dear all,
    I want to do Default context value For DFF in OAF for seeded page, pls let me know how to do.
    Regards,
    Hanimi

    Hi Hanimi,
    In controller use code
    *dffBean.setFlexContext(pageContext,"+YOUR-LIST-VALUE+");*
    *dffBean.setAttributeValue(OAWebBeanConstants.READ_ONLY_ATTR, new Boolean(false));*
    Thanks
    Jegan

  • JPS-01514: The default context is missing in jps-config.xml.

    when we will get the below erros what is missing
    weblogic.security.SecurityInitializationException: The dynamic loading of the OPSS java security policy provider class oracle.security.jps.internal.policystore.JavaPolicyProvider failed due to problem inside OPSS java security policy provider.
    JPS-01514: The default context is missing in jps-config.xml.
    Caused By: oracle.security.jps.service.credstore.CredStoreException: JPS-01050: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password

    Check the jps-config.xml file. This has the configuration for security services. Seems like the default context is missing. The default context is essential for connecting to the policy store. If not, you can use a named context to connect to the policy store/idstore etc.

  • 6.0 Newbie default context failed to deploy error

              I'm using WLS 6.0 SP2 and my servlets stopped working. They were working, but
              now only the console will work. I get an Error 400--Bad Request
              "The request could not be understood by the server due to malformed syntax. The
              client SHOULD NOT repeat the request without modifications."
              The following corresponding error shows up:
              <Jun 20, 2001 12:40:05 PM CDT> <Error> <HTTP> <HttpServer(3277721,null default
              ctx,myserve
              r) found no context for "GET /HelloWorld.jsp HTTP/1.1". This should not happen
              unless the
              default context failed to deploy.>
              I've attached my config.xml. Any suggestions?
              [config.xml]
              

              "Conor" <[email protected]> wrote in message
              news:3b30ef88$[email protected]..
              >
              > I'm using WLS 6.0 SP2 and my servlets stopped working. They were working,
              but
              > now only the console will work. I get an Error 400--Bad Request
              > "The request could not be understood by the server due to malformed
              syntax. The
              > client SHOULD NOT repeat the request without modifications."
              >
              > The following corresponding error shows up:
              >
              > <Jun 20, 2001 12:40:05 PM CDT> <Error> <HTTP> <HttpServer(3277721,null
              default
              > ctx,myserve
              > r) found no context for "GET /HelloWorld.jsp HTTP/1.1". This should not
              happen
              > unless the
              > default context failed to deploy.>
              >
              > I've attached my config.xml. Any suggestions?
              Bounce the server, try to redeploy app watch the console for errors if you
              are doing a hot deploy or when the server comes back up. Post the errors to
              the NG if you still have trouble.
              

  • Eliminating excessive dhcpcd add/remove default route messages

    I've been on an IPv6 network for the past several months. I use no network manager (aside from netctl and wifi-menu) and I'm generally wired in. I manually start dhcpcd on my eth0 when I start my computer.
    The issue I've been having and have been unable to resolve is the fact that the following two messages have been repeating in my log every 2-10 seconds for the past several months and I now have several thousand of them. It's just getting annoying at this point because it interferes with actually reading relevant log messages via journalctl:
    Mar 22 10:45:56 kcuzner-desktop dhcpcd[1109]: eth0: adding default route via fe80::fa8f:caff:fe2d:b464
    Mar 22 10:45:56 kcuzner-desktop dhcpcd[1109]: eth0: removing default route via fe80::fa8f:caff:fe2d:b464
    No matter what I search, I can't seem to find a way to get rid of these. I keep a terminal open with journalctl -f running almost always and it's just filled with these, quickly pushing away relevant messages such as "codeblocks dumped core". Does anyone have any tips for preventing these sorts of log entries?
    Last edited by Los Frijoles (2015-03-22 18:27:41)

    I don't think there is a way for journalctl to exclude logging from only dhcpcd. Of course, you can filter the real time logging to the group of units that you do want to watch but I think you want to watch everything else, right?
    How about trying systemd-networkd rather than dhcpcd? Or, if you are only concerned about certain priority level messages, set the priority level. If everything you want to monitor is priority 4 and below for example, and if this message priority is 6, then you're all set.
    Last edited by nullified (2015-03-22 19:43:59)

  • Modifying default context menu of  af:tree

    Hi all,
    this one is urgent..
    I am having a af:tree component on a jspx web page.
    I know that we can change the context menu (the box that pops out when right click happens on any of its node) by setting contextMenuId of the af:tree which points to a af:popup having af:menu. When we dont set contextMenuId; we get a default context menu displaying options to expand/collapse other nodes. When we set it to some af:popup component we get a different context menu.
    My requirment is that instead of getting a new context menu, i must be adding up my new options to the already existing default options in the context menu. So its a kind of extension of default context menu available.
    So can anybody help me.... i am a newbie so pls forgive me if i'm wrong somewhere..
    Thanks a lot..

    Hi Frank,
    thanks for the kind response..
    Yeah, i had tried that out too. But in this case the context menu that i'm defining doesn't seem to be picked up by af:tree since i'm only able to see the default context menu of the browser.
    This is strange since even the default context menu provided by af:tree doen't appear.
    Do we need to do something else also for that...
    By the way i assume that you were talking about contexMenu facet of af:tree only.
    I am inlinning the jspx code snippet for convinient.
    Can you please suggest something....
    <af:panelFormLayout customizationId="panelFormLayout1">
    <f:facet name="footer">
    <af:group>
    <af:commandButton text="commandButton 1"
    customizationId="commandButton1"/>
    <af:image source="http://www.google.com/intl/en_ALL/images/logo.gif"
    shortDesc="THE logo" customizationId="image1"/>
    <af:tree value="#{myBean.model}" var="model"
    rowSelection="single" initiallyExpanded="true"
    id="structureNavigatorTree" inlineStyle="padding:2px"
    contentDelivery="immediate"
    customizationId="amitKumarGupta">
    <f:facet name="nodeStamp">
    <af:panelGroupLayout>
    <af:outputText value="#{model.name}"/>
    </af:panelGroupLayout>
    </f:facet>
    <f:facet name="contextMenu">
    <af:popup id="yesItsgeneral">
    <af:menu id="fdssd" text="menu 1">
    <af:commandMenuItem id="micrsfdg" text="Expand All2"/>
    </af:menu>
    </af:popup>
    </f:facet>
    </af:tree>
    </af:group>
    </f:facet>
    </af:panelFormLayout>
    </cust:panelCustomizable>
    <f:facet name="editor">
    <pe:pageEditorPanel/>
    </f:facet>
    </pe:pageCustomizable>
    </af:form>
    </af:document>
    Hi,
    turns out the solution is easy. Just use the context
    menu facet, similar to below
    <f:facet name="contextMenu">
    <af:popup>
    <af:menu text="menu 1">
    <af:commandMenuItem text="Expand
    All2"/>
    </af:menu>
    /af:popup>
    </f:facet>
    custom menu to the existing set of menus
    Frank

  • How to setup Context in Tomcat 5.x as compare to 4.x

    Hi All,
    I am having a slight problem in understanding how to set a new context using tomcat 5.x.
    What I used to do with tomcat4.x is that add the collowing
    <Context path="/ddrive" docBase="D:/" reloadable="true"
    crossContext="true" allowLinking="true"/>
    in the server.xml file and from my btowser when I entered
    localhost:8888/ddrive, it would give me directory listing for the mapped drive.
    Now I want to do the same for tocat5.x, however am not being successfull, have tried few options but no success. Wonder if anybody here can point me in right direction so that I can get this done..thanks

    and thats what is driving me nuttttz...cus it does seem like I am doing the right thing but.... here is what I get when I write the following in my browser window.
    http://localhost/ddrive
    Error:
    HTTP Status 404 - /ddrive/
    type Status report
    message /ddrive/
    description The requested resource (/ddrive/) is not available.
    Apache Tomcat/5.5.15

  • Removing Dynamic Context members

    Hi,
    how do I remove all the context nodes and elements that I create dynamically? Is there a single line command to accomplish this? Any help would be greatly appreciated. Code samples would be of great help.
    Thanks,
    Sudheer

    Hai Pravesh,
    Me too have same task, i need to remove the context attributes of a node(TableNode) at run time.
    I tried your suggested code, but it doesn't work for me.
    It shows an error,
    wdContext.getNodeInfo().getChild("TableNode").remove();
                .remove(); undefined method
    wdContext.getNodeInfo().getChild("TableNode").getAttribute("Dataset").remove();
                .remove(); undefined method
    I am using NWDS7.0.15 can you suggest me some other...
    Thanks ,
    Krish

  • Disable WD ABAP default context menu

    Hi All,
              Can anyone tell me how i can disable default context menu of wed dynpro applications.
    I have an application open to business users. I was able to disable 'user settings' option but i still get the 'display quick help' and 'more field help' option when the user right clicks on the web dynpro page
               I want to disable the default context menu completely to show Internet explorer context menu when a user right clicks on the web dynpro page.
               Please help
    Thanks
    WD dev

    Hi ,
    You will need to pass the WebDynpro Application,parameter WDDISABLEUSERPERSONALIZATION
    set its value as X  to disable users right click & personalization. Select ur webdynpro application double click, select parameters TAB.
    check below link for details.
    [http://help.sap.com/saphelp_nw70/helpdata/en/7b/fb57412df8091de10000000a155106/content.htm]
    Greetings
    Prashant
    P.S.- Points Welcome

  • Deploy war app with correct default context root

    Hi
    Am using Weblogic 9.2 Appserver.
    When I deploy a war file, I see that the war is exploded in ...domains/domain1/servers/<server-name>/tmp/_WL_user/<application-name>/<random-string>/war/.
    I would like that when I deploy the war app, WL pick up the context root from the name of the webarchive.
    At present this is not happening, and WL uses as default context root the name of the folder that holds the contents of the exploded archive.
    This is the case, even when I go with the no staging option, i.e. specify that the source not be copied and will be available from a specific location. WL still explodes the archive in the above-mentioned dir, and uses "war" as the default context.
    How can I get around this ?

    I'm closing this post.
    What I really wanted to ask is at http://forums.bea.com/bea/thread.jspa?forumID=2017&threadID=400004071 .

  • How to remove default value from table definition?

    Hi,
    running 9.2
    Following problem :
    I need to remove default value from table.
    Example
    CREATE TABLE MY_TABLE(
    NAME VARCHAR2(50) DEFAULT 'NAME',
    AGE NUMBER DEFAULT 0
    Now even when I use MODIFY like
    ALTER TABLE MY_TABLE MODIFY (NAME VARCHAR2(10) );
    The default is still there:
    SELECT DATA_DEFAULT FROM USER_TAB_COLUMNS WHERE TABLE_NAME = 'MY_TABLE';
    Is there any way?
    Thanks

    Thanks,
    found the answer. It is not possible!!!!
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm
    Note:
    If a column has a default value, then you can use the DEFAULT clause to change the default to NULL, but you cannot remove the default value completely. That is, if a column has ever had a default value assigned to it, then the DATA_DEFAULT column of the USER_TAB_COLUMNS data dictionary view will always display either a default value or NULL

  • Creating my own context in Tomcat 4.1.18. Help.

    Hi
    I have installed and created my own context in Tomcat 4.1.18
    I have created a folder under
    %TOMCAT_HOME%/webapps called Wap
    So my structure is:
    %TOMCAT_HOME%/webapps/Wap/WEB-INF/classes/<MyServlet.class>
    I have also modified the server.xml to include the context
    <!-- Tomcat Examples Context -->
    <Context path="/Wap" docBase="Wap" debug="0"
    reloadable="true" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_examples_log." suffix=".txt"
         timestamp="true"/>
    <Ejb name="ejb/EmplRecord" type="Entity"
    home="com.wombat.empl.EmployeeRecordHome"
    remote="com.wombat.empl.EmployeeRecord"/>
    </Context>
    But when i try to call this servlet thru the brower by saying
    http://localhost:8080/Wap/servlet/MyServlet
    I get the message
    The requested resource (/Wap/servlet/DeviceLocation) is not available
    AM I MISSING SOMETHING??? CAN SOME HELP?

    Two things:
    1) Did you put a web.xml file in %TOMCAT_HOME%/webapps/Wap/WEB-INF ?
    2) Did you put mapping for your new servlet in this file like:
       <servlet>
          <servlet-name>localName</servlet-name>
          <servlet-class>full.package.className</servlet-class>
       </servlet>
       <servlet-mapping>
          <servlet-name>localName</servlet-name>
          <url-pattern>/servlet/path</url-pattern>
       </servlet-mapping>Patrick

Maybe you are looking for