Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to make simple app to work with templates #28

Open
kiklop74 opened this issue Apr 7, 2023 · 0 comments
Open

Unable to make simple app to work with templates #28

kiklop74 opened this issue Apr 7, 2023 · 0 comments

Comments

@kiklop74
Copy link

kiklop74 commented Apr 7, 2023

I have been struggling with creating simple blade app with templates. Tried copying your template example and the thing is not working. Using JDK 1.8 and maven 3.8

Here is the repo https://github.com/kiklop74/ltisample

Can you tell me what I'm doing wrong here?

This is how it looks when started from NetBeans

--- exec-maven-plugin:3.1.0:exec (default-cli) @ ltisample ---
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : app.env          => default
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : app.pid          => 24096
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : app.devMode      => true
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : jdk.version      => 1.8.0_362
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : user.dir         => C:\Users\Darko Miletic\Documents\NetBeansProjects\ltisample
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : java.io.tmpdir   => C:\Users\DARKOM~1\AppData\Local\Temp\
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : user.timezone    => America/Buenos_Aires
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : file.encoding    => Cp1252
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : app.classpath    => C:/Users/Darko Miletic/Documents/NetBeansProjects/ltisample/target/classes/

                                         __, _,   _, __, __,
                                         |_) |   /_\ | \ |_
                                         |_) | , | | |_/ |
                                         ~   ~~~ ~ ~ ~   ~~~
                                     :: Blade :: (v2.1.2.RELEASE) 

2023/04/07 09:37:22  INFO [          _(:3??)_ ]          c.h.b.m.r.RouteMatcher : Add route  GET     /
2023/04/07 09:37:22  INFO [          _(:3??)_ ]          c.h.b.m.r.RouteMatcher : Add route  GET     /login
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : Register bean: [com.moodleus.ltisample.IndexController@72d23c93, com.hellokaton.blade.Environment@290caead, com.moodleus.ltisample.Bootstrap@314d18c4, com.moodleus.ltisample.Bootstrap@314d18c4]
2023/04/07 09:37:22  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : Use NioEventLoopGroup
2023/04/07 09:37:23  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : Blade initialize successfully, Time elapsed: 629 ms
2023/04/07 09:37:23  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : Blade start with  0.0.0.0:9000 
2023/04/07 09:37:23  INFO [          _(:3??)_ ]             c.h.b.s.NettyServer : Open browser access http://127.0.0.1:9000 ?

2023/04/07 09:37:31  INFO [   worker@thread-1 ]       c.h.b.s.HttpServerHandler :  200    14ms  GET    /login
2023/04/07 09:37:50  INFO [   worker@thread-2 ]       c.h.b.s.HttpServerHandler :  200     1ms  GET    /
2023/04/07 09:37:50  WARN [   worker@thread-2 ] c.h.b.m.h.DefaultExceptionHandler :  404          GET    /favicon.ico
2023/04/07 09:38:03  INFO [   worker@thread-2 ]       c.h.b.s.HttpServerHandler :  200     0ms  GET    /login

The pages open but they are empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant