求助大神帮忙解决Maven配置问题?

问题为:创建Maven项目无法使用pom.xml进行jar包的检索?

已尝试的方法:百度了相关问题,关于sttings.xml的
本地路径以及连接阿里云Maven仓库都一模一样按教程扒
下来,可是仍旧检索不到jar包**,求大神帮助!

截图如下:

图片说明

图片说明

1个回答

maven的仓库配置好吗?可能是maven的本地仓库配置路径不对

weixin_43851549
BykanChina 配置了哦,环境变量也是没问题的,在Win10的Dos中mvn -v可以显示出相关信息,可Eclipse无法进行检索,后来尝试了用Dependencies的方法才暂时解决,但每次这样导终究不是很方便!
4 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
netbpm-0.8.3.1中配置问题,请大神帮忙解决。
按照install.pdf文档配置完毕,http://localhost:8080/intro/index.rails也能进入登陆页,选择user和password登陆,就是登陆不进入,我查看了一下数据库,发现就没有登陆账号的表格,不知道这里的登陆账号信息来源于何处。
maven新手 大神帮忙解决几个提问
maven私服中 Snapshots库中可以上传war包么?为何我在MyEclipse中在web项目中执行clean install delpoy命令 war包上传到了Releases库中 还报400 求大神解答![图片说明](http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/1.gif)![图片说明](http://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/1.gif)
nginx配置问题 求大神帮忙
location /tile n if ($query_string ~ "qt=tile&x=(\d+)&y=(\d+)&z=(\d+)(.*)$" )n set $x $1;n set $y $2;n set $z $3;n rewrite ^/tile(.*)$ /map/maptile/$z/$x/$y.png break;n n n404 Not Found - http://192.168.1.20/tile/?qt=tile&x=13633&y=5294&z=16&styles=pl&scaler=1&udt=20150528
spring配置问题,坐等大神解决
严重: ServletContext startup failed due to errorsnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'impl:tjProviderService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'tjTjjlValidateService' while setting bean property 'tjTjjlValidateService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tjTjjlValidateService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'tjTjdxService' while setting bean property 'tjTjdxService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tjTjdxService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'TjjhServiceImplBean' while setting bean property 'tjjhService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TjjhServiceImplBean' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-ws-services.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'TjjhServiceImpl' of bean class [com.wadata.tj.service.impl.TjjhServiceImpl]: Bean property 'TjjhServiceImpl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tjTjjlValidateService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'tjTjdxService' while setting bean property 'tjTjdxService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tjTjdxService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'TjjhServiceImplBean' while setting bean property 'tjjhService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TjjhServiceImplBean' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-ws-services.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'TjjhServiceImpl' of bean class [com.wadata.tj.service.impl.TjjhServiceImpl]: Bean property 'TjjhServiceImpl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tjTjdxService' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-tj-services.xml]: Cannot resolve reference to bean 'TjjhServiceImplBean' while setting bean property 'tjjhService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TjjhServiceImplBean' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-ws-services.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'TjjhServiceImpl' of bean class [com.wadata.tj.service.impl.TjjhServiceImpl]: Bean property 'TjjhServiceImpl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TjjhServiceImplBean' defined in file [D:\tomcat-6.3-rhm-tj\webapps\rhm-app\WEB-INF\classes\META-INF\configuration\rhm-ws-services.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'TjjhServiceImpl' of bean class [com.wadata.tj.service.impl.TjjhServiceImpl]: Bean property 'TjjhServiceImpl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?nCaused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'TjjhServiceImpl' of bean class [com.wadata.tj.service.impl.TjjhServiceImpl]: Bean property 'TjjhServiceImpl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?nnn配置文件如下:nnnn n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n n
求助各位大神帮忙解决 C#
![图片说明](https://img-ask.csdn.net/upload/201711/16/1510836630_320102.png)n代码如下:nusing System;nusing System.Collections.Generic;nusing System.ComponentModel;nusing System.Data;nusing System.Drawing;nusing System.Linq;nusing System.Text;nusing System.Threading.Tasks;nusing System.Windows.Forms;nusing System.Data.SqlClient;nnnnamespace WindowsFormsApplication1nn public partial class Form1 : Formn n public Form1()n n InitializeComponent();n nn private void button1_Click(object sender, EventArgs e)n n string con;n con = "Server=.;Database=db;Trusted_Connection=SSPI";n SqlConnection mycon = new SqlConnection(con);n mycon.Open();n string sql = "Select username from Login where username='" + textBox1.Text.Trim() + "'and userpws='" + textBox2.Text.Trim() + "'";n SqlCommand cmd = new SqlCommand("sql", mycon);n cmd.CommandType = CommandType.Text;n mycon.CommandText = sql;
maven 配置问题
在eclipse 配置了maven 编译项目时提示一下错误rn[code=Java]rn[INFO] BUILD FAILURErn[INFO] ------------------------------------------------------------------------rn[INFO] Total time: 0.093srn[INFO] Finished at: Wed Jan 19 10:36:06 CST 2011rn[INFO] Final Memory: 1M/4Mrn[INFO] ------------------------------------------------------------------------rn[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]rnorg.apache.maven.lifecycle.NoGoalSpecifiedException: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy.rn at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:104)rn at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)rn at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)rn at org.apache.maven.cli.MavenCli.execute(MavenCli.java:451)rn at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:188)rn at org.apache.maven.cli.MavenCli.main(MavenCli.java:134)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.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)rn at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)rn at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)rn at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)rn[ERROR] 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/NoGoalSpecifiedExceptionrnrn[/code]rnrn查过教程由说是http://wenku.baidu.com/view/5934b80c844769eae009eded.htmlrn本地仓库位置问题。说让改settings。xml文件。但具体怎么改还不太确定。希望谁有例子发一下。(我就写了一个简单的hello world 程序。谢谢rnrn现在有些乱。如果问题信息不详细我再补充。
maven配置问题
哪位大侠帮忙看看问题啊,用maven配置的,不知道哪里出错了rn[code=text]11:55:25.774 [main] ERROR o.s.web.context.ContextLoader - Context initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor#0' defined in class path resource [applicationContext-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in class path resource [applicationContext-shiro.xml]: Cannot resolve reference to bean 'myRealm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'myRealm' is definedrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:457) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198) ~[spring-beans-3.2.0.RELEASE.jar:3.2.0.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:753) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE]rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) ~[spring-context-3.2.0.RELEASE.jar:3.2.0.RELEASE]rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383) ~[spring-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) ~[spring-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]rn at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:771) [jetty-server-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:411) [jetty-servlet-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:763) [jetty-server-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:247) [jetty-servlet-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1238) [jetty-webapp-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:706) [jetty-server-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:480) [jetty-webapp-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.mortbay.jetty.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:293) [jetty-maven-plugin-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229) [jetty-server-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:172) [jetty-server-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:229) [jetty-server-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) [jetty-server-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.server.Server.doStart(Server.java:277) [jetty-server-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.mortbay.jetty.plugin.JettyServer.doStart(JettyServer.java:65) [jetty-maven-plugin-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) [jetty-util-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:511) [jetty-maven-plugin-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:364) [jetty-maven-plugin-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.mortbay.jetty.plugin.JettyRunMojo.execute(JettyRunMojo.java:516) [jetty-maven-plugin-8.1.6.v20120903.jar:8.1.6.v20120903]rn at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) [maven-core-3.0.4.jar:3.0.4]rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) [maven-core-3.0.4.jar:3.0.4]rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) [maven-core-3.0.4.jar:3.0.4]rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) [maven-core-3.0.4.jar:3.0.4]rn at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) [maven-core-3.0.4.jar:3.0.4]rn at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) [maven-core-3.0.4.jar:3.0.4]rn at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) [maven-core-3.0.4.jar:3.0.4]rn at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) [maven-core-3.0.4.jar:3.0.4]rn at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) [maven-core-3.0.4.jar:3.0.4]rn at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) [maven-core-3.0.4.jar:3.0.4]rn at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) [maven-embedder-3.0.4.jar:3.0.4]rn at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) [maven-embedder-3.0.4.jar:3.0.4]rn at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) [maven-embedder-3.0.4.jar:3.0.4]rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_02]rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_02]rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_02]rn at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_02]rn at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) [plexus-classworlds-2.4.jar:na]rn at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) [plexus-classworlds-2.4.jar:na]rn at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) [plexus-classworlds-2.4.jar:na]rn at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [plexus-classworlds-2.4.jar:na][/code]
Maven配置问题
1.今天在公司配置meven的时候,基本的配置都ok了,使用mvn -version也可以看到maven的版本号了,说明maven安装ok。 但是在IDEA中创建maven项目的时候,发现,一直无法下载到jar包文件。 原因:公司内网下载资源,需要配置代理 在Maven的conf目录下的setting.xml文件中,配置代理: 去除了注释的版本: <settings xmlns="ht
求助大神帮忙看下!!!
麻烦哪位大神能帮忙看下 下面代码中的$testid是哪里来的,小弟谢谢啦!rnrn rn";rnif (!isset($_SESSION[alogin]))rnrn echo " You are not Logged On Please Login to Access this Page";rn echo " Click Here for Login";rn exit();rnrnecho " Add Question ";rnif($_POST[submit]=='Save' || strlen($_POST['testid'])>0 )rnrnextract($_POST);rnmysql_query("insert into mst_question(test_id,que_desc,ans1,ans2,ans3,ans4,true_ans) values ('$testid','$addque','$ans1','$ans2','$ans3','$ans4','$anstrue')",$cn) or die(mysql_error());rnecho " Question Added Successfully.";rnunset($_POST);rnrn?>rn rn rn rn rn Select Test Name rn rn rn$row[2]";rnrnelsernrnecho "$row[2]";rnrnrn?>rn rn rn rn Enter Question rn rn rn rn rn Enter Answer1 rn rn rn rn rn Enter Answer2 rn rn rn rn rn Enter Answer3 rn rn rn rn rn Enter Answer4rn rn rn rn rn Enter True Answer rn rn rn rn rn rn rn rn rn rnrn rn
求助大神,帮忙编程
min=0.5x1+0.5x2+0.6y2+x3+0.5y3+0.5x4+0.4y4+x5+x6+x7+x8+x9+x10rnx5=1.5x52+0.5x53+1.5x54+x56;rnx6=x61+0.5x62+1.5x63+x64+0.5x65;rnx7=1.5x72+2x73+1.5x75+1.5x76;rnx8=0.8x83+1.5x84+0.5x85+x86;rnx9=x91+1.5x93+2x94+x96;rnx10=2x101;rnx91+x101+x61=50;rnx52+x62+x72=20;rnx93+x53+x63+x73+x83=40;rnx94+x54+x64+x84=30;rnx65+x75+x85=60;rnx96+x56+x76+x86=40;rnx52+x53+x54+x56<=80;rnx61+x62+x63+x64+x65<=60;rnx72+x73+x75+x76<=100;rnx83+x84+x85+x86<=40;rnx1>=x52+x53+x54+x56;rnx2+y2>=x61+x62+x63+x64+x65;rnx3+y3>=x72+x73+x75+x76;rnx4+y4>=x83+x84+x85+x86; rnx91+x93+x94+x96+x1+x2+x3+x4<=200;rnx101+y1+y2+y3+y4<=250;rn所设变量均为正数。rn怎么用C语言编写出来?
求助!!!希望大神帮忙
我上次在网上买了一个cocos2d-x的视频教程,在按照里面的步骤做了之后再我的创建的HelloWorld目录下的proj.android文件夹里面没有build_native.py文件,是不是新版本的cocos2d-x没有这个文件了还是我的安卓环境没有配置好?(我的cocos2d-x版本是3.14.1的版本,安卓环境配置是参考视频和网上的,电脑系统是win10 64位的)
求助!。。。各位大神帮忙
各位大神 有人知道为什么我的图例是一行的吗。。我想改成1列4行 这个用语句怎么改呀rnrn这样横着把AREA的区域也给占了。。。rnrn我用的chart控件,绑定的动态的数据源。[img=https://img-bbs.csdn.net/upload/201405/25/1401006283_181755.jpg][/img]rnrn下面是我的代码rn With Me.Chart1rn .DataSource = DT.DefaultView 'dt作为chart1的数据源rn .Series.Clear()rn .Legends.Clear()rn .Legends.Add("本航班")rn .Series.Add("本航班")rn .Series("本航班").Legend = "本航班" '指定Legend所属Seriesrn .Series("本航班").LegendToolTip = "本航班"rn .Series("本航班").IsValueShownAsLabel = True '标签显示数据值rn End Withrn With (Chart1.Series(0))rn '指定x、y轴数据列rn .YValueMembers = "本航班"rn .XValueMember = "起飞前后天数"rn '图表类型rn .ChartType = DataVisualization.Charting.SeriesChartType.Linern End Withrn Chart1.ChartAreas(0).AxisX.Interval = 1rn Chart1.ChartAreas(0).AxisX.MajorGrid.Enabled = Falsern Chart1.ChartAreas(0).AxisX.Title = "起飞前后天数"rn Chart1.ChartAreas(0).AxisY.Title = "人数"rn Chart1.Series.Add("同期")rn Chart1.Legends.Add("同期")rn Chart1.Series("同期").Legend = "同期" '指定Legend所属Seriesrn Chart1.Series("同期").LegendToolTip = "同期"rn Chart1.Series("同期").IsValueShownAsLabel = True '标签显示数据值rn Chart1.Series("同期").YValueMembers = "同期"rn Chart1.Series("同期").XValueMember = "起飞前后天数"rn Chart1.Series("同期").ChartType = DataVisualization.Charting.SeriesChartType.Linernrnrnrn Chart1.Series.Add("本月")rn Chart1.Legends.Add("本月")rn Chart1.Series("本月").Legend = "本月" '指定Legend所属Seriesrn Chart1.Series("本月").LegendToolTip = "本月"rn Chart1.Series("本月").IsValueShownAsLabel = True '标签显示数据值rn Chart1.Series("本月").YValueMembers = "本月"rn Chart1.Series("本月").XValueMember = "起飞前后天数"rn Chart1.Series("本月").ChartType = DataVisualization.Charting.SeriesChartType.Linernrnrn Chart1.Series.Add("同期月")rn Chart1.Legends.Add("同期月")rn Chart1.Series("同期月").Legend = "同期月" '指定Legend所属Seriesrn Chart1.Series("同期月").LegendToolTip = "同期月"rn Chart1.Series("同期月").IsValueShownAsLabel = True '标签显示数据值rn Chart1.Series("同期月").YValueMembers = "同期月"rn Chart1.Series("同期月").XValueMember = "起飞前后天数"rn Chart1.Series("同期月").ChartType = DataVisualization.Charting.SeriesChartType.Line
求助,大神帮忙啊!
我做好的程序运行正常,为什么打成jar包后用exe4j转换成.exe文件后运行可以打开就是数据出不来呢?rn我用的fatjar打的jar包,把外用的jar都打到一起了,这是什么情况啊!
求助大神帮忙分析
本人刚入行php。最近公司要求做一个后台页面,也就增删改查的任务。所有功能在本地电脑上都可以实现使用。发布到外网上后发现删除和修改功能有问题。本地差不出错在哪里。有大神能帮我分析下原因吗。数据库看过了,字段名都相同。
求助大神帮忙呀~~~
HTTP 错误 500.19 - Internal Server Errorrn无法访问请求的页面,因为该页的相关配置数据无效rnrn模块 IIS Web Corern通知 BeginRequestrn处理程序 尚未确定rn错误代码 0x80070021rn配置错误 不能在此路径中使用此配置节。如果在父级别上锁定了该节,便会出现这种情况。锁定是默认设置的(overrideModeDefault="Deny"),或者是通过包含 overrideMode="Deny" 或旧有的 allowOverride="false" 的位置标记明确设置的。rn配置文件 \\?\F:\旅游信息管理\web.configrn请求的 URL http://localhost:8086/rn物理路径 F:\旅游信息管理rn登录方法 尚未确定rn登录用户 尚未确定rnrn 121: rn 122: rn 123:
求助大神帮忙指点。。
[code=C/C++] CClientDC dc(this);rn CBrush brush1,brush2,OldBrush;rn brush1.CreateSolidBrush(RGB(255,0, 0));rn brush2.CreateSolidBrush(RGB(0,255,0));rn rn CString str;rn for(i=140;i>=0;i--) rn if(i>20&&i<=140)rn rn str.Format(_T("%d"),(i-20));rn dc.TextOut(115,220,str);rn dc.SelectObject(&brush1);rn dc.Ellipse(140,220,155,235);rn rn rn else if(i<=20&&i>=0);rn rn str.Format(_T("%d"),i);rn dc.TextOut(115,220,str);rn dc.SelectObject(&brush2);rn dc.Ellipse(140,220,155,235);rnrn rn Sleep(1000);rn [/code]rn我要做的是120秒倒计时到0画红圆,20秒倒计时到0画绿圆,运行结果是140秒全部画成绿圆,99显示990,后面多个0,求高手帮忙修改修改,先谢过。。
望大神帮忙。求助!!!
import java.util.Scanner;rnrnpublic class LianXiTi3rn rn public static void main(String[] args)rn Scanner sc = new Scanner(System.in);rnrn System.out.println("请输入x的值:");rn int x = sc.nextInt();rnrn System.out.println("请输入y的值:");rn int y = sc.nextInt();rnrn System.out.println("请输入z的值:");rn int z = sc.nextInt();rn rn int max ;rnrn if (x > y && x > z)rn max = x;rn else if (y > x && y > z)rn max = y;rn else if (z > x && z > y)rn max = z;rn else rn System.out.println("三数相等");rn rn System.out.println("三数中最大值为:" + max);rn rnrn=====================================================rn这上面这个为什么它提示错误啊,提示max没初始化。max明明设定了等于x,y,z啊。为何下面这个又不报错呢?rnimport java.util.Scanner;//导包rnrnpublic class LianXiTi1rn public static void main(String[] args)rn //创建键盘录入对象rn Scanner sc = new Scanner(System.in);rn //获取数据rn System.out.print("请输入x的值:");rn int x = sc.nextInt();rn int max;rnrn if (x >= 3)rn max = 2*x + 1;rn else if (x >= -1 && x < 3)rn max = 2*x;rn else rn max = 2*x - 1;rn rn rn System.out.println(max);rn rnrn=================================================================rn后来我将第一个案例的 int max变成成员变量:static int max;把它放到main方法上面,它又不报错了,为何啊。新手小白,望请赐教,谢谢!rn
求大神帮忙解决
import java.io.*;rnpublic class Calculator rn // 定义相关变量rn private String sum = null;rn private String qbrc = null;rn private double qbr1 = 1;rn private double qbr2 = 1;rn String abr1;rn String abr2;rn public Calculator()rn rn rn public void sumT()rn /*rn * 接口功能:进行相关的输入和类型转换 rn * 接口输入:空 rn * 接口输出:空 rn */rn tryrn System.out.println("欢迎使用!!!/n此计算器除可以进行数字各种相关运算还可以进行字符串的相加");rn System.out.print("请您输入您的第一次输入:");rn BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));rn System.out.print("请输入您的第二次输入:");rn BufferedReader br2 = new BufferedReader(new InputStreamReader(System.in));rn System.out.print("请选择符号(+、—、*、/):");rn BufferedReader brc = new BufferedReader(new InputStreamReader(System.in));rn qbrc = brc.toString();rn abr1 = br1.toString();rn abr2 = br2.toString();rn catch(Exception e)rn e.printStackTrace();rn System.err.println("操作有误,请重新操作!!!");rn rn tryrn qbr1 = Double.parseDouble(abr1);rn qbr2 = Double.parseDouble(abr2);rn rn rn catch(Exception e)rn e.printStackTrace();rn System.err.println("***"+abr1+abr2+"***");rn rn /*rn * 接口功能:进行相关运算并输出结果 rn * 接口输入:空 rn * 接口输出:空 rn */rn tryrn if(qbrc=="+")rn double resultOf = qbr1+qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn if(qbrc=="-")rn double resultOf = qbr1-qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn if(qbrc=="*")rn double resultOf = qbr1*qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn if(qbrc=="/")rn double resultOf = qbr1/qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn catch(Exception e)rn e.printStackTrace();rn System.err.println("**********\n您的除数不能为零!!!\n**********");rn rn rn rn rn /**rn * @param argsrn */rn public static void main(String[] args) rn Calculator calculator = new Calculator();rn calculator.sumT();rn rnrnrn
大神们,帮忙解决下
输出一个字符串中子字符串(相同字符组成)出现的做多的次数。其中子字符串的字符相同的 。 rn比如 输入aaabbbbaaa,输出2;输入abab,输出0,给出代码(c语言)
求大神帮忙解决!!!
学习到jsp内置对象的时候,发现内置对象调用的都是抽象方法,查看源码也没看见被什么方法给实现,为什么它还可以调用这些方法???(查看源码的时候还发现一个问题:public abstract interface ServletResponse 这是什么???)请哪位大神讲解清楚!!!
大神帮忙 怎么解决
[img=https://img-bbs.csdn.net/upload/201505/07/1431012129_907772.png][/img]rnjava-ADT eclips中出的问题
大神帮忙解决
C#在一个个控件上鼠标按下不放,另一个控件上鼠标弹起怎么?
求大神帮忙解决redhat linux的服务器配置问题!
昨天装了虚拟机 VMwear,然后装了redhat,后来到服务器配置的时候是这样子的:rn[img=https://img-bbs.csdn.net/upload/201305/16/1368706631_950687.png][/img]rnrn系统设置---服务器配置--选项中没有 nfs http sabam,只有服务选项 这是什么回事啊?rnrn用命令检查rpm –qa|grep nfs检查NFS套件已经安装:rn[img=https://img-bbs.csdn.net/upload/201305/16/1368706850_830242.png][/img]rnrnrn这样子应该是对的rn[img=https://img-bbs.csdn.net/upload/201305/16/1368707157_905477.png][/img]rnrn求帮助!!rn感激涕零
求助求助求助,求助大神帮忙
页面有一个rn rnrn希望的是执行完onclick之后就会执行onserverclick里面的后台事件,但是不知道为什么就是不执行,求大神rn 后台方法:[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/42.gif][/img]protected void btnSaveResult_Click(object sender, EventArgs e)rn
php配置问题,请帮忙解决!!!
下了个php的论坛,不知道怎么运行rn请问怎么安装php和使用这个论坛rn
maven解决不同环境属性配置问题
一:背景    一个项目在多个环境的配置可能不一样,比如数据源,线程池配置等等,那么我们项目代码上不同环境时怎么办,总不能上一个环境改一次代码吧。。。 maven就为我们提供了一个解决方案,profile+filter,什么意思呢,且看下文,O(∩_∩)O哈哈~ 二:案例    我在做项目时,要配一个线程池,当然不同环境的线程数和队列数是不一样的,
IDEA中Maven配置问题全解决
最近换了工作环境,以前的IDEA配置都没了,记得上次配置自己的IDEA还是在两年前?然后构建Maven项目时遇到了一些小插曲,记录下解决方案(PS:新手教程向) 1. idea中maven默认配置的坑 首先打开File-&gt;Settings 这里可以直接搜索maven,就可以进入idea的Maven配置选项。 我这里是idea默认的maven配置,可以看到默认的Maven目录是idea内置...
求大神帮忙,struts配置问题,tomcat启动报错
rn严重: Exception starting filter StrutsPrepareFilterrnjava.lang.NoSuchMethodError: com.opensymphony.xwork2.config.ConfigurationManager.addContainerProvider(Lcom/opensymphony/xwork2/config/ContainerProvider;)Vrn at org.apache.struts2.dispatcher.Dispatcher.init_FileManager(Dispatcher.java:353)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:482)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter.init(StrutsPrepareFilter.java:56)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)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:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)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.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:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rn2013-10-21 15:55:38 org.apache.catalina.core.StandardContext filterStartrn严重: Exception starting filter struts2rnjava.lang.NoSuchMethodError: com.opensymphony.xwork2.config.ConfigurationManager.addContainerProvider(Lcom/opensymphony/xwork2/config/ContainerProvider;)Vrn at org.apache.struts2.dispatcher.Dispatcher.init_FileManager(Dispatcher.java:353)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:482)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4001)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4651)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)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:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)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.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:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnrn网上查询了很多类似的错误,都得不到解决,哪位朋友知道处理方法的,感激不尽啊。rnstusts对应的架包也都有添加,如下:rn[img=https://img-bbs.csdn.net/upload/201310/21/1382343062_900440.gif][/img]rn[img=https://img-bbs.csdn.net/upload/201310/21/1382343117_418861.gif][/img]rnrnrnrn
新人求助环境配置问题 求大神!!!!
[img=https://img-bbs.csdn.net/upload/201407/12/1405134827_491142.png][/img]rn[img=https://img-bbs.csdn.net/upload/201407/12/1405134889_168566.png][/img]rn测试的是一个视频播放的程序 在打开视频选择播放时出现上面提示rn程序是测试环境是否搭建成功 程序本身没有问题
struts2配置问题 在线等,求助大神
用的都是最新的jar包rn[img=https://img-bbs.csdn.net/upload/201410/20/1413782593_593411.jpg][/img][img=https://img-bbs.csdn.net/upload/201410/20/1413782609_109429.jpg][/img][img=https://img-bbs.csdn.net/upload/201410/20/1413782628_623024.jpg][/img]rnrn三张图分别是lib目录 struts.xml 和web.xmlrnrn下面三张图 是 index.jsp login.jsp 和 result.jsprn[img=https://img-bbs.csdn.net/upload/201410/20/1413782863_219788.jpg][/img][img=https://img-bbs.csdn.net/upload/201410/20/1413782876_155266.png][/img][img=https://img-bbs.csdn.net/upload/201410/20/1413782885_649248.png][/img]rnrn下面的是 LoginAction的代码rnrnpackage com.shengsiyuan.struts2;rnrnrnpublic class LoginAction rnrn private String username;rn private String password;rn rn public String getUsername()rn rn return username;rn rnrn public void setUsername(String username)rn rn this.username = username;rn rnrn public String getPassword()rn rn return password;rn rn rn public void setPassword(String password)rn rn this.password = password;rn rnrn public String execute()rn rn return "success";rn rn rnrnrn最后报的这个错rn[img=https://img-bbs.csdn.net/upload/201410/20/1413783045_626635.jpg][/img]rnrn
新手求助大神关于struts2的配置问题
小妹刚开始学习框架技术,研究了一天多,一个最简单的登录都做不出来。每次一开服务就出异常。rn直接上图rn严重: Document root element "struts", must match DOCTYPE root "struts-config". at (null:6:9)rnorg.xml.sax.SAXParseException: Document root element "struts", must match DOCTYPE root "struts-config".rn严重: Exception starting filter struts2rnUnable to load configuration. - file:/C:/company/apache-tomcat-6.0.30/webapps/webTest/WEB-INF/classes/struts.xml:6:9rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:450)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)rn at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:115)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4038)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4692)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:585)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:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: Unable to load configuration. - file:/C:/company/apache-tomcat-6.0.30/webapps/webTest/WEB-INF/classes/struts.xml:6:9rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)rn ... 29 morernCaused by: Unable to load file:/C:/company/apache-tomcat-6.0.30/webapps/webTest/WEB-INF/classes/struts.xml - file:/C:/company/apache-tomcat-6.0.30/webapps/webTest/WEB-INF/classes/struts.xml:6:9rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:954)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:163)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:130)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:209)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 31 morernCaused by: Document root element "struts", must match DOCTYPE root "struts-config". - file:/C:/company/apache-tomcat-6.0.30/webapps/webTest/WEB-INF/classes/struts.xml:6:9rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:949)rn ... 35 morernCaused by: org.xml.sax.SAXParseException: Document root element "struts", must match DOCTYPE root "struts-config".rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)rn at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)rn at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1621)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.handleStartElement(XMLDTDValidator.java:1900)rn at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(XMLDTDValidator.java:764)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3103)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:922)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)rn at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)rn ... 36 morern2012-7-16 14:25:18 org.apache.catalina.core.StandardContext startrn严重: Error filterStartrn2012-7-16 14:25:18 org.apache.catalina.core.StandardContext startrn严重: Context [/webTest] startup failed due to previous errorsrn2012-7-16 14:25:18 org.apache.catalina.startup.HostConfig deployDirectoryrnrnstruts.xml文件如下。rnrnrnrnrnrnrn/loginResult.jsprn/login.jsprnrnrnrnrnrn我在网上搜了下,别人说是struts.xml的问题,可我怎么也找不到。无奈求大神帮助
跪求各位大神帮忙解决maven插件的报错问题
在做一个项目,用maven打包rn在用到maven-shade-plugin这个插件进行打包时,会出现这个错误:rn[color=#FF0000]Error creating shaded jar: Invalid signature file digest for Manifest main attributes -> [Help 1][/color]rnrn也会有成功的时候,但是概率很小rnrn找了好久没有找到问题的解决办法,哪位大神有知道的,麻烦告诉下,谢谢了!
eclipse配置maven本地仓库,问题如下图,求大神帮忙解决
[img=https://img-bbs.csdn.net/upload/201707/23/1500740002_148443.png][/img]
求大神帮忙看看运行maven install错误怎么解决
[code=java][ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: 1 problem was encountered while building the effective model for org.apache.maven.plugins:maven-clean-plugin:2.5rn[ERROR] [FATAL] Non-parseable POM C:\Users\lenovo\.m2\repository\org\apache\maven\maven-parent\21\maven-parent-21.pom: entity reference names can not start with character '&' (position: START_TAG seen ...Firefox\') > -1; var isSafari = userAgent.indexOf(\'Safari\') > -1 &&... @3:114) @ C:\Users\lenovo\.m2\repository\org\apache\maven\maven-parent\21\maven-parent-21.pom, line 3, column 114[/code]rn如题 感觉好像是maven版本不对啊
Log4j配置问题,求大神解决啊
如下是我Log4j.properties配置文件rn[code=java]rnlog4j.rootLogger=WARN,sunyardrnrnlog4j.logger.org.springframework=WARNrnlog4j.logger.org.hibernate=WARNrnlog4j.logger.com.opensymphony.xwork2=WARNrnlog4j.logger.cn.com.sunyard = WARNrnrn log4j.appender.sunyard=org.apache.log4j.ConsoleAppenderrn log4j.appender.sunyard.layout=org.apache.log4j.PatternLayoutrn log4j.appender.sunyard.Target = System.out rn log4j.appender.sunyard.layout.ConversionPattern=[QC] %10d %-4r %p [%t] %C.%M(%L) | %m%nrn[/code]rnrn可是我的控制台却不打印我的Action中的异常信息。cn.com.sunyard这是我项目主目录,所有的service action都在这么目录下面的rnrnrn
算法求助,求大神帮忙
题目大意:现有24×20的矩形,将8个长度为7,宽不一定相等的小矩形放入24×20的矩形中,如何摆放才能使得大矩形剩余面积最大。rnps:宽度可以自由输入,可以8个都一样,也可以都不一样,可以2个、3个等一样。rn希望大神们给个思路,谢谢
菜鸟求助,求大神帮忙
[img=https://img-bbs.csdn.net/upload/201404/02/1396406132_842692.gif][/img]rn怎么只用SQL语句,建立这个表格,然后增加这两项纪录呢?
有偿求助,求大神帮忙。
加粗样式基于Qt,利用所学控件,不少于5种,结合使用菜单,完成网络通信、数据库、文件操作相结合的完整项目,实现登录后,进入主界面,呈现程序的具体功能。QQ 892743468 要求: 1.程序以及网络通讯为主,用户登录的用户名密码需保存在文本文件中,读取后判断登录; 2.程序以数据库为主,用户登录的用户名密码可以存储在数据库中,也可以保存在文本文件中; 3.项目名称必须为“Qt_学号”如:Qt_...
新手求助、大神帮忙啊!!!!
只是想做一个Checkbox,做好了打不开啊rnrn[code=java]CheckBox chk=(CheckBox)findViewById(R.id.chk);rn chk.setOnCheckedChangeListener(new OnCheckedChangeListener()rn public void onCheckedChanged(CompoundButton buttonView,boolean isChecked)rn Toast.makeText(MainActivity.this, isChecked ? "打开":"关闭", Toast.LENGTH_SHORT).show();rn rn );[/code]rnrn[img=https://img-bbs.csdn.net/upload/201404/11/1397194428_502496.jpg][/img][img=https://img-bbs.csdn.net/upload/201404/11/1397194469_522490.jpg][/img]rnrn帮我看看应该改哪里啊!!!rn先谢谢了!!!
空指针求助.请大神帮忙
空指针求助.请大神帮忙rn[img=https://img-bbs.csdn.net/upload/201412/21/1419161330_662821.jpg][/img]rnrn相关说明:本人新手,刚刚学完SSH框架,就试开发一个网站.上面的问题是cookie处理过程中出现的.rn对于cookie本人的思路是这样的:用户登录时在action向客户端写入cookie(内容为 id和密码),然后再jsp页面取到cookie的id和密码,取得id和密码后到数据库验证id密码是否正确(使用了缓存).rn上面的问题是取到cookie后将id密码传到Java class进行验证是否正确.
相关热词 c# stream 复制 android c# c#监测窗口句柄 c# md5 引用 c# 判断tabtip 自己写个浏览器程序c# c# 字符串变成整数数组 c#语言编程写出一个方法 c# 转盘抽奖 c#选中treeview