bytemania / osgi-in-action

Automatically exported from code.google.com/p/osgi-in-action
Other
0 stars 0 forks source link

Running the GWTAPP #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. build everything with "ant" command on top directory
2. try to run launcher.jar
3. nothing happens

What is the expected output? What do you see instead?
The StockWatcher app running nothing happened even if I try to double click the 
.jar file or run the .war on Tomcat

What version of the product are you using? On what operating system?
Windows 7, latest download available, java 1.6

Please provide any additional information below.

Original issue reported on code.google.com by luigiadv...@gmail.com on 4 Jul 2011 at 10:10

GoogleCodeExporter commented 9 years ago
I tried to run launcher.jar with the "bundles" parameter it ran but now I get a 
window like this:

4/07/2011 05:24:20 PM org.apache.catalina.startup.ClusterRuleSetFactory getClust
erRuleSet
INFO: Unable to find a cluster rule set in the classpath. Will load the default
rule set.
4/07/2011 05:24:20 PM org.apache.catalina.startup.ClusterRuleSetFactory getClust
erRuleSet
INFO: Unable to find a cluster rule set in the classpath. Will load the default
rule set.
4/07/2011 05:24:20 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
4/07/2011 05:24:20 PM org.apache.jk.server.JkMain init
INFO: Can't find home, jk2.properties not loaded
4/07/2011 05:24:20 PM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
4/07/2011 05:24:21 PM org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
4/07/2011 05:24:21 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
4/07/2011 05:24:21 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0-snapshot
4/07/2011 05:24:21 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
4/07/2011 05:24:21 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
4/07/2011 05:24:21 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=1/23  config=null
Bundle: org.foo.shell.tty started with bundle id 38
->

how can I see the StockWatcher running?

Original comment by luigiadv...@gmail.com on 4 Jul 2011 at 11:26

GoogleCodeExporter commented 9 years ago
I just tried the following steps locally on OSX (unfortunately I don't have 
access to a Windows7 machine at the moment to test with). Note these are the 
same instructions found in the OSGi in Action book, section 15.1.2. I'm also 
using Java6, with Ant 1.8.2.

   cd chapter15/gwtapp

   ant

   java -jar launcher.jar bundles

I then opened a browser at http://127.0.0.1:8080/stockwatcher/stockPrices/ and 
saw the example stock UI

When you start the launcher with "java -jar launcher.jar bundles" do you see 
any exceptions? You should see:

Jul 5, 2011 12:23:39 AM org.apache.catalina.startup.ClusterRuleSetFactory 
getClusterRuleSet
INFO: Unable to find a cluster rule set in the classpath. Will load the default 
rule set.
Jul 5, 2011 12:23:39 AM org.apache.catalina.startup.ClusterRuleSetFactory 
getClusterRuleSet
INFO: Unable to find a cluster rule set in the classpath. Will load the default 
rule set.
Jul 5, 2011 12:23:39 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 5, 2011 12:23:39 AM org.apache.jk.server.JkMain init
INFO: Can't find home, jk2.properties not loaded
Jul 5, 2011 12:23:39 AM org.apache.catalina.startup.Embedded start
INFO: Starting tomcat server
Jul 5, 2011 12:23:40 AM org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
Jul 5, 2011 12:23:40 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 5, 2011 12:23:40 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0-snapshot
Jul 5, 2011 12:23:40 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 5, 2011 12:23:40 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 5, 2011 12:23:40 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/14  config=null
Bundle: org.foo.shell.tty started with bundle id 38

And the "bundles" command should list 47 bundles, all activated.

You might want to check the firewall in case Java is not allowed to open ports 
on the local computer...

Original comment by mccu...@gmail.com on 4 Jul 2011 at 11:31

GoogleCodeExporter commented 9 years ago
The stock watcher app is a web application, so it doesn't have a standalone 
GUI. You can view the web application at 
http://127.0.0.1:8080/stockwatcher/stockPrices/ once the launcher is up and 
running.

Original comment by mccu...@gmail.com on 4 Jul 2011 at 11:34

GoogleCodeExporter commented 9 years ago

Original comment by mccu...@gmail.com on 5 Jul 2011 at 12:18