Return-Path: X-Original-To: apmail-jspwiki-dev-archive@www.apache.org Delivered-To: apmail-jspwiki-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 814A5107E1 for ; Tue, 28 Jan 2014 06:10:04 +0000 (UTC) Received: (qmail 58244 invoked by uid 500); 28 Jan 2014 06:10:04 -0000 Delivered-To: apmail-jspwiki-dev-archive@jspwiki.apache.org Received: (qmail 58134 invoked by uid 500); 28 Jan 2014 06:09:57 -0000 Mailing-List: contact dev-help@jspwiki.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jspwiki.apache.org Delivered-To: mailing list dev@jspwiki.apache.org Received: (qmail 58126 invoked by uid 99); 28 Jan 2014 06:09:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jan 2014 06:09:55 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of zhangxiaojunhust@gmail.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-wg0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jan 2014 06:09:49 +0000 Received: by mail-wg0-f48.google.com with SMTP id x13so7003504wgg.27 for ; Mon, 27 Jan 2014 22:09:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=v9VG+5sapmbhyEAXgv3bqmZAq8N0nFjXmAKaN7j3Phs=; b=hb2xZC1Mm5pN4WiX4+77kOWpTBSLwsDnwlWhkhGYtv2yl3sPP5z7eHrAJMMPi/bCHi J34GfdydgJuaMNFdWCAF2uyw6pu6BacSclVPa+6d6M3lMjolHvMKTyqwvuBL5K8UaWR+ CbVVliyu7KPg4LyjcW7mvcjgec25u5Z+j8SHpnPcyorEvN3ALcCyQnyLnj59hHpriJuM mAkIi4yZ73HBB1AEkoTKFK0RhrTSJ5AEEETTfTXBSo2h8GHV2Psh2FnbDJwCJgZ9veVD HrlOPuZumjQKc4e7IMy5FnURazPIK1E5Q8X2Kj1/vD3VjFgaA/q1uaj9o0QPlgKTKFOJ xccQ== MIME-Version: 1.0 X-Received: by 10.195.13.164 with SMTP id ez4mr22747658wjd.11.1390889368250; Mon, 27 Jan 2014 22:09:28 -0800 (PST) Received: by 10.180.103.163 with HTTP; Mon, 27 Jan 2014 22:09:28 -0800 (PST) In-Reply-To: References: Date: Tue, 28 Jan 2014 14:09:28 +0800 Message-ID: Subject: Re: problem when run jspwiki from source code From: =?GB2312?B?1cXQor78?= To: dev@jspwiki.apache.org Content-Type: multipart/alternative; boundary=047d7bb04f68b76c7b04f101aa24 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bb04f68b76c7b04f101aa24 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Hi Juan & Harry, Thanks for you reply. Think I have found the root cause, I fixed it by these steps: 1. copy the file "jspwiki.tld" from \jspwiki-war\src\main\resources\META-INF to \jspwiki-war\src\main\webapp\WEB-INF\tld 2. add below config in web.xml http://jspwiki.apache.org/tags /WEB-INF/tld/jspwiki.tld 3. start jspwiki with run-jetty-run in Eclipse I noticed that, when build jspwiki with mvn:package, the tld file is included in war file. But I can not find when maven does this in pom.xml. So I think I need to study maven further. By the way, compared with mvnDebug, I really think run-jetty-run is good for debug and insert breakpoints to help me read source code, because it's no need to build war first. Thank you both. I'm getting familiar with JSPWiki these days. 2014-01-28 Juan Pablo Santos Rodr=A8=AAguez > Hi Xiaojun, > > what version of jetty are you using? Seems to me that default version of > jetty in run-jetty-run is 6.x, which is servlet 2.4 and we need at least = a > servlet 2.5 container. Jetty 7 or 8 should be fine, if I recall correctly= . > > Also, from the war module you can issue a "mvnDebug tomcat7:run-war" > command to start a tomcat7 instance at port 8080 Under Eclipse you can > attach then a debugger then to that process as a remote java application > > > hth, > juan pablo > > > On Mon, Jan 27, 2014 at 6:25 PM, Harry Metske >wrote: > > > I have tried to give an answer to that question on our FAQ page: > > https://jspwiki-wiki.apache.org/Wiki.jsp?page=3DFAQ > > > > regards > > Harry > > > > > > > > On 27 January 2014 09:46, =D5=C5=D0=A2=BE=FC wrote: > > > > > Hi Juan, > > > > > > One more question: How do you run jspwiki to debug? > > > I use run-jetty-run since it's good for debug. > > > > > > > > > 2014-01-27 =D5=C5=D0=A2=BE=FC > > > > > > Hi Juan, > > >> > > >> Thanks for you detailed reply. > > >> > > >> I think I can help improve jspwiki by these: > > >> 1. new feature & bug fix. I find some bugs in jspwiki 2.9.1, and som= e > > >> features maybe useful. Will discuss when I'm familiar with jspwiki. > > >> 2. documentation & translation. Maybe I can translate documents to > > >> Chinese so that more Chinese user can benefit. > > >> > > >> For the problem I encountered, below is detail info: > > >> > > >> I try to run jspwiki from Eclipse with run-jetty-run plugin. > > >> [image: =C4=DA=C7=B6=CD=BC=C6=AC 2] > > >> > > >> And the stack trace: > > >> > > >> 2014-01-27 11:27:00.276:WARN::/wiki/ > > >> org.apache.jasper.JasperException: /Wiki.jsp(26,62) PWC6188: The > > absolute > > >> uri: http://jspwiki.apache.org/tags cannot be resolved in either > > web.xml > > >> or the jar files deployed with this application > > >> at > > >> > > > org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandl= er.java:73) > > >> at > > >> > > > org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:= 359) > > >> at > > >> > > > org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:= 153) > > >> at > > >> > > > org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibr= aryInfoImpl.java:417) > > >> at > > >> > > > org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.j= ava:222) > > >> at > > org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:482) > > >> at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:562= ) > > >> at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1626) > > >> at org.apache.jasper.compiler.Parser.parse(Parser.java:165) > > >> at > > >> > > > org.apache.jasper.compiler.ParserController.doParse(ParserController.java= :223) > > >> at > > >> > > > org.apache.jasper.compiler.ParserController.parse(ParserController.java:1= 24) > > >> at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:18= 4) > > >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:409) > > >> at > > >> > > > org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.jav= a:592) > > >> at > > >> > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.jav= a:344) > > >> at > > >> > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:470) > > >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:364= ) > > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > > >> at > > >> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:51= 1) > > >> at > > >> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) > > >> at > > >> > > > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:21= 6) > > >> at > > >> > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > > >> at > > >> > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > > >> at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > > >> at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327= ) > > >> at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) > > >> at > > >> > org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:503) > > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) > > >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) > > >> at > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) > > >> at > > >> > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401) > > >> at > > >> > > > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:21= 6) > > >> at > > >> > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > > >> at > > >> > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) > > >> at > > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450) > > >> at > > >> > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > > >> at org.mortbay.jetty.Server.handle(Server.java:326) > > >> at > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > > >> at > > >> > > > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnec= tion.java:928) > > >> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) > > >> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) > > >> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > > >> at > > >> > > > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:4= 10) > > >> at > > >> > > > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:= 582) > > >> > > >> > > >> 2014-01-26 Juan Pablo Santos Rodr=A8=AAguez > > >> > > >> Hi Xiaojun and welcome! > > >>> > > >>> On Sun, Jan 26, 2014 at 4:21 PM, =D5=C5=D0=A2=BE=FC > > wrote: > > >>> > > >>> > Dear All, > > >>> > > > >>> > Don't know if this is the suitable place to ask the question. If > not, > > >>> > please kindly remind me. > > >>> > > > >>> > I'm xiaojun from China, a user of jspwiki, and found I'm interest= ed > > in > > >>> the > > >>> > development of it. So these days I'm studying Maven/jspwiki sourc= e > > >>> code, so > > >>> > that I can help improve jspwiki. > > >>> > > > >>> > But after checked out the source code and try to run it on my loc= al > > >>> PC, I > > >>> > get this error: > > >>> > > > >>> > Problem accessing /wiki/. Reason: > > >>> > > > >>> > /Wiki.jsp(26,62) PWC6188: The absolute uri: > > >>> > http://jspwiki.apache.org/tags cannot be resolved in either > web.xml > > or > > >>> > the jar files deployed with this application. > > >>> > > > >>> > Maybe this is a simple question and just need to replace the url > with > > >>> > a correct one? > > >>> > > > >>> > > >>> I think we'll need some more info to troubleshoot what's happening > > there. > > >>> How did you tried to run the application? i.e.: inside your ide, or > > >>> compiling and dropping it to your webapp container (which one, > tomcat, > > >>> jetty, etc), or via maven execution,..? > > >>> > > >>> > > >>> > > > >>> > > > >>> > Because I'm new to open source project, I'll appreciate for your > help > > >>> > if anyone can provide tips on these questions: > > >>> > > > >>> > 1. What's the steps to get involved with your guys as a developme= nt > > >>> > group? I have already followed the mail list. > > >>> > > > >>> > > >>> see > > >>> > > https://jspwiki-wiki.apache.org/Wiki.jsp?page=3DGetting%20InvolvedThere= 's > > >>> a lot of things we need help into! > > >>> > > >>> > > >>> > > > >>> > 2. Do you have some design document or requirement document of > > jspwiki? > > >>> > > > >>> > > >>> We mantain https://jspwiki-wiki.apache.org, (you may want to start > > here > > >>> https://jspwiki-wiki.apache.org/Wiki.jsp?page=3DJSPWikiDocumentatio= n) > > but > > >>> it's a work in progress, there's still a big bunch of things to be > > >>> documented. In case of doubt ask in this mailing list and we'll try > to > > >>> help > > >>> you as best as we can. Of course, you can create an account there a= nd > > >>> help > > >>> with missing documentation as you learn jspwiki's internals > > >>> > > >>> > > >>> > > > >>> > 3. Do I need further authorization if I want to check in my code= ? > > >>> > > > >>> > > >>> Contributions are managed via our JIRA issue tracker, at > > >>> https://issues.apache.org/jira/browse/JSPWIKI we'll pick up them > from > > >>> there > > >>> and put them into trunk. Also, feel free to open, work or comment o= n > > open > > >>> issues. > > >>> > > >>> Eventually, you can become a committer and do the check in yourself > > >>> > > >>> > > >>> > > > >>> > > > >>> > -- > > >>> > =A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1= =AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA > > >>> > Zhang Xiaojun > > >>> > zhangxiaojunhust@gmail.com > > >>> > QQ : 305536154 > > >>> > > > >>> > > >>> > > >>> HTH, > > >>> juan pablo > > >>> > > >> > > >> > > >> > > >> -- > > >> =A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA= =A1=AA=A1=AA=A1=AA=A1=AA=A1=AA > > >> =D5=C5=D0=A2=BE=FC Zhang Xiaojun > > >> zhangxiaojunhust@gmail.com > > >> QQ : 305536154 > > >> > > > > > > > > > > > > -- > > > =A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1= =AA=A1=AA=A1=AA=A1=AA=A1=AA > > > =D5=C5=D0=A2=BE=FC Zhang Xiaojun > > > zhangxiaojunhust@gmail.com > > > QQ : 305536154 > > > > > > --=20 =A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1=AA=A1= =AA=A1=AA=A1=AA=A1=AA =D5=C5=D0=A2=BE=FC Zhang Xiaojun zhangxiaojunhust@gmail.com QQ : 305536154 --047d7bb04f68b76c7b04f101aa24--