我自己排查原因是我在POM中引入了cxf-rt-frontend-jaxws,不引入正常启动,引入就报下面的异常。不知道这个问题怎么解决,日志报的是和druid有关,但是cxf-rt-frontend-jaxws引入拿掉又可以。请帮忙看是啥原因。
引入的jar包
org.apache.cxf
cxf-rt-frontend-jaxws
3.2.4
日志异常
11:35:59.556 [localhost-startStop-1] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} inited
22-Jun-2018 11:36:03.608 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file
22-Jun-2018 11:36:03.608 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [/MySSH] startup failed due to previous errors
11:36:03.628 [localhost-startStop-1] INFO com.alibaba.druid.pool.DruidDataSource - {dataSource-1} closed
你是如何打包部署到linux?以前我出现这种问题,最后发现是因为maven打包的问题,你可以从打包后的war查看
//接口
public interface UserService {
public void login(User user)throws PipiException;
}
//实现接口
public class UserServiceImpl implements UserService {
@Override
public void login(User user) throws PipiException {
// TODO Auto-generated method stub
UserDao dao = new UserDaoImpl();//导入Dao层包
String username = user.getName();
User loginUser = new User();
loginUser = dao.findByName(username);//将Dao层返回的对象存入loginUser
if(loginUser.getName()==null) {
throw new PipiException("账户名不存在!"); //数据库返回的信息为空,说明用户名不存在
}
if(!user.getPassword().equals(loginUser.getPassword())) {
throw new PipiException("密码错误!"); //用户输入的密码和查询出的用户密码不一致,抛出密码错误异常
}
}
}
One or more Filters failed to start. Full details will be found in the appropriate container log file
一个或多个过滤器未能启动。详细信息将在适当的容器日志文件中找到
异常提示不明显