springboot配置了server.contextPath=/sasa启动就报错!求大神解答

pom文件配置这个,不知道是不是这个的问题


org.springframework.boot
spring-boot-starter-tomcat
provided


org.apache.tomcat.embed
tomcat-embed-jasper
provided


Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
4571 [main] ERROR org.springframework.boot.SpringApplication - Application startup failed
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
at com.zeunpro.robot.Application.main(Application.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:527)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:123)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.(TomcatEmbeddedServletContainer.java:84)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:554)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:179)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)
... 14 common frames omitted
Caused by: java.lang.IllegalStateException: Failed to add listener 'null' to servlet context
at org.springframework.boot.web.servlet.ServletListenerRegistrationBean.onStartup(ServletListenerRegistrationBean.java:117)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplicationContext.java:229)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access$000(EmbeddedWebApplicationContext.java:89)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:213)
at org.springframework.boot.context.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:55)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
... 1 common frames omitted
Caused by: java.lang.NullPointerException: null
at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1151)
at org.apache.catalina.core.ApplicationContextFacade.addListener(ApplicationContextFacade.java:671)
at org.springframework.boot.web.servlet.ServletListenerRegistrationBean.onStartup(ServletListenerRegistrationBean.java:114)
... 12 common frames omitted
[WARNING]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:527)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:137)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
at com.zeunpro.robot.Application.main(Application.java:18)
... 6 more
Caused by: org.springframework.boot.context.embedded.EmbeddedServletContainerException: Unable to start embedded Tomcat
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.initialize(TomcatEmbeddedServletContainer.java:123)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.(TomcatEmbeddedServletContainer.java:84)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getTomcatEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:554)
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.getEmbeddedServletContainer(TomcatEmbeddedServletContainerFactory.java:179)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:164)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)
... 14 more
Caused by: java.lang.IllegalStateException: Failed to add listener 'null' to servlet context
at org.springframework.boot.web.servlet.ServletListenerRegistrationBean.onStartup(ServletListenerRegistrationBean.java:117)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.selfInitialize(EmbeddedWebApplicationContext.java:229)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.access$000(EmbeddedWebApplicationContext.java:89)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext$1.onStartup(EmbeddedWebApplicationContext.java:213)
at org.springframework.boot.context.embedded.tomcat.TomcatStarter.onStartup(TomcatStarter.java:55)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5196)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
... 1 more
Caused by: java.lang.NullPointerException
at org.apache.catalina.core.ApplicationContext.addListener(ApplicationContext.java:1151)
at org.apache.catalina.core.ApplicationContextFacade.addListener(ApplicationContextFacade.java:671)
at org.springframework.boot.web.servlet.ServletListenerRegistrationBean.onStartup(ServletListenerRegistrationBean.java:114)
... 12 more


Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
springmvc+mybatis3.3报错,求大神解答
[DEBUG]2015-08-11 22:34:39,338 org.springframework.web.servlet.DispatcherServlet Could not complete requestrnorg.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.ExceptionInInitializerErrorrn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:972)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ExceptionInInitializerErrorrn at cn.sg.dao.impl.ProductDaoImpl.qryProductByPage(ProductDaoImpl.java:66)rn at cn.sg.service.CupboardService.qryProductByPage(CupboardService.java:23)rn at cn.sg.controller.BackStageController.QueStoreList(BackStageController.java:46)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)rn ... 24 morernCaused by: org.apache.ibatis.exceptions.PersistenceException: rn### Error building SqlSession.rn### The error may exist in cn/sg/model/Product1.xmlrn### The error occurred while processing mapper_resultMap[tab_product]rn### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:79)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:71)rn at cn.sg.util.MyBatisUtilNew.(MyBatisUtilNew.java:29)rn ... 38 morernCaused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:106)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:89)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:77)rn ... 40 morernCaused by: java.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:108)rn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:95)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:317)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:104)rn ... 42 morern八月 11, 2015 10:34:39 下午 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [sasmvc] in context with path [/CUPBOARD] threw exception [Handler processing failed; nested exception is java.lang.ExceptionInInitializerError] with root causernjava.io.IOException: Could not find resource cn/sg/model/Product1.xmlrn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:108)rn at org.apache.ibatis.io.Resources.getResourceAsStream(Resources.java:95)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:317)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:104)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:89)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:77)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:71)rn at cn.sg.util.MyBatisUtilNew.(MyBatisUtilNew.java:29)rn at cn.sg.dao.impl.ProductDaoImpl.qryProductByPage(ProductDaoImpl.java:66)rn at cn.sg.service.CupboardService.qryProductByPage(CupboardService.java:23)rn at cn.sg.controller.BackStageController.QueStoreList(BackStageController.java:46)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:219)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:100)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:604)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:565)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)
springboot学习笔记--启动springboot报错
小编在学习springboot的过程中遇到了启动报错的问题,具体错误如下: Error starting ApplicationContext. To display the auto-configuration report re-run your application with ‘debug’ enabled. 2018-11-11 12:39:15.923 ERROR 18872 — [ ...
spring整合Hibernate tomocat启动就报错,求大神指点
[img=https://img-bbs.csdn.net/upload/201609/01/1472699656_724165.png][/img][img=https://img-bbs.csdn.net/upload/201609/01/1472699671_151612.png][/img]
奇怪的报错 C# (新手求大神解答)
大神们,求帮忙看看为什么会报这个错?rnSystem.NullReferenceException: Object reference not set to an instance of an object.rn at ShootSearch.ShootSeg.Segment.SegmentText(String strText) in d:\Tools\ShootSearch_Segment_1_0_bate 070312\ShootSearch_Segment_1_0_bate 070312\ShootSeg\Segment.cs:line 482rn at ShootSearch.ShootSeg.Segment.SegmentText(String strText, Boolean Enter) in d:\Tools\ShootSearch_Segment_1_0_bate 070312\ShootSearch_Segment_1_0_bate 070312\ShootSeg\Segment.cs:line 888rn at SegTest.Form1.Main() in d:\Tools\ShootSearch_Segment_1_0_bate 070312\ShootSearch_Segment_1_0_bate 070312\SegTest\Form1.cs:line 129rnrn报这个错的原因是我在main函数里加了这几句话(红色的):rn [color=#FF0000]Segment seg = new Segment();[/color] rn string str="日前,奇虎董事长周鸿祎新推出了一款反流氓软件“360安全卫士”,并将雅虎中国3721网络实名定义为流氓软件。此举引起了雅虎员工的强烈不满,甚至有就职于雅虎的原3721员工声称将起诉周鸿祎。围绕着3721这个产品,引发了一场雅虎中国与奇虎之间的战争。";rn [color=#FF0000]seg.Separator = "/";[/color]rn Console.WriteLine(seg.SegmentText(str,true));rn报错对应的行:rnline 482: if(h.ContainsKey(strChar1))rnline 888: reText += SegmentText(strArr[i]) + "\r\n";rnline 129: Console.WriteLine(seg.SegmentText(str,true));rn
shiro 登录报错,求大神解答!!!!
public String login(String username,String password,HttpServletRequest request,HttpServletResponse response) throws NoSuchAlgorithmException, UnsupportedEncodingExceptionrn rn //User user=userServiceImpl.selectByUsername(username);rn Subject subject = SecurityUtils.getSubject(); rn UsernamePasswordToken token=new UsernamePasswordToken(username,password);rn token.setRememberMe(true);rn subject.login(token);rn token.clear();rn rn //request.setAttribute("user", user);rn rn return "main";rn rn rnrnrealms.javarnprotected AuthenticationInfo doGetAuthenticationInfo(rn AuthenticationToken authcToken) throws AuthenticationException rn // TODO Auto-generated method stubrn UsernamePasswordToken token = (UsernamePasswordToken) authcToken;rn User user = userService.selectByUsername(token.getUsername());rn if (user != null) rn String pass=new String((char[])token.getCredentials());rn try rn if(MD5Kit.authenticatePassword(MD5Kit.mixed(user.getSalt(),pass), user.getPassword()))rn SimpleAuthenticationInfo account= new SimpleAuthenticationInfo(user.getUsername(), userrn .getPassword(), getName());rn ByteSource salt = ByteSource.Util.bytes(user.getSalt());rn account.setCredentialsSalt(salt);rn return account;rn elsern return null;rn rn catch (Exception e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn return null;rn rn else rn return null;rn rn rn报错:rn八月 27, 2015 9:31:57 上午 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet [springMvc] in context with path [/sktask] threw exception [Request processing failed; nested exception is org.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=true] did not match the expected credentials.] with root causernorg.apache.shiro.authc.IncorrectCredentialsException: Submitted credentials for token [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=true] did not match the expected credentials.rn at org.apache.shiro.realm.AuthenticatingRealm.assertCredentialsMatch(AuthenticatingRealm.java:600)rn at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:578)rn at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)rn at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)rn at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)rn at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)rn at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)rn at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)rn at com.sk.main.controller.LoginController.login(LoginController.java:36)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)rn at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:777)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:706)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:943)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:877)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)rn at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)rn at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)rn at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)rn at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)rn at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)rn at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)rn at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)rn at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)rn at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)rn at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)rn at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)rn at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)rn at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Thread.java:745)rnrn
启动时报错DependencyResolutionException 求大神解答
[ERROR] Failed to execute goal on project hellomaven: Could not resolve dependencies for project com.rr:hellomaven:war:0.0.1-SNAPSHOT: Could not find artifact com.oracle:ojdbc6:jar:11.2.0 in central (https://repo.maven.apache.org/maven2) -> [Help 1]rn[ERROR] rn[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.rn[ERROR] Re-run Maven using the -X switch to enable full debug logging.rn[ERROR] rn[ERROR] For more information about the errors and possible solutions, please read the following articles:rn[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
springMVC报错,在线等,求大神解答
在使用spring框架的时候出现找不到类的异常,我自己下载包到导入了,还是这样。这个javax/portlet/PortletException到底是什么???求大神解答rn十二月 23, 2015 11:57:05 上午 org.apache.catalina.core.ApplicationContext logrn严重: StandardWrapper.Throwablernjava.lang.NoClassDefFoundError: javax/portlet/PortletExceptionrn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:800)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3114)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1342)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1823)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)rn at java.lang.Class.getDeclaredMethods(Class.java:1868)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:507)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1069)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:667)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:633)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:681)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:552)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:493)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5253)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5543)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.ClassNotFoundException: javax.portlet.PortletExceptionrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn ... 48 morern十二月 23, 2015 11:57:05 上午 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet [SpringMVC05] in web application [/SpringMVC04] threw load() exceptionrnjava.lang.ClassNotFoundException: javax.portlet.PortletExceptionrn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:800)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:3114)rn at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:1342)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1823)rn at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)rn at java.lang.Class.getDeclaredMethods0(Native Method)rn at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)rn at java.lang.Class.getDeclaredMethods(Class.java:1868)rn at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:609)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:521)rn at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:507)rn at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:241)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1069)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1042)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:667)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:633)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:681)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:552)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:493)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5253)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5543)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1263)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1978)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rn
求大神解答fragment 切换过快报错
Fragment 里面有listView 是从网络上获取数据显示,网络上获取数据有延迟可能要1秒左右才能显示 ,当数据还没有显示出来时,切换到其他的 fragment 就会报错如下:rnrnFATAL EXCEPTION: mainrnjava.lang.NullPointerExceptionrnat android.view.LayoutInflater.from(LayoutInflater.java:210)rnat com.xdj.alat.adapter.NeedSupplyAdapter.(NeedSupplyAdapter.java:23)rnat com.xdj.alat.fragment.ServiceFragment$1.handleMessage(ServiceFragment.java:75)rnrnrn我用的handler传的数据:rn Handler handler = new Handler() rn public void handleMessage(Message msg) rn String data = (String) msg.obj;rn list_need = new ArrayList();rn if (adapter == null) rn adapter = new NeedSupplyAdapter(getActivity(), list_need);rn needlist.setAdapter(adapter);rn rn ServiceNeedJson.serviceneedjson(data, list_need);rn rn ;rn求大神解答下这种要怎么处理下。还有个问题时,当我访问服务器 ,服务器却没有打开,当开了时这边只要访问过也会报错。
导入项目后R.id.lv 报错!求大神解答
[size=24px]不知道怎么了 我截了图 但是 图片无法上传,我导入了项目后 R文件中有lv1这个变量 可是 在引用的时候却报错[/size]rnpackage com.example.listadapter;rnrnimport java.util.ArrayList;rnimport java.util.List;rnrnimport android.R;rnimport android.os.Bundle;rnimport android.app.Activity;rnimport android.view.Menu;rnimport android.widget.ArrayAdapter;rnimport android.widget.ListView;rnrnpublic class MainActivity extends Activity rnrn @Overridern protected void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.activity_list_item);rn //返回listView实例rn ListView lv1=(ListView) findViewById(R.id.lv1);[color=#FF0000]!!!!!!!!!!这个位置lv1下报错 lv1 cant be resolved or it is not a field[/color]rn List items=new ArrayList();rn //向集合中添加数据rn for (int i = 0; i < 10; i++) rn items.add("数据"+(i+1));rn rn /**rn * 第一种适配器rn * ArrayAdapter(Context,textViewResourceId 就是listview中每一行的布局,数据集合)rn */ rn ArrayAdapter adapter=new ArrayAdapter(this,android.R.layout.simple_expandable_list_item_1,items);rn //设置适配器rn lv1.setAdapter(adapter);rn rnrn @Overridern public boolean onCreateOptionsMenu(Menu menu) rn // Inflate the menu; this adds items to the action bar if it is present.rn getMenuInflater().inflate(R.menu.main, menu);rn return true;rn rnrnrn
关于phpExcel导入数据库的报错,求大神解答
用phpexcel导入数据库,提示如下报错:rn[img=https://img-bbs.csdn.net/upload/201803/12/1520860779_575907.png][/img]rnrnrn我的关键代码如下:rn[img=https://img-bbs.csdn.net/upload/201803/12/1520860801_741611.png][/img]rnrnrn从语法角度 没发现什么问题。报错提示中给出了K重庆市永川区……。但是我的通讯地址列应该是J,而不是K。rnrn我直接在数据库中导入表是没有问题的,但是通过phpexcel程序导入就出现了这个报错。求大神解答!
jboss后台报错,求大神解答
ERROR [URLDeploymentScanner] Incomplete Deployment listing:rnrn--- Incompletely deployed packages ---rnorg.jboss.deployment.DeploymentInfo@86bb2322 url=file:/D:/baserver/jboss/servernr/default/deploy/batj-ds.xml rn deployer: org.jboss.deployment.XSLSubDeployer@82294brn status: nullrn state: FAILEDrn watch: file:/D:/baserver/jboss/server/default/deploy/batj-ds.xmlrn altDD: nullrn lastDeployed: 1519264708717rn lastModified: 1519264708710rn mbeans:rnrn--- MBeans waiting for other MBeans ---rnObjectName: persistence.units:jar=batj_server.jar,unitName=batjPUrn State: NOTYETINSTALLEDrn I Depend On:rn jboss.jca:name=jdbc/batjDS,service=DataSourceBindingrn Depends On Me:rn jboss.j2ee:jar=batj_server.jar,name=ejb/BaseSet,service=EJB3rn jboss.j2ee:jar=batj_server.jar,name=ejb/Setting,service=EJB3rnrnObjectName: jboss.j2ee:jar=batj_server.jar,name=ejb/BaseSet,service=EJB3rn State: NOTYETINSTALLEDrn I Depend On:rn persistence.units:jar=batj_server.jar,unitName=batjPUrnrnObjectName: jboss.j2ee:jar=batj_server.jar,name=ejb/Setting,service=EJB3rn State: NOTYETINSTALLEDrn I Depend On:rn persistence.units:jar=batj_server.jar,unitName=batjPrn怎么办?
启动springboot报错
Field pontusJobDao in cn.tongdun.datacompute.biz.pontus.service.Pontus2JobService required a bean of type 'cn.tongdun.datacompute.biz.pontus.dao.PontusJobDao' that could not be found. Action:
启动tomcat时报错了,求大神解答
Could not publish server configuration for Tomcat v6.0 Server at localhost.rnMultiple Contexts have a path of "/saasweb56".
空指针异常报错,就解答!!
package SwingTest;rnrnimport java.awt.Color;rnimport java.awt.event.ActionEvent;rnimport java.awt.event.ActionListener;rnimport java.util.logging.Handler;rnrnimport javax.swing.ButtonGroup;rnimport javax.swing.JFrame;rnimport javax.swing.JMenu;rnimport javax.swing.JMenuBar;rnimport javax.swing.JRadioButtonMenuItem;rnimport javax.swing.JTextField;rnrnpublic class Mymenu extends JFrame rn JTextField jt;rn ButtonGroup colorgroup;rn JRadioButtonMenuItem[] coloritem;rn Color[] colorvalues = Color.GREEN, Color.YELLOW, Color.BLACK, Color.RED ;rnrn public Mymenu() rn JMenu colormenu = new JMenu("COLOR(C)");rn colormenu.setMnemonic('C');rn String[] colornames = "GREEN", "YELLOW", "BLACK", "RED" ;rn colorgroup = new ButtonGroup();rn for (int i = 0; i < colornames.length; i++) rnrn coloritem = new JRadioButtonMenuItem[colornames.length];rn colorgroup.add(coloritem[i]);rn colormenu.add(coloritem[i]);rn coloritem[i].addActionListener(new Handler());rnrn rn add(jt);rn JMenuBar bar = new JMenuBar();rn setJMenuBar(bar);rn bar.add(colormenu);rn setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn setBounds(500, 350, 600, 400);rn setVisible(true);rn setResizable(false);rnrn rnrn class Handler implements ActionListener rn public void actionPerformed(ActionEvent e) rn for (int i = 0; i < coloritem.length; i++) rn if (coloritem[i].isSelected())rn jt.setForeground(colorvalues[i]);rn break;rn rn rn rnrn public static void main(String[] args) rn Mymenu jf = new Mymenu();rn jf.setTitle("Test Window");rn rnrnrnrnrnrnrnrnrnException in thread "main" java.lang.NullPointerExceptionrn at java.awt.Container.addImpl(Container.java:1090)rn at java.awt.Container.add(Container.java:410)rn at javax.swing.JPopupMenu.add(JPopupMenu.java:290)rn at javax.swing.JMenu.add(JMenu.java:579)rn at SwingTest.Mymenu.(Mymenu.java:30)rn at SwingTest.Mymenu.main(Mymenu.java:56)rnrn
求大神帮忙 启动服务器报错。
[img=https://img-bbs.csdn.net/upload/201602/24/1456276899_359947.png][/img]rn[img=https://img-bbs.csdn.net/upload/201602/24/1456276911_56966.png][/img]rnrnrnrn严重: Context initialization failedrnorg.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\projectNEW\code\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\Demo\WEB-INF\classes\com\cn\controller\UserController.class]; nested exception is java.lang.IllegalArgumentException
在线等,求大神指教啊!myeclipse启动tomcat不报错,直接启动tomcat就报错
2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\webarnpps\tatajie\WEB-INF\classes\com\tatajie\dao\AuctionDao.class]rn2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\webarnpps\tatajie\WEB-INF\classes\com\tatajie\dao\ClassifyDao.class]rn2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\webarnpps\tatajie\WEB-INF\classes\com\tatajie\dao\CommodDao.class]rn2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\webarnpps\tatajie\WEB-INF\classes\com\tatajie\dao\GgListDao.class]rn2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\webarnpps\tatajie\WEB-INF\classes\com\tatajie\dao\JurisdictionDao.class]rn2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Ignored because not a concrete top-level class: file [E:\apache-tomcat-6rn.0.26\webapps\tatajie\WEB-INF\classes\com\tatajie\dao\PinYinBean.class]rn2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Ignored because not a concrete top-level class: file [E:\apache-tomcat-6rn.0.26\webapps\tatajie\WEB-INF\classes\com\tatajie\dao\SelectBean.class]rn2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\webarnpps\tatajie\WEB-INF\classes\com\tatajie\dao\UserDao.class]rn2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Identified candidate component class: file [E:\apache-tomcat-6.0.26\webarnpps\tatajie\WEB-INF\classes\com\tatajie\dao\WerbenDao.class]rn2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Creating MapperFactoryBean with name 'auctionDao' and 'com.tatajie.dao.ArnuctionDao' mapperInterfacern2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Creating MapperFactoryBean with name 'classifyDao' and 'com.tatajie.dao.rnClassifyDao' mapperInterfacern2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Creating MapperFactoryBean with name 'commodDao' and 'com.tatajie.dao.CornmmodDao' mapperInterfacern2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Creating MapperFactoryBean with name 'ggListDao' and 'com.tatajie.dao.GgrnListDao' mapperInterfacern2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Creating MapperFactoryBean with name 'jurisdictionDao' and 'com.tatajie.rndao.JurisdictionDao' mapperInterfacern2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Creating MapperFactoryBean with name 'userDao' and 'com.tatajie.dao.UserrnDao' mapperInterfacern2015-08-15 19:11:49 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner]-rn[DEBUG] Creating MapperFactoryBean with name 'werbenDao' and 'com.tatajie.dao.WernrbenDao' mapperInterfacern2015-08-15 19:11:49 [org.springframework.beans.factory.support.DefaultListableBernanFactory]-[DEBUG] Returning cached instance of singleton bean 'propertyConfigurrner'rn2015-08-15 19:11:49 [org.springframework.beans.factory.config.PropertyPlaceholdernrConfigurer]-[INFO] Loading properties file from class path resource [jdbc.propernrties]rn2015-08-15 19:11:49 [org.springframework.beans.factory.support.DefaultListableBernanFactory]-[INFO] Destroying singletons in org.springframework.beans.factory.suprnport.DefaultListableBeanFactory@1f80cb01: defining beans [classifyController,comrnmodController,fileController,ggListController,indexControl,jurisdictionControllernr,userController,werbenController,AuctionService,ClassifyService,CommodService,grngListService,jurisdictionService,userService,werbenService,org.springframework.crnontext.annotation.internalConfigurationAnnotationProcessor,org.springframework.crnontext.annotation.internalAutowiredAnnotationProcessor,org.springframework.conternxt.annotation.internalRequiredAnnotationProcessor,org.springframework.context.anrnnotation.internalCommonAnnotationProcessor,propertyConfigurer,dataSource,sqlSessrnionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,transactionManagernr,org.springframework.context.annotation.ConfigurationClassPostProcessor.importArnwareProcessor,auctionDao,classifyDao,commodDao,ggListDao,jurisdictionDao,userDaorn,werbenDao]; root of factory hierarchyrn2015-08-15 19:11:49 [org.springframework.web.context.ContextLoader]-[ERROR] Contrnext initialization failedrnorg.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean defrninition with name 'dataSource' defined in class path resource [spring-mybatis.xmrnl]: Could not resolve placeholder 'driver' in string value "$driver"rn at org.springframework.beans.factory.config.PlaceholderConfigurerSupportrn.doProcessProperties(PlaceholderConfigurerSupport.java:209)rn at org.springframework.beans.factory.config.PropertyPlaceholderConfigurernr.processProperties(PropertyPlaceholderConfigurer.java:220)rn at org.springframework.beans.factory.config.PropertyResourceConfigurer.prnostProcessBeanFactory(PropertyResourceConfigurer.java:84)rn at org.springframework.context.support.AbstractApplicationContext.invokernBeanFactoryPostProcessors(AbstractApplicationContext.java:687)rn at org.springframework.context.support.AbstractApplicationContext.invokernBeanFactoryPostProcessors(AbstractApplicationContext.java:662)rn at org.springframework.context.support.AbstractApplicationContext.refresrnh(AbstractApplicationContext.java:454)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebArnpplicationContext(ContextLoader.java:383)rn at org.springframework.web.context.ContextLoader.initWebApplicationConternxt(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialirnzed(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContexrnt.java:3972)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4rn467)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBasern.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77rn1)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rnrn at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)rnrn at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740rn)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500rn)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.javarn:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecyclrneSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rnrn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rnrn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443rn)rn at org.apache.catalina.core.StandardService.start(StandardService.java:5rn19)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710rn)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.rnjava:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesrnsorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2015-8-15 19:11:49 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2015-8-15 19:11:49 org.apache.catalina.core.StandardContext startrn严重: Context [/tatajie] startup failed due to previous errorsrn2015-8-15 19:11:49 org.apache.catalina.loader.WebappClassLoader clearReferencesJrndbcrn严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but frnailed to unregister it when the web application was stopped. To prevent a memoryrn leak, the JDBC Driver has been forcibly unregistered.rn2015-8-15 19:11:49 org.apache.catalina.loader.WebappClassLoader clearReferencesJrndbcrn严重: A web application registered the JBDC driver [com.mysql.fabric.jdbc.FabricrnMySQLDriver] but failed to unregister it when the web application was stopped. Trno prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2015-8-15 19:11:49 org.apache.catalina.loader.WebappClassLoader clearReferencesJrndbcrn严重: A web application registered the JBDC driver [oracle.jdbc.OracleDriver] burnt failed to unregister it when the web application was stopped. To prevent a memrnory leak, the JDBC Driver has been forcibly unregistered.rn2015-8-15 19:11:49 org.apache.catalina.loader.WebappClassLoader clearReferencesTrnhreadsrn严重: A web application appears to have started a thread named [Abandoned connecrntion cleanup thread] but has failed to stop it. This is very likely to create arnmemory leak.
idea启动java项目 一启动就报错 大神帮我看看
端口号改了也没用 ,肯定和端口号没关系rn![图片说明](https://img-ask.csdn.net/upload/201705/02/1493733288_945458.png)rn![图片说明](https://img-ask.csdn.net/upload/201705/02/1493732836_756502.png)
配置hadoop问题,求大神解答
三台虚拟机,hostname分别是namenode,datanode1,datanode2。在.SSH执行命令scp authorized_key datanode1:~/.ssh的时候提示Could not resolve hostname datanode1: Name or service not knownrnlost connection。为什么会这样?datanode1为什么not known?在datanode1上执行 /etc/sysconfig/network查看hostname没有问题啊
springboot 配置数据库报错
spring boot 部署数据库报错 . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__...
SpringBoot启动配置原理
1.说到启动配置原理我们无非就是去查看源代码。 首先我们从SpringBoot的启动类来入手我们在SpringBoot的类上打上断点来分析一下启动过程 然后我们使用F7(step into)查看我们发现,是先创建了SpringApplication对象再运行的Run方法 1.1.创建SpringApplication对象 根据源代码我们可以得出以下结论 /** * Cre...
Springboot启动配置原理
1Springboot启动配置原理 几个重要的事件回调机制(配置在META-INF/spring.factories) ApplicationContextInitializer SpringApplicationRunListener 只需要放在ioc容器中 ApplicationRunner CommandLineRunner 1.1启动流程 initialize(sou...
SpringBoot——启动配置原理
一、基于回调机制   SpringBoot的启动和自动配置基于几个重要的事件回调:  1、ApplicationContextInitializer:配置在META-INF/spring.factories文件中  2、SpringApplicationRunListener:配置在META-INF/spring.factories文件中  3、ApplicationRunner:只需放在ioc容...
SpringBoot配置与启动
Eclipse 1、空白处右键--new--other--Maven project选择webapp设置group id呵artifact id2、pom.xml初始配置&amp;lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:sc...
配置和启动 SpringBoot项目
本课程案例项目框架使用SSM组合框架,基于SpringBoot结构。让目前正在学习 JavaEE 开发的同学能够快速了解web系统的经典RBAC权限设计和实现。
android启动就报错
开发环境idea-14,然后已经添加了v7目录下面的v4和v7包到项目的libs目录,并且添加到Libraries中.实在想不到是什么地方出问题了,等大神,谢谢rnrnrn报错信息:rn[code=java]rnrnjava.lang.NoClassDefFoundError: android.support.v7.appcompat.R$styleablern at android.support.v7.app.DrawerArrowDrawable.(DrawerArrowDrawable.java:64)rn at android.support.v7.app.ActionBarDrawerToggle$DrawerArrowDrawableToggle.(ActionBarDrawerToggle.java:469)rn at android.support.v7.app.ActionBarDrawerToggle.(ActionBarDrawerToggle.java:222)rn at android.support.v7.app.ActionBarDrawerToggle.(ActionBarDrawerToggle.java:150)rn at com.xxx.MainActivity$3.(MainActivity.java:130)rn at com.xxx.MainActivity.onCreate(MainActivity.java:129)rn at android.app.Activity.performCreate(Activity.java:5231)rn at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)rn at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)rn at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)rn at android.app.ActivityThread.access$800(ActivityThread.java:135)rn at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)rn at android.os.Handler.dispatchMessage(Handler.java:102)rn at android.os.Looper.loop(Looper.java:136)rn at android.app.ActivityThread.main(ActivityThread.java:5017)rn at java.lang.reflect.Method.invokeNative(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:515)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)rn at dalvik.system.NativeStart.main(Native Method)rnrn[/code]rnrnactivity文件:rn[code=java]rn mDrawerToggle = new ActionBarDrawerToggle(MainActivity.this, mDrawerLayout,rn R.string.drawer_open, R.string.drawer_close) rnrn /** Called when a drawer has settled in a completely closed state. */rn public void onDrawerClosed(View view) rn super.onDrawerClosed(view);rn getActionBar().setTitle("oncreate close");rn invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()rn rnrn /** Called when a drawer has settled in a completely open state. */rn public void onDrawerOpened(View drawerView) rn super.onDrawerOpened(drawerView);rn getActionBar().setTitle("oncreate open");rn invalidateOptionsMenu(); // creates call to onPrepareOptionsMenu()rn rn ;rn mDrawerLayout.setDrawerListener(mDrawerToggle);rnrn[/code]rnrnrnrnstyles.xmlrn[code=html]rnrnrnrnrnrn rnrnrn[/code]rnrnrnandroidmanifest.xmlrn[code=html]rnrnrnrnrn rn rnrn rn rn rn rn rn rn rn rnrnrnrn[/code]
springboot启动类配置
pom.xml:<properties> <start-class>com.shw.netdisk.application.Application</start-class> </properties>
tomcat为什么启动就报错,,,求帮助!
我的tomcat每次都报这样的错。哪位大师帮我看一下吧,我刚学,不会调.....可能是什么问题呢?rnrn2012-11-17 11:54:37 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\java\MyEclipse\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\binrn2012-11-17 11:54:38 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2012-11-17 11:54:38 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1946 msrn2012-11-17 11:54:38 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-11-17 11:54:38 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.20rn2012-11-17 11:54:40 org.apache.jasper.EmbeddedServletOptions rn严重: The scratchDir you specified: C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\work\Catalina\localhost\docs is unusable.rn2012-11-17 11:54:40 org.apache.catalina.startup.HostConfig deployDirectoryrn严重: Error deploying web application directory host-managerrnjava.io.FileNotFoundException: C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost\host-manager.xml (系统找不到指定的路径。)rn at java.io.FileOutputStream.open(Native Method)rn at java.io.FileOutputStream.(FileOutputStream.java:179)rn at java.io.FileOutputStream.(FileOutputStream.java:131)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:957)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2012-11-17 11:54:40 org.apache.catalina.startup.HostConfig deployDirectoryrn严重: Error deploying web application directory managerrnjava.io.FileNotFoundException: C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost\manager.xml (系统找不到指定的路径。)rn at java.io.FileOutputStream.open(Native Method)rn at java.io.FileOutputStream.(FileOutputStream.java:179)rn at java.io.FileOutputStream.(FileOutputStream.java:131)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:957)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:583)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2012-11-17 11:54:40 org.apache.jasper.EmbeddedServletOptions rn严重: The scratchDir you specified: C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\work\Catalina\localhost\_ is unusable.rn2012-11-17 11:54:40 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2012-11-17 11:54:40 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2012-11-17 11:54:40 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/125 config=nullrn2012-11-17 11:54:40 org.apache.catalina.startup.Catalina startrn信息: Server startup in 2212 msrn
VS2010 启动就报错,求高手指教!!!!!!!!!!
VS2010 开始是闪退,我卸载重装后,现在启动就报错,不知道什么原因?rn[img=https://img-bbs.csdn.net/upload/201403/14/1394776584_702581.jpg][/img]
新手myibatis配置报错 求解答
org.apache.ibatis.exceptions.PersistenceException: rn### Error building SqlSession.rn### The error may exist in SQL Mapper Configurationrn### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error registering typeAlias for 'UserDaoMapper.xml'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.icreate.dao/UserDaoMapper.xmlrn at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:23)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:51)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:35)rn at com.mybatis.config.UserDaoTest.userDaoTest(UserDaoTest.java:19)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)rn at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)rn at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:236)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.builder.BuilderException: Error registering typeAlias for 'UserDaoMapper.xml'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.icreate.dao/UserDaoMapper.xmlrn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:103)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parse(XMLConfigBuilder.java:86)rn at org.apache.ibatis.session.SqlSessionFactoryBuilder.build(SqlSessionFactoryBuilder.java:49)rn ... 25 morernCaused by: org.apache.ibatis.builder.BuilderException: Error registering typeAlias for 'UserDaoMapper.xml'. Cause: java.lang.ClassNotFoundException: Cannot find class: com.icreate.dao/UserDaoMapper.xmlrn at org.apache.ibatis.builder.xml.XMLConfigBuilder.typeAliasesElement(XMLConfigBuilder.java:124)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:93)rn ... 27 morernCaused by: java.lang.ClassNotFoundException: Cannot find class: com.icreate.dao/UserDaoMapper.xmlrn at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:188)rn at org.apache.ibatis.io.ClassLoaderWrapper.classForName(ClassLoaderWrapper.java:87)rn at org.apache.ibatis.io.Resources.classForName(Resources.java:250)rn at org.apache.ibatis.builder.xml.XMLConfigBuilder.typeAliasesElement(XMLConfigBuilder.java:117)rn ... 28 morernrn------------------------------rn代码:rnpackage com.mybatis.config;rnrnimport java.io.Reader;rnimport java.util.Iterator;rnimport java.util.List;rnimport org.apache.ibatis.io.Resources;rnimport org.apache.ibatis.session.SqlSession;rnimport org.apache.ibatis.session.SqlSessionFactory;rnimport org.apache.ibatis.session.SqlSessionFactoryBuilder;rnimport org.junit.Test;rnrnpublic class UserDaoTest rn @Testrn public void userDaoTest() throws Exceptionrn rn String resource = "MyBatis-Configuration.xml";rn Reader reader = Resources.getResourceAsReader(resource);rn SqlSessionFactoryBuilder builder = new SqlSessionFactoryBuilder();rn SqlSessionFactory factory = builder.build(reader);rn rn SqlSession session = factory.openSession();rn UserDao userDao = session.getMapper(UserDao.class);rn rn User user = new User();rn user.setUserName("hongye");rn user.setPassword("123456");rn user.setComment("备注");rn rn userDao.insert(user);rn System.out.println("记录条数:"+userDao.countAll());rn rn List users = userDao.selectAll();rn Iterator iter = users.iterator();rn while(iter.hasNext())rn User u = iter.next();rn System.out.println("用户名:"+u.getUserName()+"密码:"+u.getPassword());rn rn rn user.setComment("comment");rn userDao.update(user);rn User u = userDao.findByUserName("hongye");rn System.out.println(u.getComment());rn rn userDao.delete("hongye");rn System.out.println("记录条数:"+userDao.countAll());rn rn session.commit();rn session.close();rn rnrn------------------rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn------------------------------------rn rn rnrn rn select count(*) c from user;rn rn rn rn select * from user order by userName ascrn rn rn rn insert into user(userName,password,comment) values(#userName,#password,#comment)rn rn rn rn update user set userName=#userName,password=#password,comment=#comment where userName=#userNamern rn rn rn delete from user where userName=#userNamern rn rn rn select * from user where userName=#userNamern rnrn
spring 配置dubbo报错 求大神指导
Multiple annotations found at this line:rn - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:module'.rn - schema_reference.4: Failed to read schema document 'http://code.alibabatech.com/schema/dubbo/dubbo.xsd', because 1) could not find the document; rn 2) the document could not be read; 3) the root element of the document is not .
求大神解答,谢谢
grant selectrnon table 职工,部门rnto 王明rnrnrnrn消息102,级别15,状态1,第2行rn','附近有语法错误。
新手求大神解答!!
最近学习javaweb的servlet,做了一个查询 跳转完了总是空白页rnconsole里是这样的rn严重: Servlet.service() for servlet jsp threw exceptionrnjava.lang.ArrayIndexOutOfBoundsException: -1rn at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)rn at org.eclipse.jdt.internal.compiler.ClassFile.traverse(ClassFile.java:5586)rn at org.eclipse.jdt.internal.compiler.ClassFile.generateStackMapTableAttribute(ClassFile.java:4303)rn at org.eclipse.jdt.internal.compiler.ClassFile.completeCodeAttribute(ClassFile.java:1378)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:338)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)rn at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)rn at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)rn at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:436)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)rn at servlets.Update1.doGet(Update1.java:32)rn at servlets.Update1.doPost(Update1.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:579)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:405)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:349)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)rn at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)rn at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)rn at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)rn at servlets.Update1.doGet(Update1.java:32)rn at servlets.Update1.doPost(Update1.java:40)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)rn at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:526)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1078)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:655)rn at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)rn at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.ArrayIndexOutOfBoundsException: -1rn at org.eclipse.jdt.internal.compiler.codegen.StackMapFrame.addStackItem(StackMapFrame.java:92)rn at org.eclipse.jdt.internal.compiler.ClassFile.traverse(ClassFile.java:5586)rn at org.eclipse.jdt.internal.compiler.ClassFile.generateStackMapTableAttribute(ClassFile.java:4303)rn at org.eclipse.jdt.internal.compiler.ClassFile.completeCodeAttribute(ClassFile.java:1378)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:338)rn at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)rn at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)rn at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)rn at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:781)rn at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)rn at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:436)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:361)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:336)rn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:323)rn at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)rn ... 39 morern
thinkphp求大神解答
我有一个form表单 rn rn1:rn2:rn3:rn4:rnrn我想把 1存到一个数据表 2存到另一个数据表 3存到另外一个数据表里, 这个东西应该怎么写,或者大神忘记我这个表单 直接给个方法 求帮助!!!
面试题,求大神解答
请用C#实现以下功能rn1.一个winform程序,内嵌浏览器访问一个html页面,显示html内容rn2.在html页面中创建一个按钮A,点击按钮可以显示又winform弹出的对话框rn3.在winform程序界面上,创建一个按钮B,点击后,显示又html javascript弹出的消息提示框rn4.由winform程序界面上,创建一个按钮C,点击后将一个js函数注入到浏览器的html中,改变按钮A的点击效果,
tomcat报错 求大神解答!
rn错误信息如下。。 我百度了一下都是说连接不了数据库,但是解决方法都不管用rnrnERROR JDBCExceptionReporter:78 - Cannot create PoolableConnectionFactory (到主机 的 TCP/IP 连接失败。 java.net.ConnectException: Connection timed out: connect)rnrn我做了很多尝试,但是都没用,不知道问题出在哪? 我是做前端的,这个后台java程序不是我写的 所以具体该怎么处理这个东西??
求大神解答
using System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Text;rnrnnamespace 写一个读入整数的方法rnrn class Programrn rn static void Main(string[] args)rn rn Console.WriteLine("请输入你的年龄");rn int age = Console.[color=#FF0000]ReadInt();rn[/color] Console.WriteLine("你刚刚输入的年龄为:");rn rn public static int ReadInt()rn rn int number = 0;rn dorn rn tryrn rn number=Convert.ToInt32(Console.ReadLine());rn rn catchrn rn Console.WriteLine("你输入有误,请重新输入");rn return number;rn rn rn while (true);rn rn rn rnrn[color=#FF0000][b]]错误提示:错误 1 “System.Console”并不包含“ReadInt”的定义 rn[/b][/color]
求大神帮忙解答!!
大神,您好:rn 小弟遇到了下面的代码:rn [code=java]<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>rn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rnString errorMessage=(String)request.getAttribute("errorMessage");rn%>rn//七rnrnrnrn rn 远程医患交流平台-登陆rn rnrnrnrnrn rn rn rn rn rn rn 账 户:rn 密 码: rn 用户类型:医生用户患者用户管理员 rn <%rn if(errorMessage!=null) %>rn <%=errorMessage %>rn <% rn %>rnrnrn rn rn rn rn rn rn rn rn rnrnrnrn[/code]rn 下图为代码运行效果:rn [img=https://img-bbs.csdn.net/upload/201601/20/1453219648_447217.jpg][/img]rn 求高手点拨:rn 这个类型的 “表单提交 ”的机制,在哪行代码体现?rn 并且,这个类型的用户,单击图片中的“登陆”按钮后,应该触发了服务器验证用户是否合法的流程中。rn 上面:“单击图片中的登陆按钮后,登入系统。这一行 ”伪代码“, 要是换成对应的Java代码或者Jsp代码的话,应该分别走哪几行代码?rn 希望高手,能够指教!!rn 小弟,100分奉上!!rn [img=https://img-bbs.csdn.net/upload/201601/20/1453220877_494394.png][/img]
求大神解答!!!
例题:打印1到5的阶乘值。rnint fac(int n)rnrn static int f=1;rn f=f*n;rn return(f);rnrnmain()rnrn int i;rn for(i=1;i<=5;i++)rn printf("i=%d,fac(i)=%ld\n",i,fac(i));rnrnrnrn按照书上打的,但是电脑编译不出来,有错误。请问,哪里错了?
求大神帮忙解答
写程序帮李老师把2 组学生配对。有两组学生,A 组跟 B组。每个学生有自己的分数,分rn数为1 到100 的整数。一个 A 组的学生能跟一个 B组的学生配成一对,条件是两个学生分rn数差别不能超过某非负整数 k 。每一对包含一个 A 组的学生跟一个 B组的学生。每个学生rn只能参与一对不能参与多对。rn程序需要从标准输入(stdin)读问题数据,包括 3 行。第一行有 3 个整数,第一是 k ,第rn二是A 组的人数,第三是 B组的人数。第二第三行分别是 A 组 B组学生的分数,空各字符rn为定界符。答案为最多能配对的数量。程序需要把答案写到标准输出(stdout)。rn输入例子1:rn3 4 5rn1 1 0 2 0 2 6rn2 7 1 4 2 3 1 0 0rn输出例子1:rn3rn输入例子2:rn0 5 5rn1 7 4 5 0 2 3 1 0rn1 0 5 0 2 3 7 4 1 0 0rn输出例子2:rn4rn
新手 求大神解答
[img=https://img-bbs.csdn.net/upload/201612/22/1482372220_679957.png][/img] 这个问题怎么解决 就一个c#登陆界面密码验证的问题 用mysql 这里就是不行为什么啊 求大神详细解答下 万分感谢rn
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件