You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Dennis Meade <de...@bluebottle.com> on 2006/12/16 02:27:35 UTC

package javax.servlet does not exist

I get the errors listed below when I try to build Geronimo.

Downloaded and then tried to guild Geronimo with:

------

svn co https://svn.apache.org/repos/asf/geronimo/server/trunk server

set MAVEN_OPTS=-Xmx512m
mvn -e -Dmaven.test.skip=true -Dmaven.itest.skip=true install

------

I've tried to figure what's wrong with my environment ( CLASSPATH? ), 
but am at a loss. I can build and run servlets on my machine.

Any help would be greatly appreciated.

  ------------------------------------------------------------------------
ERROR] BUILD FAILURE
INFO] 
------------------------------------------------------------------------
INFO] Compilation failure

C:\Geronimo\server\applications\geronimo-welcome\src\main\java\org\apache\geroni
mo\welcome\AbsentSampleServlet.java:[23,21] package javax.servlet does 
not exist
   .
   .
   .
C:\Geronimo\server\applications\geronimo-welcome\src\main\java\org\apache\geroni
mo\welcome\AbsentSampleServlet.java:[25,26] package javax.servlet.http 
does not
exist
   .
   .
   .
C:\Geronimo\server\applications\geronimo-welcome\src\main\java\org\apache\geroni
mo\welcome\AbsentSampleServlet.java:[48,41] cannot find symbol
symbol: class HttpServlet
ublic class AbsentSampleServlet extends HttpServlet {

C:\Geronimo\server\applications\geronimo-welcome\src\main\java\org\apache\geroni
no\welcome\AbsentSampleServlet.java:[49,25] cannot find symbol
symbol  : class HttpServletRequest
location: class org.apache.geronimo.welcome.AbsentSampleServlet
   .
   .
   .

C:\Geronimo\server\applications\geronimo-welcome\src\main\java\org\apache\geroni
mo\welcome\AbsentSampleServlet.java:[124,26] cannot find symbol
symbol  : class ServletException
location: class org.apache.geronimo.welcome.AbsentSampleServlet


[INFO] 
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.BuildFailureException: Compilation failure
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:555)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:475)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:454)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:306)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:273)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:140)
         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
         at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.CompilationFailureException: 
Compilation fail
ure
         at 
org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:505)
         at 
org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
         at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:412)
         at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:534)
         ... 16 more
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 4 minutes 37 seconds
[INFO] Finished at: Fri Dec 15 20:16:38 EST 2006
[INFO] Final Memory: 64M/114M
[INFO] 
------------------------------------------------------------------------

C:\Geronimo\server>

----------------------------------------------------------------------
Stone Hawk Drug Rehab
Stone Hawk drug rehab has the highest success rate nationwide with 76%
http://tagline.bidsystem.com/fc/BgLEQfI9JGqZ5gu7frJ3y3z8azc9jOAc6Jfv/


Re: package javax.servlet does not exist

Posted by Dennis Meade <de...@bluebottle.com>.
Prasad,

That was the problem. So after checking out Geronimo, then updating it
after that to fix other problems, the build finally ran to completion
for me.

Much Thanks.

Prasad Kashyap wrote:
> Dennis,
> 
> I'm wondering if you tried this more than 47 hours ago before the
> servlet spec dependency was introduced.
> 
> http://svn.apache.org/viewvc/geronimo/server/trunk/applications/geronimo-welcome/pom.xml?view=log 
> 
> 
> See if you are missing the servlet spec in your
> applications/geronimo-welcome/pom.xml. That is where the javax.servlet
> package comes from.

> 
> Cheers
> Prasad
> 

-- 

Dennis

.
.
.
.
.
.

----------------------------------------------------------------------
Click for dental plans with huge savings, top service and coverage
http://tags.bluebottle.com/fc/KCuXzzTyc0QSDGt0WH0gJvu4DhrdHG/


Re: package javax.servlet does not exist

Posted by Prasad Kashyap <go...@gmail.com>.
Dennis,

I'm wondering if you tried this more than 47 hours ago before the
servlet spec dependency was introduced.

http://svn.apache.org/viewvc/geronimo/server/trunk/applications/geronimo-welcome/pom.xml?view=log

See if you are missing the servlet spec in your
applications/geronimo-welcome/pom.xml. That is where the javax.servlet
package comes from.

Cheers
Prasad

On 12/15/06, Dennis Meade <de...@bluebottle.com> wrote:
>
> I get the errors listed below when I try to build Geronimo.
>
> Downloaded and then tried to guild Geronimo with:
>
> ------
>
> svn co https://svn.apache.org/repos/asf/geronimo/server/trunk server
>
> set MAVEN_OPTS=-Xmx512m
> mvn -e -Dmaven.test.skip=true -Dmaven.itest.skip=true install
>
> ------
>
> I've tried to figure what's wrong with my environment ( CLASSPATH? ),
> but am at a loss. I can build and run servlets on my machine.
>
> Any help would be greatly appreciated.
>
>   ------------------------------------------------------------------------
> ERROR] BUILD FAILURE
> INFO]
> ------------------------------------------------------------------------
> INFO] Compilation failure
>
> C:\Geronimo\server\applications\geronimo-welcome\src\main\java\org\apache\geroni
> mo\welcome\AbsentSampleServlet.java:[23,21] package javax.servlet does
> not exist
>    .
>    .
>    .
> C:\Geronimo\server\applications\geronimo-welcome\src\main\java\org\apache\geroni
> mo\welcome\AbsentSampleServlet.java:[25,26] package javax.servlet.http
> does not
> exist
>    .
>    .
>    .
> C:\Geronimo\server\applications\geronimo-welcome\src\main\java\org\apache\geroni
> mo\welcome\AbsentSampleServlet.java:[48,41] cannot find symbol
> symbol: class HttpServlet
> ublic class AbsentSampleServlet extends HttpServlet {
>
> C:\Geronimo\server\applications\geronimo-welcome\src\main\java\org\apache\geroni
> no\welcome\AbsentSampleServlet.java:[49,25] cannot find symbol
> symbol  : class HttpServletRequest
> location: class org.apache.geronimo.welcome.AbsentSampleServlet
>    .
>    .
>    .
>
> C:\Geronimo\server\applications\geronimo-welcome\src\main\java\org\apache\geroni
> mo\welcome\AbsentSampleServlet.java:[124,26] cannot find symbol
> symbol  : class ServletException
> location: class org.apache.geronimo.welcome.AbsentSampleServlet
>
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.BuildFailureException: Compilation failure
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:555)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:475)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:454)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
> dleFailures(DefaultLifecycleExecutor.java:306)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
> ts(DefaultLifecycleExecutor.java:273)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:140)
>          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>          at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
>          at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:585)
>          at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>          at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>          at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
>          at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.CompilationFailureException:
> Compilation fail
> ure
>          at
> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
> Mojo.java:505)
>          at
> org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:111)
>          at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:412)
>          at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:534)
>          ... 16 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 minutes 37 seconds
> [INFO] Finished at: Fri Dec 15 20:16:38 EST 2006
> [INFO] Final Memory: 64M/114M
> [INFO]
> ------------------------------------------------------------------------
>
> C:\Geronimo\server>
>
> ----------------------------------------------------------------------
> Stone Hawk Drug Rehab
> Stone Hawk drug rehab has the highest success rate nationwide with 76%
> http://tagline.bidsystem.com/fc/BgLEQfI9JGqZ5gu7frJ3y3z8azc9jOAc6Jfv/
>
>