torquebox-backstage 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,177 @@
1
+ 12:38:58,971 INFO [AbstractJBossASServerBase] Server Configuration:
2
+
3
+ JBOSS_HOME URL: file:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/
4
+ Bootstrap: $JBOSS_HOME/server/default/conf/bootstrap.xml
5
+ Common Base: $JBOSS_HOME/common/
6
+ Common Library: $JBOSS_HOME/common/lib/
7
+ Server Name: default
8
+ Server Base: $JBOSS_HOME/server/
9
+ Server Library: $JBOSS_HOME/server/default/lib/
10
+ Server Config: $JBOSS_HOME/server/default/conf/
11
+ Server Home: $JBOSS_HOME/server/default/
12
+ Server Data: $JBOSS_HOME/server/default/data/
13
+ Server Log: $JBOSS_HOME/server/default/log/
14
+ Server Temp: $JBOSS_HOME/server/default/tmp/
15
+
16
+ 12:38:58,974 INFO [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
17
+ 12:39:00,295 INFO [ServerInfo] Java version: 1.6.0_24,Apple Inc.
18
+ 12:39:00,295 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334)
19
+ 12:39:00,295 INFO [ServerInfo] Java VM: Java HotSpot(TM) 64-Bit Server VM 19.1-b02-334,Apple Inc.
20
+ 12:39:00,296 INFO [ServerInfo] OS-System: Mac OS X 10.6.7,x86_64
21
+ 12:39:00,296 INFO [ServerInfo] VM arguments: -Xmx1024m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -Djruby_home.env.ignore=true -Dgem.path=default -Djbosstest.udp.ip_ttl=0 -Djava.endorsed.dirs=/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/lib/endorsed -Djboss.server.log.threshold=DEBUG -Djava.endorsed.dirs=/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/lib/endorsed/ -Dxb.builder.useUnorderedSequence=true
22
+ 12:39:00,331 INFO [JMXKernel] Legacy JMX core initialized
23
+ 12:39:04,270 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA
24
+ 12:39:04,670 INFO [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]
25
+ 12:39:04,829 INFO [Bootstrap] Bootstrapping TorqueBox AS
26
+ 12:39:04,830 INFO [Bootstrap] Using JRuby: "/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jruby"
27
+ 12:39:05,441 INFO [MCBeanInjectableHandler] Starting
28
+ 12:39:05,445 INFO [InjectableHandlerRegistry] Registering injectable handler: mc - org.torquebox.injection.mc.MCBeanInjectableHandler@7ced5732
29
+ 12:39:08,265 INFO [RubyRuntimeFactoryImpl] Creating ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, context: torquebox.global)
30
+ 12:39:11,137 WARN [RubyRuntimeFactoryImpl] No initializer set for runtime
31
+ 12:39:11,148 INFO [RubyRuntimeFactoryImpl] Created ruby runtime (ruby_version: RUBY1_8, compile_mode: JIT, context: torquebox.global) in 2.88s
32
+ 12:39:11,148 INFO [TorqueBox] Welcome to TorqueBox AS - http://torquebox.org/
33
+ 12:39:11,149 INFO [TorqueBox] version...... 1.0.0.CR2-SNAPSHOT
34
+ 12:39:11,149 INFO [TorqueBox] build........ development (tobias)
35
+ 12:39:11,149 INFO [TorqueBox] revision..... e279d5ba494c191af7ba0ad3742bf3b4322f3830
36
+ 12:39:11,149 INFO [TorqueBox] jruby.home... /Users/tobias/work/torquebox/integration-tests/target/integ-dist/jruby
37
+ 12:39:11,149 INFO [JNDIInjectableHandler] Starting
38
+ 12:39:11,149 INFO [CDIInjectableHandler] Starting
39
+ 12:39:11,150 INFO [InjectableHandlerRegistry] Registering injectable handler: jndi - org.torquebox.injection.jndi.JNDIInjectableHandler@798fe5a1
40
+ 12:39:11,150 INFO [InjectableHandlerRegistry] Registering injectable handler: cdi - org.torquebox.injection.cdi.CDIInjectableHandler@562ceb60
41
+ 12:39:11,153 INFO [AppsDirectoryBootstrapper] Adding deployment directory: /Users/tobias/work/torquebox/integration-tests/target/integ-dist/apps
42
+ 12:39:11,172 INFO [DestinationInjectableHandler] Starting
43
+ 12:39:11,172 INFO [InjectableHandlerRegistry] Registering injectable handler: queue - org.torquebox.messaging.injection.DestinationInjectableHandler@1feb551
44
+ 12:39:11,173 INFO [DestinationInjectableHandler] Starting
45
+ 12:39:11,173 INFO [InjectableHandlerRegistry] Registering injectable handler: topic - org.torquebox.messaging.injection.DestinationInjectableHandler@5123027e
46
+ 12:39:13,261 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
47
+ 12:39:15,332 WARNING [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
48
+ 12:39:15,474 INFO [JMXConnector] starting JMXConnector on host 127.0.0.1:1090
49
+ 12:39:15,555 INFO [MailService] Mail Service bound to java:/Mail
50
+ 12:39:16,147 INFO [HornetQServerImpl] live server is starting..
51
+ 12:39:16,202 INFO [JournalStorageManager] Using NIO Journal
52
+ 12:39:16,219 WARNING [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
53
+ 12:39:16,634 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5455 for CORE protocol
54
+ 12:39:16,635 INFO [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5445 for CORE protocol
55
+ 12:39:16,638 INFO [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) started
56
+ 12:39:16,685 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
57
+ 12:39:16,862 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
58
+ 12:39:16,867 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators
59
+ 12:39:16,883 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at Mon, 25 Apr 2011 12:39:16
60
+ 12:39:16,937 INFO [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712
61
+ 12:39:16,938 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712
62
+ 12:39:16,939 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery manager
63
+ 12:39:16,952 INFO [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713
64
+ 12:39:16,953 INFO [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713
65
+ 12:39:16,954 INFO [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
66
+ 12:39:16,992 INFO [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
67
+ 12:39:17,035 INFO [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.
68
+ 12:39:17,237 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
69
+ 12:39:17,360 INFO [TomcatDeployment] deploy, ctxPath=/invoker
70
+ 12:39:17,600 INFO [ModClusterService] Initializing mod_cluster 1.1.0.Final
71
+ 12:39:17,635 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
72
+ 12:39:17,644 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
73
+ 12:39:17,680 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/jms-ra.rar/META-INF/ra.xml
74
+ 12:39:17,693 INFO [HornetQResourceAdapter] HornetQ resource adaptor started
75
+ 12:39:17,699 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/mail-ra.rar/META-INF/ra.xml
76
+ 12:39:17,710 INFO [RARDeployment] Required license terms exist, view vfs:/Users/tobias/work/torquebox/integration-tests/target/integ-dist/jboss/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
77
+ 12:39:17,786 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-3
78
+ 12:39:17,819 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
79
+ 12:39:17,819 INFO [QuartzScheduler] Quartz Scheduler v.1.8.3 created.
80
+ 12:39:17,821 INFO [RAMJobStore] RAMJobStore initialized.
81
+ 12:39:17,823 INFO [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED'
82
+ Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
83
+ NOT STARTED.
84
+ Currently in standby mode.
85
+ Number of jobs executed: 0
86
+ Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
87
+ Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
88
+
89
+ 12:39:17,823 INFO [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream.
90
+ 12:39:17,823 INFO [StdSchedulerFactory] Quartz scheduler version: 1.8.3
91
+ 12:39:17,823 INFO [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started.
92
+ 12:39:18,132 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
93
+ 12:39:18,306 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
94
+ 12:39:18,424 INFO [xnio] XNIO Version 2.1.0.CR2
95
+ 12:39:18,431 INFO [nio] XNIO NIO Implementation Version 2.1.0.CR2
96
+ 12:39:18,606 INFO [remoting] JBoss Remoting version 3.1.0.Beta2
97
+ 12:39:18,692 INFO [TomcatDeployment] deploy, ctxPath=/
98
+ 12:39:18,728 INFO [service] Removing bootstrap log handlers
99
+ 12:39:18,784 INFO [org.torquebox.bootstrap.AppsDirectoryNotificationListener] Activating deployments dir
100
+ 12:39:18,805 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
101
+ 12:39:18,810 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
102
+ 12:39:18,811 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.Final "Neo"] Started in 19s:834ms
103
+ 12:39:19,170 INFO [org.jboss.deployment.MainDeployer] deploy, url=file:/Users/tobias/work/torquebox/integration-tests/basic-auth-knob.jar
104
+ 12:39:19,283 INFO [org.torquebox.mc.vdf.PojoDeployment] Deploying: basic-auth -- "/Users/tobias/work/torquebox/integration-tests/apps/rack/basic_auth"
105
+ 12:39:19,290 INFO [org.torquebox.base.deployers.AuthDefaultsDeployer] No authentication configuration provided for this application. Using defaults.
106
+ 12:39:19,290 INFO [org.torquebox.base.deployers.AuthDefaultsDeployer] Authentication Domain: torquebox-auth
107
+ 12:39:19,311 WARN [org.torquebox.interp.deployers.BaseRubyRuntimeDeployer] Ruby runtime already configured as RACK: AbstractVFSDeploymentContext@1357132739{basic-auth}
108
+ 12:39:19,438 INFO [org.torquebox.interp.deployers.RuntimePoolDeployer] Deploying runtime pool: [PoolMetaData: name=messaging min=1 max=2]
109
+ 12:39:19,442 INFO [org.torquebox.interp.deployers.RuntimePoolDeployer] Deploying runtime pool: [PoolMetaData: name=web type=SHARED]
110
+ 12:39:19,551 INFO [org.jboss.weld.Version] WELD-000900 1.1.0 (CR3)
111
+ 12:39:19,568 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Creating ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: web)
112
+ 12:39:21,818 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: web) in 2.25s
113
+ 12:39:21,866 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Creating ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: messaging)
114
+ 12:39:23,346 INFO [org.torquebox.interp.core.RubyRuntimeFactoryImpl] Created ruby runtime (ruby_version: RUBY1_9, compile_mode: JIT, app: basic-auth, context: messaging) in 1.48s
115
+ 12:39:23,556 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] deploy, ctxPath=/basic-auth
116
+ 12:39:23,592 WARN [org.jboss.web.tomcat.service.deployers.JBossContextConfig] Failed to setup clustering, clustering disabled. ClusteringNotSupportedException: No DistributedCacheManagerFactory service provider found.
117
+ 12:39:24,093 INFO [org.torquebox.base.deployers.DeploymentNotifier] Fully deployed: basic-auth
118
+ 12:39:24,093 INFO [org.torquebox.mc.vdf.PojoDeployment] Fully deployed: "/Users/tobias/work/torquebox/integration-tests/apps/rack/basic_auth"
119
+ 12:39:25,408 INFO [STDOUT] {["rack.input", #<IO:0x00000000>]=>nil,
120
+ 12:39:25,409 INFO [STDOUT] ["rack.errors", #<IO:0x00000000>]=>nil,
121
+ 12:39:25,419 INFO [STDOUT] ["REQUEST_METHOD", "GET"]=>nil,
122
+ 12:39:25,423 INFO [STDOUT] ["SCRIPT_NAME", "/basic-auth"]=>nil,
123
+ 12:39:25,425 INFO [STDOUT] ["PATH_INFO", "/"]=>nil,
124
+ 12:39:25,427 INFO [STDOUT] ["QUERY_STRING", ""]=>nil,
125
+ 12:39:25,450 INFO [STDOUT] ["SERVER_NAME", "localhost"]=>nil,
126
+ 12:39:25,452 INFO [STDOUT] ["SERVER_PORT", "8080"]=>nil,
127
+ 12:39:25,454 INFO [STDOUT] ["CONTENT_TYPE", nil]=>nil,
128
+ 12:39:25,457 INFO [STDOUT] ["REQUEST_URI", "/basic-auth/"]=>nil,
129
+ 12:39:25,459 INFO [STDOUT] ["REMOTE_ADDR", "127.0.0.1"]=>nil,
130
+ 12:39:25,461 INFO [STDOUT] ["rack.url_scheme", "http"]=>nil,
131
+ 12:39:25,475 INFO [STDOUT] ["rack.version", [1, 1]]=>nil,
132
+ 12:39:25,477 INFO [STDOUT] ["rack.multithread", true]=>nil,
133
+ 12:39:25,479 INFO [STDOUT] ["rack.multiprocess", true]=>nil,
134
+ 12:39:25,480 INFO [STDOUT] ["rack.run_once", false]=>nil,
135
+ 12:39:25,485 INFO [STDOUT] ["HTTP_USER_AGENT", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"]=>
136
+ 12:39:25,485 INFO [STDOUT] nil,
137
+ 12:39:25,492 INFO [STDOUT] ["HTTP_ACCEPT_LANGUAGE", "en-us"]=>nil,
138
+ 12:39:25,494 INFO [STDOUT] ["HTTP_ACCEPT", "*/*"]=>nil,
139
+ 12:39:25,495 INFO [STDOUT] ["HTTP_HOST", "localhost:8080"]=>nil,
140
+ 12:39:25,497 INFO [STDOUT] ["HTTP_CONNECTION", "Keep-Alive"]=>nil,
141
+ 12:39:25,498 INFO [STDOUT] ["servlet_request",
142
+ 12:39:25,499 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil,
143
+ 12:39:25,500 INFO [STDOUT] ["java.servlet_request",
144
+ 12:39:25,501 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil}
145
+ 12:39:25,538 INFO [STDOUT] {["rack.input", #<IO:0x00000000>]=>nil,
146
+ 12:39:25,538 INFO [STDOUT] ["rack.errors", #<IO:0x00000000>]=>nil,
147
+ 12:39:25,540 INFO [STDOUT] ["REQUEST_METHOD", "GET"]=>nil,
148
+ 12:39:25,542 INFO [STDOUT] ["SCRIPT_NAME", "/basic-auth"]=>nil,
149
+ 12:39:25,543 INFO [STDOUT] ["PATH_INFO", "/"]=>nil,
150
+ 12:39:25,545 INFO [STDOUT] ["QUERY_STRING", ""]=>nil,
151
+ 12:39:25,546 INFO [STDOUT] ["SERVER_NAME", "localhost"]=>nil,
152
+ 12:39:25,548 INFO [STDOUT] ["SERVER_PORT", "8080"]=>nil,
153
+ 12:39:25,549 INFO [STDOUT] ["CONTENT_TYPE", nil]=>nil,
154
+ 12:39:25,551 INFO [STDOUT] ["REQUEST_URI", "/basic-auth/"]=>nil,
155
+ 12:39:25,552 INFO [STDOUT] ["REMOTE_ADDR", "127.0.0.1"]=>nil,
156
+ 12:39:25,554 INFO [STDOUT] ["rack.url_scheme", "http"]=>nil,
157
+ 12:39:25,556 INFO [STDOUT] ["rack.version", [1, 1]]=>nil,
158
+ 12:39:25,558 INFO [STDOUT] ["rack.multithread", true]=>nil,
159
+ 12:39:25,559 INFO [STDOUT] ["rack.multiprocess", true]=>nil,
160
+ 12:39:25,561 INFO [STDOUT] ["rack.run_once", false]=>nil,
161
+ 12:39:25,562 INFO [STDOUT] ["HTTP_USER_AGENT", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)"]=>
162
+ 12:39:25,562 INFO [STDOUT] nil,
163
+ 12:39:25,564 INFO [STDOUT] ["HTTP_ACCEPT_LANGUAGE", "en-us"]=>nil,
164
+ 12:39:25,575 INFO [STDOUT] ["HTTP_ACCEPT", "*/*"]=>nil,
165
+ 12:39:25,576 INFO [STDOUT] ["HTTP_HOST", "localhost:8080"]=>nil,
166
+ 12:39:25,578 INFO [STDOUT] ["HTTP_CONNECTION", "Keep-Alive"]=>nil,
167
+ 12:39:25,580 INFO [STDOUT] ["HTTP_AUTHORIZATION", "Basic Ym1jd2hpcnRAcmVkaGF0LmNvbTpzd29yZGZpc2g="]=>nil,
168
+ 12:39:25,581 INFO [STDOUT] ["servlet_request",
169
+ 12:39:25,581 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil,
170
+ 12:39:25,582 INFO [STDOUT] ["java.servlet_request",
171
+ 12:39:25,583 INFO [STDOUT] #<Java::OrgApacheCatalinaConnector::RequestFacade:0x626dac12>]=>nil}
172
+ 12:39:25,793 INFO [org.jboss.web.tomcat.service.deployers.TomcatDeployment] undeploy, ctxPath=/basic-auth
173
+ 12:39:25,997 INFO [org.jboss.system.server.jmx.JMXKernel] Server exit called, exiting the JVM now!
174
+ 12:39:25,998 INFO [STDOUT] Posting Shutdown Request to the server...
175
+ 12:39:25,999 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] Stopping: JBossAS [6.0.0.Final "Neo"]
176
+ 12:39:26,001 INFO [org.apache.coyote.http11.Http11Protocol] Pausing Coyote HTTP/1.1 on http-127.0.0.1-8080
177
+ 12:39:26,002 INFO [org.apache.coyo
@@ -0,0 +1,80 @@
1
+ SQL (2.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2
+ SQL (1.0ms) SELECT name, sql FROM sqlite_master WHERE tbl_name = "schema_migrations" AND type = 'index'
3
+ SQL (2.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4
+ SQL (0.0ms) SELECT name
5
+ FROM sqlite_master
6
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
7
+ SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
8
+ SQL (0.0ms) SELECT name
9
+ FROM sqlite_master
10
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
11
+ SQL (0.0ms)  SELECT name
12
+ FROM sqlite_master
13
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
14
+ 
15
+ SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
16
+ Migrating to CreateWidgets (20110421160514)
17
+ SQL (1.0ms) CREATE TABLE "widgets" ("id" integer primary key autoincrement not null, "name" varchar(255), "created_at" datetime, "updated_at" datetime) 
18
+ SQL (0.0ms) SELECT last_insert_rowid()
19
+ SQL (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
20
+ SQL (0.0ms) SELECT name
21
+ FROM sqlite_master
22
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
23
+ SQL (0.0ms) SELECT name, sql FROM sqlite_master WHERE tbl_name = "widgets" AND type = 'index'
24
+
25
+
26
+ Started GET "/__sinatra__/500.png" for 0:0:0:0:0:0:0:1%0 at Thu Apr 21 12:19:00 -0400 2011
27
+
28
+ ActionController::RoutingError (No route matches "/__sinatra__/500.png"):
29
+
30
+
31
+ Rendered /Users/tobias/work/torquebox-current/jruby/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (4.0ms)
32
+
33
+
34
+ Started GET "/__sinatra__/500.png" for 0:0:0:0:0:0:0:1%0 at Thu Apr 21 12:19:29 -0400 2011
35
+
36
+ ActionController::RoutingError (No route matches "/__sinatra__/500.png"):
37
+
38
+
39
+ Rendered /Users/tobias/work/torquebox-current/jruby/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.0ms)
40
+ SQL (0.0ms)  SELECT name
41
+ FROM sqlite_master
42
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
43
+ 
44
+ SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
45
+ Migrating to CreateWidgets (20110421160514)
46
+ SQL (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
47
+ SQL (0.0ms) SELECT name
48
+ FROM sqlite_master
49
+ WHERE type = 'table' AND NOT name = 'sqlite_sequence'
50
+ SQL (0.0ms) SELECT name, sql FROM sqlite_master WHERE tbl_name = "widgets" AND type = 'index'
51
+
52
+
53
+ Started GET "/__sinatra__/500.png" for 0:0:0:0:0:0:0:1%0 at Thu Apr 21 13:19:32 -0400 2011
54
+
55
+ ActionController::RoutingError (No route matches "/__sinatra__/500.png"):
56
+
57
+
58
+ Rendered /Users/tobias/work/torquebox-current/jruby/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (4.0ms)
59
+
60
+
61
+ Started GET "/widgets" for 0:0:0:0:0:0:0:1%0 at Thu Apr 21 13:52:39 -0400 2011
62
+ Processing by WidgetsController#index as HTML
63
+ Widget Load (1.0ms) SELECT "widgets".* FROM "widgets"
64
+ Rendered widgets/index.html.erb within layouts/application (13.0ms)
65
+ Completed 200 OK in 309ms (Views: 36.0ms | ActiveRecord: 1.0ms)
66
+
67
+
68
+ Started GET "/widgets" for 0:0:0:0:0:0:0:1%0 at Mon Apr 25 22:25:52 -0400 2011
69
+ Processing by WidgetsController#index as HTML
70
+ Widget Load (0.0ms) SELECT "widgets".* FROM "widgets"
71
+ Rendered widgets/index.html.erb within layouts/application (22.0ms)
72
+ Completed 200 OK in 338ms (Views: 36.0ms | ActiveRecord: 0.0ms)
73
+
74
+
75
+ Started GET "/__sinatra__/500.png" for 0:0:0:0:0:0:0:1%0 at Mon Apr 25 22:27:02 -0400 2011
76
+
77
+ ActionController::RoutingError (No route matches "/__sinatra__/500.png"):
78
+
79
+
80
+ Rendered /Users/tobias/work/torquebox-current/jruby/lib/ruby/gems/1.8/gems/actionpack-3.0.7/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.0ms)
File without changes
data/spec/log_spec.rb ADDED
@@ -0,0 +1,53 @@
1
+ #
2
+ # Copyright 2011 Red Hat, Inc.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+
17
+ require 'spec_helper'
18
+
19
+ module Backstage
20
+
21
+ describe 'Log' do
22
+ describe ".all" do
23
+ it "should default to the jboss.server.log.dir if no log_dir provided" do
24
+ java.lang.System.should_receive( :get_property ).with( 'jboss.server.log.dir' ).and_return( File.join( TEST_ROOT, 'data', 'jbosslogs' ) )
25
+ logs = Log.all
26
+ logs.collect( &:name ).should =~ ['boot.log', 'error.log']
27
+ end
28
+
29
+ it "should use the log_dir provided" do
30
+ logs = Log.all( File.join( TEST_ROOT, 'data', 'railsapp', 'log' ) )
31
+ logs.collect( &:name ).should =~ ['development.log', 'production.log']
32
+ end
33
+
34
+ it "should return [] if no logs found" do
35
+ Log.all( 'asdfasdf' ).should == []
36
+ end
37
+ end
38
+
39
+ describe "#tail" do
40
+
41
+ end
42
+
43
+ describe "#size" do
44
+ it "should return the file size" do
45
+ log_file = File.join( TEST_ROOT, 'data', 'jbosslogs', 'boot.log' )
46
+ log = Log.new( log_file )
47
+ log.size.should == File.size( log_file )
48
+ end
49
+ end
50
+
51
+
52
+ end
53
+ end
data/spec/spec_helper.rb CHANGED
@@ -18,6 +18,8 @@ require 'rack/test'
18
18
  require 'backstage'
19
19
  require 'json'
20
20
 
21
+ TEST_ROOT = File.expand_path( File.dirname( __FILE__ ) )
22
+
21
23
  def app
22
24
  Backstage::Application
23
25
  end
@@ -27,10 +29,17 @@ def resource_with_mock_mbean(klass)
27
29
  def mock_mbean.method_missing(method, *args, &block)
28
30
  method.to_s
29
31
  end
30
- resource = klass.new('mock_mbean', mock_mbean)
32
+
33
+ if klass == Backstage::Log
34
+ resource = Backstage::Log.new(File.join( TEST_ROOT, 'data', 'railsapp', 'log', 'production.log' ))
35
+ else
36
+ resource = klass.new('mock_mbean', mock_mbean)
37
+ resource.stub(:app).and_return(resource_with_mock_mbean(Backstage::App)) unless klass == Backstage::App
38
+ end
39
+
31
40
  resource.stub(:name).and_return('name')
32
41
  resource.stub(:app_name).and_return('app_name')
33
- resource.stub(:app).and_return(resource_with_mock_mbean(Backstage::App)) unless klass == Backstage::App
42
+
34
43
  resource
35
44
  end
36
45
 
@@ -5,11 +5,12 @@
5
5
  %th Environment
6
6
  %th Root
7
7
  %th Deployed At
8
+ %th
8
9
  - @collection.each do |app|
9
10
  %tr
10
11
  %td= link_to( object_path( app ), app.name )
11
12
  %td= app.environment_name
12
13
  %td= app.root_path
13
14
  %td= app.deployed_at
14
-
15
+ %td= link_to( collection_path( app, :logs ), 'View Logs' ) if app.has_logs?
15
16
 
data/views/apps/show.haml CHANGED
@@ -2,6 +2,7 @@
2
2
  %h2
3
3
  == App: #{@object.name}
4
4
  .actions
5
+ = link_to( collection_path( @object, :logs ), 'View Logs' ) if @object.has_logs?
5
6
 
6
7
  %table.data-table
7
8
  - %w{ name environment_name root_path deployed_at }.each do |method|
data/views/css/style.sass CHANGED
@@ -83,7 +83,6 @@ body
83
83
 
84
84
  h1, h2
85
85
  margin-bottom: 15px
86
-
87
86
  h2
88
87
  @include rounded-corners(3px)
89
88
  background-color: $standout_color
@@ -136,6 +135,45 @@ th
136
135
  width: 500px
137
136
  height: 200px
138
137
 
138
+ #log-show
139
+ #log
140
+ padding: 3px
141
+ border: 1px solid $medium_gray
142
+ overflow: auto
143
+ min-height: 600px
144
+ position: relative
145
+ #ajax-spinner
146
+ position: absolute
147
+ z-index: 10
148
+ #log_output
149
+ position: absolute
150
+ top: 1px
151
+
152
+ #dashboard
153
+ @include clearfix
154
+ #left_column, #right_column
155
+ width: 50%
156
+ float: left
157
+ .list
158
+ @include rounded-corners
159
+ position: relative
160
+ margin: 5px
161
+ padding: 5px
162
+ background-color: $light_gray
163
+ .actions
164
+ position: absolute
165
+ top: 3px
166
+ right: 3px
167
+ .element
168
+ padding: 3px 0
169
+ ul
170
+ li
171
+ margin-left: 15px
172
+
173
+ h3
174
+ border-bottom: 1px solid $text_color
175
+
176
+ @include selected-tab('root', 'dashboard')
139
177
  @include selected-tab('apps')
140
178
  @include selected-tab('queues')
141
179
  @include selected-tab('queue', 'queues')
@@ -0,0 +1,96 @@
1
+ #dashboard
2
+ #left_column
3
+ #overview.list
4
+ %h3 Overview
5
+ .actions
6
+ = link_to( collection_path( :logs ), 'View JBoss Logs' )
7
+ .element
8
+ %ul
9
+ %li
10
+ BackStage:
11
+ %ul
12
+ %li== Version: #{Backstage::BACKSTAGE_VERSION}
13
+ %li
14
+ TorqueBox:
15
+ %ul
16
+ - torquebox_version_info.each do |key, value|
17
+ - unless value.blank?
18
+ %li== #{key}: #{value}
19
+ %li
20
+ JBoss:
21
+ %ul
22
+ - jboss_version_info.each do |key, value|
23
+ - unless value.blank?
24
+ %li== #{key}: #{value}
25
+ %li
26
+ HornetQ:
27
+ %ul
28
+ - hornetq_version_info.each do |key, value|
29
+ - unless value.blank?
30
+ %li== #{key}: #{value}
31
+ /
32
+ %li
33
+ Quartz:
34
+ %ul
35
+ %li== Version: ???
36
+
37
+ #apps.list
38
+ %h3 Apps
39
+ .actions
40
+ = link_to( collection_path( :apps ), 'View All Apps' )
41
+ - Backstage::App.all.each do |app|
42
+ .element
43
+ = link_to object_path( app ), app.name
44
+
45
+ #queues.list
46
+ %h3 Queues
47
+ .actions
48
+ = link_to( collection_path( :queues ), 'View All Queues' )
49
+ - Backstage::Queue.all.each do |queue|
50
+ .element
51
+ = link_to object_path( queue ), "#{queue.display_name} - #{queue.app_name}"
52
+
53
+ #topics.list
54
+ %h3 Topics
55
+ .actions
56
+ = link_to( collection_path( :topics ), 'View All Topics' )
57
+ - Backstage::Topic.all.each do |topic|
58
+ .element
59
+ = link_to object_path( topic ), "#{topic.display_name} - #{topic.app_name}"
60
+
61
+ #right_column
62
+ #message_processors.list
63
+ %h3 Message Processors
64
+ .actions
65
+ = link_to( collection_path( :messsage_processors ), 'View All Messsage Processors' )
66
+ - Backstage::MessageProcessor.all.each do |message_processor|
67
+ .element
68
+ = link_to object_path( message_processor ), "#{message_processor.name} - #{message_processor.app_name}"
69
+
70
+ #jobs.list
71
+ %h3 Jobs
72
+ .actions
73
+ = link_to( collection_path( :jobs ), 'View All Jobs' )
74
+ - Backstage::Job.all.each do |job|
75
+ .element
76
+ = link_to object_path( job ), "#{job.display_name} - #{job.app_name}"
77
+
78
+ #services.list
79
+ %h3 Services
80
+ .actions
81
+ = link_to( collection_path( :services ), 'View All Services' )
82
+ - Backstage::Service.all.each do |service|
83
+ .element
84
+ = link_to object_path( service ), "#{service.name} - #{service.app_name}"
85
+
86
+ #pools.list
87
+ %h3 Runtime Pools
88
+ .actions
89
+ = link_to( collection_path( :pools ), 'View All Runtime Pools' )
90
+ - Backstage::Pool.all.each do |pool|
91
+ .element
92
+ = link_to object_path( pool ), "#{pool.name} - #{pool.app_name}"
93
+
94
+
95
+
96
+