|
From: Riggins, S. E <sha...@hp...> - 2005-02-01 20:41:32
|
Hi, I found a few articles in the archive referencing this problem, but the suggestions given haven't helped me to resolve the problem. I've tried modifying the security policy file as well as moving my class files into the lib directory. If anyone can help with this, I'd appreciate it very much. This error is coming up as soon as I try to start the wrapper in console mode (to test it out before I run it as a service.) STATUS | wrapper | 2005/02/01 11:42:06 | --> Wrapper Started as Console STATUS | wrapper | 2005/02/01 11:42:07 | Launching a JVM... INFO | jvm 1 | 2005/02/01 11:42:07 | Wrapper (Version 3.1.2) http://wrapper.tanukisoftware.org INFO | jvm 1 | 2005/02/01 11:42:07 |=20 INFO | jvm 1 | 2005/02/01 11:42:07 |=20 INFO | jvm 1 | 2005/02/01 11:42:07 | WrapperSimpleApp: Encountered an error running main: java.lang.IllegalAccessException: Class org.tanukisoftware.wrapper.WrapperSimpleApp can not access a member of class SynchControlService with modifiers "public static" INFO | jvm 1 | 2005/02/01 11:42:07 | java.lang.IllegalAccessException: Class org.tanukisoftware.wrapper.WrapperSimpleApp can not access a member of class SynchControlService with modifiers "public static" INFO | jvm 1 | 2005/02/01 11:42:07 | at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57) INFO | jvm 1 | 2005/02/01 11:42:07 | at java.lang.reflect.Method.invoke(Method.java:317) INFO | jvm 1 | 2005/02/01 11:42:07 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:13 6) INFO | jvm 1 | 2005/02/01 11:42:07 | at java.lang.Thread.run(Thread.java:534) STATUS | wrapper | 2005/02/01 11:42:09 | <-- Wrapper Stopped I've stripped the class down to just some junk code that should loop, with exactly the same results when running bin/SynchControlService.bat: class SynchControlService { public static void main(String[] arguments) { // SynchControlService scs =3D new SynchControlService(); // scs.processFiles(); int x =3D 0; while(1=3D=3D1) { x++; x--; } =20 } } ///:~ My class files are located in the directory above the wrapper.exe, but all are specified in the classpaths. Here's the config file as well: #******************************************************************** # Wrapper Properties #******************************************************************** # Java Application wrapper.java.command=3DC:\j2sdk1.4.2_06\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=3Dorg.tanukisoftware.wrapper.WrapperSimpleApp # Java Classpath (include wrapper.jar) Add class path elements as # needed starting from 1 wrapper.java.classpath.1=3DC:\riggins-data\javadev\SynchControlService\li= b \wrapper.jar wrapper.java.classpath.2=3DC:\riggins-data\javadev\SynchControlService wrapper.java.classpath.3=3DC:\riggins-data\javadev\SynchControlService\AW= _ JARS\*.jar # Java Library Path (location of Wrapper.DLL or libwrapper.so) wrapper.java.library.path.1=3D../lib # Java Additional Parameters #wrapper.java.additional.1=3D # Initial Java Heap Size (in MB) #wrapper.java.initmemory=3D3 # Maximum Java Heap Size (in MB) #wrapper.java.maxmemory=3D64 # Application parameters. Add parameters as needed starting from 1 wrapper.app.parameter.1=3DSynchControlService #******************************************************************** # Wrapper Logging Properties #******************************************************************** # Format of output for the console. (See docs for formats) wrapper.console.format=3DPM # Log Level for console output. (See docs for log levels) wrapper.console.loglevel=3DINFO # Log file to use for wrapper output logging. wrapper.logfile=3D../logs/wrapper.log # Format of output for the log file. (See docs for formats) wrapper.logfile.format=3DLPTM # Log Level for log file output. (See docs for log levels) wrapper.logfile.loglevel=3DINFO # 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 =3D 10 megabytes. wrapper.logfile.maxsize=3D1m # 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=3D5 # Log Level for sys/event log output. (See docs for log levels) wrapper.syslog.loglevel=3DNONE #******************************************************************** # Wrapper Windows Properties #******************************************************************** # Title to use when running as a console wra...@ap...@ #******************************************************************** # 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=3DSynchControlService # Display name of the service wrapper.ntservice.displayname=3DSynch Control Service=20 # Description of the service wrapper.ntservice.description=3DControls synchronization of data between ISEE and other systems such as ISCE or OVO # Service dependencies. Add dependencies as needed starting from 1 wrapper.ntservice.dependency.1=3D # Mode in which the service is installed. AUTO_START or DEMAND_START wrapper.ntservice.starttype=3DAUTO_START # Allow the service to interact with the desktop. wrapper.ntservice.interactive=3Dfalse |