|
|
|
vopros po jetty
|
|||
|---|---|---|---|
|
#18+
zapuskayu prilozhenie v jetty 4erez: mvn jetty:run ili iz eclipse 4erez: Run on Server v oboih slu4ayah podnimaetsya Jetty na localhost:8080 no po4emu-to ne nahodit prilozhenie =( ____________________________________________________ HTTP ERROR: 404 Problem accessing /test/. Reason: Not Found -------------------------------------------------------------------------------- Powered by Jetty:// podskazite 4to posmotret6? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.10.2012, 14:10:38 |
|
||
|
vopros po jetty
|
|||
|---|---|---|---|
|
#18+
i maven pri sborke: mvn -U clean package jetty:run-war pishet 4to nashel web.xml i on budet ignorirovan.. naderno v etom delo, ne? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.10.2012, 14:15:04 |
|
||
|
vopros po jetty
|
|||
|---|---|---|---|
|
#18+
prodolzhayu, k etoy 4asti pom.xml: <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.2.1</version> <configuration> <mainClass>org.test.int1.Main</mainClass> </configuration> </plugin> dobavil etu, ras4it6lvaya 4to pomozhet, esli ukazat6 konkretno na xml: <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.1.v20120215</version> <configuration> <systemProperties> <systemProperty> <name>DEBUG</name> <value>TRUE</value> </systemProperty> </systemProperties> <scanIntervalSeconds>0</scanIntervalSeconds> <webAppConfig> <defaultsDescriptor>src/main/webapp/web.xml</defaultsDescriptor> </webAppConfig> <stopPort>9966</stopPort> <stopKey>foo</stopKey> </configuration> </plugin> teper6 oshibka: Error 404 - Not Found. No context on this server matched or handled this request. Contexts known to this server are: /test ---> o.e.j.w.WebAppContext{/test,file:/C:/jtty/wrk/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/test/},C:\jtty\wrk\.metadata\.plugins\org.eclipse.wst.server.core\tmp0/wtpwebapps/test [failed] ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.10.2012, 14:23:32 |
|
||
|
vopros po jetty
|
|||
|---|---|---|---|
|
#18+
ne znayu po4emu ya reshil 4to Jetty sam dolzhen nayti to4ku vhoda v prilozhenie, no gde-to pisali, poka 4to dobralsya do fayla s nastroykami iz ..\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 est6 takoe tam: # The default configuration files $(jetty.home)/etc/jetty.xml nargs == 0 ./jetty-server/src/main/config/etc/jetty.xml nargs == 0 AND ! exists $(jetty.home)/etc/jetty.xml vot interesno eti nastroyki mne pomogut? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.10.2012, 14:32:50 |
|
||
|
vopros po jetty
|
|||
|---|---|---|---|
|
#18+
problema v proekte. v eclipse v modulyah jetty vse nastroeno rOvno. 4to proverit6 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.10.2012, 14:47:13 |
|
||
|
vopros po jetty
|
|||
|---|---|---|---|
|
#18+
kT_________, defaultsDescriptor не трогайте по умолчанию берется org/eclipse/jetty/webapp/webdefault.xml из jetty-webapp, по сути, Вы удалили default servlet, jsp sevlet и welcome file, но это ладно, возможно это не нужно, если в web.xml есть servlet на / или /* . Вот Ваше приложение развернуто, но с ошибкой: /test ---> o.e.j.w.WebAppContext{/test,file:/C:/jtty/wrk/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/test/},C:\jtty\wrk\.metadata\.plugins\org.eclipse.wst.server.core\tmp0/wtpwebapps/test [failed] Смотрите логи. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.10.2012, 15:57:53 |
|
||
|
vopros po jetty
|
|||
|---|---|---|---|
|
#18+
0FD, servlet на / или /* da, vot tak v web.xml: <servlet> <servlet-name>appServlet</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/spring/appServlet/servlet-context.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>appServlet</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> servlet-context.xml: <beans:beans xmlns=" http://www.springframework.org/schema/mvc" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:beans=" http://www.springframework.org/schema/beans" xsi:schemaLocation=" http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <annotation-driven/> <resources mapping="/resources/**" location="/resources/"/> <beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <beans:property name="prefix" value="/WEB-INF/views/"/> <beans:property name="suffix" value=".jsp"/> </beans:bean> <beans:import resource="controllers.xml"/> </beans:beans> mozhet b6lt6 servlet-context.xml krivoe imya, i dolzhno b6lt6 [name]-servlet.xml ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.10.2012, 16:56:11 |
|
||
|
vopros po jetty
|
|||
|---|---|---|---|
|
#18+
kT_________, / должно работать, но это пока не важно, [failed] /test ---> o.e.j.w.WebAppContext{/test,file:/C:/jtty/wrk/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/test/},C:\jtty\wrk\.metadata\.plugins\org.eclipse.wst.server.core\tmp0/wtpwebapps/test [failed] Смотри логи, про servlet-context.xml ничего не скажу, не использовал spring. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 03.10.2012, 17:25:04 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=37981933&tid=2130851]: |
0ms |
get settings: |
12ms |
get forum list: |
19ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
46ms |
get topic data: |
14ms |
get forum data: |
4ms |
get page messages: |
60ms |
get tp. blocked users: |
2ms |
| others: | 287ms |
| total: | 454ms |

| 0 / 0 |
