Logi Tomcat

Konrad0309
2015-11-05 10:44
Konrad0309
0

Zerknijcie na moje logi z uruchomienia Tomcata - nie moge uruchomic apki a Wy na pewno zauwazycie cos niepokojacego.


lis 05, 2015 10:37:53 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.8.0_40\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_40/bin/client;C:/Program Files/Java/jre1.8.0_40/bin;C:/Program Files/Java/jre1.8.0_40/lib/i386;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\oracle\ora92\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;m:\runtime;c:\oracle\Ora6i\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files\Roxio\OEM\AudioCore\;c:\Ora6i\bin;C:\Program Files\Windows Live\Shared;C:\Users\kodawydi\Desktop\eclipse;;.
lis 05, 2015 10:37:53 AM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Web-FamilyFinancialManagement' did not find a matching property.
lis 05, 2015 10:37:53 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
lis 05, 2015 10:37:53 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
lis 05, 2015 10:37:53 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 368 ms
lis 05, 2015 10:37:53 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
lis 05, 2015 10:37:53 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.47
lis 05, 2015 10:37:53 AM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\kodawydi\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Web-FamilyFinancialManagement\WEB-INF\lib\javax.servlet-api-3.1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
lis 05, 2015 10:37:55 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
lis 05, 2015 10:37:55 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Thu Nov 05 10:37:55 CET 2015]; root of context hierarchy
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/root-context.xml]
INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 205 ms
lis 05, 2015 10:37:55 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'appServlet'
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'appServlet': initialization started
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'appServlet-servlet': startup date [Thu Nov 05 10:37:55 CET 2015]; parent: Root WebApplicationContext
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/appServlet-servlet.xml]
INFO : org.springframework.web.servlet.handler.SimpleUrlHandlerMapping - Mapped URL path [/resources/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping - Mapped "{[/hello]}" onto public java.lang.String pl.dawydiuk.web.HelloWorldController.hello(java.lang.String,org.springframework.ui.Model)
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: WebApplicationContext for namespace 'appServlet-servlet': startup date [Thu Nov 05 10:37:55 CET 2015]; parent: Root WebApplicationContext
INFO : org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: WebApplicationContext for namespace 'appServlet-servlet': startup date [Thu Nov 05 10:37:55 CET 2015]; parent: Root WebApplicationContext
INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'appServlet': initialization completed in 615 ms
lis 05, 2015 10:37:56 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
lis 05, 2015 10:37:56 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
lis 05, 2015 10:37:56 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2629 ms

Pozostało 580 znaków

2015-11-05 10:56
Moderator

Rejestracja: 16 lat temu

Ostatnio: 5 godzin temu

0

A co się niby dzieje jak wchodzisz na localhost:8080/hello? Pokaż log który sie wtedy pojawia.


Masz problem? Pisz na forum, nie do mnie. Nie masz problemów? Kup komputer...

Pozostało 580 znaków

Konrad0309
2015-11-05 11:37
Konrad0309
0

No wlasnie nic i to jest problem. Mysle że gdzies jescze nie jest cos ustawione. Jest cos istotnego do ustawienia w propertiesach projektu ?

Przechwytywanie.PNG

Pozostało 580 znaków

2015-11-05 12:26
Moderator

Rejestracja: 16 lat temu

Ostatnio: 5 godzin temu

0

Jak to "nic"? WTF? Wchodzisz pod taki link w przeglądarce i COŚ na pewno się wyświetla. Pytam CO. Następnie pytam co się wtedy pojawia w logach jak wejdziesz pod ten link. COŚ sie na pewno pojawia.


Masz problem? Pisz na forum, nie do mnie. Nie masz problemów? Kup komputer...

Pozostało 580 znaków

2015-11-06 07:27

Rejestracja: 10 lat temu

Ostatnio: 5 dni temu

0

OK nic sie nie pojawia w logach w consoli w Eclipse ale w przeglądarce dostaje to :
Przechwytywanie.PNG
Dodam że to jest moduł WEB dla projektu w Maven.

Pozostało 580 znaków

2015-11-06 08:43

Rejestracja: 10 lat temu

Ostatnio: 5 dni temu

0

Jezeli w adresie wpisuje:
http://localhost:8080/Web-FamilyFinancialManagement/hello

dostaje w consoli Eclipsa
WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/Web-FamilyFinancialManagement/hello] in DispatcherServlet with name 'appServlet'

Pozostało 580 znaków

