Server Startup Class Exception - Where do the startup classes go?

Trying to get the server to run a class at startup. It complains it
can't find my startup class. I have it in a jar file in the app-inf
directory. Should it go someplace else?
thanks

Add the startup classes jar file to the APP-INF/lib directory.
Jay Zimmett <[email protected]> wrote:
Trying to get the server to run a class at startup. It complains it
can't find my startup class. I have it in a jar file in the app-inf
directory. Should it go someplace else?
thanks

Similar Messages

  • Where are the startup messages logged? [solved]

    Where is the startup output logged? I catch a glimpse of a red [FAIL] but it dumps to the login screen too quick and everything is cleared before I can read the error.
    Last edited by oops (2010-07-06 13:22:12)

    They aren't logged anywhere. though to read the message, you can try either of these options.
    http://wiki.archlinux.org/index.php/Dis … t_messages

  • Where does the java classes go?

    I normally use IntelliJ which automatically puts the java class and the jsp where they are meant to go.
    Can some help me.
    Can someone please tell me where to put the java class, i have put the jsp pages in the webapps\ROOT but where does the java classes go?
    Edited by: Tinkerbelle on Jul 24, 2008 1:46 AM

    Tinkerbelle wrote:
    sorry being stupid i do that sorry,
    If i change the class to type (as someone said in a previous post)That would only work if you already put the bean in the session scope.
    Did you try what PaulOckford wrote?
    >
    i get this error:
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 6 in the generated java file
    Only a type can be imported. com.database.contactDB resolves to a packageDo you have a package structure that looks like this:
    com
    com/database/ <-- This is where contactDB.class is located
    com/database/contactDB/
    Because that is what the compiler is saying. Though it may be thrown off by case (see below)
    P.S. If you use the jsp:useBean you do not need the import statement which appears to be where the error occurs. (One of the things that makes JSPs so hard to debug is the fact that the error line in the generated java file as referenced above is never the same as the line in the JSP file).
    >
    An error occurred at line: 3 in the jsp file: /login.jsp
    database.contactDB cannot be resolved to a type
    1: <%@ page import="com.database.contactDB" %>
    2:
    3: <jsp:useBean id='db'
    4: scope='session'
    5: type='database.contactDB'/>
    6: <html>
    And to be ultra clear - you did compile contactDB from a .java file to a .class file, and the class is called contactDB and not ContactDB correct? The class name is case sensitive and should be the exact same case in the useBean and import statements as in the real class name.
    >
    An error occurred at line: 3 in the jsp file: /login.jsp
    database.contactDB cannot be resolved to a type
    1: <%@ page import="com.database.contactDB" %>
    2:
    3: <jsp:useBean id='db'
    4: scope='session'
    5: type='database.contactDB'/>
    6: <html>
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.26 logs.
    Apache Tomcat/5.5.26Edited by: stevejluke on Jul 24, 2008 7:33 AM
    Fixed compile from .class file to a .java file to compile from a .java file to .class file

  • Exception Handling Standards -The exception Exception should never been thrown. Always Subclass Exception and throw the subclassed Classes.

    In the current project my exception handling implementation is as follows :
    Exception Handling Layer wise :
    DL layer :
    catch (Exception ex)
    bool rethrow = ExceptionPolicy.HandleException(ex, "Ui Policy");
    if (rethrow)
    throw;
    BL Layer
    catch (Exception ex)
    bool rethrow = ExceptionPolicy.HandleException(ex, "Ui Policy");
    if (rethrow)
    throw;
    UI Layer
    catch (Exception ex)
    bool rethrow = ExceptionPolicy.HandleException(ex, "Ui Policy");
    if (rethrow)
    Response.Redirect("ErrorPage.aspx", false);
    We have a tool to check the standards. And tool output is as follows :
    The exception Exception should never been thrown. Always Subclass Exception and throw the subclassed Classes.
    I need suggestions on how to implement the same according to standards.

    Your tool is wrong if it says to never throw Exception.  This was a common recommendation back in the .NET v1 days but has long since been thrown out.  It is perfectly fine to use Exception when you have a general exception that provides no information
    that an application can use to make an informed opinion.
    The general rules of exception throwing is to throw the most specific exception that makes sense. If there is no specific exception that applies and it would be useful for the caller to handle the exception differently than other exceptions then creating
    a custom exception type is warranted.  Otherwise throwing Exception is reasonable. As an example you might have an application that pulls back product data given an ID. There is no built in exception that says the ID is invalid. However an invalid ID
    is something that an application may want to handle differently than, say, an exception about the product being discontinued.  Therefore it might make sense to create an ItemNotFoundException exception that the application can react to.
    Conversely there is no benefit in having different exception types for disk full and disk quota met. The application will respond the same in either case.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • Where is the member class?

    Hi,
    I am Ryan.
    Here is a small piece of code.
    <pre>
    if( error.getClass().equals( SoftErrorException.<b>class</b> ) )
         throw new JspException();
    </pre>
    Can somebody tell me where is the member "class" referred in the object SoftErrorException. I checked in the class "Object" and "Class". I also checked in the Java documentation index. I still could not find it.
    Thanks in advance
    Ryan

    Can somebody tell me where is the member "class"
    referred in the object SoftErrorException. I checked
    in the class "Object" and "Class". I also checked in
    the Java documentation index. I still could not find
    it.
    Thanks in advance
    Ryanclass is not a member. This is part of the language. Also, SoftErrorException is not an Object it is a class. I'm also having a problem finding the documentation for this. I assume it is part of the JLS. ClassName.class is the same as InstanceOfClass.getClass().

  • [svn:fx-trunk] 16929: Add a [Mixin] class that will register the required class aliases in the event the mxml compiler generation   [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework .

    Revision: 16929
    Revision: 16929
    Author:   [email protected]
    Date:     2010-07-15 07:38:44 -0700 (Thu, 15 Jul 2010)
    Log Message:
    Add a class that will register the required class aliases in the event the mxml compiler generation  [RemoteClass(alias="")] code is not called because an application does not use the Flex UI framework.
    Add a reference to this class in the RPCClasses file so it always gets loaded.
    QE notes: Need a remoting and messaging regression test that doesn't use Flex UI.
    Bugs: Watson bug 2638788
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/RPCClasses.as
    Added Paths:
        flex/sdk/trunk/frameworks/projects/rpc/src/mx/utils/RpcClassAliasInitializer.as

    Great exercise to document the problem like this.  It got me thinking about how an app with modules would be different from an app that does not use modules.  Solution: I moved the dummy reference of PersonPhotoView out to the main application file (as opposed to being inside the module) and it worked.  I've probably been lucky not to have experienced this problem earlier, because for most other entities I have an instance attached to my model which is linked / compiled with the main application.

  • ASA5510: where is the startup-config stored?

    Hi,
    i'm new to cisco's asa and trying to get used to it. it's not a real problem i have, which detains me from productive work but i'm just snoopy about this. on my cisco 871, when i do a
    dir nvram:
    i see a file called startup-config. but i can not find it on my asa 5510. i have a disk0-1:, flash: and system: but nowhere a startup-config. but it must be somewehre because a
    copy tftp startup-config
    is working somehow and does what i expect. furthermore, where are the cryptographic keys stored. the same issue. i can not find them. maybe someone of you is able to point me to this. thanks.
    ct,

    The startup configuration for single mode or for the system in multiple context mode is a hidden file in flash memory. From within a context, the location of the startup configuration is specified by the config-url command. For example, if you specify an HTTP server for the config-url command and then enter the copy startup-config running-config command, the security appliance copies the startup configuration from the HTTP server using the admin context interface.
    Also check the details about the commands "copy" and "configure-url" in the links below: 1)COPY--http://www.cisco.com/en/US/docs/security/asa/asa80/command/reference/c4.html#wp2104587
    2)CONFIGURE-URL----http://www.cisco.com/en/US/docs/security/asa/asa80/command/reference/c4.html#wp2100481

  • Where is the startup demeon located in? I need to kill it.

    I'm trying to delete and uninstall an old version of Norton Utilities, but it keeps popping up a dialog at startup telling me that Norton Utilities has detected a new version of Mac OS.
    I found out Norton keeps crashing my system (from the crash log) and corrupting my disk volume because the FileSaver keeps changing my disk volume info. I have used their uninstaller to uninstall it but it couldn't find any Norton existing. I manually deleted every Norton trace in Application Support folder, Library folder, Preference Pane folder, Preferences folder. I did a SpotLight search on all traces of "Norton" and "Symantec" and delete them all. I also looked at the Startup Items in Account preference, and none exist there.
    But the startup demeon still pops up, so Norton still exists somewhere, most likely under unix directory. I need to delete it because it keeps screwing up my disk volume info, and crashing me randomly. So where does unix's startup demeom live?
    Message was edited by: nicoladie

    Symantec Uninstaller 1.0.2 – Mac OS X – VersionTracker is the official uninstaller. Otherwise see,
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Applications may create preference files that are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term. Unfortunately Spotlight will not look in certain folders by default. You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead. Download Easy Find at VersionTracker or MacUpdate.
    There are also several shareware utilities that can uninstall applications:
    AppZapper
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • Where does the startup script go?

    Have a MacBook pro from my work. On startup the Mac automaticly statup network disks and a wallpaper from the network.
    How does I turn this off? Before it where with a statup script but it does not be where it where before.

    Got it working. Its a startup programm what did make the trick. The new program is I need it to print here. It also setup a (ugly) wallpaper on my back and that is the part I only want to remove. Got any tricks of doing that?

  • Where is the anonymous class in this? (lotsa code)

    When I compile ThreadPool.java, I get three classes: ThreadPool.class, ThreadPool$WorkerThread.class, and ThreadPool$1.class. I understand the first two, but I can't figure out where the anonymous class is coming from. Could it be some kind of automatically-generated wrapper class caused by the fact that all accesses to the Queue object are within synchronized blocks? Curiosity attacks!
    Thanks,
    Krum
    ThreadPool.java:
    package krum.util;
    * A thread pool with a bounded task queue and fixed number of worker threads.
    public class ThreadPool {
       protected Queue queue;
    public ThreadPool(int threads, int taskQueueSize) {
       queue = new Queue(taskQueueSize);
       /* create the worker threads */
       for(int i = 0; i < threads; ++i) {
          Thread t = new Thread(new WorkerThread());
          t.setDaemon(true);
          t.start();
    * Queues a task to be executed by this ThreadPool.  If the task queue is
    * full, the task will run in the calling thread.  (Could easily be modified
    * to throw an exception instead.)
    public void doTask(Runnable task) {
       boolean added = false;
       synchronized(queue) {
          if(!queue.isFull()) {
             queue.add(task);
             added = true;
             queue.notify();
       if(!added) task.run();
    * Tests if the task queue is empty.  Useful if you want to wait for all
    * queued tasks to complete before terminating your program.
    public boolean queueEmpty() {
       synchronized(queue) {
          return queue.isEmpty();
    private class WorkerThread implements Runnable {
    public void run() {
       Runnable task;
       while(true) {
          task = null;
          synchronized(queue) {
             try {
                if(queue.isEmpty()) queue.wait();
                else task = (Runnable)queue.getNext();
             } catch(InterruptedException e) { break; }
          if(task != null) task.run();
    } /* end inner class WorkerThread */
    } /* end class ThreadPool */Queue.java:
    package krum.util;
    * Implements a FIFO queue for storage and retrieval of objects.  This class
    * is not synchronized.
    public class Queue {
         /** circular buffer containing queued objects */
         protected Object[] queue;
         /** index of next object to be returned */
         protected int nextReturn;
         /** index in which to store next object inserted */
         protected int nextInsert;
    public Queue(int capacity) {
         queue = new Object[capacity];
         nextInsert = 0;
         nextReturn = 0;
    public boolean isEmpty() { return(queue[nextReturn] == null); }
    public boolean isFull() { return(queue[nextInsert] != null); }
    public void add(Object obj) throws QueueException {
         if(queue[nextInsert] == null) {
              queue[nextInsert] = obj;
              ++nextInsert;
              nextInsert %= queue.length;
         } else throw new QueueException();
    public Object getNext() throws QueueException {
         if(queue[nextReturn] != null) {
              Object obj = queue[nextReturn];
              queue[nextReturn] = null;
              ++nextReturn;
              nextReturn %= queue.length;
              return obj;
         } else throw new QueueException();
    } /* end class Queue */QueueException.java:
    package krum.util;
    public class QueueException extends RuntimeException { }

    I can't explain why it happens, but I've seen this
    behaviour before. I found that it was to do with an
    inner class (WorkerThread in your code) having a
    private constructor - if I made my inner class
    constructor at least package (default) access, then
    the anonymous class was no longer created.
    The generated default constructor for a class has the
    same access modifier as the class, so in your example,
    the default constructor that the compiler generates is
    private.
    I suspect the problem will go away if you either:
    1. Remove the private modifier from the WorkerThread
    class declaration.
    or:
    2. Add a no-args constructor to the WorkerThread
    class, and don't specify an access modifier.Yes, the reason is the private constructor. After decompile using JAD, the reason seems to be: if a private inner class does not explicitly have any constructor, a default no-arguments private constructor is created, and seems this default constructor can't be accessed directly (in source code, it can). So, another no-private constructor (package accessible) is created automatically (with an argument of Object's type), and the
    new WorkThread();is actually like this:
    new WorkThread(null);
    private class WorkThread implements Runnable{
       private WorkThread(){}
       WorkThread(Object obj) {
          this();
    }and I would guess it's using anonymous class tech to achieve this like:
    new WorkThread(null) {
       WorkThread(Object obj){
          this();
    }The JLS should have specified this situation.

  • Where is the ConnectPool class?

    I am using WSAD 4.0.3 and wanted to use the Microsoft JDBC driver.
    But when I try to set the WS server up with connection pooling I am at
    a loss as to what the com.microsoft.ETC is to the ConnectionPool
    class. What is it called and where is it?
    Thanks in advance,

    Crickets chirping in the night.......
    Sigh I really hate to flame but what can I say. I have been involved with Java development off and on over several years. Granted most of those years have been in the Microsoft world but there have been times and clients that Java was the best solution.
    Having worked in both camps, I have to tell you. I have always been sorely disappointed in the so called "community" of Java developers. A question such as the one posed would have generated a good dozen responses by now (48 hours old) within a Microsoft developer forum. Whether the question is basic, simple, obvious or just plain stupid is irrelevant. Either way it would not hinder developers from stating the fact plus the answer.
    There can be many reasons, maybe this is not a very active forum. If not then what website would have a quality and active forum?
    Maybe the question is viewed as redundant, or too simple to warrant a answer. But when has that stopped a good developer from pointing out the obvious? :-)
    Maybe Java, J2EE, etc. is not nearly as widely used as Microsoft's technologes. I know I have certainly seen this to be the case. Microsoft's weakness of being platform specific is in fact its' greatest strength. Everything works, together, seemlessly. No complex interoperatability issues. Open source is in many ways is open sores. With configuration and interoperability being a daunting manual labor intensive task. Case in point seems to be WSAD, works great simple as cake with Websphere Application Server and DB2. Try to use other non-IBM software such as SQL Server then all of a sudden you start slamming your hand in the drawer, repeatedly. I guess it could be the same in trying to use DB2 from .NET but then again, the developer base is there and you WILL get a response from someone who has done it.
    Of course, the reason for the lack of response is mostly likely something entirely different. Either way, this response, my response, should get some attention. Maybe.
    Sorry for the post, just some frustration I have been having since jumping back into the wonderful world of Java, Servlets and J2EE. Most likely does not help that my previous project was .NET with all its' ease.

  • Loaded SQL SERVER 2014 express but where is the management studio

    Loaded SQL SERVER 2014 but where is the management studio.
    It installed okay on windows 8. Laptop is 64 bit
    I see SQL Server Configuration, Error and Usage, Import and Export, Installation center.
    7777nanty

    Download: Express with Advanced Services (SQLEXPRADV)
    http://msdn.microsoft.com/en-us/evalcenter/dn434042.aspx
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Where is the WebService class located in the Flex SDK?

    I checked there and all I found in the
    \frameworks\source\mx\rpc folder is the IResponder.as class file.
    There wasn't a soap package or anything... When you do the
    import mx.rpc.soap.Webservice where is it coming from?

    Still no answer to this important question, nearly a year after it was posted? WHERE IS THE REMOTE BUTTON that we are supposed to pair Remote app on the iPhone with? Here's what the help file says in French :
    Jumeler Remote avec une bibliothèque iTunes
    1. Touchez Remote sur l’écran d’accueil de votre appareil.
    2. Touchez Ajouter une bibliothèque iTunes.Un code à 4 chiffres apparaît.
    3. Ouvrez iTunes sur votre ordinateur, puis cliquez sur le bouton Remote .
    4. Tapez le code à 4 chiffres dans la fenêtre iTunes.iTunes jumelle la bibliothèque de votre ordinateur avec l’app Remote de votre appareil.
    NO REMOTE BUTTON ANYWHERE IN ITUNES THAT I CAN SEE... HELP!

  • Where is the WLConnection class ???

    Hi !
    in the weblogic documentation : http://edocs.bea.com/wls/docs70/jdbc/thirdparty.html#1050527
    I see that it's possible to use the WLConnection class to get a connection, but
    I don't find this class in the package weblogic.jdbc.extensions.WLConnection,
    it appears that it doesn't exist
    I have weblogic 7 sp1
    Where can I find it ???
    Thx

    You must have a maintenance contract. You can call your Sales rep or Support to work this out.
    "partyboy" <[email protected]> wrote in message news:3f0c3f17$[email protected]..
    >
    How can I get the SP3 ?
    I register to eSupport but when I try to update, the updater says :
    the supplied username is not is not associated with a valid support contract
    "Stephen Felts" <[email protected]> wrote:
    You need 7.0SP3 or 8.1.
    It's in weblogic/jdbc/extensions.
    "partyboy" <[email protected]> wrote in message news:3f0c221f$[email protected]..
    Hi !
    in the weblogic documentation : http://edocs.bea.com/wls/docs70/jdbc/thirdparty.html#1050527
    I see that it's possible to use the WLConnection class to get a connection,but
    I don't find this class in the package weblogic.jdbc.extensions.WLConnection,
    it appears that it doesn't exist
    I have weblogic 7 sp1
    Where can I find it ???
    Thx

  • Where is the Debug Class

    Does anyone know what package the Debug Class is in? I searched through the Java API, but I couldn't find it...

    There are also third-party debuggers. Most (all?) IDEs come with a debugger. Arguably you really couldn't call it an IDE if it didn't have a debugger.
    I suppose it's typical for interpreted languages to have a separate class or module to be the debugger, whereas compiled languages tend to require a separate program. (Opinions?) In Java the JVM can be interfaced to an external program (eg jdb) to do debugging.

Maybe you are looking for

  • How/where to get the values stored in these two structure fields?

    hi    need your help to find out where the following two fields get stored in tables...or is there any fm or bapi to get the data stored in these two fields? 1) Create Scheduling agreement: Tcode: ME31L Field label - Agreement type Field name - EVART

  • Help needed on to write a program on connecting to data source

    I would to program a class that connect to data source without any manually configure. Is there other way that i could use intsead of using db = DriverManager.getConnection("jdbc:odbc:Driver={SQL Server};Server=MyServerName;Database=MyDataBase","",""

  • Change location of snippets to shared/network directory

    I am trying to standardize a deployment of SQL Developer to my team. We all have similar coding needs and I'd like to deploy a snippet library to a common location, such as a netshare, for us all to pull from. Ideally, one person could define a commo

  • [Solved]All wireless networks have stopped working

    Connecting to wireless networks that i have previously connected to times out, both with network manager, and iwconfig. I have tried on two networks i have previously connected to and both time out. What is interesting is that i am able to connect if

  • Printing information (date+time) of an order

    Hi experts, Do you know where printing information (date + time) of an order is stored? Does SAP store also a re-printing information? Via configuration OIOE, it triggers the printing information in table JCDS , but in case of re-printing, SAP does n