Re: Freeing up Request and Response nodes

2009-06-08 Thread Manjula Peiris
On Mon, 2009-06-08 at 10:57 +0500, Abdul Sami wrote:
 Manjula Peiris wrote: 
  On Mon, 2009-06-08 at 10:13 +0500, Abdul Sami wrote:

   any pointers?
   
   Abdul Sami wrote:
   
In the samples i do not see the request or response node being freed. 
When the client and server should free the request and response nodes?
  
  
  No need to free those. Axis2/C engine will free them.

 Thanks. For client i assume this will happen when the
 axis2_svc_client_t Handle is released?

Yes you are correct.

 



Re: soap in client call contains gabage character -- A critical bug in guththila writer

2009-06-08 Thread Gordon Brown
Can anyone in the development team please take a look at this one bug in 
Guththila component?
At least the potential fix I provided in this message thread?

==
The potential fix is to define GUTHTHILA_BUF_POS as the following:
 
     if ((_buffer)-pre_tot_data  _pos)
      return ((_buffer)-buff[(_buffer)-cur_buff-1] + _pos);
 else
      return ((_buffer)-buff[(_buffer)-cur_buff] + _pos - 
(_buffer)-pre_tot_data);
==

It is a problem in the buffer management, so without fixing this bug, users 
should not use guththila at this point.

Thanks!
Gordon


From: Gordon Brown gordonw.br...@yahoo.com
To: axis-c-...@ws.apache.org; shan...@wso2.com; sam...@wso2.com
Cc: axis-c-user@ws.apache.org
Sent: Friday, June 5, 2009 2:15:42 PM
Subject: Re: soap in client call contains gabage character -- A critical bug in 
guththila writer


OK, since no one reply to my question, I have to debug the code and found out 
that guththila has a bug in managing buffer when seriazlize thea axiom tree 
(the soap structure) before actually send out the request, and I have a 
potential fix. This is really a critical bug I think, so I hope some developers 
can take a look at this problem. I am attaching the test input data and code 
snappet to reproduce the problem.

Basically, the bug occurs in guththila_xml_writer.c. 
The guththila_xml_writer (I call it the soap serializer) maintains an array of 
buffers dynamically when it writes the soap structure into the buffers. The bug 
will occur in the following situation: 

Let's say I have an element ns1:doDeleteFirst12345/ns1:doDeleteFirst 
somewhere in the soap structure. Now before this element, there are lots of 
other elements, and when the  guththila_xml_writer  trys to process this 
element, the first buffer is ALMOST full, it does not have enough space 
to write the whole element name ns1:doDeleteFirst (the start tag) into the 
buffer, it has to create a new buffer, so it writes ns1: at the end of the 
first buffer (still a few more bytes left empty), and writes doDeleteFirst at 
the very beginning of the second buffer.

The first buffer (Buffer length 16384):
--
|**ns1:--|

The second buffer (Buffer length 32768):
---
|doDeleteFirst-|

As the second buffer becomes the current buffer, when the writer trys to 
process the end tag (/ns1:doDeleteFirst),  it uses an elem stack to track the 
namespace prefix and localname as in the following code: (starting from line 
1396)

  elem-name = guththila_tok_list_get_token(wr-tok_list, env);
  elem-prefix = guththila_tok_list_get_token(wr-tok_list, env);
  elem-name-start = GUTHTHILA_BUF_POS(wr-buffer, elem_start);
  elem-name-size = elem_len;
  elem-prefix-start = GUTHTHILA_BUF_POS(wr-buffer, elem_pref_start);
  elem-prefix-size = pref_len; 

The macro GUTHTHILA_BUF_POS  is defined as this:

#ifndef GUTHTHILA_BUF_POS
#define GUTHTHILA_BUF_POS(_buffer, _pos) 
 ((_buffer).buff[(_buffer).cur_buff] + _pos - (_buffer).pre_tot_data)
#endif

The bug occurs when it calcuate elem-prefix-start = 
GUTHTHILA_BUF_POS(wr-buffer, elem_pref_start):

