Problems with set up with the Test automation framework Selendroid - java

I have problems with setting up the Selendroid server.
When i run the command java -jar selendroid-standalone-0.11.0-with-dependencies.jar -app selendroid-test-app-0.11.0.apk
I get the following errors:
C:\Users\mawal2\Downloads>java -jar selendroid-standalone-0.11.0-with-dependenci
es.jar -app selendroid-test-app-0.11.0.apk
################# Selendroid #################
################# Configuration in use #################
io.selendroid.SelendroidConfiguration#19469ea2[
port=4444
timeoutEmulatorStart=300000
supportedApps=[selendroid-test-app-0.11.0.apk]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=<null>
emulatorOptions=<null>
registrationUrl=<null>
proxy=<null>
serverHost=<null>
keepAdbAlive=false
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
]
Oct 16, 2014 7:57:24 AM io.selendroid.SelendroidLauncher launchServer
INFO: Starting selendroid-server port 4444
Oct 16, 2014 7:57:24 AM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\mawal2\Documents\android\adt-bundle-windows-x8
6_64-20140702\sdk\build-tools\android-4.4W\aapt.exe remove C:\Users\mawal2\Downl
oads\selendroid-test-app-0.11.0.apk META-INF/MANIFEST.MF
Oct 16, 2014 7:57:24 AM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\mawal2\Documents\android\adt-bundle-windows-x8
6_64-20140702\sdk\build-tools\android-4.4W\aapt.exe remove C:\Users\mawal2\Downl
oads\selendroid-test-app-0.11.0.apk META-INF/CERT.RSA
Oct 16, 2014 7:57:24 AM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\mawal2\Documents\android\adt-bundle-windows-x8
6_64-20140702\sdk\build-tools\android-4.4W\aapt.exe remove C:\Users\mawal2\Downl
oads\selendroid-test-app-0.11.0.apk META-INF/CERT.SF
Oct 16, 2014 7:57:24 AM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\mawal2\Documents\android\adt-bundle-windows-x8
6_64-20140702\sdk\build-tools\android-4.4W\aapt.exe remove C:\Users\mawal2\Downl
oads\selendroid-test-app-0.11.0.apk META-INF/ANDROIDD.SF
Oct 16, 2014 7:57:24 AM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\mawal2\Documents\android\adt-bundle-windows-x8
6_64-20140702\sdk\build-tools\android-4.4W\aapt.exe remove C:\Users\mawal2\Downl
oads\selendroid-test-app-0.11.0.apk META-INF/ANDROIDD.RSA
Oct 16, 2014 7:57:24 AM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\mawal2\Documents\android\adt-bundle-windows-x8
6_64-20140702\sdk\build-tools\android-4.4W\aapt.exe remove C:\Users\mawal2\Downl
oads\selendroid-test-app-0.11.0.apk META-INF/NDKEYSTO.SF
Oct 16, 2014 7:57:24 AM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Users\mawal2\Documents\android\adt-bundle-windows-x8
6_64-20140702\sdk\build-tools\android-4.4W\aapt.exe remove C:\Users\mawal2\Downl
oads\selendroid-test-app-0.11.0.apk META-INF/NDKEYSTO.RSA
Oct 16, 2014 7:57:24 AM io.selendroid.io.ShellCommand exec
INFO: executing command: C:\Program Files\Java\jdk1.8.0_20\bin\bin\jarsigner.exe
-sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\mawal2\Downloads\resigne
d-selendroid-test-app-0.11.0.apk -storepass android -keystore C:\Users\mawal2\.a
ndroid\debug.keystore C:\Users\mawal2\Downloads\selendroid-test-app-0.11.0.apk a
ndroiddebugkey
Oct 16, 2014 7:57:24 AM io.selendroid.SelendroidLauncher launchServer
SEVERE: Error occurred while building server: An error occurred while resigning
the app 'selendroid-test-app-0.11.0.apk'.
io.selendroid.exceptions.SessionNotCreatedException: An error occurred while res
igning the app 'selendroid-test-app-0.11.0.apk'.
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:114)
at io.selendroid.server.model.SelendroidStandaloneDriver.<init>(Selendro
idStandaloneDriver.java:82)
at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidS
erver(SelendroidStandaloneServer.java:61)
at io.selendroid.server.SelendroidStandaloneServer.<init>(SelendroidStan
daloneServer.java:50)
at io.selendroid.SelendroidLauncher.launchServer(SelendroidLauncher.java
:49)
at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:105)
Caused by: io.selendroid.exceptions.ShellCommandException: An error occured whil
e executing shell command: C:\Program Files\Java\jdk1.8.0_20\bin\bin\jarsigner.e
xe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\mawal2\Downloads\resig
ned-selendroid-test-app-0.11.0.apk -storepass android -keystore C:\Users\mawal2\
.android\debug.keystore C:\Users\mawal2\Downloads\selendroid-test-app-0.11.0.apk
androiddebugkey
at io.selendroid.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendro
idServerBuilder.java:274)
at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSer
verBuilder.java:134)
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:112)
... 5 more
Caused by: io.selendroid.exceptions.ShellCommandException:
... 9 more
Exception in thread "main" io.selendroid.exceptions.SessionNotCreatedException:
An error occurred while resigning the app 'selendroid-test-app-0.11.0.apk'.
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:114)
at io.selendroid.server.model.SelendroidStandaloneDriver.<init>(Selendro
idStandaloneDriver.java:82)
at io.selendroid.server.SelendroidStandaloneServer.initializeSelendroidS
erver(SelendroidStandaloneServer.java:61)
at io.selendroid.server.SelendroidStandaloneServer.<init>(SelendroidStan
daloneServer.java:50)
at io.selendroid.SelendroidLauncher.launchServer(SelendroidLauncher.java
:49)
at io.selendroid.SelendroidLauncher.main(SelendroidLauncher.java:105)
Caused by: io.selendroid.exceptions.ShellCommandException: An error occured whil
e executing shell command: C:\Program Files\Java\jdk1.8.0_20\bin\bin\jarsigner.e
xe -sigalg MD5withRSA -digestalg SHA1 -signedjar C:\Users\mawal2\Downloads\resig
ned-selendroid-test-app-0.11.0.apk -storepass android -keystore C:\Users\mawal2\
.android\debug.keystore C:\Users\mawal2\Downloads\selendroid-test-app-0.11.0.apk
androiddebugkey
at io.selendroid.io.ShellCommand.exec(ShellCommand.java:49)
at io.selendroid.builder.SelendroidServerBuilder.signTestServer(Selendro
idServerBuilder.java:274)
at io.selendroid.builder.SelendroidServerBuilder.resignApp(SelendroidSer
verBuilder.java:134)
at io.selendroid.server.model.SelendroidStandaloneDriver.initApplication
sUnderTest(SelendroidStandaloneDriver.java:112)
... 5 more
Caused by: io.selendroid.exceptions.ShellCommandException:
... 9 more
C:\Users\mawal2\Downloads>
I think the problem has something to to with either the java or android environment variable.
I have read a lot of guides and forum postes and tried different ways, but i always end up with the same result. The env-variables are currently set-up in the following way:
Under "User variables for ":
ANDROID_HOME: C:\Users\mawal2\Documents\android\adt-bundle-windows-x86_64-20140702\sdk
JAVA_HOME: C:\Program Files\Java\jdk1.8.0_20\bin
Under "System varibles":
Path: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Windows\CCM;C:\Program Files\OpenVPN\bin;C:\Users\mawal2\Documents\android\adt-bundle-windows-x86_64-20140702\sdk\tools\;C:\Users\mawal2\Documents\android\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\;C:\Program Files\Java\jdk1.8.0_20\bin\;
My OS is Windows 8.1 Enterprise
Am very grateful for all help i can get!
Best regards Magnus

I solved the problem when a An error occured whil
e executing shell command: C:\Program Files\Java\jdk1.8.0_20\bin\bin\jarsigner.e
xe
There are bin\bin after each other wich is not correct. Solved it by changing the Java home variable to:
JAVA_HOME: C:\Program Files\Java\jdk1.8.0_20\
I also notice that for me variable changes are only done after restarting the computer, this may be the reason why didn't manage to solve it before.

Related

SSH with Jenkins CLI

When I ssh (I am using Windows 10 with OpenSSH) into jenkins-cli.jar I get the following error:
Jan 05, 2023 12:48:06 PM io.jenkins.cli.shaded.org.apache.sshd.common.util.security.AbstractSecurityProviderRegistrar getOrCreateProvider
INFO: getOrCreateProvider(EdDSA) created instance of io.jenkins.cli.shaded.net.i2p.crypto.eddsa.EdDSASecurityProvider
Jan 05, 2023 12:48:07 PM io.jenkins.cli.shaded.org.apache.sshd.common.io.DefaultIoServiceFactoryFactory getIoServiceProvider
INFO: No detected/configured IoServiceFactoryFactory; using Nio2ServiceFactoryFactory
io.jenkins.cli.shaded.org.apache.sshd.common.RuntimeSshException: Failed to get the session.
at io.jenkins.cli.shaded.org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:59)
at io.jenkins.cli.shaded.org.apache.sshd.client.future.DefaultConnectFuture.getSession(DefaultConnectFuture.java:34)
at hudson.cli.SSHCLI.sshConnection(SSHCLI.java:102)
at hudson.cli.CLI._main(CLI.java:294)
at hudson.cli.CLI.main(CLI.java:103)
Caused by: java.io.IOException: The semaphore timeout period has expired
at java.base/sun.nio.ch.Iocp.translateErrorToIOException(Iocp.java:299)
at java.base/sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:389)
at java.base/java.lang.Thread.run(Thread.java:1589)
After trying:
java -jar jenkins-cli.jar -s SERVER:8080/ -ssh -user MY_USERNAME
What is the cause of this error, so that I can fix it and SSH into my jenkins instance?

