用Jetspeed的时候,接触过一些:)

解决方案 »

  1.   

    我在调试时为什么newapp里的库不能能通过build.xml正常安装?
      

  2.   

    http://www.cn-java.com/target/news.php?news_id=2366
      

  3.   

    <--------------高手看过来! 能不能搞定这个?
    http://community.csdn.net/Expert/topic/3472/3472337.xml?temp=.2961847
      

  4.   


    C:\Documents and Settings\Administrator>cd C:\tdk\webapps\newapp\WEB-INF\buildC:\tdk\webapps\newapp\WEB-INF\build>ant init
    Buildfile: build.xmlinit:init-tasks:set-os:set-windowsME:set-windows2000:set-windowsNT:set-windows98:set-unix:unix-ext:windows-ext:ext:
         [echo] Platform = windows
         [echo] Extension = batcreate-database:
         [echo] create-database.bat
    [torque-create-db] C:\tdk\webapps\newapp\WEB-INF\src\sql\create-database.bat     [exec] C:\tdk\webapps\newapp\WEB-INF\build>REM - Batch file to automaticall
    y create     [exec] C:\tdk\webapps\newapp\WEB-INF\build>REM - MySQL database from Window
    s machines :-)     [exec] C:\tdk\webapps\newapp\WEB-INF\build>mysqladmin -u 123 -p123 -h 127.0
    .0.1 --force drop newapp
         [exec] mysqladmin: DROP DATABASE newapp failed;
         [exec] error: 'Can't drop database 'newapp'. Database doesn't exist'     [exec] C:\tdk\webapps\newapp\WEB-INF\build>mysqladmin -u 123 -p123 -h 127.0
    .0.1 --force create newappinit-tasks:turbine-sql:
         [echo] +------------------------------------------+
         [echo] |                                          |
         [echo] | Generating SQL for Turbine base system!  |
         [echo] |                                          |
         [echo] +------------------------------------------+
    [torque-sql] C:\tdk\webapps\newapp\WEB-INF\src\sql\turbine-schema.sqlBUILD FAILED
    C:\tdk\webapps\newapp\WEB-INF\build\build.xml:78: java.lang.VerifyError: (class:
     org/apache/turbine/torque/engine/database/transform/XmlToAppData, method: parse
    File signature: (Ljava/lang/String;)Lorg/apache/turbine/torque/engine/database/m
    odel/AppData;) Incompatible object argument for function callTotal time: 12 seconds
      

  5.   

    以上是调试时
    newapp里的库不能能通过build.xml正常安装的报错情况
      

  6.   

    可能是你的数据库配置有问题
    看看Torque有没有正确配置给你个网址,自己看一下:)
    http://www.ingrid.org/jajakarta/turbine/en/turbine/torque的例子不错。
    http://www.ingrid.org/jajakarta/turbine/en/turbine/torque/tutorial.html
      

  7.   

    TDK你调试过吗,是什么原因啦,怎么解决?
      

  8.   

    TDK调试过啊,我的调试通了。
      

  9.   

    太好了,你是用的什么版本的TDK,用的什么版本的J2SDK?
    怎么设置的,我们可以在MSN上聊吗,我的是
    [email protected]
      

  10.   

    这是build.propertiestdk.home = C:/java/tdk-2.3_01
    tdk.turbineVersion = 2
    tdk.project = newapp
    target.package = org.mycompany.newapp
    target.directory = org/mycompany/newapp
     
    #
    # this is an example for a mysql connection
    # you should setup your own db props
    #
    target.database = mysql# mysql configs - change for your database
    database.driver = org.gjt.mm.mysql.Driver
     
    createDatabaseUrl = jdbc:mysql://localhost/
    buildDatabaseUrl = jdbc:mysql://localhost/${tdk.project}
    databaseUrl = jdbc:mysql://localhost/${tdk.project}
     
    databaseUser = root
    databasePassword = mysql
    databaseHost = localhost另外,请确认你的MYSQL服务已启动
      

  11.   

    我现在的报错是
    BUILD FAILED
    C:\tdk2\webapps\newapp\WEB-INF\build\build.xml:73: java.lang.VerifyError: (class
    : org/apache/turbine/torque/engine/database/transform/XmlToAppData, method: parseFile signature: (Ljava/lang/String;)Lorg/apache/turbine/torque/engine/database/model/AppData;) Incompatible object argument for function call
      

  12.   

    可以在MSN上聊吗,方便一点,
    可以传你用的TDK给我测试一下吗,是什么版本的?
      

  13.   

    可以在MSN上聊吗,方便一点,
    可以传你用的TDK给我测试一下吗,是什么版本的?