|
From: Chris <ch...@hm...> - 2006-10-16 07:47:45
|
You need to make the class public too
HTH
Chris
David Schulberg wrote:
> Hi,
>
> Yes I am not very familiar with Java.
>
> With regard to the error I am getting now:
> 'java.lang.IllegalAccessException: Class
> org.tanukisoftware.wrapper.WrapperSimpleApp can not access a member of
> class Proxy with modifiers "public static"'
>
> I am unsure of exactly how to change my class definition which is
> currently:
>
> class Proxy {
>
> public static void main(String args[]) throws IOException{
>
> //parse arguments from command line
>
> .....
>
>
> How should this be redeclared for the wrapper?
>
> Regards,
> David
>
> I understand you have posted a remark to use
> On Tue, 10 Oct 2006 14:07:12 +0900, "Leif Mortenson"
> <le...@ta...> said:
>
>>David,
>>Please keep replies on the list for the benefit of other users.
>>
>>I saw a couple problems off the bat. They are both basic Java problems
>>so
>>I wonder if you are new to Java. :-)
>>
>>The first is your classpath. You specified the following:
>>wrapper.java.classpath.1=C:\Temp\ProxyServer\lib\wrapper.jar
>>wrapper.java.classpath.2=C:\Temp\ProxyServer\bin\proxy.class
>>
>>It looks like you have some un jared classes in your bin directory.
>>In that case, rather than including all of those classes on your class
>>path,
>>you should include the root directory that contains your packages and
>>classes. So try the following:
>>wrapper.java.classpath.1=C:\Temp\ProxyServer\lib\wrapper.jar
>>wrapper.java.classpath.2=C:\Temp\ProxyServer\bin\
>>
>>In general, a better way of doing this is to create a classes directory
>>under
>>lib and then place your unjared classes there. You would then have:
>>wrapper.java.classpath.1=C:\Temp\ProxyServer\lib\wrapper.jar
>>wrapper.java.classpath.2=C:\Temp\ProxyServer\lib\classes
>>
>>The second problem is with your main class. You secified the following
>>arguments to the WrapperSimpleApp class:
>>wrapper.app.parameter.1=proxy.main
>>wrapper.app.parameter.2=1234
>>wrapper.app.parameter.3=192.168.2.70
>>wrapper.app.parameter.4=4999
>>
>>Unless you have an inner class named main. This is probably incorrect.
>>You want to specify the class name rather than the method name. This
>>should be:
>>wrapper.app.parameter.1=proxy
>>wrapper.app.parameter.2=1234
>>wrapper.app.parameter.3=192.168.2.70
>>wrapper.app.parameter.4=4999
>>
>>Third is a style issue. In general, Java class names are always
>>capitalized.
>>This is done to make it clear what is a class and what is a method name.
>>So to follow this standard, your "proxy" class should be named "Proxy".
>>
>>Cheers,
>>Leif
>>
>>David Schulberg wrote:
>>
>>>Hi Leif,
>>>
>>>I gratefully accept your offer to checkout my wrapper.conf file.
>>>I continue to get the error
>>>WrapperSimpleApp: Unable to locate the class proxy:
>>>java.lang.ClassNotFoundException: proxy
>>>
>>>Regards,
>>>David
>>>
>>>-----Original Message-----
>>>From: Leif Mortenson [mailto:le...@ta...]
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wrapper-user mailing list
> Wra...@li...
> https://lists.sourceforge.net/lists/listinfo/wrapper-user
>
> PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET.
> On entering the GSI, this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Cable & Wireless in partnership with MessageLabs.
> In case of problems, please call your organisational IT Helpdesk.
> The MessageLabs Anti Virus Service is the first managed service to achieve the CSIA Claims Tested Mark (CCTM Certificate Number 2006/04/0007), the UK Government quality mark initiative for information security products and services. For more information about this please visit www.cctmark.gov.uk
>
--
Chris
HMGCC
The information contained in this message (and any attachments) may
be confidential and is intended for the sole use of the named addressee.
Access, copying, alteration or re-use of the e-mail by anyone other
than the intended recipient is unauthorised. If you are not the intended
recipient please advise the sender immediately by returning the e-mail
and deleting it from your system.
This information may be exempt from disclosure under Freedom Of Information
Act 2000 and may be subject to exemption under other UK information
legislation. Refer disclosure requests to the Information Officer.
The original of this email was scanned for viruses by Government Secure Intranet (GSi) virus scanning service supplied exclusively by Cable & Wireless in partnership with MessageLabs.
On leaving the GSI this email was certified virus free.
The MessageLabs Anti Virus Service is the first managed service to achieve the CSIA Claims Tested Mark (CCTM Certificate Number 2006/04/0007), the UK Government quality mark initiative for information security products and services. For more information about this please visit www.cctmark.gov.uk
|