This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bundler could not find compatible versions for gem "activesupport": | |
In Gemfile: | |
meta_search (~> 1.1.3) ruby depends on | |
activesupport (~> 3.1) ruby | |
rails (= 4.0.2) ruby depends on | |
activesupport (4.0.2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
07-19 14:33:25.358 12035-12035/com.example.billey_b.xmppchat W/System.err﹕ org.jivesoftware.smack.SmackException$ConnectionException | |
07-19 14:33:25.358 12035-12035/com.example.billey_b.xmppchat W/System.err﹕ at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:431) | |
07-19 14:33:25.358 12035-12035/com.example.billey_b.xmppchat W/System.err﹕ at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection.java:799) | |
07-19 14:33:25.358 12035-12035/com.example.billey_b.xmppchat W/System.err﹕ at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:391) | |
07-19 14:33:25.358 12035-12035/com.example.billey_b.xmppchat W/System.err﹕ at com.example.billey_b.xmppchat.MyActivity.connect(MyActivity.java:37) | |
07-19 14:33:25.358 12035-12035/com.example.billey_b.xmppchat W/System.err﹕ at com.example.billey_b.xmppchat.MyActivity.onCreate(MyActivity.java:27) | |
07-19 14:33:25.358 12035-12035/com.example.billey_b.xmppchat W/System.err﹕ at android.app.Activi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
@Instantiate | |
public class ShiroActivator { | |
/** | |
* The famous {@link org.slf4j.Logger} | |
*/ | |
private static final Logger logger = LoggerFactory.getLogger(ShiroActivator.class); | |
/** | |
* initialize shiro, by adding some roles and users |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Route(method = HttpMethod.POST, uri = "/login") | |
public Result login(@Body User user) { | |
Subject currentUser = SecurityUtils.getSubject(); | |
UsernamePasswordToken token = new UsernamePasswordToken(user.getUsername(), user.getPassword()); | |
try { | |
currentUser.login(token); | |
} catch (UnknownAccountException uae) { | |
context().flash().error("Unknown account"); | |
return loginForm(); | |
} catch (IncorrectCredentialsException ice) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Authenticated("my-authenticator") | |
@Route(method = HttpMethod.GET, uri = "/protected") | |
public Result protectedArea() { | |
return ok(render(protectedView, "user", new UserHelper())); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
@Provides | |
@Instantiate | |
public class MyAuthenticator implements Authenticator { | |
/** | |
* The famous {@link org.slf4j.Logger} | |
*/ | |
private static final Logger logger = LoggerFactory.getLogger(MyAuthenticator.class); | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"/> | |
<title>Protected area</title> | |
<meta charset="UTF-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
</head> | |
<body> | |
<p th:if="${user.isAdmin()}">I'm the admin so be nice with me</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.thymeleaf.exceptions.TemplateProcessingException: Unable to resolve class: mypackage.helper.UserHelper (application:64) | |
at org.wisdom.template.thymeleaf.impl.WisdomTemplateEngine.process(WisdomTemplateEngine.java:101) ~[na:na] | |
at org.wisdom.template.thymeleaf.impl.ThymeLeafTemplateImplementation.render(ThymeLeafTemplateImplementation.java:119) ~[na:na] | |
at org.wisdom.api.templates.Template$$Proxy.render(Unknown Source) ~[na:na] | |
at org.wisdom.api.DefaultController.render(DefaultController.java:178) ~[wisdom-api-0.6.2.jar:na] | |
at mypackage.UserController.__M_index(UserController.java:56) ~[na:na] | |
at mypackage.UserController.index(UserController.java) ~[na:na] | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_05] | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_05] | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_05] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.thymeleaf.exceptions.TemplateProcessingException: Unable to resolve class: mypackage.helper.UserHelper (application:64) | |
at org.wisdom.template.thymeleaf.impl.WisdomTemplateEngine.process(WisdomTemplateEngine.java:101) ~[na:na] | |
at org.wisdom.template.thymeleaf.impl.ThymeLeafTemplateImplementation.render(ThymeLeafTemplateImplementation.java:119) ~[na:na] | |
at org.wisdom.api.templates.Template$$Proxy.render(Unknown Source) ~[na:na] | |
at org.wisdom.api.DefaultController.render(DefaultController.java:178) ~[wisdom-api-0.6.2.jar:na] | |
at mypackage.UserController.__M_index(UserController.java:56) ~[na:na] | |
at mypackage.UserController.index(UserController.java) ~[na:na] | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_05] | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_05] | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_05] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
# Build: | |
# docker build -t wisdom/acme-sample . | |
# | |
# Run: | |
# docker run -d -p 9000:9000 wisdom/acme-sample | |
# | |
# Optional volumes: | |
# - Logs: /root/wisdom/logs | |
# - Applications (where app bundles live): /root/wisdom/application |
OlderNewer