How to create console application
by Ranjith
Hi all,
I`m working on project called unicorn, Follow this link
http://code.w3.org/unicorn/wiki/Documentation/Install this is how I execute
unicorn on http://localhost:8080/.
Instead of executing unicorn on a web browser I want to execute it as
console version or making it as console application.
I want to write a code which allows me to access main class of unicorn from
the command line or How to interact with the tomcat from command line.
I also tried this and got errors,
goten@MetalBig:/media/Netpad/unicorn/unicorn$ ant retrieve generate_observer
generate_tasklist default_conf jar
Buildfile: build.xml
retrieve:
[ivy:retrieve] :: Ivy 2.2.x-local-20100818095649 - 20100818095649 ::
http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: url =
jar:file:/usr/share/ant/lib/ivy.jar!/org/apache/ivy/core/settings/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.w3c#unicorn;working@MetalBig
[ivy:retrieve] confs: [default]
[ivy:retrieve] found javax.servlet#servlet-api;2.5 in public
[ivy:retrieve] found commons-collections#commons-collections;3.2.1 in
public
[ivy:retrieve] found commons-fileupload#commons-fileupload;1.2.1 in public
[ivy:retrieve] found portlet-api#portlet-api;1.0 in public
[ivy:retrieve] found commons-io#commons-io;1.4 in public
[ivy:retrieve] found commons-lang#commons-lang;2.5 in public
[ivy:retrieve] found commons-logging#commons-logging;1.1.1 in public
[ivy:retrieve] found log4j#log4j;1.2.12 in public
[ivy:retrieve] found logkit#logkit;1.0.1 in public
[ivy:retrieve] found avalon-framework#avalon-framework;4.1.3 in public
[ivy:retrieve] found javax.mail#mail;1.4.1 in public
[ivy:retrieve] found javax.activation#activation;1.1 in public
[ivy:retrieve] found com.yahoo.platform.yui#yuicompressor;2.3.6 in public
[ivy:retrieve] found org.apache.velocity#velocity;1.6.4 in public
[ivy:retrieve] found oro#oro;2.0.8 in public
[ivy:retrieve] found jdom#jdom;1.0 in public
[ivy:retrieve] found logkit#logkit;2.0 in public
[ivy:retrieve] found ant#ant;1.6 in public
[ivy:retrieve] found werken-xpath#werken-xpath;0.9.4 in public
[ivy:retrieve] found org.apache.velocity#velocity-tools;2.0 in public
[ivy:retrieve] found commons-beanutils#commons-beanutils;1.7.0 in public
[ivy:retrieve] found commons-digester#commons-digester;1.8 in public
[ivy:retrieve] found commons-chain#commons-chain;1.1 in public
[ivy:retrieve] found commons-validator#commons-validator;1.3.1 in public
[ivy:retrieve] found dom4j#dom4j;1.1 in public
[ivy:retrieve] found sslext#sslext;1.2-0 in public
[ivy:retrieve] found org.apache.struts#struts-core;1.3.8 in public
[ivy:retrieve] found antlr#antlr;2.7.2 in public
[ivy:retrieve] found org.apache.struts#struts-taglib;1.3.8 in public
[ivy:retrieve] found org.apache.struts#struts-tiles;1.3.8 in public
[ivy:retrieve] found org.apache.xmlbeans#xmlbeans;2.4.0 in public
[ivy:retrieve] found stax#stax-api;1.0.1 in public
[ivy:retrieve] :: resolution report :: resolve 1826ms :: artifacts dl 173ms
[ivy:retrieve] :: evicted modules:
[ivy:retrieve] javax.servlet#servlet-api;2.4 by
[javax.servlet#servlet-api;2.5] in [default]
[ivy:retrieve] commons-io#commons-io;1.3.2 by [commons-io#commons-io;1.4]
in [default]
[ivy:retrieve] logkit#logkit;1.0.1 by [logkit#logkit;2.0] in [default]
[ivy:retrieve] javax.servlet#servlet-api;2.3 by
[javax.servlet#servlet-api;2.5] in [default]
[ivy:retrieve] commons-lang#commons-lang;2.4 by
[commons-lang#commons-lang;2.5] in [default]
[ivy:retrieve] commons-logging#commons-logging;1.1 by
[commons-logging#commons-logging;1.1.1] in [default]
[ivy:retrieve] commons-logging#commons-logging;1.0.3 by
[commons-logging#commons-logging;1.1.1] in [default]
[ivy:retrieve] commons-digester#commons-digester;1.6 by
[commons-digester#commons-digester;1.8] in [default]
[ivy:retrieve] commons-collections#commons-collections;3.2 by
[commons-collections#commons-collections;3.2.1] in [default]
[ivy:retrieve] commons-logging#commons-logging;1.0.4 by
[commons-logging#commons-logging;1.1.1] in [default]
[ivy:retrieve] org.apache.velocity#velocity;1.6.2 by
[org.apache.velocity#velocity;1.6.4] in [default]
[ivy:retrieve] commons-lang#commons-lang;2.2 by
[commons-lang#commons-lang;2.5] in [default]
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 43 | 0 | 0 | 12 || 31 | 0 |
---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: org.w3c#unicorn
[ivy:retrieve] confs: [default]
[ivy:retrieve] 31 artifacts copied, 0 already retrieved (9672kB/656ms)
generate_observer:
[xmlbean] Time to build schema type system: 1.452 seconds
[xmlbean] Time to generate code: 0.842 seconds
[xmlbean] Compiling 154 source files to
/tmp/xbean8588899213160360142.d/classes
[xmlbean] Time to compile code: 7.614 seconds
[xmlbean] Building jar:
/media/Netpad/unicorn/unicorn/lib/unicorn-response.jar
generate_tasklist:
[xmlbean] Time to build schema type system: 0.899 seconds
[xmlbean] Time to generate code: 0.108 seconds
[xmlbean] Compiling 36 source files to
/tmp/xbean8538209884522555853.d/classes
[xmlbean] Time to compile code: 1.941 seconds
[xmlbean] Building jar:
/media/Netpad/unicorn/unicorn/lib/unicorn-tasklist.jar
default_conf:
[copy] Copying 9 files to /media/Netpad/unicorn/unicorn/build/classes
compile:
[javac] Compiling 99 source files to
/media/Netpad/unicorn/unicorn/build/classes
[javac]
/media/Netpad/unicorn/unicorn/src/org/w3c/unicorn/contract/WADLUnmarshallerXPath.java:34:
warning: com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl is Sun
proprietary API and may be removed in a future release
[javac] import com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl;
[javac] ^
[javac]
/media/Netpad/unicorn/unicorn/src/org/w3c/unicorn/contract/WADLUnmarshallerXPath.java:145:
warning: com.sun.org.apache.xpath.internal.jaxp.XPathFactoryImpl is Sun
proprietary API and may be removed in a future release
[javac] this.aXPath = new XPathFactoryImpl().newXPath();
[javac] ^
[javac] Note:
/media/Netpad/unicorn/unicorn/src/org/w3c/unicorn/util/UCNProperties.java
uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 warnings
jar:
[mkdir] Created dir: /media/Netpad/unicorn/unicorn/dist
BUILD FAILED
/media/Netpad/unicorn/unicorn/build.xml:78: Manifest file:
/media/Netpad/unicorn/unicorn/WebContent/META-INF/Manifest.MF does not
exist.
Total time: 21 seconds
goten@MetalBig:/media/Netpad/unicorn/unicorn$
--
Cheers,
Ranjith Kumar.K
http://ranjithtenz.wordpress.com
13 years, 8 months
Invitation to EtherPad FAD at Olin College (near Boston, MA) -- October 8-9th
by Colin Zwiebel
Greetings Fedora Java Propeller Heads,
I'm an Olin College student, a long-time linux users, and total EtherPad
fanboy. Talking with friends, we would love to give back to all three of
these communities. We're organizing a Fedora Activity Day and would like to
have you join us!
(cut to the chase here: https://fedoraproject.org/wiki/Etherpad_FAD )
== What is EtherPad? ==
Etherpad is pretty much the pinnacle of online, collaborative text editing.
If you're not familiar with EtherPad, take a look at this
video<http://www.viddler.com/explore/aaroniba/videos/1/>
.
== What do we plan to do at the FAD? ==
EtherPad was acquired by Google in 2008 and the code was open-sourced
(yay!). Buuut the EtherPad code-base isn't exactly in a packageable state,
as demonstrated by SDZ <https://fedoraproject.org/wiki/Etherpad>, here.
Thus we plan to:
* Repackage EtherPad in a consistent, Java standard, portable way
* Create compliant, Fedora packages for EtherPad
* Setup EtherPad instance on Fedora Infrastructure (infrastructure managers,
sorry, quietly stop choking and shoot me an email so I can explain Fud +
EtherPad = awesome and discuss how to go about that)
* Teach non-Propeller-heads about OSS development and the technologies used
== When? ==
** Friday, October 8th - Saturday, October 9th **
(and maybe early Sunday if we get some of the no-sleep crowd).
Dinner on Friday. Dinner and lunch Saturday.
Do you reside in the Boston area? Know a thing or two about Java build
systems? How about server-side javascript? Every touched Scala? Are you a
package master? We need you! Shoot me an email or add yourself to the wiki!
Aside from EtherPad, I'd like to convert some Olin Students to do more open
source projects (these engineering background people never seem to stray far
from Matlab =[ ). We're planning to do a talk to get people not versed in
J2EE excited and working on Fedora. If that sounds exciting, we'd love to
have you help.
Check out the wiki and talk page:
https://fedoraproject.org/wiki/Etherpad_FAD
https://fedoraproject.org/wiki/Etherpad_FAD
Cheers,
Colin
13 years, 8 months
How to run java WAR file project in command line
by Ranjith
Hi all,
Using apache-ant i compiled a java project what i did is created it
into war file and deployed on tomcat. what i need is how to deploy the same
war file in command line.
note :
I don`t want to run it on localhost everything should be executed in command
line.
Thanks in advances
--
Cheers,
Ranjith Kumar.K
http://ranjithtenz.wordpress.com
13 years, 8 months
Help un-orphan some packages in the Java stack
by Andrew Overholt
Hi,
Stanislav took a few of the packages listed by Bill at [1] but there are
still the following orphaned Java packages. Is anyone interested in
owning any of them? If so, please take ownership in pkgdb [2].
Orphan: classworlds
Orphan: dom4j
Orphan: dtdparser
Orphan: gnu-regexp
Orphan: hsqldb
Orphan: isorelax
Orphan: jdom
Orphan: jlex
Orphan: joda-time
Orphan: jrefactory
Orphan: jsch
Orphan: jtidy
Orphan: jzlib
Orphan: ldapjdk
Orphan: lucene
Orphan: objectweb-anttask
Orphan: plexus-ant-factory
Orphan: plexus-appserver
Orphan: plexus-bsh-factory
Orphan: plexus-compiler
Orphan: plexus-runtime-builder
Orphan: plexus-xmlrpc
Orphan: relaxngDatatype
Orphan: tomcat6
Orphan: ws-jaxme
Orphan: wsdl4j
Orphan: xjavadoc
Orphan: xmldb-api
Orphan: xmlrpc
Orphan: xom
Orphan: xpp2
Orphan: xpp3
Andrew
[1]
http://lists.fedoraproject.org/pipermail/devel/2010-August/140352.html
[2]
https://admin.fedoraproject.org/pkgdb
13 years, 8 months
JNA dependency problems
by Aaron Faanes
JNA (or perhaps intellij-idea?) has been languishing, sadly broken, in
updates-testing for a little more than three weeks now. Specifically, it's
these:
* jna-3.2.7-4.fc13.x86_64 from updates-testing
* jna-contrib-3.2.7-4.fc13.x86_64 from updates-testing
Here's the error:
Error: Package: intellij-idea-9.0.1.94.399-10.fc13.x86_64 (@fedora)
Requires: jna-examples
Removing: jna-examples-3.2.4-3.fc13.x86_64 (@fedora)
jna-examples = 3.2.4-3.fc13
Obsoleted By: jna-contrib-3.2.7-4.fc13.x86_64 (updates-testing)
Not found
Here's the bug report and the Bodhi page, respectively:
* https://bugzilla.redhat.com/show_bug.cgi?id=619049
* https://admin.fedoraproject.org/updates/jna-3.2.7-4.fc13
I've been doing --skip-broken as usual, but I was wondering if these had
fallen by the way-side. Thanks!
--
Aaron Faanes <dafrito(a)gmail.com>
13 years, 8 months
java-devel with Swing virtual package
by Marcin Zajączkowski
Hi,
I have a java desktop application which needs java with Swing. In spec I
was using java-devel, but recently I was noticed by one of the users
that it's resolved (in mock build on Fedora 11) as java-1.5.0-gcj-devel
(which doesn't have swing).
I could change java-devel to java-devel-openjdk, but it would cause
problems with binary Java package from Sun.
Do you have suggestion what could be used to get java-devel compatible
with Swing library?
Regards
Marcin
13 years, 8 months
Re: [fedora-java] Secondary review of a Java package
by Aleksandar Kurtakov
> On 08/09/2010 10:11 PM, Göran Uddeborg wrote:
> > Andrew Overholt:
> >> I recommend looking at the Fedora Java packaging guidelines (you
> >
> >> probably already did this):
> > Yes. I learned how to do the wrapper script using jpackage utilites
> > from that page, for example. Though it was a while ago, and there has
> > been a number of changes to my package, so I reviewed the page again
> > now.
> >
> >> - do you really want the gcj stuff?
> >
> > Well, that is a good example where I would appreciate advice from
> > someone more experienced in Java packaging.
> >
> > Originally I didn't have any GCJ support. I didn't see any need. But
> > then David pointed out that
> > http://fedoraproject.org/wiki/Packaging/GCJGuidelines says that
> >
> > GCJ AOT bits SHOULD be built and included in packages.
> >
> > "SHOULD" (assuming RFC 2119 interpretation) is pretty strong. So I
> > followed the instructions on the page and added the support.
> >
> > But then in comment 20
> > (https://bugzilla.rpmfusion.org/show_bug.cgi?id=985#c20) Chen Lei says
> > that many Java packages have dropped GCJ support. And now you ask if
> > I want it.
> >
> > I get the impression that the Wiki doesn't really reflect current
> > practice. Is that a correct understanding? Is GCJ support to be
> > considered optional nowdays, or maybe even deprecated?
>
> It's not yet officially deprecated. We argued a lot about that
> wording, and came up with what you see. Perhaps the best way to put
> it is "nice to have, but not compulsory." The situation is changing
> continuously, with Power PC no longer a pimary architecture, but ARM
> increasing importance.
>
> The sensible rule everyone seems to use is that if adding gcj support
> doesn't require much effort, add it. If not, don't.
>
> Andrew.
As gcj is at 1.5 JVM level there is no point in having gcj support for
packages that require Java 1.6.
Alex
> --
> java-devel mailing list
> java-devel(a)lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/java-devel
13 years, 8 months
Secondary review of a Java package
by Göran Uddeborg
Dear Java packaging experts, :-)
I'm trying to package ProjectX, a program operate on files from DVB
digital TV transmissions. It can not be included in Fedora for patent
reasons, but I'm trying to get it into Rpm Fusion, where the same
packaging rules applies.
David Timms has reviewed my package, and given many suggestions for
improvements. But none of us is experienced in packaging Java. We
would appreciate if someone more familiar with that also could have a
second look at the package, from the perspective of packaging Java in
particular. Is there anyone here who would like to do that?
Spec: ftp://ftp.uddeborg.se/pub/ProjectX/ProjectX.spec
SRPM: ftp://ftp.uddeborg.se/pub/ProjectX/ProjectX-0.90.4.00-6.20100806cvs.fc14.src.rpm
Review bugzilla: https://bugzilla.rpmfusion.org/show_bug.cgi?id=985
13 years, 8 months