You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Robin Harvey <ro...@chaptereight.com> on 2007/03/01 18:16:27 UTC

System property locations

Hi,

Apologies for the newbie question.  I need to use Saxon in my service,
and I'm struggling to figure out where to set the system property needed
to achieve this.  I've tried making calls to System.setProperty() in my
service implementation class, but this results in class not found
exceptions (even though the Saxon jar file is in the lib/ subdir of my
aar file).  Is there somewhere in the Tomcat/Axis setup I can set this
property?  FYI: here's my current setup:

Tomcat 5.5.20
Axis2 1.1.1
JDK 1.6.0 (Sun)
Linux 2.6 (Ubuntu Edgy)


Many thanks,
--Robin

-- 
Robin Harvey
Research & Development
Chapter Eight Limited

Castleton Mill
Castleton Close
Leeds
LS12 2DS

E: robin.harvey@chaptereight.com
T: 0113 227 0800
F: 0113 227 0801

www.chaptereight.com

This email has been sent to you by Chapter Eight Limited ("Chapter
Eight"). Chapter Eight is registered in England and Wales with company
number 05818885 and has it's registered office at Castleton Mill, 
Castleton Close, Leeds, LS12 2DS. Chapter Eight is VAT registered
with VAT number 882 879 848. Chapter Eight is registered as a 
data controller under the Data Protection Act 1998 with registration 
number Z9562928.

This e-mail, including attachments, is intended for the person(s)
or company named and may contain confidential and/or legally
privileged information. Unauthorised disclosure, copying or use
of this information may be unlawful and is prohibited. If you are
not the intended recipient or you have received this message in
error, please delete this message and notify the sender.

If you are not the intended recipient, or the employee or agent
responsible for delivering such materials to the intended recipient,
you are hereby notified that any use, any form of reproduction,
dissemination, copying, disclosure, modification, distribution
and/or publication of this email message or its attachments other
than by its intended recipient is strictly prohibited by the sender.

On the basis that you are the intended recipient then receipt of
this email by you represents your confirmation that you agree,
or continue to agree, to be bound by our standard Terms of Business
applicable to the transaction to which this email relates.

If you require a copy (or a replacement copy) of the applicable
standard Terms and Conditions of Business please email your request
by return.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


RE: System property locations

Posted by Ryan Nelsestuen <ry...@issinc.com>.
You can probably pass them into Tomcat as command line options in the Tomcat
startup .sh file... (e.g. add -Dsome.property=foo to the java command).
Sometimes you can set an environment variable that will automatically be
read and included as part of the startup script (e.g. weblogic has
JAVA_OPTIONS - maybe Tomcat does something similar - check out their startup
script).

-----Original Message-----
From: Robin Harvey [mailto:robin.harvey@chaptereight.com] 
Sent: Thursday, March 01, 2007 10:16 AM
To: axis-user@ws.apache.org
Subject: System property locations

Hi,

Apologies for the newbie question.  I need to use Saxon in my service,
and I'm struggling to figure out where to set the system property needed
to achieve this.  I've tried making calls to System.setProperty() in my
service implementation class, but this results in class not found
exceptions (even though the Saxon jar file is in the lib/ subdir of my
aar file).  Is there somewhere in the Tomcat/Axis setup I can set this
property?  FYI: here's my current setup:

Tomcat 5.5.20
Axis2 1.1.1
JDK 1.6.0 (Sun)
Linux 2.6 (Ubuntu Edgy)


Many thanks,
--Robin

-- 
Robin Harvey
Research & Development
Chapter Eight Limited

Castleton Mill
Castleton Close
Leeds
LS12 2DS

E: robin.harvey@chaptereight.com
T: 0113 227 0800
F: 0113 227 0801

www.chaptereight.com

This email has been sent to you by Chapter Eight Limited ("Chapter
Eight"). Chapter Eight is registered in England and Wales with company
number 05818885 and has it's registered office at Castleton Mill, 
Castleton Close, Leeds, LS12 2DS. Chapter Eight is VAT registered
with VAT number 882 879 848. Chapter Eight is registered as a 
data controller under the Data Protection Act 1998 with registration 
number Z9562928.

This e-mail, including attachments, is intended for the person(s)
or company named and may contain confidential and/or legally
privileged information. Unauthorised disclosure, copying or use
of this information may be unlawful and is prohibited. If you are
not the intended recipient or you have received this message in
error, please delete this message and notify the sender.

If you are not the intended recipient, or the employee or agent
responsible for delivering such materials to the intended recipient,
you are hereby notified that any use, any form of reproduction,
dissemination, copying, disclosure, modification, distribution
and/or publication of this email message or its attachments other
than by its intended recipient is strictly prohibited by the sender.

On the basis that you are the intended recipient then receipt of
this email by you represents your confirmation that you agree,
or continue to agree, to be bound by our standard Terms of Business
applicable to the transaction to which this email relates.

If you require a copy (or a replacement copy) of the applicable
standard Terms and Conditions of Business please email your request
by return.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org