[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-user
Subject:    =?utf-8?Q?Can_I_use_?= =?utf-8?B?4oCcc2VsZW5pdW3igJ0=?= =?utf-8?Q?_in_the_ax?= =?utf-8?Q?is2_web_se?
From:       김홍수 <kimhongsu () outlook ! com>
Date:       2014-02-02 11:15:04
Message-ID: BAY176-W47F2E05DD677739CB28D53BBA80 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (text/plain)]

How are you? I made a web service client by AXIS2. It works fine. And I needed to \
grab an information from web page and relay it to the server using my web service \
client. So I decided to use selenium+WebDriver.I developed it separately. So my web \
service client works fine and my selenium based scrapper works fine. I confirmed it. \
I merged the source but my program didn't work. Because firefoxDriver(with Xvfb \
solution) or HtmlUnitDriver didn't work properly. I tested it again by separated \
program, and each program worked fine.Can I run selenium code in the axis2 based web \
service client? Do I need to set something? Or is there a sort of library confliction \
between axis2 and selenium 2.0? I copied selenium 2.0's library files(JAR) to the \
axis2's lib directory[my code in axs2 client] 		System.out.println("before \
FirefoxDriver()");		WebDriver driver = new \
FirefoxDriver();		System.out.println("after FirefoxDriver()");


[console][loess4u@localhost EnergyCollectWS]ant jar.clientBuildfile: \
/home/loess4u/workspace/EnergyCollectWS/build.xml init:
jar.xbeans:
pre.compile.test:     [echo] XmlBeans Availability = true     [echo] Stax \
                Availability= true     [echo] Axis2 Availability= true
compile.src:    [javac] /home/loess4u/workspace/EnergyCollectWS/build.xml:50: \
warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set \
                to false for repeatable builds
jar.client:      [jar] Building jar: \
/home/loess4u/workspace/EnergyCollectWS/build/lib/EnergyCollectWS-test-client.jar \
BUILD SUCCESSFULTotal time: 2 seconds[loess4u@localhost EnergyCollectWS]$ cp \
./build/lib/EnergyCollectWS-test-client.jar /opt/axis2-1.6.2/lib/[loess4u@localhost \
EnergyCollectWS]$ axis2.sh com.bspower.energycollect.ws.Client Using AXIS2_HOME: \
/opt/axis2-1.6.2 Using JAVA_HOME:  /usr/java/jdk1.7.0_45[INFO] Clustering has been \
disabledFeb 02, 2014 8:10:08 PM org.apache.axis2.deployment.util.TempFileManager \
<clinit>INFO: TempFileManager::unable to delete \
/tmp/axis2-tmp-53143774169031012.tmp[INFO] Deploying module: addressing-1.6.2 - \
file:/opt/axis2-1.6.2/repository/modules/addressing-1.6.2.mar[INFO] Deploying module: \
soapmonitor-1.6.2 - file:/opt/axis2-1.6.2/repository/modules/soapmonitor-1.6.2.mar[INFO] \
Deploying module: ping-1.6.2 - \
file:/opt/axis2-1.6.2/repository/modules/ping-1.6.2.mar[INFO] Deploying module: \
mtompolicy-1.6.2 - file:/opt/axis2-1.6.2/repository/modules/mtompolicy-1.6.2.mar[INFO] \
Deploying module: metadataExchange-1.6.2 - \
file:/opt/axis2-1.6.2/repository/modules/mex-1.6.2.mar[INFO] Deploying module: \
script-1.6.2 - file:/opt/axis2-1.6.2/repository/modules/scripting-1.6.2.mar[INFO] \
Deploying Web service: StockQuoteService.aar - \
file:/opt/axis2-1.6.2/repository/services/StockQuoteService.aar[INFO] Deploying Web \
service: version.aar - file:/opt/axis2-1.6.2/repository/services/version.aarbefore \
FirefoxDriver() And then, program stops. FirefoxDriver() never return. 
Please help me to solve this problem.Thank you.


 		 	   		  


