Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to build V0.4 #1

Closed
GoogleCodeExporter opened this issue Feb 4, 2016 · 7 comments
Closed

Error trying to build V0.4 #1

GoogleCodeExporter opened this issue Feb 4, 2016 · 7 comments

Comments

@GoogleCodeExporter
Copy link

trying to do a ant war, get this error:
C:\asb-myads\build.xml:45: taskdef A class needed by class 
org.apache.tools.ant.tas
defs.optional.ssh.SSHExec cannot be found: com/jcraft/jsch/Logger
 using the classloader AntClassLoader[C:\asb-myads\lib\optional\jsch-0.1.43.jar]



Original issue reported on code.google.com by Ola.Gje...@gmail.com on 11 Jan 2011 at 2:26

@GoogleCodeExporter
Copy link
Author

We did the last release in haste and didn't check installation on Windows. 
Basically ant is trying to update/redeploy database when building the war file.
You should disable that because obviously you are installing the database using 
our installation guide that is through MySQL console.

So:
edit build.xml:
1) comment or remove
<!--<taskdef name="SSHExec" 
classname="org.apache.tools.ant.taskdefs.optional.ssh.SSHExec"
             classpath="${lib.dir.optional}/jsch-0.1.43.jar"/>-->

2) comment or remove
<target name="redeploy.db">
<SSHExec host="localhost"
                 trust="yes"
                 failonerror="false"
                 timeout="30000"
                 username="${ssh.username}"
                 password="${ssh.password}"
                 command="cd ${checkout.path}/db;bash recreatedb.sh;bash updatedb.sh myads1;bash updatedb.sh myads2;bash updatedb.sh myads3;"/>
</target>

3) remove any mentioning of redeploy.db from build.xml
You can see it is used in:
<target name="war" depends="redeploy.db,clean,jar,flex.swf,flex.resources,test">
so change it to:
<target name="war" depends="clean,jar,flex.swf,flex.resources">
- also remove 'task' from dependencies, you don't need it.

I will make sure our current release 0.5 will not contain these dependencies. 

Original comment by adserver...@gmail.com on 11 Jan 2011 at 3:13

@GoogleCodeExporter
Copy link
Author

*this there an easier way to get this working for a website that is not hosted
on my personal computer, but rather www.my website.com ???

BUILD FAILED ALSO...

after reading the google docs, and trying to build as they stated in their 
installation docs, nothing was happening, after googling the ERROR we found this
forum and soultion to the problem FOUND HERE
http://code.google.com/p/asb-myads/issues/detail?id=1

But just when you think the ANT WAR is being build, there remains another error.
SEE BLOW




================================================================================
=

C:\myads>ant war
Buildfile: C:\myads\build.xml

war:

update.version:

clean:

clean:

init:
     [echo] Build myads-0.0.1 (2011-02-06 05:38:05)

compile:
    [javac] C:\myads\build.xml:104: warning: 'includeantruntime' was not set, de
faulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 96 source files to C:\myads\out\production\server
    [javac] Since fork is false, ignoring memoryMaximumSize setting.
    [javac] Note: C:\myads\server\src\main\com\adserversoft\flexfuse\server\api\
BaseEntity.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 15 files to C:\myads\out\production\server
     [copy] Copying 19 files to C:\myads\out\production\server

copy-resources:
     [copy] Copying 19 files to C:\myads\out\production\server

jar:
      [jar] Building jar: C:\myads\lib\core\myads.jar

flex.clean:

flex.swf:
     [java] Unable to access jarfile C:\myads\Program Files♀lexsdk\lib\mxmlc.jar


BUILD FAILED
C:\myads\build.xml:355: The following error occurred while executing this line:
C:\myads\build.xml:205: Java returned: 1

Total time: 43 seconds

C:\myads>

=============================================================================


Original comment by Mr.Canad...@gmail.com on 6 Feb 2011 at 11:43

@GoogleCodeExporter
Copy link
Author

Pay attention to the following line:
[java] Unable to access jarfile C:\myads\Program Files♀lexsdk\lib\mxmlc.jar

You can't build the project without properly setting up Flex SDK. 

Original comment by adserver...@gmail.com on 30 Mar 2011 at 12:33

@GoogleCodeExporter
Copy link
Author

Solution:

Use forward slash. Eg. FLEX_HOME=D:/flexsdk35 
Using back slack in the path results in Ant's trying to find mxmlc.jar relative 
to the project's root.

Original comment by adserver...@gmail.com on 31 Mar 2011 at 11:34

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Issue 3 has been merged into this issue.

Original comment by adserver...@gmail.com on 31 Mar 2011 at 11:35

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

Hi,

I am able to build the war successfully. But once when i deploy the generated 
war in jboss it show the below error in console 

14:33:33,034 ERROR [STDERR] 14 Mar, 2012 2:33:33 PM 
com.adserversoft.flexfuse.server.ui.SettingsService getSettings
SEVERE: Could not open JDBC Connection for transaction; nested exception is 
java.sql.SQLException: Access denied for user 'banner'@'localhost' (using 
password: YES)

It will work fine, if the DB myads1..2..3 created in DB, But if i delete the DB 
and deploy the new war from eclipse...the UI show the internal error. Actually 
it should prompt window, where i have to put my DB credentials.....
I am working on it.....

Let me know if you know the solution..where i have to set the JDBC 
configuration.

Thanks and Regards,

Original comment by veeranna...@gmail.com on 14 Mar 2012 at 9:26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant