题
我正在做一个项目,其中一部分是openid身份验证。我正在使用Java。 我从以下站点下载了代码:
http://www.ibm.com/developerworks/ java / library / j-openid / index.html ,它说他用了检票口。
我试图用tomcat服务器执行。我能够成功编译Java文件。
但是,当我尝试运行openidregistration.html并放入www.myopenid.com或(http)://pratap533.myopenid.com时,它根本没有响应。
我遇到了麻烦,因为我必须完成该项目才能获得学位。
我在类路径中包含了openid4java.jar,joda-time.jar和wicket.jar文件以及C:\ Downloads \ FileServe Manager \ openid4java-sample-app \ src。 所以我编译了它们并成功了。
我在webapps中创建了wicket文件夹,并在其中放置了web-inf。在web-inf中,我创建了classes文件夹,还在web-inf文件夹中复制了web.xml。
在课程中,我将wicket文件夹的所有4个课程都放了。
当我尝试运行openidregistration.html并放入www.myopenid.com或(http)://pratap533.myopenid.com时 它根本没有回应。 在web.xml文件中,它带有servlet标签。这些标签我没有包括。
请任何人帮助我。
我认为我需要使用eclipse,但是我没有发现问题所在。
解决方案
I tried the following steps with the sample code you have mentioned and its working fine for me except i was getting connection failure error which might be due to the proxy network.
here are the steps for you
- Create a dynamic web-application in eclipse IDE.
- copy the jars from sample to the jar lib folder in your new project (created in step1).
- replace the web.xml from the one from sample application.
- copy the SRC folder from the sample application to the one created by you.
- If you want to see what is happening inside the application copy the log4j.properties file from sample application to the src folder.
Follow the above 4 steps and you will get a running application what they have in there tutorial.
hope this will work for you.