[Attachment #3 (text/html)]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:굴림
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><p style="line-height: 17.804800033569336px; \
margin-bottom: 1.35em; color: rgb(68, 68, 68); border: 0px; font-size: 14px; \
vertical-align: baseline; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu \
Sans', sans-serif;">How are you? I made a web service client by AXIS2. It works fine. \
And I needed to grab an information from web page and relay it to the server using my \
web service client. So I decided to use selenium+WebDriver.</p><p style="line-height: \
17.804800033569336px; margin-bottom: 1.35em; color: rgb(68, 68, 68); border: 0px; \
font-size: 14px; vertical-align: baseline; clear: both; font-family: Arial, \
'Liberation Sans', 'DejaVu Sans', sans-serif;">I developed it separately. So my web \
service client works fine and my selenium based scrapper works fine. I confirmed it. \
I merged the source but my program didn't work. Because firefoxDriver(with Xvfb \
solution) or HtmlUnitDriver didn't work properly. I tested it again by separated \
program, and each program worked fine.</p><p style="line-height: \
17.804800033569336px; margin-bottom: 1.35em; color: rgb(68, 68, 68); border: 0px; \
font-size: 14px; vertical-align: baseline; clear: both; font-family: Arial, \
'Liberation Sans', 'DejaVu Sans', sans-serif;">Can I run selenium code in the axis2 \
based web service client? Do I need to set something? Or is there a sort of library \
confliction between axis2 and selenium 2.0?</p><p style="line-height: \
17.804800033569336px; margin-bottom: 1.35em; color: rgb(68, 68, 68); border: 0px; \
font-size: 14px; vertical-align: baseline; clear: both; font-family: Arial, \
'Liberation Sans', 'DejaVu Sans', sans-serif;"><br style="line-height: \
19.8799991607666px;"></p><p style="line-height: 17.804800033569336px; margin-bottom: \
1.35em; color: rgb(68, 68, 68); border: 0px; font-size: 14px; vertical-align: \
baseline; clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', \
sans-serif;">&nbsp;I copied selenium 2.0's library files(JAR) to the axis2's lib \
directory</p><p style="line-height: 17.804800033569336px; margin-bottom: 1.35em; \
color: rgb(68, 68, 68); border: 0px; font-size: 14px; vertical-align: baseline; \
clear: both; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif;">[my \
code in axs2 client]&nbsp;</p><p style="margin-bottom: 1.35em; border: 0px; \
vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, DejaVu \
Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><span class="Apple-tab-span" style="white-space: \
pre;">		</span>System.out.println("before FirefoxDriver()");</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><span class="Apple-tab-span" \
style="white-space:pre">		</span>WebDriver driver = new \
FirefoxDriver();</span></font></p><p style="margin-bottom: 1.35em; border: 0px; \
vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, DejaVu \
Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><span class="Apple-tab-span" style="white-space: \
pre;">		</span>System.out.println("after FirefoxDriver()");</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font color="#444444" face="Arial, Liberation Sans, DejaVu Sans, \
sans-serif"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><br></span></font></p><p style="margin-bottom: 1.35em; border: \
0px; vertical-align: baseline; clear: both;"><font color="#444444" face="Arial, \
Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><br></span></font></p><p style="margin-bottom: 1.35em; border: \
0px; vertical-align: baseline; clear: both;"><font color="#444444" face="Arial, \
Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><br></span></font></p><p style="line-height: \
17.804800033569336px; margin-bottom: 1.35em; color: rgb(68, 68, 68); border: 0px; \
font-size: 14px; vertical-align: baseline; clear: both; font-family: Arial, \
'Liberation Sans', 'DejaVu Sans', sans-serif;">[console]</p><p style="margin-bottom: \
1.35em; border: 0px; vertical-align: baseline; clear: both;"><font face="Arial, \
Liberation Sans, DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: \
14px; line-height: 17.804800033569336px;">[loess4u@localhost EnergyCollectWS]<span \
style="background-color: rgb(0, 255, 0);">ant jar.client</span></span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">Buildfile: \
/home/loess4u/workspace/EnergyCollectWS/build.xml</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><br></span></font></p><p style="margin-bottom: 1.35em; border: \
0px; vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, \
DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">init:</span></font></p><p style="margin-bottom: 1.35em; \
border: 0px; vertical-align: baseline; clear: both;"><font face="Arial, Liberation \
Sans, DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; \
line-height: 17.804800033569336px;"><br></span></font></p><p style="margin-bottom: \
1.35em; border: 0px; vertical-align: baseline; clear: both;"><font face="Arial, \
Liberation Sans, DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: \
14px; line-height: 17.804800033569336px;">jar.xbeans:</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><br></span></font></p><p style="margin-bottom: 1.35em; border: \
0px; vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, \
DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">pre.compile.test:</span></font></p><p style="margin-bottom: \
1.35em; border: 0px; vertical-align: baseline; clear: both;"><font face="Arial, \
Liberation Sans, DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: \
14px; line-height: 17.804800033569336px;">&nbsp; &nbsp; &nbsp;[echo] XmlBeans \
Availability = true</span></font></p><p style="margin-bottom: 1.35em; border: 0px; \
vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, DejaVu \
Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">&nbsp; &nbsp; &nbsp;[echo] Stax Availability= \
true</span></font></p><p style="margin-bottom: 1.35em; border: 0px; vertical-align: \
baseline; clear: both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">&nbsp; &nbsp; &nbsp;[echo] Axis2 Availability= \
true</span></font></p><p style="margin-bottom: 1.35em; border: 0px; vertical-align: \
baseline; clear: both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><br></span></font></p><p style="margin-bottom: 1.35em; border: \
0px; vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, \
DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">compile.src:</span></font></p><p style="margin-bottom: 1.35em; \
border: 0px; vertical-align: baseline; clear: both;"><font face="Arial, Liberation \
Sans, DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; \
line-height: 17.804800033569336px;">&nbsp; &nbsp; [javac] \
/home/loess4u/workspace/EnergyCollectWS/build.xml:50: warning: 'includeantruntime' \
was not set, defaulting to build.sysclasspath=last; set to false for repeatable \
builds</span></font></p><p style="margin-bottom: 1.35em; border: 0px; vertical-align: \
baseline; clear: both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><br></span></font></p><p style="margin-bottom: 1.35em; border: \
0px; vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, \
DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">jar.client:</span></font></p><p style="margin-bottom: 1.35em; \
border: 0px; vertical-align: baseline; clear: both;"><font face="Arial, Liberation \
Sans, DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; \
line-height: 17.804800033569336px;">&nbsp; &nbsp; &nbsp; [jar] Building jar: \
/home/loess4u/workspace/EnergyCollectWS/build/lib/EnergyCollectWS-test-client.jar</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;"><br></span></font></p><p style="margin-bottom: 1.35em; border: \
0px; vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, \
DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">BUILD SUCCESSFUL</span></font></p><p style="margin-bottom: \
1.35em; border: 0px; vertical-align: baseline; clear: both;"><font face="Arial, \
Liberation Sans, DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: \
14px; line-height: 17.804800033569336px;">Total time: 2 seconds</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">[loess4u@localhost EnergyCollectWS]$ <span \
style="background-color: rgb(0, 255, 0);">cp \
./build/lib/EnergyCollectWS-test-client.jar \
/opt/axis2-1.6.2/lib/</span></span></font></p><p style="margin-bottom: 1.35em; \
border: 0px; vertical-align: baseline; clear: both;"><font face="Arial, Liberation \
Sans, DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; \
line-height: 17.804800033569336px;">[loess4u@localhost EnergyCollectWS]$<span \
style="background-color: rgb(0, 255, 0);"> axis2.sh \
com.bspower.energycollect.ws.Client</span></span></font></p><p style="margin-bottom: \
1.35em; border: 0px; vertical-align: baseline; clear: both;"><font face="Arial, \
Liberation Sans, DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: \
14px; line-height: 17.804800033569336px;">&nbsp;Using AXIS2_HOME: \
/opt/axis2-1.6.2</span></font></p><p style="margin-bottom: 1.35em; border: 0px; \
vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, DejaVu \
Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">&nbsp;Using JAVA_HOME: \
&nbsp;/usr/java/jdk1.7.0_45</span></font></p><p style="margin-bottom: 1.35em; border: \
0px; vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, \
DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">[INFO] Clustering has been disabled</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: 17.804800033569336px;">Feb \
02, 2014 8:10:08 PM org.apache.axis2.deployment.util.TempFileManager \
&lt;clinit&gt;</span></font></p><p style="margin-bottom: 1.35em; border: 0px; \
vertical-align: baseline; clear: both;"><font face="Arial, Liberation Sans, DejaVu \
Sans, sans-serif" color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">INFO: TempFileManager::unable to delete \
/tmp/axis2-tmp-53143774169031012.tmp</span></font></p><p style="margin-bottom: \
1.35em; border: 0px; vertical-align: baseline; clear: both;"><font face="Arial, \
Liberation Sans, DejaVu Sans, sans-serif" color="#2672ec"><span style="font-size: \
14px; line-height: 17.804800033569336px;">[INFO] Deploying module: addressing-1.6.2 - \
file:/opt/axis2-1.6.2/repository/modules/addressing-1.6.2.mar</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">[INFO] Deploying module: soapmonitor-1.6.2 - \
file:/opt/axis2-1.6.2/repository/modules/soapmonitor-1.6.2.mar</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">[INFO] Deploying module: ping-1.6.2 - \
file:/opt/axis2-1.6.2/repository/modules/ping-1.6.2.mar</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">[INFO] Deploying module: mtompolicy-1.6.2 - \
file:/opt/axis2-1.6.2/repository/modules/mtompolicy-1.6.2.mar</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">[INFO] Deploying module: metadataExchange-1.6.2 - \
file:/opt/axis2-1.6.2/repository/modules/mex-1.6.2.mar</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">[INFO] Deploying module: script-1.6.2 - \
file:/opt/axis2-1.6.2/repository/modules/scripting-1.6.2.mar</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">[INFO] Deploying Web service: StockQuoteService.aar - \
file:/opt/axis2-1.6.2/repository/services/StockQuoteService.aar</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
color="#2672ec"><span style="font-size: 14px; line-height: \
17.804800033569336px;">[INFO] Deploying Web service: version.aar - \
file:/opt/axis2-1.6.2/repository/services/version.aar</span></font></p><p \
style="margin-bottom: 1.35em; border: 0px; vertical-align: baseline; clear: \
both;"><font face="Arial, Liberation Sans, DejaVu Sans, sans-serif" \
</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic