benq,您好,有个问题要请教一下:

05-07-05 zzcopy111
benq,您好:

现在DEMO程序已经可以运行了,但是还有一个问题要请教一下.

就是我用的是

在dist目录下的jdonframework.jar(用反编译工具没用)驱动包.是没有任何问题的.

但是我把SRC下的文件编译成CLASS后自己打包成jdonframework.jar(可以用反编译工具编译)后.

放在JBOSS下用,就有下面的异常.好象是类中有问题.

用比较工具比较了这两包中的文件,发现有些不太一样.希望您能给出可以编译运行的原文件.方便我们

可以调试和学习这个优秀的框架.谢谢

随便想问一下,有什么工具和方法可以阻止别人反编译.

javax.servlet.ServletException

org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)

javax.servlet.http.HttpServlet.service(HttpServlet.java:697)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

com.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)

root cause

java.lang.NullPointerException

com.jdon.strutsutil.ModelListAction.getModelList(ModelListAction.java:156)

com.jdon.strutsutil.ModelListAction.execute(ModelListAction.java:93)

org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)

org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)

javax.servlet.http.HttpServlet.service(HttpServlet.java:697)

javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

com.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0.26 logs.

banq
2005-07-05 21:16
我已经提供了完全源码啊,在这里下载:

http://sourceforge.net/projects/jdon/

你使用项目中的build.xml编译成jdonFramework.xml就可以,注意修改一下build.xml中j2ee的库目录和部署目录即可。

注意以前版本是jdonframework.xml 现在是jdonFramework.xml有个大小写问题,你注意不要有两个jdonFramework.xml在J2EE的库目录中。

zzcopy111
2005-07-06 11:51

benq,您好:

在JB中运行build.xml时报错.

我只改了build.xml中j2ee的库目录

<property name="j2eelib.dir" value="C:/jboss3/jboss-3.2.5/server/default/lib" />

改为我机子的路径了,其他的都没有改!!

-------------

Ant

StdOut

Buildfile: build.xml

clean:

[delete] Deleting directory F:\JdonFramework\classes

[delete] Deleting directory F:\JdonFramework\dist

init:

compile:

[mkdir] Created dir: F:\JdonFramework\classes

[javac] Since compiler setting isn't classic or modern,ignoring fork setting.

[javac] Compiling 192 source files to F:\JdonFramework\classes

[javac] Since compiler setting isn't classic or modern,ignoring fork setting.

StdErr

BUILD FAILED

"build.xml": file:F:/JdonFramework/build.xml:55: Error running bmj compiler at line 55

Total time: 4 seconds

Error executing Ant: E:/JBuilderX/jdk1.4/bin/java -Dbuild.compiler=com.borland.jbuilder.ant.compiler.Bmj -classpath E:\JBuilderX\lib\javac.jar;E:\JBuilderX\lib\jbuilder.jar;E:\JBuilderX\jdk1.4\demo\jfc\Java2D\Java2Demo.jar;E:\JBuilderX\jdk1.4\demo\plugin\jfc\Java2D\Java2Demo.jar;E:\JBuilderX\jdk1.4\jre\javaws\javaws.jar;E:\JBuilderX\jdk1.4\jre\lib\charsets.jar;E:\JBuilderX\jdk1.4\jre\lib\jce.jar;E:\JBuilderX\jdk1.4\jre\lib\jsse.jar;E:\JBuilderX\jdk1.4\jre\lib\plugin.jar;E:\JBuilderX\jdk1.4\jre\lib\rt.jar;E:\JBuilderX\jdk1.4\jre\lib\sunrsasign.jar;E:\JBuilderX\jdk1.4\jre\lib\ext\dnsns.jar;E:\JBuilderX\jdk1.4\jre\lib\ext\ldapsec.jar;E:\JBuilderX\jdk1.4\jre\lib\ext\localedata.jar;E:\JBuilderX\jdk1.4\jre\lib\ext\sunjce_provider.jar;E:\JBuilderX\jdk1.4\jre\lib\im\indicim.jar;E:\JBuilderX\jdk1.4\jre\lib\im\thaiim.jar;E:\JBuilderX\jdk1.4\lib\dt.jar;E:\JBuilderX\jdk1.4\lib\htmlconverter.jar;E:\JBuilderX\jdk1.4\lib\tools.jar;E:\JBuilderX\lib\ant.jar;E:\JBuilderX\lib\optional.jar;E:\JBuilderX\lib\xercesImpl.jar;E:\JBuilderX\lib\xmlParserAPIs.jar org.apache.tools.ant.Main -buildfile build.xml -inputhandler com.borland.jbuilder.build.AntBuildTask$AntInputHandler

zzcopy111
2005-07-06 12:01
我还是怀疑是源代码中的有些文件和JdonFramework.jar中的不太一样.

我用源代码中的编译打包后就报下面异常.用现成的JdonFramework.jar就可以运行.

1:29:12,122 ERROR [Engine] StandardWrapperValve[action]: Servlet.service() for

ervlet action threw exception

ava.lang.NullPointerException

at com.jdon.strutsutil.ModelListAction.getModelList(ModelListAction.java

156)

at com.jdon.strutsutil.ModelListAction.execute(ModelListAction.java:93)

at org.apache.struts.action.RequestProcessor.processActionPerform(Reques

Processor.java:421)

at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja

a:226)

at org.apache.struts.action.ActionServlet.process(ActionServlet.java:116

)

at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

cationFilterChain.java:237)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

lterChain.java:157)

at com.jdon.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodin

Filter.java:92)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

cationFilterChain.java:186)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF

lterChain.java:157)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV

lve.java:214)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

Context.java:104)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

:520)

at org.apache.catalina.core.StandardContextValve.invokeInternal(Standard

ontextValve.java:198)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV

lve.java:152)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

Context.java:104)

at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit

AssociationValve.java:72)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

Context.java:102)

at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecur

tyMgrRealm.java:275)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

Context.java:102)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

:520)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j

va:137)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

Context.java:104)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j

va:117)

at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValv

Context.java:102)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav

banq
2005-07-07 09:42
你贴的log只是表明错误,你要打开jboss/server/default/log/server.log,搜索" ERROR ",找到第一个错误,也就是导致这个错误根本原因。

你既然用Jbuilder就直接编译方便一些,使用Ant需要一些配置,看样子好像你的Jbuilder的ant配置可能有一些问题。

猜你喜欢
2Go 1 2 下一页