You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by mööhmööh <az...@gmail.com> on 2010/03/05 19:25:54 UTC

deployment problem

Hi there,

first of all, sorry for my bad English.
I have problems with deploying my finished wicket-project.
the situation: I can start it from the IDE eclipse without any problem,
and on my Desktop i can run it from the console with : mvn jetty:run
also without a problem.
but then i tried to deploy it on my server, it is an Ubuntu-server, with
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
tomcat 6,
i tried to copy the .war file into the webapp folder, and i tried to deploy
it with
the tomcat webapplication manager, there i get this error:
FAIL - Application at context path /ase could not be started
and i tried to run it from the console per ssh with "mvn jetty:run"
here i get this error:

bono@bono-server:~/click-a-
ride/03-05-2010/ase$ mvn jetty:run
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[INFO] Building quickstart
[INFO]    task-segment: [jetty:run]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing jetty:run
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 81 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 176 source files to
/home/bono/click-a-ride/03-05-2010/ase/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure

***/server/DatabaseManager.java:[8,34] package
org.springframework.core.iodoes not exist

***/server/DatabaseManager.java:[65,2] cannot find symbol
symbol  : class ClassPathResource
location: class server.DatabaseManager

***/server/DatabaseManager.java:[65,30] cannot find symbol
symbol  : class ClassPathResource
location: class server.DatabaseManager

***/server/DatabaseManager.java:[66,31] cannot access
org.springframework.core.io.DefaultResourceLoader
class file for org.springframework.core.io.DefaultResourceLoader not found
        ApplicationContext context = new
ClassPathXmlApplicationContext(DatabaseManager.SPRINGBEANS);

***/server/DatabaseManager.java:[70,23] cannot access
org.springframework.core.SimpleAliasRegistry
class file for org.springframework.core.SimpleAliasRegistry not found
        XmlBeanFactory xbf = new XmlBeanFactory(res);

***/server/DatabaseManager.java:[72,56] cannot access
org.springframework.core.io.support.ResourcePatternResolver
class file for org.springframework.core.io.support.ResourcePatternResolver
not found
        DatabaseManager.daos.put("user", (AbstractDAO)
context.getBean("UserDAO"));

***/dao/RatingDAO.java:[96,2] cannot access
org.springframework.core.NestedRuntimeException
class file for org.springframework.core.NestedRuntimeException not found
        try {

[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Mar 05 19:04:39 CET 2010
[INFO] Final Memory: 26M/73M
[INFO]

i dont know what else i can trie, can you please help me?

greetings bono

Re: deployment problem

Posted by Edward Zarecor <ed...@indeterminate.org>.
Then there's probably another version of Spring on your classpath, perhaps
provided by Tomcat.  A case for jwhich.

Ed.

On Mar 5, 2010 1:48 PM, "bonomat" <az...@gmail.com> wrote:


jes, it is in there i think: i found this one:
spring-core-3.0.1.RELEASE.jar

--
View this message in context:
http://old.nabble.com/deployment-problem-tp27797485p27797706.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

Re: deployment problem

Posted by bonomat <az...@gmail.com>.
ok, i removed my maven repository and then everything was downloaded again,
now i can start it with mvn jetty:start
but not jet with tomcat, 
i am not sure if this is right to start a wicket-app over maven.

-- 
View this message in context: http://old.nabble.com/deployment-problem-tp27797485p27797779.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: deployment problem

Posted by bonomat <az...@gmail.com>.
jes, it is in there i think: i found this one:
spring-core-3.0.1.RELEASE.jar

-- 
View this message in context: http://old.nabble.com/deployment-problem-tp27797485p27797706.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: deployment problem

Posted by Riyad Kalla <rk...@gmail.com>.
bono,

Looks like some dependencies are missing from your WAR
===========
***/server/DatabaseManager.java:[8,34] package
org.springframework.core.iodoes not exist
===========

Can you grab the WAR, unzip it and check WEB-INF/lib and see if those libs
are in there? Might just be a packaging issue.

R

On Fri, Mar 5, 2010 at 11:25 AM, mööhmööh <az...@gmail.com> wrote:

> Hi there,
>
> first of all, sorry for my bad English.
> I have problems with deploying my finished wicket-project.
> the situation: I can start it from the IDE eclipse without any problem,
> and on my Desktop i can run it from the console with : mvn jetty:run
> also without a problem.
> but then i tried to deploy it on my server, it is an Ubuntu-server, with
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
> tomcat 6,
> i tried to copy the .war file into the webapp folder, and i tried to deploy
> it with
> the tomcat webapplication manager, there i get this error:
> FAIL - Application at context path /ase could not be started
> and i tried to run it from the console per ssh with "mvn jetty:run"
> here i get this error:
>
> bono@bono-server:~/click-a-
> ride/03-05-2010/ase$ mvn jetty:run
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building quickstart
> [INFO]    task-segment: [jetty:run]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Preparing jetty:run
> [INFO] [resources:resources {execution: default-resources}]
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 3 resources
> [INFO] Copying 81 resources
> [INFO] [compiler:compile {execution: default-compile}]
> [INFO] Compiling 176 source files to
> /home/bono/click-a-ride/03-05-2010/ase/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> ***/server/DatabaseManager.java:[8,34] package
> org.springframework.core.iodoes not exist
>
> ***/server/DatabaseManager.java:[65,2] cannot find symbol
> symbol  : class ClassPathResource
> location: class server.DatabaseManager
>
> ***/server/DatabaseManager.java:[65,30] cannot find symbol
> symbol  : class ClassPathResource
> location: class server.DatabaseManager
>
> ***/server/DatabaseManager.java:[66,31] cannot access
> org.springframework.core.io.DefaultResourceLoader
> class file for org.springframework.core.io.DefaultResourceLoader not found
>        ApplicationContext context = new
> ClassPathXmlApplicationContext(DatabaseManager.SPRINGBEANS);
>
> ***/server/DatabaseManager.java:[70,23] cannot access
> org.springframework.core.SimpleAliasRegistry
> class file for org.springframework.core.SimpleAliasRegistry not found
>        XmlBeanFactory xbf = new XmlBeanFactory(res);
>
> ***/server/DatabaseManager.java:[72,56] cannot access
> org.springframework.core.io.support.ResourcePatternResolver
> class file for org.springframework.core.io.support.ResourcePatternResolver
> not found
>        DatabaseManager.daos.put("user", (AbstractDAO)
> context.getBean("UserDAO"));
>
> ***/dao/RatingDAO.java:[96,2] cannot access
> org.springframework.core.NestedRuntimeException
> class file for org.springframework.core.NestedRuntimeException not found
>        try {
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Fri Mar 05 19:04:39 CET 2010
> [INFO] Final Memory: 26M/73M
> [INFO]
>
> i dont know what else i can trie, can you please help me?
>
> greetings bono
>