| 网站首页 | 业界新闻 | 群组 | 人才 | 下载频道 | 博客 | 代码贴 | 编程论坛
雷速体育发帖软件开发QQ118000023C语言培训|一对一辅导|零基础学编程LightningChart 快速先进的.Net图表控件
共有 770 人关注过本帖
标题:求助java.lang.NoClassDefFoundError怎么解决,报错信息如下
只看楼主 收藏
tianchengtop
Rank: 2
等 级:论坛游民
帖 子:37
专家分:10
注 册:2017-9-22
  得分:0 
回复 18楼 疯狂的小a
昨天发给我的源码包,让我部署运行环境,我装了eclipse,maven,tomcat,mysql,操作系统是macos,请问会不会是我的配置有问题呢?tomcat本地可以访问,maven安装后也显示成功,mysql安装了可以连接,但是我不清楚哪里出问题了

有梦想,我还有梦想,要提醒自己还有梦(ˇˍˇ) 想~
2018-04-14 11:54
tianchengtop
Rank: 2
等 级:论坛游民
帖 子:37
专家分:10
注 册:2017-9-22
  得分:0 
回复 20楼 疯狂的小a
程序代码:
<?xml version="1.0"?>
<project
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
        xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.enation.app.javashop</groupId>
        <artifactId>javashop</artifactId>
        <version>6.3.1</version>
        <relativePath>../</relativePath>
    </parent>
    <artifactId>b2c</artifactId>
    <packaging>war</packaging>
    <name>b2c Maven Webapp</name>
    <url>http://maven.apache.org</url>

    <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.xml</include>
                    <include>*
*/*.html</include>
                    <include>**/*.css</include>
                </includes>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
            </plugin>

        </plugins>
        <testResources>
            <testResource>
                <directory>src/test/java</directory>
                <includes>
                    <include>*
*/*.xml</include>
                    <include>**/*.css</include>
                    <include>*
*/*.html</include>
                </includes>
            </testResource>
        </testResources>
        <defaultGoal>compile</defaultGoal>
        <finalName>b2c</finalName>
    </build>

    <dependencies>

        <!-- 测试框架依赖 -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-test</artifactId>
        </dependency>

        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
        </dependency>

        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-core</artifactId>
        </dependency>


        <dependency>
            <groupId>com.jayway.jsonpath</groupId>
            <artifactId>json-path</artifactId>
        </dependency>

        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
        </dependency>

        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4</artifactId>
        </dependency>

        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-api-mockito</artifactId>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-module-junit4-rule-agent</artifactId>
        </dependency>
        <dependency>
            <groupId>org.powermock</groupId>
            <artifactId>powermock-classloading-objenesis</artifactId>
        </dependency>

        <dependency>
            <groupId>org.jmock</groupId>
            <artifactId>jmock-junit4</artifactId>
        </dependency>

        <dependency>
            <groupId>org.jmockit</groupId>
            <artifactId>jmockit</artifactId>
        </dependency>

        <dependency>
            <groupId>org.skyscreamer</groupId>
            <artifactId>jsonassert</artifactId>
        </dependency>

        <!-- Javashop 工程依赖 -->
        <dependency>
            <groupId>com.enation.app.javashop</groupId>
            <artifactId>core</artifactId>
            <version>6.3.1</version>
        </dependency>
        <dependency>
            <groupId>com.enation.app.javashop</groupId>
            <artifactId>shop-core</artifactId>
            <version>6.3.1</version>
        </dependency>
        <dependency>
            <groupId>com.enation.app.javashop</groupId>
            <artifactId>cms-core</artifactId>
            <version>6.3.1</version>
        </dependency>

        <!-- 短信网关 -->
        <dependency>
            <groupId>com.enation.app.javashop</groupId>
            <artifactId>zt-sms</artifactId>
            <version>6.3.1</version>
        </dependency>
        <!-- 微信组件 -->
        <dependency>
            <groupId>com.enation.app.javashop</groupId>
            <artifactId>weixin</artifactId>
            <version>6.3.1</version>
        </dependency>

        <!-- servlet -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>


    </dependencies>
</project>

有梦想,我还有梦想,要提醒自己还有梦(ˇˍˇ) 想~
2018-04-14 11:55
tianchengtop
Rank: 2
等 级:论坛游民
帖 子:37
专家分:10
注 册:2017-9-22
  得分:0 
helphelp
help me

有梦想,我还有梦想,要提醒自己还有梦(ˇˍˇ) 想~
2018-04-14 12:51
疯狂的小a
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:15
帖 子:363
专家分:1568
注 册:2018-2-6
  得分:0 
你找找pom工程的pom.xml中的jar包,有没有依赖日志包的,然后和log4j冲突的

假如人生没有梦想,和咸鱼有什么区别!
2018-04-14 13:56
tianchengtop
Rank: 2
等 级:论坛游民
帖 子:37
专家分:10
注 册:2017-9-22
  得分:0 
回复 24楼 疯狂的小a
没看见有日志的包,不明白什么是冲突,问别人说少log4j的包,可是lib文件夹下有呀,现在一头雾水的,唉,第一次搭建运行环境都出问题,

有梦想,我还有梦想,要提醒自己还有梦(ˇˍˇ) 想~
2018-04-14 14:29
tianchengtop
Rank: 2
等 级:论坛游民
帖 子:37
专家分:10
注 册:2017-9-22
  得分:0 
这真是第一次接触让我工作,第一天前两个小时发蒙,完全不知道做什么,然后下载软件,安装又出问题,到晚上才算完成,这是第二天,还没有运行完成,我真怀疑我是不是不适合做这个呀

有梦想,我还有梦想,要提醒自己还有梦(ˇˍˇ) 想~
2018-04-14 14:34
tianchengtop
Rank: 2
等 级:论坛游民
帖 子:37
专家分:10
注 册:2017-9-22
  得分:0 
回复 24楼 疯狂的小a
请问一下maven项目运行是不是现在maven中pom.xml :maven install,然后在web那个模块pom.xml那里maven build,我这个顺序对吧

有梦想,我还有梦想,要提醒自己还有梦(ˇˍˇ) 想~
2018-04-14 14:41
tianchengtop
Rank: 2
等 级:论坛游民
帖 子:37
专家分:10
注 册:2017-9-22
  得分:0 
有没人遇到过这个问题,新手求教

有梦想,我还有梦想,要提醒自己还有梦(ˇˍˇ) 想~
2018-04-14 18:14
tianchengtop
Rank: 2
等 级:论坛游民
帖 子:37
专家分:10
注 册:2017-9-22
  得分:0 

有梦想,我还有梦想,要提醒自己还有梦(ˇˍˇ) 想~
2018-04-15 13:02
疯狂的小a
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
等 级:版主
威 望:15
帖 子:363
专家分:1568
注 册:2018-2-6
  得分:15 
解决了吗?

假如人生没有梦想,和咸鱼有什么区别!
2018-04-16 21:19







关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.039927 second(s), 8 queries.
Copyright©2004-2018, BCCN.NET, All Rights Reserved