how to prevent thinkorswim's illegal reflective access to java.lang.Classloader.user_paths (2022 - Azul Zulu JDK 11)

I see many illegal reflective access related questions. As of recent ThinkOrSwim has finally implemented that JAVA 11 (the Azul Zulu openJDK 11) be used to launch thinkorswim. It has been warning this day would come. I have "updated" my java version to the extent of my knowledge, but am still receiving the following errors...
jesse#jesse-G74Sx:/$ cd /home/jesse/Programs/thinkorswim/thinkorswim
jesse#jesse-G74Sx:~/Programs/thinkorswim/thinkorswim$ sudo java -jar launcher.jar
[sudo] password for jesse:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.devexperts.jnlp.JavaLibraryPathUpdater (file:/home/jesse/Programs/thinkorswim/thinkorswim/suit/1975.0.80/tos-suit-1975.0.80.jar) to field java.lang.ClassLoader.usr_paths
WARNING: Please consider reporting this to the maintainers of com.devexperts.jnlp.JavaLibraryPathUpdater
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Sep 27, 2022 8:08:06 PM com.devexperts.ssl.UrlStreamHandlerFactoryInstaller install
INFO: URL stream handler factory installed
Sep 27, 2022 8:08:24 PM com.devexperts.ssl.CustomTrustManager <init>
INFO: Creating...
Sep 27, 2022 8:08:24 PM com.devexperts.ssl.CustomTrustManager <init>
INFO: System truststore is enabled
Sep 27, 2022 8:08:24 PM com.devexperts.ssl.CustomTrustManager getSystemTrustManagers
INFO: Got 1 system trust manager(s)
Sep 27, 2022 8:08:24 PM com.devexperts.ssl.CustomTrustManager <init>
INFO: External truststore is enabled
Sep 27, 2022 8:08:24 PM com.devexperts.ssl.ExternalTrustManagerFactory getCertificates
INFO: Creating certificates...
Sep 27, 2022 8:08:24 PM com.devexperts.ssl.ExternalTrustManagerFactory getCertificates
INFO: Created 3 certificate(s)
Sep 27, 2022 8:08:24 PM com.devexperts.ssl.ExternalTrustManagerFactory getTrustManagers
INFO: Created 1 trust manager(s) for external certificates
Sep 27, 2022 8:08:24 PM com.devexperts.ssl.CustomTrustManager <init>
INFO: The custom trust manager has been created
I have updated my $PATH variable to show the zulu11 bin...
jesse#jesse-G74Sx:/$ echo $PATH
/usr/lib/jvm/zulu11/bin:/home/jesse/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
I have updated alternatives to force the 'java' command to use the correct repo..
jesse#jesse-G74Sx:/$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/zulu11/bin/java 2115801 auto mode
* 1 /usr/lib/jvm/zulu11/bin/java 2115801 manual mode
2 /usr/lib/jvm/zulu8/jre/bin/java 1806401 manual mode
Press <enter> to keep the current choice[*], or type selection number: 1
I then updated my etc/environment file to force $JAVA_HOME to be the corresponding repo by adding the following JAVA_HOME line below the PATH variable line...
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"
JAVA_HOME="/usr/lib/jvm/zulu11/"
i dont seem to actually be changing the JAVA_HOME variable,
jesse#jesse-G74Sx:/$ echo $JAVA_HOME
jesse#jesse-G74Sx:/$
however, my main concern is that i need to show other repo's when i run update-alternatives... currently "/usr/lib/jvm/zulu11/bin/java" really ought to be showing another folder from my 'usr/lib/jvm' files ie.
jesse#jesse-G74Sx:/$ cd usr/lib/jvm
jesse#jesse-G74Sx:/usr/lib/jvm$ ls
zulu11 zulu-11-amd64 zulu11-ca-amd64 zulu8 zulu-8-amd64 zulu8-ca-amd64
jesse#jesse-G74Sx:/usr/lib/jvm$
i think if i can get alternatives to show "zulu-11-amd64" or "zulu11-ca-amd64" and could set one of those to the 'java' command, THEN i would have the newer version...
Either my paths are crossed up, or i need to try a different "alternative" but i havent a clue how to get more alternatives listed, nor how to sufficiently set JAVA_HOME..
ps. the only official documentation on how to do this is posted on td's website here
To start with, you should run java -version from where you are running your application. That will clarify which JDK you are actually using.
As the comment says, you are only seeing warnings about illegal reflective access. This is a result of changes between JDK 8 and JDK 9, encapsulating the JDK's internal APIs (which obviously also affect JDK 11). See JEP 260 (https://openjdk.org/jeps/260)
Have a look at this answer on StackOverflow, which goes into more detail and provides some suggestions if you really want to get rid of the messages.
What is an illegal reflective access?