The elem_pref_start has a value of 16375, the pre_tot_data has a value of 16379 
(the first buffer length is 16384), they are calculated based on the first 
buffer data, but the current buffer is the second one, so  elem-prefix-start 
points to gabage!

I hope this makes sense to you. Use my test case you will see this quickly. 
When you run the same XML data I attached, first set a break point at line 392 
in the file guththila_xml_writer_wrapper, and set the hit count as 514 in the 
break properties (the 514th element in ns1:doDeleteFirst), then debug step by 
step.

The potential fix is to define GUTHTHILA_BUF_POS as the following:
 
     if ((_buffer)-pre_tot_data  _pos)
      return ((_buffer)-buff[(_buffer)-cur_buff-1] + _pos);
 else
      return ((_buffer)-buff[(_buffer)-cur_buff] + _pos - 
(_buffer)-pre_tot_data);

GUTHTHILA_BUF_POS is used everywhere, so I really hope some developer can take 
over this case and fix it!

Thanks!
Gordon





From: Gordon Brown gordonw.br...@yahoo.com
To: axis-c-user@ws.apache.org
Cc: axis-c-...@ws.apache.org
Sent: Wednesday, June 3, 2009 12:49:21 AM
Subject: soap in client call contains gabage character -- Very very puzzling


Hi All,

I need urgent help with a very puzzling issue with axis2/c 1.6 ( I build the 
axis2/c using the code from trunk, slightly earlier before the offical 
release). Here is my issue:

I have a small XML data (16K) passed in to be as 

Sample code required for Axis 1.4

2009-06-08 Thread Sudhanshu Umalkar Umalkar
Need sample code of Axis 1.4 for this requirement: 

Provide an XML SOAP web service that receives an XML request and
delivers an XML response. 

Thanks  Regards,
Sud


Axis Skeleton

2009-06-08 Thread Toni Karhu
Hello,

Is it possible to have the WSDL2java to generate only the skeleton
interface. As the implemented skeleton that we use is located in a
different location and the generated java files are generated always
when a build is done. This causes the compile to fail as we have 2
skeletons.

Or do i have to write a script to delete the empty skeleton?

Toni


axis2 vs axis

2009-06-08 Thread rkrgarlapati

Hi there!

I have created WSDL using axis2(java2wsdl), can i use this WSDL to generate
client files with axis.

Regards,
Kumar
-- 
View this message in context: 
http://www.nabble.com/axis2-vs-axis-tp23922760p23922760.html
Sent from the Axis - User mailing list archive at Nabble.com.



[no subject]

2009-06-08 Thread Florian Kaltner
Hi!

I set up a simple Web Service using POJOs. I defined a class MyService with a 
method update(A a, B b). If i call that method using the corresponding Web 
Service operation, the object b is always null. Looking at the SOAP message 
with TCPMon, I am seeing, that both objects are serialized (as arg0 and arg1)

Is this a restriction on using Axis2 with POJOs? How could i manage to transfer 
both objects?

Thanks!
-- 
GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.!
http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a


Content-Length header not set

2009-06-08 Thread Julien HENRY
Hi,

I'm trying to get size of the big attachment I'm downloading using Axis2. Axis2 
is used on both side (client and server).

The issue is the server is not sending content-size header so I can't estimate 
the progress of my download.

Here are the headers:

DEBUG 18:30:51.184 c.t.i.p.c.service.impl.HttpConnection-  Open connection 
to xx.sud.mycompany.fr:8085
DEBUG 18:30:51.199 httpclient.wire.header   -   POST 
/project-vault-local/services/VaultService HTTP/1.1[\r][\n]
DEBUG 18:30:51.199 o.a.commons.httpclient.HttpMethodBase-  Adding Host 
request header
DEBUG 18:30:51.199 httpclient.wire.header   -   
Content-Type: multipart/related; 
boundary=MIMEBoundaryurn_uuid_8E481CB0C6ECBADFA21244478651319; 
type=application/xop+xml; 
start=0.urn:uuid:8e481cb0c6ecbadfa21244478651...@apache.org; 
start-info=text/xml[\r][\n]
DEBUG 18:30:51.199 httpclient.wire.header   -   SOAPAction: 
downloadPPF[\r][\n]
DEBUG 18:30:51.230 httpclient.wire.header   -   User-Agent: 
Axis2[\r][\n]
DEBUG 18:30:51.230 httpclient.wire.header   -   Host: 
xx.sud.mycompany.fr:8085[\r][\n]
DEBUG 18:30:51.230 httpclient.wire.header   -   
Transfer-Encoding: chunked[\r][\n]
DEBUG 18:30:51.230 httpclient.wire.header   -   [\r][\n]
DEBUG 18:30:51.230 o.a.c.h.methods.EntityEnclosingMethod-  Request body sent
DEBUG 18:30:51.262 httpclient.wire.header   -   HTTP/1.1 200 
OK[\r][\n]
DEBUG 18:30:51.262 httpclient.wire.header   -   HTTP/1.1 200 
OK[\r][\n]
DEBUG 18:30:51.262 httpclient.wire.header   -   Server: 
Apache-Coyote/1.1[\r][\n]
DEBUG 18:30:51.262 httpclient.wire.header   -   
Content-Type: multipart/related; 
boundary=MIMEBoundaryurn_uuid_2A7DE541ADE50F0A3C1244478647998; 
type=application/xop+xml; 
start=0.urn:uuid:2a7de541ade50f0a3c1244478647...@apache.org; 
start-info=text/xml[\r][\n]
DEBUG 18:30:51.262 httpclient.wire.header   -   
Transfer-Encoding: chunked[\r][\n]
DEBUG 18:30:51.262 httpclient.wire.header   -   Date: Mon, 
08 Jun 2009 16:30:47 GMT[\r][\n]
DEBUG 18:30:51.262 httpclient.wire.header   -   [\r][\n]
DEBUG 18:31:12.485 httpclient.wire.header   -   [\r][\n]


I have read [1] that it may be solved by disabling chunked transfert encoding 
and I also tried by forcing to HTTP 1.0:

stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED,
 Boolean.FALSE);
stub._getServiceClient().getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.HTTP_PROTOCOL_VERSION,

org.apache.axis2.transport.http.HTTPConstants.HEADER_PROTOCOL_10);


But the result is not better:

DEBUG 18:36:44.294 o.a.c.h.params.DefaultHttpParams -  Set parameter 
http.protocol.version = HTTP/1.0
DEBUG 18:36:44.294 c.t.i.p.c.service.impl.HttpConnection-  Open connection 
to x.sud.mycompany.fr:8085
DEBUG 18:36:44.326 httpclient.wire.header   -   POST 
/project-vault-local/services/VaultService HTTP/1.0[\r][\n]
DEBUG 18:36:44.326 o.a.commons.httpclient.HttpMethodBase-  Adding Host 
request header
DEBUG 18:36:44.341 httpclient.wire.header   -   
Content-Type: multipart/related; 
boundary=MIMEBoundaryurn_uuid_A1E117B6C0A256F56A1244479004429; 
type=application/xop+xml; 
start=0.urn:uuid:a1e117b6c0a256f56a1244479004...@apache.org; 
start-info=text/xml[\r][\n]
DEBUG 18:36:44.341 httpclient.wire.header   -   SOAPAction: 
downloadPPF[\r][\n]
DEBUG 18:36:44.341 httpclient.wire.header   -   User-Agent: 
Axis2[\r][\n]
DEBUG 18:36:44.341 httpclient.wire.header   -   Host: 
x1.sud.mycompany.fr:8085[\r][\n]
DEBUG 18:36:44.341 httpclient.wire.header   -   
Content-Length: 840[\r][\n]
DEBUG 18:36:44.341 httpclient.wire.header   -   [\r][\n]
DEBUG 18:36:44.341 o.a.c.h.methods.EntityEnclosingMethod-  Request body sent
DEBUG 18:36:44.373 httpclient.wire.header   -   HTTP/1.1 200 
OK[\r][\n]
DEBUG 18:36:44.373 httpclient.wire.header   -   HTTP/1.1 200 
OK[\r][\n]
DEBUG 18:36:44.373 httpclient.wire.header   -   Server: 
Apache-Coyote/1.1[\r][\n]
DEBUG 18:36:44.373 httpclient.wire.header   -   
Content-Type: multipart/related; 
boundary=MIMEBoundaryurn_uuid_2A7DE541ADE50F0A3C1244479000711; 
type=application/xop+xml; 
start=0.urn:uuid:2a7de541ade50f0a3c1244479000...@apache.org; 
start-info=text/xml[\r][\n]
DEBUG 18:36:44.373 httpclient.wire.header   -   Date: Mon, 
08 Jun 2009 16:36:40 GMT[\r][\n]
DEBUG 18:36:44.373 httpclient.wire.header   -   Connection: 
close[\r][\n]
DEBUG 18:36:44.373 httpclient.wire.header   -   [\r][\n]


Do you know how can I have the Content-Lenght header set in the response?

Thanks


RE:

2009-06-08 Thread Martin Gainty

assuming this is non rest doc-lit please display WSDL (and accompaning XSDs)

thanks,
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.






 Date: Mon, 8 Jun 2009 18:37:37 +0200
 From: florian.kalt...@gmx.de
 To: axis-user@ws.apache.org
 
 Hi!
 
 I set up a simple Web Service using POJOs. I defined a class MyService with a 
 method update(A a, B b). If i call that method using the corresponding Web 
 Service operation, the object b is always null. Looking at the SOAP message 
 with TCPMon, I am seeing, that both objects are serialized (as arg0 and arg1)
 
 Is this a restriction on using Axis2 with POJOs? How could i manage to 
 transfer both objects?
 
 Thanks!
 -- 
 GMX FreeDSL mit DSL 6.000 Flatrate und Telefonanschluss nur 17,95 Euro/mtl.!
 http://dslspecial.gmx.de/freedsl-aktionspreis/?ac=OM.AD.PD003K11308T4569a

_
Windows Live™: Keep your life in sync. 
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_BR_life_in_synch_062009

issues with xmlschema1.4.2.jar and jaxb

2009-06-08 Thread Axis PC
All,

Has anyone faced the following issue?:

1. I have a wsdl which has multiple schema imports. For example

abc.wsdl has x.xsd and y.xsd imports. y.xsd in turn imports
x.xsd.

2. From what I see...xmlschema-1.4.2.jar doesnt like it. In XmlSchema 1.4.x,
the schema collection can only have a single schema instance for a sysid+ns
combination? (read this somewhere). So once I reverted back to
xmlSchema-1.3.x.jar, my scenario started working fine.

Is there any work around for this - without having to replace the newer jar
with the older jar?

I am using axis 1.4.1 and am using jax-ws style web services.

Thanks
Preetham


Re: issues with xmlschema1.4.2.jar and jaxb

2009-06-08 Thread Axis PC
Also...attached is the stacktrace when I use xmlschema-1.4.x.jar

[ERROR] Error occurred while attempting to read generated schema file
{org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in
collection. Namespace: http://schemas.x.com/y/2007/09/mc-description}
[ERROR] Error occurred generating WSDL file for Web service implementation
class {com.x.schemas.y._2008._01.admin.XPortImpl}: {java.lang.Exception:
Error occurred while attempting to read generated schema file
{org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in
collection. Namespace: http://schemas.x.com/y/2007/09/mc-description}}
java.lang.Exception: Error occurred while attempting to read generated
schema file {org.apache.ws.commons.schema.XmlSchemaException: Schema name
conflict in collection. Namespace:
http://schemas.x.com/y/2007/09/xjob-description}
at
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.readInSchema(JAXWSRIWSDLGenerator.java:330)
at
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:180)
at
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371)
at
org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364)
at
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1322)
at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:287)
at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:242)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)


Thanks
Preetham




On Mon, Jun 8, 2009 at 2:52 PM, Axis PC pc.a...@gmail.com wrote:

 All,

 Has anyone faced the following issue?:

 1. I have a wsdl which has multiple schema imports. For example

 abc.wsdl has x.xsd and y.xsd imports. y.xsd in turn imports
 x.xsd.

 2. From what I see...xmlschema-1.4.2.jar doesnt like it. In XmlSchema
 1.4.x, the schema collection can only have a single schema instance for a
 sysid+ns combination? (read this somewhere). So once I reverted back to
 xmlSchema-1.3.x.jar, my scenario started working fine.

 Is there any work around for this - without having to replace the newer jar
 with the older jar?

 I am using axis 1.4.1 and am using jax-ws style web services.

 Thanks
 Preetham



Problem with WSDL2C

2009-06-08 Thread Vadim Letitchevski
I am using WSDL2C  utility from axis2-1.4.1 to generate code for use with 
axis2c 1.6.0
Most of the wsdl's I have processed produced the correct code. One has failed 
with next errors:

Exception in thread main 
org.apache.axis2.wsdl.codegen.CodeGenerationException: 
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
   at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
   at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
   at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31)
Caused by: java.lang.RuntimeException: 
java.lang.reflect.InvocationTargetException
   at 
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:53)
   at 
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
   ...2 more
Caused by: java.lang.reflect.InvocationTargetException
   at java.lang.reflect.Method.invoke(libgcj.so.7rh)
   at 
org.apache.axis2.wsdl.codegen.extension.SimpleDBExtension.engage(SimpleDBExtension.java:50)
   ...3 more
Caused by: org.apache.axis2.schema.SchemaCompilationException: 
java.lang.NullPointerException
   at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:289)
   at org.apache.axis2.schema.ExtensionUtility.invoke(ExtensionUtility.java:103)
   at java.lang.reflect.Method.invoke(libgcj.so.7rh)
   ...4 more
Caused by: java.lang.NullPointerException
   at 
org.apache.axis2.schema.SchemaCompiler.writeElement(SchemaCompiler.java:522)
   at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:381)
   at org.apache.axis2.schema.SchemaCompiler.compile(SchemaCompiler.java:280)
   ...6 more


All the data methods are generated, stubs are not. I know (from the different 
software department) that the same wsdl allows to generate the correct Java 
code.
Does it look familiar to you? Any recommendations?


Thanks
Vadim.
(310)765-3812




How to invoke webservice with jca bindings/operations?

2009-06-08 Thread tv.raghavan

I have a wsdl with jca operations/bindings. I generated the stubs using
wsdl2java. How do I invoke a webservice with jca operations/bindings using
axis ?

Thanks,
-raghav
-- 
View this message in context: 
http://www.nabble.com/How-to-invoke-webservice-with-jca-bindings-operations--tp23935747p23935747.html
Sent from the Axis - User mailing list archive at Nabble.com.



[axis2] configuring my web service to use commons-logging and juli

2009-06-08 Thread Stadelmann Josef
Hi all,

after some days of trials and error  Reading this mail archive
as many thing has been said about commons-logging in this axis-user mail
list I still cry for help


What I have is a web-service able to create ONE service-object
PER-USER-SESSION 
(axis2 web service runs in scope=soapsession)


I need to understand logging with JULI under axis2, and
I need to be able to control the environment programmatically and
pre-condition it using logging. properties 


Has someone ever used JULI - LOGGING and a logging. properties file as
shown with TOMCAT LOGGING chapters?
Also logging with JULI the default with certain tomcat implementations.


I understand that JULI logging does not give all what I want, therefore
programming is still required.
I want per user-session a log-file;
 where pre- and postfix is configurable,
 the users name and session id shall become part of the file
name, 
and the directory path to the log file shall be configurable as
a relative path  to the users home directory.

The log level of the file handler and the logger must be configurable on
a per user session basis.
And I have per session an instance of a serviced object (scope =
soapsession), threads are not my primary issue so far.



To keep it more simple:
I like to configure a logger and have file handlers assigned to it in a
properties file (see example below) 
then use that logger from within my webservice code as template class, 
to setup the user-session-logger and assign file-handlers with the same
attributes as the configured logger with its file handlers has.

Then if all that is done adjust the level again to the session level
demand, a parameter passed from client to this web service instance.



Here is my logging. properties file, as per tomcat logging; 
this works when I expanded my HelloWorldExample servlet, where as the
servlet example was created as a sample project using NetBeans 5.5.1
 
#Sepps = ResourceBundle properties file - Sepp by 03.06.2009:08:38
#
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
#

# Handler specific properties.
# Describes specific configuration info for Handlers.

