kyo19 / run-jetty-run

Automatically exported from code.google.com/p/run-jetty-run
0 stars 0 forks source link

run jetty run starts fine and suddenly freezes with no log on console #183

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
run jetty run starts fine and suddenly freezes with no log on console. Even 
Eclipse responds very slowly after this.

To exclude heap issues, I did connect to runJettyRun:Bootstrap via JMX and 
noticed that there is enough heap space left.

Is there a log or output where we can see if something is wrong as the same 
setup runs fine on tomcat.

Also, the only thing I can think of is Jetty using src/main/resources 
configuration files in target although maven build path is set to exclude them 
instead of my custom classpath configuration files. Is there a way to override 
everything found using my custom classpath configuration folders.

What is the expected output? What do you see instead?
Application freezes and console log slowly disappears. I passed following VM 
arguments and it still freezes:
-Xms256m -Xmx2056m -XX:PermSize=256m -XX:MaxPermSize=1024m

What steps will reproduce the problem?
1. Regular Spring application with custom classpath
2.
3.

What Eclipse version are you using ?
4.2

What Run-Jetty-Run version are you using?
1.3 - using Jetty 8.1

What OS are you using ? 32bit or 64 bit?
64 bit

Please provide any additional information below.

Original issue reported on code.google.com by krishna81m on 6 May 2014 at 1:24

GoogleCodeExporter commented 9 years ago
I may have found the problem, run jetty run is using the src/main/resources 
configuration files as the default path instead of the user custom classpath in 
the Webapp classpath

Original comment by krishna81m on 6 May 2014 at 2:04

GoogleCodeExporter commented 9 years ago
Shouldn't custom path override the default configuration files in the project 
target folders or src/main/resources? Where is the classloader behavior in 
loading the configuration files.

Original comment by krishna81m on 6 May 2014 at 2:11

GoogleCodeExporter commented 9 years ago
I think I found a potential bug or my understanding is wrong.

JettyClasspath -> Custom Jetty Classpath is doing what I expect it to do, 
override the default configuration files successfully.

UserCustomClasspath in Webappclasspath does not override the src/main/resources 
although maven and Java build path shows it is excluded and also these are 
added to target and to Jetty classpath at run time

Original comment by krishna81m on 6 May 2014 at 2:23

GoogleCodeExporter commented 9 years ago
i have meet this problem also, can you please say some more details. thank you 
very much.

Original comment by sendre...@gmail.com on 29 Jan 2015 at 11:24

GoogleCodeExporter commented 9 years ago
i may be found the real reason about this problem. because webappcontext cound 
not load some class. so it interupt the start process.

Original comment by sendre...@gmail.com on 29 Jan 2015 at 12:11

GoogleCodeExporter commented 9 years ago
anyone can help me? the attach picture show the exactly problem, the main 
thread is hangs by loadlibrary() methed. is any one tell me the reason?
the class be loaded is com.supermap.data.Envirment which should call c++ 
library.

i already set the c++ library to system path variable.

it is strange that if i package a war and deploy to webcontainer it will be 
work ok, but if run with RJR, it will be hangs.

the computer is server2003 + jdk 1.6.45 + eclipse Luna(4.4.1)

i have trid changing jdk version or eclipse version, has no effect.

but in my computer all of them is ok, my computer is win8.1.

Original comment by sendre...@gmail.com on 9 Feb 2015 at 5:53

Attachments:

GoogleCodeExporter commented 9 years ago
i need help, thanks very much.

Original comment by sendre...@gmail.com on 27 Feb 2015 at 11:13