|
From: Leif M. <le...@ta...> - 2008-04-02 04:48:30
|
Roger, The error is saying that your class "RemoteDaemon". Does not have a public static main method in that class. The Wrapper is finding the class, but it then uses Java reflection to find the main method. Could you give me some more information to track this down? Does the main method exist in the RemoteDaemon class or is it implemented in a super class? If I can reproduce this here, I should easily be able to work around it. Thanks, Leif Viton, Roger wrote: > > -----Original Message----- > From: Viton, Roger > Sent: Tue 4/1/2008 4:25 PM > To: wra...@li... > Subject: cannot access member of class with modifiers "public static" > > Leif, > > Have a standalone application. Runs fine as standalone application. > > Code sits on a port and listens. > > Here is wrapper.conf. Below is output when executing app.bat > > > Thank you, > > V/r, > Roger > > ===================================================== > #******************************************************************** > # Wrapper License Properties (Ignored by Community Edition) > #******************************************************************** > #include ../conf/wrapper-license.conf > > #******************************************************************** > # Wrapper Java Properties > #******************************************************************** > # Java Application > wrapper.java.command=%JAVA_HOME%/bin/java > > # Java Main class. This class must implement the WrapperListener > interface > # or guarantee that the WrapperManager class is initialized. Helper > # classes are provided to do this for you. See the Integration section > # of the documentation for details. > #wrapper.java.mainclass=org.tanukisoftware.wrapper.test.Main > wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp > > # Java Classpath (include wrapper.jar) Add class path elements as > # needed starting from 1 > wrapper.java.classpath.1=../lib/wrappertest.jar > wrapper.java.classpath.2=../lib/wrapper.jar > wrapper.java.classpath.3=../lib/RemoteShell.jar > > # Java Library Path (location of Wrapper.DLL or libwrapper.so) > wrapper.java.library.path.1=../lib > > # Java Additional Parameters > #wrapper.java.additional.1= > > # Initial Java Heap Size (in MB) > #wrapper.java.initmemory=3 > > # Maximum Java Heap Size (in MB) > #wrapper.java.maxmemory=64 > > # Application parameters. Add parameters as needed starting from 1 > #wrapper.app.parameter.1= > wrapper.app.parameter.1=RemoteDaemon > wrapper.app.parameter.2=50001 > > #******************************************************************** > # Wrapper Logging Properties > #******************************************************************** > # Format of output for the console. (See docs for formats) > wrapper.console.format=PM > > # Log Level for console output. (See docs for log levels) > wrapper.console.loglevel=INFO > > # Log file to use for wrapper output logging. > wrapper.logfile=../logs/wrapper.log > > # Format of output for the log file. (See docs for formats) > wrapper.logfile.format=LPTM > > # Log Level for log file output. (See docs for log levels) > wrapper.logfile.loglevel=INFO > > # Maximum size that the log file will be allowed to grow to before > # the log is rolled. Size is specified in bytes. The default value > # of 0, disables log rolling. May abbreviate with the 'k' (kb) or > # 'm' (mb) suffix. For example: 10m = 10 megabytes. > wrapper.logfile.maxsize=0 > > # Maximum number of rolled log files which will be allowed before old > # files are deleted. The default value of 0 implies no limit. > wrapper.logfile.maxfiles=0 > > # Log Level for sys/event log output. (See docs for log levels) > wrapper.syslog.loglevel=NONE > > #******************************************************************** > # Wrapper Windows Properties > #******************************************************************** > # Title to use when running as a console > wrapper.console.title=Test Wrapper Sample Application > > #******************************************************************** > # Wrapper Windows NT/2000/XP Service Properties > #******************************************************************** > # WARNING - Do not modify any of these properties when an application > # using this configuration file has been installed as a service. > # Please uninstall the service before modifying this section. The > # service can then be reinstalled. > > # Name of the service > wrapper.ntservice.name=RemoteDaemon > > # Display name of the service > wrapper.ntservice.displayname=RemoteDaemon > > # Description of the service > wrapper.ntservice.description=RemoteDaemon > > # Service dependencies. Add dependencies as needed starting from 1 > wrapper.ntservice.dependency.1= > > # Mode in which the service is installed. AUTO_START or DEMAND_START > wrapper.ntservice.starttype=AUTO_START > > # Allow the service to interact with the desktop. > wrapper.ntservice.interactive=false > > ==================================================== > ==================================================== > ==================================================== > > >app > wrapper | --> Wrapper Started as Console > wrapper | Java Service Wrapper Community Edition 3.3.0 > wrapper | Copyright (C) 1999-2008 Tanuki Software, Inc. All Rights > Reserved. > wrapper | http://wrapper.tanukisoftware.org > wrapper | > wrapper | Launching a JVM... > jvm 1 | WrapperManager: Initializing... > jvm 1 | WrapperSimpleApp: > jvm 1 | WrapperSimpleApp: Encountered an error running main: > jvm 1 | WrapperSimpleApp: java.lang.IllegalAccessException: Class > org.tanukisoftware.wrapper.WrapperSimpleApp can not access a mem > ber of class RemoteDaemon with modifiers "public static" > jvm 1 | WrapperSimpleApp: at > sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65) > jvm 1 | WrapperSimpleApp: at > java.lang.reflect.Method.invoke(Method.java:588) > jvm 1 | WrapperSimpleApp: at > org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:237) > jvm 1 | WrapperSimpleApp: at java.lang.Thread.run(Thread.java:619) > wrapper | <-- Wrapper Stopped > Press any key to continue . . . > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > ------------------------------------------------------------------------ > > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |