aspose file tools*
The moose likes JBoss/WildFly and the fly likes Problem with JBoss build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Problem with JBoss build" Watch "Problem with JBoss build" New topic
Author

Problem with JBoss build

Jan Novak
Greenhorn

Joined: Jul 14, 2011
Posts: 3
Hi,

I'm a very beginner with JBoss.

I downloaded JBoss distribution from http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_4_0_3/ (using tortoise svn) and then I started build from \build\build.bat. Command line says:


D:\JBoss\server\src\main\org\jboss\ejb\EjbModule.java:77: warning: unmappable character for encoding
Cp1250
* @author <a href="mailto:rickard.oberg@telkel.com">Rickard ├?┬ľberg</a>
^
D:\JBoss\server\src\main\org\jboss\ejb\EnterpriseContext.java:39: warning: [deprecation] java.securi
ty.Identity in java.security has been deprecated
import java.security.Identity;
^
D:\JBoss\server\src\main\org\jboss\deployment\EARDeployer.java:235: warning: [deprecation] toURL() i
n java.io.File has been deprecated
sub = new DeploymentInfo(f.toURL(), di, getServer());
^
D:\JBoss\server\src\main\org\jboss\ejb\plugins\cmp\jdbc\ByteArrayBlob.java:31: org.jboss.ejb.plugins
.cmp.jdbc.ByteArrayBlob is not abstract and does not override abstract method getBinaryStream(long,l
ong) in java.sql.Blob
public final class ByteArrayBlob implements Blob
^
D:\JBoss\server\src\main\org\jboss\security\plugins\NoAccessSecurityManager.java:54: warning: [depre
cation] getActiveSubject() in org.jboss.security.AuthenticationManager has been deprecated
public Subject getActiveSubject()
^
D:\JBoss\server\src\main\org\jboss\security\plugins\NullSecurityManager.java:55: warning: [deprecati
on] getActiveSubject() in org.jboss.security.AuthenticationManager has been deprecated
public Subject getActiveSubject()
^
D:\JBoss\server\src\main\org\jboss\verifier\Main.java:76: warning: [deprecation] toURL() in java.io.
File has been deprecated
URL url = new File(args[0]).toURL();
^
D:\JBoss\server\src\main\org\jboss\web\AbstractWebContainer.java:308: warning: [deprecation] toURL()
in java.io.File has been deprecated
di.localUrl = expWarFile.toURL();
^
1 error
7 warnings

Can anybody help me?

I doubt I have to repair org.jboss.ejb.plugins.cmp.jdbc.ByteArrayBlob manually. Where is a mistake?

Thaks a lot for a help.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Jan, welcome to Java Ranch!

1) Why did you using 4.0.3? That version is ancient. You should be using 6.0 or 7.0.

2) Why are you trying to build from source? And why did you download the source from svn instead of grabbing the source bundle on the downloads page?

3) Which JDK are you using? I don't recall if you need JDK 1.4.2 or JDK 5 to build it.


JBoss In Action
Jan Novak
Greenhorn

Joined: Jul 14, 2011
Posts: 3
Hi, actually I have to use just this version as it's a part of the test task. I know, this version it's pretty old, but unfortunately need to use it and can't get over the error.
Jan Novak
Greenhorn

Joined: Jul 14, 2011
Posts: 3
Peter Johnson wrote:Jan, welcome to Java Ranch!

1) Why did you using 4.0.3? That version is ancient. You should be using 6.0 or 7.0.

2) Why are you trying to build from source? And why did you download the source from svn instead of grabbing the source bundle on the downloads page?

3) Which JDK are you using? I don't recall if you need JDK 1.4.2 or JDK 5 to build it.


I need to use JDK 5.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

I am going to suggest that try building it with 1.4.2. If that works, then try running that build with 1.5.

And you still haven't told me why you need to build it...
Petr Dalsi
Greenhorn

Joined: Sep 19, 2011
Posts: 1
Switch JDK 6 to JDK 5 was very helpful thing for me. (eg. download from oracle archiv http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase5-419410.html#jdk-1.5.0_22-oth-JPR ).
By the way changing JVM on Ubuntu 10.10 was an horror as Ubuntu forces me to use Open JDK 6 any way. But when i found that there is symlink structure usr/bin/java -> /etc/alternatives/java_xx -> usr/lib/jvm/some_jdk/jre/bin/java, I have got a clue and just by manipulate with symlink in /etc/alternatives i was finally able to resolve the bug and task was being ready.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with JBoss build