I'm getting this error whenever a user attempts to connect to an ANT server...
Exception EAccessViolation raised in ReadRequest: Access violation at address 00071F40 in module 'ANTserver.exe'. Read of address 00000000
I'm getting this error whenever a user attempts to connect to an ANT server...
Exception EAccessViolation raised in ReadRequest: Access violation at address 00071F40 in module 'ANTserver.exe'. Read of address 00000000
My system: Windows 7 Ant Version: 1.8.2 JDK: 1.6.27 x64
Sorry Im starting to work with ant and currently trying to install it properly.
When I type in cmd this command:
ant -f fetch.xml -Ddest=system
to get the library dependencies, according official documentation I get following errors:
jspc:
[artifact:dependencies] Downloading: tomcat/jasper-compiler/4.1.36/jasper-compil
er-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository remote
(http://repo1.maven.org/maven2/)
[artifact:dependencies] Downloading: tomcat/jasper-compiler/4.1.36/jasper-compil
er-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[artifact:dependencies] Downloading: tomcat/jasper-runtime/4.1.36/jasper-runtime
-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository remote
(http://repo1.maven.org/maven2/)
[artifact:dependencies] Downloading: tomcat/jasper-runtime/4.1.36/jasper-runtime
-4.1.36.pom
[artifact:dependencies] [WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
jai:
[artifact:dependencies] Downloading: javax/media/jai-core/1.1.3/jai-core-1.1.3.p
om
[artifact:dependencies] An error has occurred while processing the Maven artifac
t tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Unable to get dependency inf
ormation: Unable to read the metadata file for artifact 'javax.media:jai-core:ja
r': Error getting POM for 'javax.media:jai-core' from the repository: Error tran
sferring file
[artifact:dependencies] javax.media:jai-core:pom:1.1.3
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] remote (http://repository.jboss.org/maven2),
[artifact:dependencies] central (http://repo1.maven.org/maven2)
[artifact:dependencies]
[artifact:dependencies] javax.media:jai-core:jar:1.1.3
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] remote (http://repository.jboss.org/maven2),
[artifact:dependencies] central (http://repo1.maven.org/maven2)
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) unspecified:unspecified:jar:0.0
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies] Server returned HTTP response code: 403 for URL: http://
repository.jboss.org/maven2/javax/media/jai-core/1.1.3/jai-core-1.1.3.pom
[artifact:dependencies]
BUILD FAILED
D:\work\ant_182\fetch.xml:309: The following error occurred while executing this
line:
D:\work\ant_182\fetch.xml:116: Unable to resolve artifact: Unable to get depende
ncy information: Unable to read the metadata file for artifact 'javax.media:jai-
core:jar': Error getting POM for 'javax.media:jai-core' from the repository: Err
or transferring file
javax.media:jai-core:pom:1.1.3
from the specified remote repositories:
remote (http://repository.jboss.org/maven2),
central (http://repo1.maven.org/maven2)
javax.media:jai-core:jar:1.1.3
from the specified remote repositories:
remote (http://repository.jboss.org/maven2),
central (http://repo1.maven.org/maven2)
Path to dependency:
1) unspecified:unspecified:jar:0.0
Total time: 4 seconds
I tried to google and cant find any suitable solution, except that jasper-runtime -4.1.36.pom is not available in repository. Can anybody point me out how to resolve this?
I've been able to generate sample reports in Jasper Reports tied with ANT and JDK, my question is, when I do the "ant pdf" command, it builds the report successfully, but where does it store it to?
Thank you.
I am trying to reboot my tomcat version 5 on a centos server from my dev box. I can login as a normal user(not root) but I need to be able to reboot the service. Is there a config file that I can modify or a group my my user needs to be in to be able to restart the tomcat5 service?
EDIT: I will be running this task in Ant, and sudo will not work for this as Ant does not give you a virtual terminal.
EDIT: here is the error when I try to restart tomcat as root via ant.
ssh [email protected] /sbin/service tomcat5 restart
restartTomcat:
[exec] Pseudo-terminal will not be allocated because stdin is not a terminal.
This is running as root,which has ssh privileges. The command as is works fine.
EDIT
vi /etc/sudoers (EDIT: please use visudo instead)
comment out: #Default requiretty
This fixes the tty item. Now it works as the normal user.
Here is my ant target
<target name="restartTomcat">
<exec executable="/usr/bin/ssh">
<arg line="[email protected] sudo /sbin/service tomcat5 restart"/>
</exec>
</target>