|
From: Leif M. <le...@ta...> - 2005-02-01 23:45:44
|
Shawn,
Try this:
< class SynchControlService
> public class SynchControlService
Cheers,
Leif
Riggins, Shawn E wrote:
>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 |
>INFO | jvm 1 | 2005/02/01 11:42:07 |
>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 = new SynchControlService();
> // scs.processFiles();
> int x = 0;
> while(1==1)
> {
> x++;
> x--;
> }
>
> }
>} ///:~
>
>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=C:\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=org.tanukisoftware.wrapper.WrapperSimpleApp
>
># Java Classpath (include wrapper.jar) Add class path elements as
># needed starting from 1
>wrapper.java.classpath.1=C:\riggins-data\javadev\SynchControlService\lib
>\wrapper.jar
>wrapper.java.classpath.2=C:\riggins-data\javadev\SynchControlService
>wrapper.java.classpath.3=C:\riggins-data\javadev\SynchControlService\AW_
>JARS\*.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=SynchControlService
>
>#********************************************************************
># 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=1m
>
># 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=5
>
># 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
>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=SynchControlService
>
># Display name of the service
>wrapper.ntservice.displayname=Synch Control Service
>
># Description of the service
>wrapper.ntservice.description=Controls 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=
>
># 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
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
>Tool for open source databases. Create drag-&-drop reports. Save time
>by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
>Download a FREE copy at http://www.intelliview.com/go/osdn_nl
>_______________________________________________
>Wrapper-user mailing list
>Wra...@li...
>https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
>
>
|