You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2020/03/08 16:16:23 UTC
[GitHub] [skywalking] tomatofrommars opened a new issue #4465: The app.js
cannot be accessed by the broswer
tomatofrommars opened a new issue #4465: The app.js cannot be accessed by the broswer
URL: https://github.com/apache/skywalking/issues/4465
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [ ] Question or discussion
- [x] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
___
### Question
- What do you want to know?
___
### Bug
- Which version of SkyWalking, OS and JRE?
version: The latest maste branch, commit hash is `74b0af9d85aa66e2666e98719b0a8c255c8cd934`.
OS: macOS 10.14.4
JRE: 8
- Which company or project?
skywalking/apm-webapp
skywalking/skywalking-ui
- What happen?
I built a .tar.gz package with `./mvnw clean package -DskipTests`.
When i run it in container, i got a empty page:
<img width="1440" alt="page" src="https://user-images.githubusercontent.com/16113120/76166360-df72fe00-6198-11ea-877e-4cfacea22940.png">
<img width="1440" alt="console" src="https://user-images.githubusercontent.com/16113120/76166363-e39f1b80-6198-11ea-8c3f-7e7c4e782e21.png">
<img width="1436" alt="network" src="https://user-images.githubusercontent.com/16113120/76166364-e8fc6600-6198-11ea-98ff-b9fa074b5627.png">
So i checked the skywalking-ui log, the last line shows no mapping found for [/app.js].
Then i added this line `registry.addResourceHandler("/app.js").addResourceLocations("classpath:/public/app.js")` to `org.apache.skywalking.apm.webapp.proxy.MvcConfig` in skywalking/apm-webapp, the page worked with app.js been accessed.
<img width="997" alt="Screen Shot 2020-03-09 at 00 08 06" src="https://user-images.githubusercontent.com/16113120/76166574-7ee4c080-619a-11ea-8900-6b98520fb5d5.png">
Should i send a PR?
The log:
```
......
2020-03-08 23:33:47.323 INFO 1 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'routesMvcEndpoint': registering with JMX server as MBean [org.springframework.cloud.netflix.zuul:name=routesMvcEndpoint,type=RoutesMvcEndpoint]
2020-03-08 23:33:47.337 INFO 1 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'filtersEndpoint': registering with JMX server as MBean [org.springframework.cloud.netflix.zuul:name=filtersEndpoint,type=FiltersEndpoint]
2020-03-08 23:33:47.339 WARN 1 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Bean with key 'filtersEndpoint' has been registered as an MBean but has no exposed attributes or operations
2020-03-08 23:33:47.342 INFO 1 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'refreshScope': registering with JMX server as MBean [org.springframework.cloud.context.scope.refresh:name=refreshScope,type=RefreshScope]
2020-03-08 23:33:47.364 INFO 1 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'configurationPropertiesRebinder': registering with JMX server as MBean [org.springframework.cloud.context.properties:name=configurationPropertiesRebinder,context=5c3bd550,type=ConfigurationPropertiesRebinder]
2020-03-08 23:33:47.377 INFO 1 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Located managed bean 'refreshEndpoint': registering with JMX server as MBean [org.springframework.cloud.endpoint:name=refreshEndpoint,type=RefreshEndpoint]
2020-03-08 23:33:47.413 INFO 1 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 0
2020-03-08 23:33:47.475 INFO 1 --- [ main] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 2147483647
2020-03-08 23:33:47.486 INFO 1 --- [ main] ration$HystrixMetricsPollerConfiguration : Starting poller
2020-03-08 23:33:47.566 INFO 1 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2020-03-08 23:33:47.581 INFO 1 --- [ main] o.a.s.apm.webapp.ApplicationStartUp : Started ApplicationStartUp in 13.729 seconds (JVM running for 14.749)
2020-03-08 23:34:27.199 INFO 1 --- [nio-8080-exec-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2020-03-08 23:34:27.199 INFO 1 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2020-03-08 23:34:27.229 INFO 1 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 30 ms
2020-03-08 23:34:27.253 INFO 1 --- [nio-8080-exec-1] o.s.c.n.zuul.web.ZuulHandlerMapping : Mapped URL path [/graphql] onto handler of type [class org.springframework.cloud.netflix.zuul.web.ZuulController]
2020-03-08 23:34:27.254 INFO 1 --- [nio-8080-exec-1] o.s.c.n.zuul.web.ZuulHandlerMapping : Mapped URL path [/login/account] onto handler of type [class org.springframework.cloud.netflix.zuul.web.ZuulController]
2020-03-08 23:34:27.426 WARN 1 --- [nio-8080-exec-2] o.s.web.servlet.PageNotFound : No mapping found for HTTP request with URI [/app.js] in DispatcherServlet with name 'dispatcherServlet'
2020-03-08 23:34:52.844 WARN 1 --- [nio-8080-exec-5] o.s.web.servlet.PageNotFound : No mapping found for HTTP request with URI [/app.js] in DispatcherServlet with name 'dispatcherServlet'
```
___
### Requirement or improvement
- Please describe about your requirements or improvement suggestions.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng closed issue #4465: The app.js cannot be
accessed by the broswer
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #4465: The app.js cannot be accessed by the broswer
URL: https://github.com/apache/skywalking/issues/4465
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4465: The app.js cannot
be accessed by the broswer
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4465: The app.js cannot be accessed by the broswer
URL: https://github.com/apache/skywalking/issues/4465#issuecomment-596336750
I think maybe you start up the codes in the wrong way.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] tomatofrommars commented on issue #4465: The app.js
cannot be accessed by the broswer
Posted by GitBox <gi...@apache.org>.
tomatofrommars commented on issue #4465: The app.js cannot be accessed by the broswer
URL: https://github.com/apache/skywalking/issues/4465#issuecomment-596332576
> The demo commit id [8e1530d](https://github.com/apache/skywalking/commit/8e1530d4fcde5f281a5e41c5e3830ebefbf0a51a). We don't change UI After that.
Same issue there [8e1530d](https://github.com/apache/skywalking/commit/8e1530d4fcde5f281a5e41c5e3830ebefbf0a51a).
Maybe my procedure was not right, thanks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] tomatofrommars commented on issue #4465: The app.js
cannot be accessed by the broswer
Posted by GitBox <gi...@apache.org>.
tomatofrommars commented on issue #4465: The app.js cannot be accessed by the broswer
URL: https://github.com/apache/skywalking/issues/4465#issuecomment-596869687
The environment variable `NODE_ENV=production` is required 😑
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4465: The app.js cannot
be accessed by the broswer
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4465: The app.js cannot be accessed by the broswer
URL: https://github.com/apache/skywalking/issues/4465#issuecomment-596224903
The demo commit id 8e1530d4fcde5f281a5e41c5e3830ebefbf0a51. We don't change UI After that.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] tomatofrommars edited a comment on issue #4465: The
app.js cannot be accessed by the broswer
Posted by GitBox <gi...@apache.org>.
tomatofrommars edited a comment on issue #4465: The app.js cannot be accessed by the broswer
URL: https://github.com/apache/skywalking/issues/4465#issuecomment-596869687
Environment variable `NODE_ENV=production` is required 😑
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4465: The app.js cannot
be accessed by the broswer
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4465: The app.js cannot be accessed by the broswer
URL: https://github.com/apache/skywalking/issues/4465#issuecomment-596224482
We updated the demo yesterday. It seems fine to me. Have you tried the demo env?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [skywalking] wu-sheng commented on issue #4465: The app.js cannot
be accessed by the broswer
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #4465: The app.js cannot be accessed by the broswer
URL: https://github.com/apache/skywalking/issues/4465#issuecomment-596224232
I don't remember this has been changed, I will check later
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services