|
From: Leif M. <le...@ta...> - 2005-07-13 20:50:15
|
Raghu,
From the UnsatisfiedLinkError, you can tell that this is a problem
loading a native
library. This means that the location of the required DLL is not being
included in
the library path correctly.
You currently have the following:
wrapper.java.library.path.1=../lib
wrapper.java.library.path.2=%JAVA_HOME%\lib\tools.jar
The second line should not be there, the library path is do load JNI DLL
files on
Windows, or .so files on UNIX, jar files are loaded with the classpath.
I assume that your program was working without the Wrapper, which means that
the default path was working. Java sets the java library path to the
system PATH
by default. You can get this same behavior by doing the following:
wrapper.java.library.path.1=../lib
wrapper.java.library.path.append_system_path=true
This requires 3.1.0 or newer. I suggest version 3.1.2.
Cheers,
Leif
raghu raj reddy wrote:
>
>
> hello sir
> i have some problem with wrapper class
> please go through it and send me the answer as soon as possible:=
> my java class code is:=
> JOptionPane.showInputDialog(null,"Input ID");
> if(flag){
> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
> String
> name=System.getProperty("user.name").trim();
> System.out.println("NAMEIN------"+name);
> String attUpdate = "update TS_ATD set
> ATD_STAT='1' where NET_NAME ='"+name+"'";
>
> con=DriverManager.getConnection("jdbc:odbc:FBIC","FBICEXT","FBICEXT");
> con.setAutoCommit(true);
> st=con.createStatement();
> st.executeUpdate(attUpdate);
> flag=false;
> System.out.println("Upadets succcess INNN");
>
> }//if
> t.suspend();
>
> if comment the following statement it is working fine:
> JOptionPane.showInputDialog(null,"Input ID");
> if not commented it throwing following exception:
>
> wrapperstartstop encounter error in running
> main:java.lang.unsatisfiedLinkError no java Accessbridge in
> java.library.path:
> my config file is:
>
> # Java Application
> wrapper.java.command=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=com.silveregg.wrapper.WrapperStartStopApp
> #com.silveregg.wrapper.WrapperStartStopApp
> #org.tanukisoftware.wrapper.WrapperStartStopApp
>
> # Java Classpath (include wrapper.jar) Add class path elements as
> # needed starting from 1
> wrapper.java.classpath.1=../lib/wrapper.jar
> wrapper.java.classpath.2=%JAVA_HOME%/lib/tools.jar
> wrapper.java.classpath.3=../bin
> # Java Library Path (location of Wrapper.DLL or libwrapper.so)
> wrapper.java.library.path.1=../lib
> wrapper.java.library.path.2=%JAVA_HOME%\lib\tools.jar
> # 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=Attendence.AttendenceIn
> wrapper.app.parameter.2=0
> wrapper.app.parameter.3=Attendence.AttendenceOut
> wrapper.app.parameter.4=true
> wrapper.app.parameter.5=0
> #********************************************************************
> # 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=AttFBIC
>
> # Display name of the service
> wrapper.ntservice.displayname=AttFBIC
> # Description of the service
> wrapper.ntservice.description=AttFBIC
>
> # 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=true
>
>
> PLEASE GO THROUGH IT AND PLESE SEND ME MAIL AS SOON AS POSSIBLE
>
|