#
org.apache.juli.FileHandler.level = ALL
org.apache.juli.FileHandler.directory = ${catalina.base}/logs
org.apache.juli.FileHandler.prefix = servlet-examples.
#
java.util.logging.ConsoleHandler.level = INFO
java.util.logging.ConsoleHandler.formatter =
java.util.logging.SimpleFormatter
#
#HelloWorldExample.handlers = org.apache.juli.FileHandler,
java.util.logging.ConsoleHandler
#HelloWorldExample.level = ALL
3HelloWorldExample.suffix = .txt
#
axawl.spezpla.servers.SpezplaService.SpServer.handlers =
org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
axawl.spezpla.servers.SpezplaService.SpServer.level = ALL
axawl.spezpla.servers.SpezplaService.SpServer.suffix = .txt


Through configuration I create an
axawl.spezpla.servers.SpezplaService.SpServer Logger and assign two
handlers to it, 
then I set the loggers level to ALL (as per juli) and I define a suffix
which should become the logs file extension.


in web service code  

private static String NameOfClassLogger =
axawl.spezpla.servers.SpezplaService.SpServer.class.getName();
private static Logger ClassLog = Logger.getLogger(NameOfClassLogger);

Handler[] hl = ClassLog.getHandlers();
// Handler[0] is juli FileHandler configured
// Handler[1] is util Console Handler configured

private Handler fileHandler = null;
if (null==fileHandler) {
fileHandler = new FileHandler(MyLogPath);
fileHandler.setLevel(Level.FINEST);
fileHandler.setLevel(hl[0].getLevel());
fileHandler.setFormatter(hl[0].getFormatter());
log.addHandler(fileHandler);
}


That way I can configure programmatically my (so called)
instance-loggers and instance-handlers from configured (so called)
class/template-loggers and class/template-handlers


Is that possible using / tomcats common-logging capabilities with the
Jdk14Logger (java.util.logging) as underlaying logging system?


I would need help on:
Which JAR files need to go where and
Which JAR files are not allowed to be there (to avoid conflicts i.e
Log4j.jar, commons-logging-api.jar etc..)


I would need to know how to name and where to place this properties file
above 
how declare it, that 
Tomcat and or 
Axis2 amd or
SpezplaService.SpServer 
gets properly configured, before I need programming


I like to use the commons-logging wraper technology and then select the
Jdk124Logger system programmatically. 

Any help appreciated

Josef.Stadelmann@
axa-winterthur.ch








[IDE:deployment error]

2009-06-08 Thread Vaibhav Arya
Hi All,

 

I have a web service class embedded into my project to use existing source.
In my .aar file, I have only services.xml file.

This web service is working well when I deploy project manually (copying
.aar and sources in tomcat directory).

But when I use JBuilder5.0 to build and run project, its shows following
error,

 

org.apache.axis2.deployment.DeploymentException: The following error
occurred during schema generation: Class Not found: com.vua.ws.wservice

at
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGrou
p(ArchiveReader.java:151)

at
org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81)

at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(Deploy
mentFileData.java:136)

at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:
597)

at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.jav
a:144)

at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.jav
a:330)

at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListe
ner.java:227)

at
org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.j
ava:131)

at
org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAx
isConfigurator.java:284)

at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont
ext(ConfigurationContextFactory.java:82)

at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.ja
va:516)

at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)

 

However, This error creates no problem in running existing project.

Is there any fix to overcome this problem?

 

Thanks in advance.

 

Regards,

 

Vaibhav Kumar Arya

 



===
Private, Confidential and Privileged. This e-mail and any files and attachments 
transmitted with it are confidential and/or privileged. They are intended 
solely for the use of the intended recipient. The content of this e-mail and 
any file or attachment transmitted with it may have been changed or altered 
without the consent of the author. If you are not the intended recipient, 
please note that any review, dissemination, disclosure, alteration, printing, 
circulation or Transmission of this e-mail and/or any file or attachment 
transmitted with it, is prohibited and may be unlawful. If you have received 
this e-mail or any file or attachment transmitted with it in error please 
notify OTS Solutions at i...@otssolutions.com
===