Getting Selendroid standalone to run, Command 'aapt' was not found inside the Android SDK

I have been trying to work on things using selendroid, but I can't get the standalone to run. I have been trying to run the command "java -jar selendroid-standalone-0.15.0-with-dependencies.jar -app selendroid-test-app-0.14.0.apk". But I just keep getting "SEVERE: Error building server: Command 'aapt' was not found inside the Android SDK....". I already referenced This, but it didn't help.
Paths to Java and Android SDK's
Outputs in the Command Prompt
I realized that the picture was a bit small...
Apr 30, 2015 1:40:41 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Selendroid #################
Apr 30, 2015 1:40:41 PM io.selendroid.standalone.SelendroidLauncher main
INFO: ################# Configuration in use #################
Apr 30, 2015 1:40:41 PM io.selendroid.standalone.SelendroidLauncher main
INFO: io.selendroid.standalone.SelendroidConfiguration#816f27d[
port=4444
timeoutEmulatorStart=300000
supportedApps=[selendroid-test-app-0.15.0.apk]
verbose=false
emulatorPort=5560
deviceScreenshot=false
selendroidServerPort=8080
keystore=<null>
keystorePassword=<null>
keystoreAlias=<null>
emulatorOptions=<null>
keepEmulator=false
registrationUrl=<null>
proxy=<null>
serverHost=<null>
keepAdbAlive=false
maxSession=5
maxInstances=5
noWebViewApp=false
noClearData=false
sessionTimeoutSeconds=1800
forceReinstall=false
logLevel=ERROR
deviceLog=true
serverStartTimeout=20000
printHelp=false
serverStartRetries=5
folder=<null>
]
Apr 30, 2015 1:40:41 PM io.selendroid.standalone.SelendroidLauncher launchServer
INFO: Starting Selendroid standalone on port 4444
Apr 30, 2015 1:40:41 PM io.selendroid.standalone.SelendroidLauncher launchServer
SEVERE: Error building server: Command 'aapt' was not found inside the Android SDK. Please update to the latest development tools and try again.
If I left out any information just let me know.
Thanks
EDIT: Here's the latest
Your ANDROID_HOME environment variable is:
C:\Program Files(x86)\Android\android-skd
Please try to change to:
C:\Program Files(x86)\Android\android-sdk
EDIT: Also check that aapt.exe is inside of platform-tools folder, otherwise copy aapt.exe from the last build tools you have, for example:
<android-sdk>\build-tools\22.0.1\aapt.exe
to:
<android-sdk>\platform-tools\aapt.exe
As Mattai said, Selendroid checks for aapt inside platform-tools.
But I was getting the same error even after copying the appt to platform-tools folder.
But worked when I tried after restarting the system!
Thanks Mattai!

Jenkins on Solaris 10 64 bit