2015-11-06 08:59
Moderator

Rejestracja: 16 lat temu

Ostatnio: 5 godzin temu

0
  1. A jak wyglądają ustawienia projektu do deploymentu na tomcacie? Jak klikniesz na tą aplikację w "servers", to co tam jest?
  2. Jak wygląda web.xml?

Masz problem? Pisz na forum, nie do mnie. Nie masz problemów? Kup komputer...

Pozostało 580 znaków

2015-11-06 09:37

Rejestracja: 10 lat temu

Ostatnio: 5 dni temu

0

ok zadziałało. Ale mam inne pytanie. Kiedy robie clean install na projekcie dostaje błąd:
Jak moge zmienić JRE na JDK - bo chyba o to chodzi w tym bledzie ?

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] FamilyFinancialManagement
[INFO] Entity-FamilyFinancialManagement
[INFO] Dao-FamilyFinancialManagment
[INFO] SysTest-FamilyFinancialManagment
[INFO] Service-FamilyFinancialManagment
[INFO] Web-FamilyFinancialManagement
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building FamilyFinancialManagement 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ FamilyFinancialManagement ---
[INFO] 
[INFO] --- maven-install-plugin:2.4:install (default-install) @ FamilyFinancialManagement ---
[INFO] Installing C:\Users\kodawydi\git\familyfinancialmanagment\FamilyFinancialManagement\pom.xml to C:\Users\kodawydi\.m2\repository\pl\dawydiuk\FamilyFinancialManagement\0.0.1-SNAPSHOT\FamilyFinancialManagement-0.0.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Entity-FamilyFinancialManagement 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ Entity-FamilyFinancialManagement ---
[INFO] Deleting C:\Users\kodawydi\git\familyfinancialmanagment\FamilyFinancialManagement\Entity-FamilyFinancialManagement\target
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Entity-FamilyFinancialManagement ---
[WARNING] Using platform encoding (Cp1250 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\Users\kodawydi\git\familyfinancialmanagment\FamilyFinancialManagement\Entity-FamilyFinancialManagement\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ Entity-FamilyFinancialManagement ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding Cp1250, i.e. build is platform dependent!
[INFO] Compiling 6 source files to C:\Users\kodawydi\git\familyfinancialmanagment\FamilyFinancialManagement\Entity-FamilyFinancialManagement\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] FamilyFinancialManagement .......................... SUCCESS [  1.103 s]
[INFO] Entity-FamilyFinancialManagement ................... FAILURE [  3.424 s]
[INFO] Dao-FamilyFinancialManagment ....................... SKIPPED
[INFO] SysTest-FamilyFinancialManagment ................... SKIPPED
[INFO] Service-FamilyFinancialManagment ................... SKIPPED
[INFO] Web-FamilyFinancialManagement ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.655 s
[INFO] Finished at: 2015-11-06T09:31:22+01:00
[INFO] Final Memory: 8M/19M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Entity-FamilyFinancialManagement: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :Entity-FamilyFinancialManagement

Pozostało 580 znaków

2015-11-06 09:51
Moderator

Rejestracja: 16 lat temu

Ostatnio: 5 godzin temu

0
  1. Co to znaczy "zadziałało"? To gdzie był błąd? ;]
  2. Ustaw zmienną JAVA_HOME na instalacje JDK i dodaj katalog /bin z JDK do zmiennej PATH

Masz problem? Pisz na forum, nie do mnie. Nie masz problemów? Kup komputer...
edytowany 1x, ostatnio: Shalom, 2015-11-06 09:52

Pozostało 580 znaków

2015-11-06 10:16

Rejestracja: 10 lat temu

Ostatnio: 5 dni temu

0
  1. Miałem błąd w web.xml w <servlet-mapping>
  2. Jestem tutaj i dodałem jdk w preferencjach a w jaki spsob dodac bin do zmiennej path ?
    Przechwytywanie.PNG

Pozostało 580 znaków

2015-11-06 10:25
Moderator

Rejestracja: 16 lat temu

Ostatnio: 5 godzin temu

1

Wybierz JDK jako default w preferencjach eclipse. A zmienna PATH i JAVA_HOME to są zmienne systemowe, nie maja nic wspólnego z eclipse.


Masz problem? Pisz na forum, nie do mnie. Nie masz problemów? Kup komputer...

Pozostało 580 znaków

1 użytkowników online, w tym zalogowanych: 0, gości: 1, botów: 0