Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • HIbernate/Spring/Myfaces dependency hell

    6 answers - 1620 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hey everybody,
    I've got an app that uses Hibernate 3.0.5, Spring 1.2.6 and Myfaces
    1.1.1. I'm having massive problems getting this thing to deploy with m2
    and I think it has to do with missing or conflicting dependencies. The
    error I'm getting now when I try and hit a JSP is:
    java.lang.NoClassDefFoundError
    (Category.java:372)
    org.apache.log4j.Category.log(Category.java:864)
    (Log4JLogger.java:193)
    (Compiler.java:387)
    (Compiler.java:472)
    (Compiler.java:451)
    (Compiler.java:439)
    (JspCompilationContext.java:511)
    (JspServletWrapper.java:295)
    (JspServlet.java:292)
    (JspServlet.java:236)
    (HttpServlet.java:802)
    I've tried piece-mealing the deps together and it seems to be the spring
    jars that are causing the problem. The really confusing thing is that
    in my testing I stripped down my web.xml to just the display-name and
    welcome-file-list elements, so nothing should even be trying to load
    spring. I'm guessing it's a static log field that is being created when
    the jars are first loaded. I've got it to the point where I can say for
    sure that a simple jsp with a simple web.xml works without the
    spring1.2.6.jar libs. But as soon as I try and add the spring-core
    jar I start getting that error above.
    Anybody know the right dependencies to include in my war pom since the
    spring poms are bare ATM?
    Thanks,
    Rich
    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.1 | | 7495 bytes | |

    Here's what I use for Equinox's MyFaces 1.1.1 + Spring 1.2.6 +
    Hibernate 3.0.5 combination:

    <dependencies>
    <dependency>
    <artifactId>cargo</artifactId>
    <groupId>cargo</groupId>
    <version>0.6</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>commons-lang</artifactId>
    <groupId>commons-lang</groupId>
    <version>2.0</version>
    </dependency>
    <dependency>
    <artifactId>commons-logging</artifactId>
    <groupId>commons-logging</groupId>
    <version>1.0.4</version>
    </dependency>
    <dependency>
    <artifactId>displaytag</artifactId>
    <groupId>displaytag</groupId>
    <version>1.0</version>
    <scope>runtime</scope>
    <exclusions>
    <exclusion>
    <artifactId>xalan</artifactId>
    <groupId>xalan</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>dwr</artifactId>
    <groupId>uk.ltd.getahead</groupId>
    <version>1.0</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>hibernate</artifactId>
    <groupId>org.hibernate</groupId>
    <version>3.0.5</version>
    <exclusions>
    <exclusion>
    <artifactId>jta</artifactId>
    <groupId>javax.transaction</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>geronimo-spec-jta</artifactId>
    <groupId>geronimo-spec</groupId>
    <version>1.0.1B-rc4</version>
    </dependency>
    <dependency>
    <artifactId>jmock</artifactId>
    <groupId>jmock</groupId>
    <version>1.0.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>junit</artifactId>
    <groupId>junit</groupId>
    <version>3.8.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>webtest</artifactId>
    <groupId>com.canoo</groupId>
    <version>586</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>log4j</artifactId>
    <groupId>log4j</groupId>
    <version>1.2.11</version>
    </dependency>
    <dependency>
    <artifactId>postgresql</artifactId>
    <groupId>postgresql</groupId>
    <version>8.0-312.jdbc3</version>
    </dependency>
    <dependency>
    <artifactId>servlet-api</artifactId>
    <groupId>javax.servlet</groupId>
    <version>2.4</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <artifactId>jstl</artifactId>
    <groupId>javax.servlet</groupId>
    <version>1.1.2</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>standard</artifactId>
    <groupId>taglibs</groupId>
    <version>1.1.2</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>sitemesh</artifactId>
    <groupId>opensymphony</groupId>
    <version>2.2.1</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>myfaces-all</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    <exclusions>
    <exclusion>
    <artifactId>xml-apis</artifactId>
    <groupId>xml-apis</groupId>
    </exclusion>
    <!-- (excluded
    for bad version #)
    <exclusion>
    <artifactId>commons-codec</artifactId>
    <groupId>commons-codec</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>tomahawk</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    </dependency>
    <dependency>
    <artifactId>jsp-api</artifactId>
    <groupId>javax.servlet</groupId>
    <version>2.0</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>spring</artifactId>
    <groupId>springframework</groupId>
    <version>1.2.6</version>
    </dependency>
    <dependency>
    <artifactId>spring-mock</artifactId>
    <groupId>springframework</groupId>
    <version>1.2.6</version>
    <scope>test</scope>
    <exclusions>
    <exclusion>
    <artifactId>spring-jdbc</artifactId>
    <groupId>springframework</groupId>
    </exclusion>
    <exclusion>
    <artifactId>spring-web</artifactId>
    <groupId>springframework</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    </dependencies>

    Matt
    http://equinox.dev.java.net

    11/30/05, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:
    Hey everybody,

    I've got an app that uses Hibernate 3.0.5, Spring 1.2.6 and Myfaces
    1.1.1. I'm having massive problems getting this thing to deploy with m2
    and I think it has to do with missing or conflicting dependencies. The
    error I'm getting now when I try and hit a JSP is:

    java.lang.NoClassDefFoundError
    (Category.java:372)
    org.apache.log4j.Category.log(Category.java:864)
    (Log4JLogger.java:193)
    (Compiler.java:387)
    (Compiler.java:472)
    (Compiler.java:451)
    (Compiler.java:439)
    (JspCompilationContext.java:511)
    (JspServletWrapper.java:295)
    (JspServlet.java:292)
    (JspServlet.java:236)
    (HttpServlet.java:802)
    --
    I've tried piece-mealing the deps together and it seems to be the spring
    jars that are causing the problem. The really confusing thing is that
    in my testing I stripped down my web.xml to just the display-name and
    welcome-file-list elements, so nothing should even be trying to load
    spring. I'm guessing it's a static log field that is being created when
    the jars are first loaded. I've got it to the point where I can say for
    sure that a simple jsp with a simple web.xml works without the
    spring1.2.6.jar libs. But as soon as I try and add the spring-core
    jar I start getting that error above.

    Anybody know the right dependencies to include in my war pom since the
    spring poms are bare ATM?

    Thanks,
    Rich

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    --

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.2 | | 10252 bytes | |

    other thing having to do with dependencies that I'm worried is an
    issue is that I'm using struts and it and spring want
    commons-collections-2.1 but one of my utilities needs
    commons-collections-3.1 as does myfaces it looks like. What's the best
    way to solve this conflict?

    I did change it so that commons-collections-2.1 was used but now I get a
    different error when trying to access a jsp for the first time:

    Error creating temporary file
    at
    ()
    at
    ()
    at
    (Jikes.java:202)
    at (Javac.java:942)
    at (Javac.java:764)
    at
    (Compiler.java:382)
    at (Compiler.java:472)
    at (Compiler.java:451)
    at (Compiler.java:439)
    at
    (JspCompilationContext.java:511)
    at
    (JspServletWrapper.java:295)
    at
    (JspServlet.java:292)
    at (JspServlet.java:236)
    at (HttpServlet.java:802)
    at
    ()

    and

    Caused by: java.io.FileNotFoundException: /files273067436 (Permission
    denied)
    at java.io.FStream.open(Native Method)
    at java.io.FStream.<init>(FStream.java:179)
    at java.io.FStream.<init>(FStream.java:131)
    at java.io.FileWriter.<init>(FileWriter.java:73)
    at
    ()
    41 more
    Nested Exception
    java.io.FileNotFoundException: /files273067436 (Permission denied)
    at java.io.FStream.open(Native Method)
    at java.io.FStream.<init>(FStream.java:179)
    at java.io.FStream.<init>(FStream.java:131)
    at java.io.FileWriter.<init>(FileWriter.java:73)
    at
    ()
    at
    ()
    at
    (Jikes.java:202)
    at (Javac.java:942)
    at (Javac.java:764)
    at
    (Compiler.java:382)
    at (Compiler.java:472)
    at (Compiler.java:451)
    at (Compiler.java:439)
    at
    (JspCompilationContext.java:511)
    at
    (JspServletWrapper.java:295)
    at
    (JspServlet.java:292)
    at (JspServlet.java:236)
    at (HttpServlet.java:802)
    at
    ()
    at
    ()

    Everything else on this tomcat server works great. I've deployed other
    webapps successfully. I tried just a test webapp project that includes
    Matts dependencies and that deployed and ran a test jsp just fine. Why
    would tomcat be trying to compile jsps for this particular webapp to the
    root directory?

    Thanks,
    Rich

    Matt Raible wrote:
    Here's what I use for Equinox's MyFaces 1.1.1 + Spring 1.2.6 +
    Hibernate 3.0.5 combination:

    <dependencies>
    <dependency>
    <artifactId>cargo</artifactId>
    <groupId>cargo</groupId>
    <version>0.6</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>commons-lang</artifactId>
    <groupId>commons-lang</groupId>
    <version>2.0</version>
    </dependency>
    <dependency>
    <artifactId>commons-logging</artifactId>
    <groupId>commons-logging</groupId>
    <version>1.0.4</version>
    </dependency>
    <dependency>
    <artifactId>displaytag</artifactId>
    <groupId>displaytag</groupId>
    <version>1.0</version>
    <scope>runtime</scope>
    <exclusions>
    <exclusion>
    <artifactId>xalan</artifactId>
    <groupId>xalan</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>dwr</artifactId>
    <groupId>uk.ltd.getahead</groupId>
    <version>1.0</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>hibernate</artifactId>
    <groupId>org.hibernate</groupId>
    <version>3.0.5</version>
    <exclusions>
    <exclusion>
    <artifactId>jta</artifactId>
    <groupId>javax.transaction</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>geronimo-spec-jta</artifactId>
    <groupId>geronimo-spec</groupId>
    <version>1.0.1B-rc4</version>
    </dependency>
    <dependency>
    <artifactId>jmock</artifactId>
    <groupId>jmock</groupId>
    <version>1.0.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>junit</artifactId>
    <groupId>junit</groupId>
    <version>3.8.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>webtest</artifactId>
    <groupId>com.canoo</groupId>
    <version>586</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>log4j</artifactId>
    <groupId>log4j</groupId>
    <version>1.2.11</version>
    </dependency>
    <dependency>
    <artifactId>postgresql</artifactId>
    <groupId>postgresql</groupId>
    <version>8.0-312.jdbc3</version>
    </dependency>
    <dependency>
    <artifactId>servlet-api</artifactId>
    <groupId>javax.servlet</groupId>
    <version>2.4</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <artifactId>jstl</artifactId>
    <groupId>javax.servlet</groupId>
    <version>1.1.2</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>standard</artifactId>
    <groupId>taglibs</groupId>
    <version>1.1.2</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>sitemesh</artifactId>
    <groupId>opensymphony</groupId>
    <version>2.2.1</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>myfaces-all</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    <exclusions>
    <exclusion>
    <artifactId>xml-apis</artifactId>
    <groupId>xml-apis</groupId>
    </exclusion>
    <!-- (excluded
    for bad version #)
    <exclusion>
    <artifactId>commons-codec</artifactId>
    <groupId>commons-codec</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>tomahawk</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    </dependency>
    <dependency>
    <artifactId>jsp-api</artifactId>
    <groupId>javax.servlet</groupId>
    <version>2.0</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>spring</artifactId>
    <groupId>springframework</groupId>
    <version>1.2.6</version>
    </dependency>
    <dependency>
    <artifactId>spring-mock</artifactId>
    <groupId>springframework</groupId>
    <version>1.2.6</version>
    <scope>test</scope>
    <exclusions>
    <exclusion>
    <artifactId>spring-jdbc</artifactId>
    <groupId>springframework</groupId>
    </exclusion>
    <exclusion>
    <artifactId>spring-web</artifactId>
    <groupId>springframework</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    </dependencies>

    Matt
    http://equinox.dev.java.net

    11/30/05, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:

    >Hey everybody,
    >>

    >I've got an app that uses Hibernate 3.0.5, Spring 1.2.6 and Myfaces
    >1.1.1. I'm having massive problems getting this thing to deploy with m2
    >and I think it has to do with missing or conflicting dependencies. The
    >error I'm getting now when I try and hit a JSP is:
    >>

    >java.lang.NoClassDefFoundError
    >(Category.java:372)
    >org.apache.log4j.Category.log(Category.java:864)
    >(Log4JLogger.java:193)
    >(Compiler.java:387)
    >(Compiler.java:472)
    >(Compiler.java:451)
    >(Compiler.java:439)
    >(JspCompilationContext.java:511)
    >(JspServletWrapper.java:295)
    >(JspServlet.java:292)
    >(JspServlet.java:236)
    >(HttpServlet.java:802)
    >>
    >>

    >I've tried piece-mealing the deps together and it seems to be the spring
    >jars that are causing the problem. The really confusing thing is that
    >in my testing I stripped down my web.xml to just the display-name and
    >welcome-file-list elements, so nothing should even be trying to load
    >spring. I'm guessing it's a static log field that is being created when
    >the jars are first loaded. I've got it to the point where I can say for
    >sure that a simple jsp with a simple web.xml works without the
    >spring1.2.6.jar libs. But as soon as I try and add the spring-core
    >jar I start getting that error above.
    >>

    >Anybody know the right dependencies to include in my war pom since the
    >spring poms are bare ATM?
    >>

    >Thanks,
    >Rich
    >>

    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    >>
    >>

    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.3 | | 11669 bytes | |

    , I found the problem with compiling the JSPs. What I was trying to
    do was use the separate jars, like spring-hibernate, spring-dao, etc.
    But they aren't complete by any means. I switched to using the
    spring-1.2.6.jar the problem went away.

    I'm still not sure what to do about the dependency on both
    commons-collections-3.1 and commons-collections-2.1. Can I include them
    both in the dependencies to have them both included in my war or will
    only one ever be included?

    Thanks,
    Rich

    PS Sorry about the last message having a screwy time, I didn't have the
    clock type set on my machine for local and was dual-booting with Windows.

    Richard Wallace wrote:
    other thing having to do with dependencies that I'm worried is an
    issue is that I'm using struts and it and spring want
    commons-collections-2.1 but one of my utilities needs
    commons-collections-3.1 as does myfaces it looks like. What's the
    best way to solve this conflict?

    I did change it so that commons-collections-2.1 was used but now I get
    a different error when trying to access a jsp for the first time:

    Error creating temporary file
    at
    ()

    at
    ()

    at
    (Jikes.java:202)
    at (Javac.java:942)
    at (Javac.java:764)
    at
    (Compiler.java:382)
    at (Compiler.java:472)
    at (Compiler.java:451)
    at (Compiler.java:439)
    at
    (JspCompilationContext.java:511)

    at
    (JspServletWrapper.java:295)

    at
    (JspServlet.java:292)
    at
    (JspServlet.java:236)
    at (HttpServlet.java:802)
    at
    ()
    --
    and

    Caused by: java.io.FileNotFoundException: /files273067436 (Permission
    denied)
    at java.io.FStream.open(Native Method)
    at java.io.FStream.<init>(FStream.java:179)
    at java.io.FStream.<init>(FStream.java:131)
    at java.io.FileWriter.<init>(FileWriter.java:73)
    at
    ()

    41 more
    Nested Exception
    java.io.FileNotFoundException: /files273067436 (Permission denied)
    at java.io.FStream.open(Native Method)
    at java.io.FStream.<init>(FStream.java:179)
    at java.io.FStream.<init>(FStream.java:131)
    at java.io.FileWriter.<init>(FileWriter.java:73)
    at
    ()

    at
    ()

    at
    (Jikes.java:202)
    at (Javac.java:942)
    at (Javac.java:764)
    at
    (Compiler.java:382)
    at (Compiler.java:472)
    at (Compiler.java:451)
    at (Compiler.java:439)
    at
    (JspCompilationContext.java:511)

    at
    (JspServletWrapper.java:295)

    at
    (JspServlet.java:292)
    at
    (JspServlet.java:236)
    at (HttpServlet.java:802)
    at
    ()

    at
    ()
    --
    Everything else on this tomcat server works great. I've deployed
    other webapps successfully. I tried just a test webapp project that
    includes Matts dependencies and that deployed and ran a test jsp just
    fine. Why would tomcat be trying to compile jsps for this particular
    webapp to the root directory?

    Thanks,
    Rich

    Matt Raible wrote:
    >Here's what I use for Equinox's MyFaces 1.1.1 + Spring 1.2.6 +
    >Hibernate 3.0.5 combination:
    >>

    ><dependencies>
    ><dependency>
    ><artifactId>cargo</artifactId>
    ><groupId>cargo</groupId>
    ><version>0.6</version>
    ><scope>test</scope>
    ></dependency>
    ><dependency>
    ><artifactId>commons-lang</artifactId>
    ><groupId>commons-lang</groupId>
    ><version>2.0</version>
    ></dependency>
    ><dependency>
    ><artifactId>commons-logging</artifactId>
    ><groupId>commons-logging</groupId>
    ><version>1.0.4</version>
    ></dependency>
    ><dependency>
    ><artifactId>displaytag</artifactId>
    ><groupId>displaytag</groupId>
    ><version>1.0</version>
    ><scope>runtime</scope>
    ><exclusions>
    ><exclusion>
    ><artifactId>xalan</artifactId>
    ><groupId>xalan</groupId>
    ></exclusion>
    ></exclusions>
    ></dependency>
    ><dependency>
    ><artifactId>dwr</artifactId>
    ><groupId>uk.ltd.getahead</groupId>
    ><version>1.0</version>
    ><scope>runtime</scope>
    ></dependency>
    ><dependency>
    ><artifactId>hibernate</artifactId>
    ><groupId>org.hibernate</groupId>
    ><version>3.0.5</version>
    ><exclusions>
    ><exclusion>
    ><artifactId>jta</artifactId>
    ><groupId>javax.transaction</groupId>
    ></exclusion>
    ></exclusions>
    ></dependency>
    ><dependency>
    ><artifactId>geronimo-spec-jta</artifactId>
    ><groupId>geronimo-spec</groupId>
    ><version>1.0.1B-rc4</version>
    ></dependency>
    ><dependency>
    ><artifactId>jmock</artifactId>
    ><groupId>jmock</groupId>
    ><version>1.0.1</version>
    ><scope>test</scope>
    ></dependency>
    ><dependency>
    ><artifactId>junit</artifactId>
    ><groupId>junit</groupId>
    ><version>3.8.1</version>
    ><scope>test</scope>
    ></dependency>
    ><dependency>
    ><artifactId>webtest</artifactId>
    ><groupId>com.canoo</groupId>
    ><version>586</version>
    ><scope>test</scope>
    ></dependency>
    ><dependency>
    ><artifactId>log4j</artifactId>
    ><groupId>log4j</groupId>
    ><version>1.2.11</version>
    ></dependency>
    ><dependency>
    ><artifactId>postgresql</artifactId>
    ><groupId>postgresql</groupId>
    ><version>8.0-312.jdbc3</version>
    ></dependency>
    ><dependency>
    ><artifactId>servlet-api</artifactId>
    ><groupId>javax.servlet</groupId>
    ><version>2.4</version>
    ><scope>provided</scope>
    ></dependency>
    ><dependency>
    ><artifactId>jstl</artifactId>
    ><groupId>javax.servlet</groupId>
    ><version>1.1.2</version>
    ><scope>runtime</scope>
    ></dependency>
    ><dependency>
    ><artifactId>standard</artifactId>
    ><groupId>taglibs</groupId>
    ><version>1.1.2</version>
    ><scope>runtime</scope>
    ></dependency>
    ><dependency>
    ><artifactId>sitemesh</artifactId>
    ><groupId>opensymphony</groupId>
    ><version>2.2.1</version>
    ><scope>runtime</scope>
    ></dependency>
    ><dependency>
    ><artifactId>myfaces-all</artifactId>
    ><groupId>myfaces</groupId>
    ><version>1.1.1</version>
    ><exclusions>
    ><exclusion>
    ><artifactId>xml-apis</artifactId>
    ><groupId>xml-apis</groupId>
    ></exclusion>
    ><!-- (excluded
    >for bad version #)
    ><exclusion>
    ><artifactId>commons-codec</artifactId>
    ><groupId>commons-codec</groupId>
    ></exclusion>
    ></exclusions>
    ></dependency>
    ><dependency>
    ><artifactId>tomahawk</artifactId>
    ><groupId>myfaces</groupId>
    ><version>1.1.1</version>
    ></dependency>
    ><dependency>
    ><artifactId>jsp-api</artifactId>
    ><groupId>javax.servlet</groupId>
    ><version>2.0</version>
    ><scope>test</scope>
    ></dependency>
    ><dependency>
    ><artifactId>spring</artifactId>
    ><groupId>springframework</groupId>
    ><version>1.2.6</version>
    ></dependency>
    ><dependency>
    ><artifactId>spring-mock</artifactId>
    ><groupId>springframework</groupId>
    ><version>1.2.6</version>
    ><scope>test</scope>
    ><exclusions>
    ><exclusion>
    ><artifactId>spring-jdbc</artifactId>
    ><groupId>springframework</groupId>
    ></exclusion>
    ><exclusion>
    ><artifactId>spring-web</artifactId>
    ><groupId>springframework</groupId>
    ></exclusion>
    ></exclusions>
    ></dependency>
    ></dependencies>
    >>

    >Matt
    >http://equinox.dev.java.net
    >>

    >11/30/05, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:
    >

    Hey everybody,

    I've got an app that uses Hibernate 3.0.5, Spring 1.2.6 and Myfaces
    1.1.1. I'm having massive problems getting this thing to deploy
    with m2
    and I think it has to do with missing or conflicting dependencies.
    The
    error I'm getting now when I try and hit a JSP is:

    java.lang.NoClassDefFoundError
    (Category.java:372)
    org.apache.log4j.Category.log(Category.java:864)

    (Log4JLogger.java:193)

    (Compiler.java:387)
    (Compiler.java:472)
    (Compiler.java:451)
    (Compiler.java:439)

    (JspCompilationContext.java:511)

    (JspServletWrapper.java:295)

    (JspServlet.java:292)

    (JspServlet.java:236)
    (HttpServlet.java:802)

    I've tried piece-mealing the deps together and it seems to be the
    spring
    jars that are causing the problem. The really confusing thing is that
    in my testing I stripped down my web.xml to just the display-name and
    welcome-file-list elements, so nothing should even be trying to load
    spring. I'm guessing it's a static log field that is being created
    when
    the jars are first loaded. I've got it to the point where I can say
    for
    sure that a simple jsp with a simple web.xml works without the
    spring1.2.6.jar libs. But as soon as I try and add the spring-core
    jar I start getting that error above.

    Anybody know the right dependencies to include in my war pom since the
    spring poms are bare ATM?

    Thanks,
    Rich

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org


    >>

    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    >>

    >
    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.4 | | 12725 bytes | |

    Arg! I tried accessing a jsf page and I got a
    "
    ". So I removed the exclusion on
    commons-codec and now I'm back to getting the "Caused by:
    java.io.FileNotFoundException: /files1142159423 (Permission denied)"
    which cause" and "2005-12-02 09:18:07,310 1332557 ERRR
    [http-8080-Processor25]
    (Compiler.java:407) - Error compiling file:
    /
    [javac] Compiling 1 source file"

    Any ideas why this is happening? What would cause tomcat to try and
    compile to /?

    Richard Wallace wrote:
    , I found the problem with compiling the JSPs. What I was trying to
    do was use the separate jars, like spring-hibernate, spring-dao, etc.
    But they aren't complete by any means. I switched to using the
    spring-1.2.6.jar the problem went away.

    I'm still not sure what to do about the dependency on both
    commons-collections-3.1 and commons-collections-2.1. Can I include
    them both in the dependencies to have them both included in my war or
    will only one ever be included?

    Thanks,
    Rich

    PS Sorry about the last message having a screwy time, I didn't have
    the clock type set on my machine for local and was dual-booting with
    Windows.

    Richard Wallace wrote:
    >other thing having to do with dependencies that I'm worried is an
    >issue is that I'm using struts and it and spring want
    >commons-collections-2.1 but one of my utilities needs
    >commons-collections-3.1 as does myfaces it looks like. What's the
    >best way to solve this conflict?
    >>

    >I did change it so that commons-collections-2.1 was used but now I
    >get a different error when trying to access a jsp for the first time:
    >>

    >Error creating temporary file
    >at
    >()
    >>

    >at
    >()
    >>

    >at
    >(Jikes.java:202)
    >at (Javac.java:942)
    >at (Javac.java:764)
    >at
    >(Compiler.java:382)
    >at (Compiler.java:472)
    >at (Compiler.java:451)
    >at (Compiler.java:439)
    >at
    >(JspCompilationContext.java:511)
    >>

    >at
    >(JspServletWrapper.java:295)
    >>

    >at
    >(JspServlet.java:292)
    >at
    >(JspServlet.java:236)
    >at (HttpServlet.java:802)
    >at
    >()
    >>
    >>

    >and
    >>

    >Caused by: java.io.FileNotFoundException: /files273067436 (Permission
    >denied)
    >at java.io.FStream.open(Native Method)
    >at java.io.FStream.<init>(FStream.java:179)
    >at java.io.FStream.<init>(FStream.java:131)
    >at java.io.FileWriter.<init>(FileWriter.java:73)
    >at
    >()
    >>

    >41 more
    >Nested Exception
    >java.io.FileNotFoundException: /files273067436 (Permission denied)
    >at java.io.FStream.open(Native Method)
    >at java.io.FStream.<init>(FStream.java:179)
    >at java.io.FStream.<init>(FStream.java:131)
    >at java.io.FileWriter.<init>(FileWriter.java:73)
    >at
    >()
    >>

    >at
    >()
    >>

    >at
    >(Jikes.java:202)
    >at (Javac.java:942)
    >at (Javac.java:764)
    >at
    >(Compiler.java:382)
    >at (Compiler.java:472)
    >at (Compiler.java:451)
    >at (Compiler.java:439)
    >at
    >(JspCompilationContext.java:511)
    >>

    >at
    >(JspServletWrapper.java:295)
    >>

    >at
    >(JspServlet.java:292)
    >at
    >(JspServlet.java:236)
    >at (HttpServlet.java:802)
    >at
    >()
    >>

    >at
    >()
    >>
    >>

    >Everything else on this tomcat server works great. I've deployed
    >other webapps successfully. I tried just a test webapp project that
    >includes Matts dependencies and that deployed and ran a test jsp just
    >fine. Why would tomcat be trying to compile jsps for this particular
    >webapp to the root directory?
    >>

    >Thanks,
    >Rich
    >>

    >Matt Raible wrote:

    Here's what I use for Equinox's MyFaces 1.1.1 + Spring 1.2.6 +
    Hibernate 3.0.5 combination:

    <dependencies>
    <dependency>
    <artifactId>cargo</artifactId>
    <groupId>cargo</groupId>
    <version>0.6</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>commons-lang</artifactId>
    <groupId>commons-lang</groupId>
    <version>2.0</version>
    </dependency>
    <dependency>
    <artifactId>commons-logging</artifactId>
    <groupId>commons-logging</groupId>
    <version>1.0.4</version>
    </dependency>
    <dependency>
    <artifactId>displaytag</artifactId>
    <groupId>displaytag</groupId>
    <version>1.0</version>
    <scope>runtime</scope>
    <exclusions>
    <exclusion>
    <artifactId>xalan</artifactId>
    <groupId>xalan</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>dwr</artifactId>
    <groupId>uk.ltd.getahead</groupId>
    <version>1.0</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>hibernate</artifactId>
    <groupId>org.hibernate</groupId>
    <version>3.0.5</version>
    <exclusions>
    <exclusion>
    <artifactId>jta</artifactId>
    <groupId>javax.transaction</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>geronimo-spec-jta</artifactId>
    <groupId>geronimo-spec</groupId>
    <version>1.0.1B-rc4</version>
    </dependency>
    <dependency>
    <artifactId>jmock</artifactId>
    <groupId>jmock</groupId>
    <version>1.0.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>junit</artifactId>
    <groupId>junit</groupId>
    <version>3.8.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>webtest</artifactId>
    <groupId>com.canoo</groupId>
    <version>586</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>log4j</artifactId>
    <groupId>log4j</groupId>
    <version>1.2.11</version>
    </dependency>
    <dependency>
    <artifactId>postgresql</artifactId>
    <groupId>postgresql</groupId>
    <version>8.0-312.jdbc3</version>
    </dependency>
    <dependency>
    <artifactId>servlet-api</artifactId>
    <groupId>javax.servlet</groupId>
    <version>2.4</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <artifactId>jstl</artifactId>
    <groupId>javax.servlet</groupId>
    <version>1.1.2</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>standard</artifactId>
    <groupId>taglibs</groupId>
    <version>1.1.2</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>sitemesh</artifactId>
    <groupId>opensymphony</groupId>
    <version>2.2.1</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>myfaces-all</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    <exclusions>
    <exclusion>
    <artifactId>xml-apis</artifactId>
    <groupId>xml-apis</groupId>
    </exclusion>
    <!-- (excluded
    for bad version #)
    <exclusion>
    <artifactId>commons-codec</artifactId>
    <groupId>commons-codec</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>tomahawk</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    </dependency>
    <dependency>
    <artifactId>jsp-api</artifactId>
    <groupId>javax.servlet</groupId>
    <version>2.0</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>spring</artifactId>
    <groupId>springframework</groupId>
    <version>1.2.6</version>
    </dependency>
    <dependency>
    <artifactId>spring-mock</artifactId>
    <groupId>springframework</groupId>
    <version>1.2.6</version>
    <scope>test</scope>
    <exclusions>
    <exclusion>
    <artifactId>spring-jdbc</artifactId>
    <groupId>springframework</groupId>
    </exclusion>
    <exclusion>
    <artifactId>spring-web</artifactId>
    <groupId>springframework</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    </dependencies>

    Matt
    http://equinox.dev.java.net

    11/30/05, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:

    Hey everybody,

    I've got an app that uses Hibernate 3.0.5, Spring 1.2.6 and Myfaces
    1.1.1. I'm having massive problems getting this thing to deploy
    with m2
    and I think it has to do with missing or conflicting
    dependencies. The
    error I'm getting now when I try and hit a JSP is:

    java.lang.NoClassDefFoundError
    (Category.java:372)
    org.apache.log4j.Category.log(Category.java:864)

    (Log4JLogger.java:193)

    (Compiler.java:387)
    (Compiler.java:472)
    (Compiler.java:451)
    (Compiler.java:439)

    (JspCompilationContext.java:511)

    (JspServletWrapper.java:295)

    (JspServlet.java:292)

    (JspServlet.java:236)
    (HttpServlet.java:802)

    I've tried piece-mealing the deps together and it seems to be the
    spring
    jars that are causing the problem. The really confusing thing is that
    in my testing I stripped down my web.xml to just the display-name and
    welcome-file-list elements, so nothing should even be trying to load
    spring. I'm guessing it's a static log field that is being created
    when
    the jars are first loaded. I've got it to the point where I can
    say for
    sure that a simple jsp with a simple web.xml works without the
    spring1.2.6.jar libs. But as soon as I try and add the spring-core
    jar I start getting that error above.

    Anybody know the right dependencies to include in my war pom since the
    spring poms are bare ATM?

    Thanks,
    Rich

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org


    >>
    >>

    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    >>

    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.5 | | 13653 bytes | |

    It looks like they've updated the PM. Formerly, I didn't have
    commons-codec and everything worked fine - but it's possible I'm not
    using advanced features in JSF. The NoClassDefFound usually happens
    when you have different versions of a library in your classpath.

    Since MEV-136 has been fixed (commons-codec version), I updated my
    pom.xml to be the following:

    <dependency>
    <artifactId>myfaces-all</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    <exclusions>
    <exclusion>
    <artifactId>xml-apis</artifactId>
    <groupId>xml-apis</groupId>
    </exclusion>
    </exclusions>
    </dependency>

    and all the other ones previously listed of course.

    Matt

    12/2/05, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:
    Arg! I tried accessing a jsf page and I got a
    "
    ". So I removed the exclusion on
    commons-codec and now I'm back to getting the "Caused by:
    java.io.FileNotFoundException: /files1142159423 (Permission denied)"
    which cause" and "2005-12-02 09:18:07,310 1332557 ERRR
    [http-8080-Processor25]
    (Compiler.java:407) - Error compiling file:
    /
    [javac] Compiling 1 source file"

    Any ideas why this is happening? What would cause tomcat to try and
    compile to /?

    Richard Wallace wrote:
    , I found the problem with compiling the JSPs. What I was trying to
    do was use the separate jars, like spring-hibernate, spring-dao, etc.
    But they aren't complete by any means. I switched to using the
    spring-1.2.6.jar the problem went away.

    I'm still not sure what to do about the dependency on both
    commons-collections-3.1 and commons-collections-2.1. Can I include
    them both in the dependencies to have them both included in my war or
    will only one ever be included?

    Thanks,
    Rich

    PS Sorry about the last message having a screwy time, I didn't have
    the clock type set on my machine for local and was dual-booting with
    Windows.

    Richard Wallace wrote:
    >other thing having to do with dependencies that I'm worried is an
    >issue is that I'm using struts and it and spring want
    >commons-collections-2.1 but one of my utilities needs
    >commons-collections-3.1 as does myfaces it looks like. What's the
    >best way to solve this conflict?
    >>

    >I did change it so that commons-collections-2.1 was used but now I
    >get a different error when trying to access a jsp for the first time:
    >>

    >Error creating temporary file
    >at
    >()
    >>

    >at
    >()
    >>

    >at
    >(Jikes.java:202)
    >at (Javac.java:942)
    >at (Javac.java:764)
    >at
    >(Compiler.java:382)
    >at (Compiler.java:472)
    >at (Compiler.java:451)
    >at (Compiler.java:439)
    >at
    >(JspCompilationContext.java:511)
    >>

    >at
    >(JspServletWrapper.java:295)
    >>

    >at
    >(JspServlet.java:292)
    >at
    >(JspServlet.java:236)
    >at (HttpServlet.java:802)
    >at
    >()
    >>
    >>

    >and
    >>

    >Caused by: java.io.FileNotFoundException: /files273067436 (Permission
    >denied)
    >at java.io.FStream.open(Native Method)
    >at java.io.FStream.<init>(FStream.java:179)
    >at java.io.FStream.<init>(FStream.java:131)
    >at java.io.FileWriter.<init>(FileWriter.java:73)
    >at
    >()
    >>

    >41 more
    >Nested Exception
    >java.io.FileNotFoundException: /files273067436 (Permission denied)
    >at java.io.FStream.open(Native Method)
    >at java.io.FStream.<init>(FStream.java:179)
    >at java.io.FStream.<init>(FStream.java:131)
    >at java.io.FileWriter.<init>(FileWriter.java:73)
    >at
    >()
    >>

    >at
    >()
    >>

    >at
    >(Jikes.java:202)
    >at (Javac.java:942)
    >at (Javac.java:764)
    >at
    >(Compiler.java:382)
    >at (Compiler.java:472)
    >at (Compiler.java:451)
    >at (Compiler.java:439)
    >at
    >(JspCompilationContext.java:511)
    >>

    >at
    >(JspServletWrapper.java:295)
    >>

    >at
    >(JspServlet.java:292)
    >at
    >(JspServlet.java:236)
    >at (HttpServlet.java:802)
    >at
    >()
    >>

    >at
    >()
    >>
    >>

    >Everything else on this tomcat server works great. I've deployed
    >other webapps successfully. I tried just a test webapp project that
    >includes Matts dependencies and that deployed and ran a test jsp just
    >fine. Why would tomcat be trying to compile jsps for this particular
    >webapp to the root directory?
    >>

    >Thanks,
    >Rich
    >>

    >Matt Raible wrote:

    Here's what I use for Equinox's MyFaces 1.1.1 + Spring 1.2.6 +
    Hibernate 3.0.5 combination:

    <dependencies>
    <dependency>
    <artifactId>cargo</artifactId>
    <groupId>cargo</groupId>
    <version>0.6</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>commons-lang</artifactId>
    <groupId>commons-lang</groupId>
    <version>2.0</version>
    </dependency>
    <dependency>
    <artifactId>commons-logging</artifactId>
    <groupId>commons-logging</groupId>
    <version>1.0.4</version>
    </dependency>
    <dependency>
    <artifactId>displaytag</artifactId>
    <groupId>displaytag</groupId>
    <version>1.0</version>
    <scope>runtime</scope>
    <exclusions>
    <exclusion>
    <artifactId>xalan</artifactId>
    <groupId>xalan</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>dwr</artifactId>
    <groupId>uk.ltd.getahead</groupId>
    <version>1.0</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>hibernate</artifactId>
    <groupId>org.hibernate</groupId>
    <version>3.0.5</version>
    <exclusions>
    <exclusion>
    <artifactId>jta</artifactId>
    <groupId>javax.transaction</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>geronimo-spec-jta</artifactId>
    <groupId>geronimo-spec</groupId>
    <version>1.0.1B-rc4</version>
    </dependency>
    <dependency>
    <artifactId>jmock</artifactId>
    <groupId>jmock</groupId>
    <version>1.0.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>junit</artifactId>
    <groupId>junit</groupId>
    <version>3.8.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>webtest</artifactId>
    <groupId>com.canoo</groupId>
    <version>586</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>log4j</artifactId>
    <groupId>log4j</groupId>
    <version>1.2.11</version>
    </dependency>
    <dependency>
    <artifactId>postgresql</artifactId>
    <groupId>postgresql</groupId>
    <version>8.0-312.jdbc3</version>
    </dependency>
    <dependency>
    <artifactId>servlet-api</artifactId>
    <groupId>javax.servlet</groupId>
    <version>2.4</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <artifactId>jstl</artifactId>
    <groupId>javax.servlet</groupId>
    <version>1.1.2</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>standard</artifactId>
    <groupId>taglibs</groupId>
    <version>1.1.2</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>sitemesh</artifactId>
    <groupId>opensymphony</groupId>
    <version>2.2.1</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>myfaces-all</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    <exclusions>
    <exclusion>
    <artifactId>xml-apis</artifactId>
    <groupId>xml-apis</groupId>
    </exclusion>
    <!-- (excluded
    for bad version #)
    <exclusion>
    <artifactId>commons-codec</artifactId>
    <groupId>commons-codec</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>tomahawk</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    </dependency>
    <dependency>
    <artifactId>jsp-api</artifactId>
    <groupId>javax.servlet</groupId>
    <version>2.0</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>spring</artifactId>
    <groupId>springframework</groupId>
    <version>1.2.6</version>
    </dependency>
    <dependency>
    <artifactId>spring-mock</artifactId>
    <groupId>springframework</groupId>
    <version>1.2.6</version>
    <scope>test</scope>
    <exclusions>
    <exclusion>
    <artifactId>spring-jdbc</artifactId>
    <groupId>springframework</groupId>
    </exclusion>
    <exclusion>
    <artifactId>spring-web</artifactId>
    <groupId>springframework</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    </dependencies>

    Matt
    http://equinox.dev.java.net

    11/30/05, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:

    Hey everybody,

    I've got an app that uses Hibernate 3.0.5, Spring 1.2.6 and Myfaces
    1.1.1. I'm having massive problems getting this thing to deploy
    with m2
    and I think it has to do with missing or conflicting
    dependencies. The
    error I'm getting now when I try and hit a JSP is:

    java.lang.NoClassDefFoundError
    (Category.java:372)
    org.apache.log4j.Category.log(Category.java:864)

    (Log4JLogger.java:193)

    (Compiler.java:387)
    (Compiler.java:472)
    (Compiler.java:451)
    (Compiler.java:439)

    (JspCompilationContext.java:511)

    (JspServletWrapper.java:295)

    (JspServlet.java:292)

    (JspServlet.java:236)
    (HttpServlet.java:802)

    I've tried piece-mealing the deps together and it seems to be the
    spring
    jars that are causing the problem. The really confusing thing is that
    in my testing I stripped down my web.xml to just the display-name and
    welcome-file-list elements, so nothing should even be trying to load
    spring. I'm guessing it's a static log field that is being created
    when
    the jars are first loaded. I've got it to the point where I can
    say for
    sure that a simple jsp with a simple web.xml works without the
    spring1.2.6.jar libs. But as soon as I try and add the spring-core
    jar I start getting that error above.

    Anybody know the right dependencies to include in my war pom since the
    spring poms are bare ATM?

    Thanks,
    Rich

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org


    >>
    >>

    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    >>

    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    >
    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    --

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
  • No.6 | | 13391 bytes | |

    Well, I'm not sure exactly what the problem was but I upgraded to tomcat
    5.5.12 and everything started working just fine.

    Thanks for all the help,
    Rich

    Matt Raible wrote:
    It looks like they've updated the PM. Formerly, I didn't have
    commons-codec and everything worked fine - but it's possible I'm not
    using advanced features in JSF. The NoClassDefFound usually happens
    when you have different versions of a library in your classpath.

    Since MEV-136 has been fixed (commons-codec version), I updated my
    pom.xml to be the following:

    <dependency>
    <artifactId>myfaces-all</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    <exclusions>
    <exclusion>
    <artifactId>xml-apis</artifactId>
    <groupId>xml-apis</groupId>
    </exclusion>
    </exclusions>
    </dependency>

    and all the other ones previously listed of course.

    Matt
    --
    12/2/05, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:

    >Arg! I tried accessing a jsf page and I got a
    >"
    >". So I removed the exclusion on
    >commons-codec and now I'm back to getting the "Caused by:
    >java.io.FileNotFoundException: /files1142159423 (Permission denied)"
    >which cause" and "2005-12-02 09:18:07,310 1332557 ERRR
    >[http-8080-Processor25]
    >(Compiler.java:407) - Error compiling file:
    >/
    >[javac] Compiling 1 source file"
    >>

    >Any ideas why this is happening? What would cause tomcat to try and
    >compile to /?
    >>

    >Richard Wallace wrote:
    >

    , I found the problem with compiling the JSPs. What I was trying to
    do was use the separate jars, like spring-hibernate, spring-dao, etc.
    But they aren't complete by any means. I switched to using the
    spring-1.2.6.jar the problem went away.

    I'm still not sure what to do about the dependency on both
    commons-collections-3.1 and commons-collections-2.1. Can I include
    them both in the dependencies to have them both included in my war or
    will only one ever be included?

    Thanks,
    Rich

    PS Sorry about the last message having a screwy time, I didn't have
    the clock type set on my machine for local and was dual-booting with
    Windows.

    Richard Wallace wrote:

    other thing having to do with dependencies that I'm worried is an
    issue is that I'm using struts and it and spring want
    commons-collections-2.1 but one of my utilities needs
    commons-collections-3.1 as does myfaces it looks like. What's the
    best way to solve this conflict?

    I did change it so that commons-collections-2.1 was used but now I
    get a different error when trying to access a jsp for the first time:

    Error creating temporary file
    at
    ()

    at
    ()

    at
    (Jikes.java:202)
    at (Javac.java:942)
    at (Javac.java:764)
    at
    (Compiler.java:382)
    at (Compiler.java:472)
    at (Compiler.java:451)
    at (Compiler.java:439)
    at
    (JspCompilationContext.java:511)

    at
    (JspServletWrapper.java:295)

    at
    (JspServlet.java:292)
    at
    (JspServlet.java:236)
    at (HttpServlet.java:802)
    at
    ()

    and

    Caused by: java.io.FileNotFoundException: /files273067436 (Permission
    denied)
    at java.io.FStream.open(Native Method)
    at java.io.FStream.<init>(FStream.java:179)
    at java.io.FStream.<init>(FStream.java:131)
    at java.io.FileWriter.<init>(FileWriter.java:73)
    at
    ()

    41 more
    Nested Exception
    java.io.FileNotFoundException: /files273067436 (Permission denied)
    at java.io.FStream.open(Native Method)
    at java.io.FStream.<init>(FStream.java:179)
    at java.io.FStream.<init>(FStream.java:131)
    at java.io.FileWriter.<init>(FileWriter.java:73)
    at
    ()

    at
    ()

    at
    (Jikes.java:202)
    at (Javac.java:942)
    at (Javac.java:764)
    at
    (Compiler.java:382)
    at (Compiler.java:472)
    at (Compiler.java:451)
    at (Compiler.java:439)
    at
    (JspCompilationContext.java:511)

    at
    (JspServletWrapper.java:295)

    at
    (JspServlet.java:292)
    at
    (JspServlet.java:236)
    at (HttpServlet.java:802)
    at
    ()

    at
    ()

    Everything else on this tomcat server works great. I've deployed
    other webapps successfully. I tried just a test webapp project that
    includes Matts dependencies and that deployed and ran a test jsp just
    fine. Why would tomcat be trying to compile jsps for this particular
    webapp to the root directory?

    Thanks,
    Rich

    Matt Raible wrote:

    Here's what I use for Equinox's MyFaces 1.1.1 + Spring 1.2.6 +
    Hibernate 3.0.5 combination:

    <dependencies>
    <dependency>
    <artifactId>cargo</artifactId>
    <groupId>cargo</groupId>
    <version>0.6</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>commons-lang</artifactId>
    <groupId>commons-lang</groupId>
    <version>2.0</version>
    </dependency>
    <dependency>
    <artifactId>commons-logging</artifactId>
    <groupId>commons-logging</groupId>
    <version>1.0.4</version>
    </dependency>
    <dependency>
    <artifactId>displaytag</artifactId>
    <groupId>displaytag</groupId>
    <version>1.0</version>
    <scope>runtime</scope>
    <exclusions>
    <exclusion>
    <artifactId>xalan</artifactId>
    <groupId>xalan</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>dwr</artifactId>
    <groupId>uk.ltd.getahead</groupId>
    <version>1.0</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>hibernate</artifactId>
    <groupId>org.hibernate</groupId>
    <version>3.0.5</version>
    <exclusions>
    <exclusion>
    <artifactId>jta</artifactId>
    <groupId>javax.transaction</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>geronimo-spec-jta</artifactId>
    <groupId>geronimo-spec</groupId>
    <version>1.0.1B-rc4</version>
    </dependency>
    <dependency>
    <artifactId>jmock</artifactId>
    <groupId>jmock</groupId>
    <version>1.0.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>junit</artifactId>
    <groupId>junit</groupId>
    <version>3.8.1</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>webtest</artifactId>
    <groupId>com.canoo</groupId>
    <version>586</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>log4j</artifactId>
    <groupId>log4j</groupId>
    <version>1.2.11</version>
    </dependency>
    <dependency>
    <artifactId>postgresql</artifactId>
    <groupId>postgresql</groupId>
    <version>8.0-312.jdbc3</version>
    </dependency>
    <dependency>
    <artifactId>servlet-api</artifactId>
    <groupId>javax.servlet</groupId>
    <version>2.4</version>
    <scope>provided</scope>
    </dependency>
    <dependency>
    <artifactId>jstl</artifactId>
    <groupId>javax.servlet</groupId>
    <version>1.1.2</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>standard</artifactId>
    <groupId>taglibs</groupId>
    <version>1.1.2</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>sitemesh</artifactId>
    <groupId>opensymphony</groupId>
    <version>2.2.1</version>
    <scope>runtime</scope>
    </dependency>
    <dependency>
    <artifactId>myfaces-all</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    <exclusions>
    <exclusion>
    <artifactId>xml-apis</artifactId>
    <groupId>xml-apis</groupId>
    </exclusion>
    <!-- (excluded
    for bad version #)
    <exclusion>
    <artifactId>commons-codec</artifactId>
    <groupId>commons-codec</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <artifactId>tomahawk</artifactId>
    <groupId>myfaces</groupId>
    <version>1.1.1</version>
    </dependency>
    <dependency>
    <artifactId>jsp-api</artifactId>
    <groupId>javax.servlet</groupId>
    <version>2.0</version>
    <scope>test</scope>
    </dependency>
    <dependency>
    <artifactId>spring</artifactId>
    <groupId>springframework</groupId>
    <version>1.2.6</version>
    </dependency>
    <dependency>
    <artifactId>spring-mock</artifactId>
    <groupId>springframework</groupId>
    <version>1.2.6</version>
    <scope>test</scope>
    <exclusions>
    <exclusion>
    <artifactId>spring-jdbc</artifactId>
    <groupId>springframework</groupId>
    </exclusion>
    <exclusion>
    <artifactId>spring-web</artifactId>
    <groupId>springframework</groupId>
    </exclusion>
    </exclusions>
    </dependency>
    </dependencies>

    Matt
    http://equinox.dev.java.net

    11/30/05, Richard Wallace <rwallace (AT) thewallacepack (DOT) netwrote:

    Hey everybody,

    I've got an app that uses Hibernate 3.0.5, Spring 1.2.6 and Myfaces
    1.1.1. I'm having massive problems getting this thing to deploy
    with m2
    and I think it has to do with missing or conflicting
    dependencies. The
    error I'm getting now when I try and hit a JSP is:

    java.lang.NoClassDefFoundError
    (Category.java:372)
    org.apache.log4j.Category.log(Category.java:864)

    (Log4JLogger.java:193)

    (Compiler.java:387)
    (Compiler.java:472)
    (Compiler.java:451)
    (Compiler.java:439)

    (JspCompilationContext.java:511)

    (JspServletWrapper.java:295)

    (JspServlet.java:292)

    (JspServlet.java:236)
    (HttpServlet.java:802)

    I've tried piece-mealing the deps together and it seems to be the
    spring
    jars that are causing the problem. The really confusing thing is that
    in my testing I stripped down my web.xml to just the display-name and
    welcome-file-list elements, so nothing should even be trying to load
    spring. I'm guessing it's a static log field that is being created
    when
    the jars are first loaded. I've got it to the point where I can
    say for
    sure that a simple jsp with a simple web.xml works without the
    spring1.2.6.jar libs. But as soon as I try and add the spring-core
    jar I start getting that error above.

    Anybody know the right dependencies to include in my war pom since the
    spring poms are bare ATM?

    Thanks,
    Rich

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org


    >
    >To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    >For additional commands, e-mail: users-help (AT) maven (DOT) apache.org
    >>
    >>

    >
    >


    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

Re: HIbernate/Spring/Myfaces dependency hell


max 4000 letters.
Your nickname that display:
In order to stop the spam: 7 + 6 =
QUESTION ON "Java"

EMSDN.COM