I am trying to upgrade my Jenkins on a Solaris SPARC machine. I have been using Jenkins version 1.528 and the java version is "1.6.0_65".
I tried to install 1.565.1 on this server, I was able to start it using "java -jar jenkins.war --httpPort=8086"
Aug 13, 2014 2:52:16 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector#0.0.0.0:8086
Aug 13, 2014 2:52:16 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
Aug 13, 2014 2:52:18 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Aug 13, 2014 2:52:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Aug 13, 2014 2:52:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Aug 13, 2014 2:52:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Aug 13, 2014 2:52:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Aug 13, 2014 2:52:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Aug 13, 2014 2:52:37 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 54927
Aug 13, 2014 2:52:37 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Aug 13, 2014 2:52:37 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 54928
Aug 13, 2014 2:52:37 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
but the homepage never loads on browser. I see there is something listening on the port but the connnetion is in CLOSE_WAIT status.
bash-3.2$ lsof -i |grep 8086
java 26329 acs 7u IPv4 0x3018556b840 0t0 TCP *:8086 (LISTEN)
java 26329 acs 105u IPv4 0x30278e93900 0t0 TCP server:8086->user-machine:54670 (ESTABLISHED)
java 26329 acs 750u IPv4 0x300b9af9900 0t0 TCP server:8086->user-machine:54671 (CLOSE_WAIT)
java 26329 acs 751u IPv4 0x301ab4f0080 0t0 TCP server:8086->user-machine:54672 (CLOSE_WAIT)
I tried other version 1.532 and it worked but it did not work for 1.534
I tried the same version 1.565.3 on a Linux server and it worked there, It had java version "1.7.0_45". Has anyone else faced this issue?
We have got the same problem on Solaris 11.1.
SunOS XXXXX 5.11 11.1 sun4v sparc sun4v
We are so far using 5.32.1 stable working. 5.80.3 not working.
There is no respond on wget. We are using default port 8080 and neither on wget nor on browser a connection can be established.
This issue is not fixed, I have opened a JIRA ticket on Jenkins forum
JENKINS-24357
There are a few related tickets as well

Google App Engine not being accessed via localhost

I am using Mac OS X 10.7.4, app engine sdk 1.7.0, eclipse juno and Java as programming language. The problem is that App runs perfectly well when deployed on appspot but does not work on localhost. When run as web application on port 8888 or any other port (if change it from the configuration), the log represents server is running but when I hit the URL, nothing happens and after some time connection times out. When, debugged it gives the error: Cannot connect to VM. Logs from console for both run and debugged are shown below, kindly help me, I have searched all over the 'net but could not find the solution.
Log when Debugged:
ERROR: transport error 202: handshake failed - connection prematurally closed
ERROR: JDWP: Failed to initialize transport via localhost:49741, trying localhost via 127.0.0.1:49741
ERROR: transport error 202: recv failed during handshake: Connection reset by peer
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]
FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
Log when run:
2012-07-17 19:07:42.504 java[417:407] [Java CocoaComponent compatibility mode]: Enabled
2012-07-17 19:07:42.505 java[417:407] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
Jul 17, 2012 2:07:49 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Jul 17, 2012 2:07:50 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed /Volumes/DATA 1/Google App Engine/Java/HelloWorld/war/WEB-INF/appengine-web.xml
Jul 17, 2012 2:07:50 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /Volumes/DATA 1/Google App Engine/Java/HelloWorld/war/WEB-INF/web.xml
Jul 17, 2012 7:07:52 PM com.google.appengine.tools.development.DevAppServerImpl start
INFO: The server is running at localhost:8888/
Jul 17, 2012 7:07:52 PM com.google.appengine.tools.development.DevAppServerImpl start
INFO: The admin console is running at localhost:8888/_ah/admin
Log when Run from command line:
Jul 21, 2012 3:23:19 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger
Jul 21, 2012 3:23:19 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed /Volumes/DATA 1/Softwares/appengine-java-sdk-1.7.0/demos
/guestbook/war/WEB-INF/appengine-web.xml
Jul 21, 2012 3:23:19 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /Volumes/DATA 1/Softwares/appengine-java-sdk-1.7.0/demos/guestbook/war/WEB-INF/web.xml
Jul 21, 2012 8:23:22 PM com.google.appengine.tools.development.DevAppServerImpl start
INFO: The server is running at http://localhost:8080/
Jul 21, 2012 8:23:23 PM com.google.appengine.tools.development.DevAppServerImpl start
INFO: The admin console is running at http://localhost:8080/_ah/admin
Check the following:
1) If the application has actually started. Enter "ps ax | grep java" in terminal
2) If the application has bound to the port. Install nmap (not sure how to do it on mac) and run it with "nmap localhost". You will see a list of ports and protocols used. If you don't see 8888 with http then something is wrong.
Have you tried running it from the command line? It looks like you're trying to start it in the debugger as well.. no? Try running from the command line, make sure that works. Then try running it from eclipse with "Run" not "Debug" and make sure that works before trying the debugger. Appengine is a little bit particular...

Categories