How to reference the tools.jar of the jdk lib folder

2006-11-07 Thread Dudu

I need to use the tools.jar of the lib folder. Inside the oringinal jdk
location...
How can I add this dependency. I looked for it on the maven repository and
the sun maven repository too, but without sucess.
Thanks all


Maven JAXWS libs has wrong dependencies?

2006-11-02 Thread Dudu

I need to use jaxws 2.0 for build webservices...
I must to download them all manually and put on my own repository, or using
the shared libs on maven repositories?

I'm trying to use the shared, and there are more than one version. If I use
this dependecy:
   
   com.sun.xml
   jaxws-rt
   2.0EA3
   compile
   
It will call others... and one of the jars is the:


 javax.jws
 jsr181-api
 1.0
   

And this jar is a lot of annotations to use with webservices. And it has not
the "portName" parameter, that I think is the cause of the follow error on
jetty:

Error on
[ERROR] FATAL ERROR
[INFO]

[INFO] javax.jws.WebService.portName()Ljava/lang/String;
[INFO]

[INFO] Trace
java.lang.NoSuchMethodError: javax.jws.WebService.portName
()Ljava/lang/String;
   at com.sun.xml.ws.modeler.RuntimeModeler.getPortName(
RuntimeModeler.java:1215)
   at com.sun.xml.ws.server.RuntimeEndpointInfo.doPortNameProcessing (
RuntimeEndpointInfo.java:265)
   at com.sun.xml.ws.server.RuntimeEndpointInfo.init(
RuntimeEndpointInfo.java:311)
   at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.createModelAndMetadata(
WSServletContextListener.java:203)
   at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized
(WSServletContextListener.java:119)
   at org.mortbay.jetty.handler.ContextHandler.startContext (
ContextHandler.java:441)
   at org.mortbay.jetty.webapp.WebAppContext.startContext(
WebAppContext.java:1133)
   at org.mortbay.jetty.handler.ContextHandler.doStart(
ContextHandler.java:414)
   at org.mortbay.jetty.webapp.WebAppContext.doStart (
WebAppContext.java:461)
   at org.mortbay.component.AbstractLifeCycle.start(
AbstractLifeCycle.java:38)
   at org.mortbay.jetty.handler.HandlerCollection.doStart(
HandlerCollection.java:156)
   at 
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollecti

And my class has the follow annotation,
@WebService(serviceName="Farmaco", name="nomeservice" )
public class Farmaco {
   public Farmaco() {

   }

I'm thinking the maven repositories, in case of emergent tecnologies(not
so), has wrong jars. I think it is very bad, because one of the most
interesting purpouses of maven is the dependency management. And this
problem I've founded more times, not just now, and I see some posts of
internet the same problem, I think the maven team must take more care about
this.
But as I'm  not a expert, I'm asking to all to know if more people has the
same problems... or maybe I'm just wrong.


Why some packages has no jars?

2006-11-01 Thread Dudu

Why a few maven directories has no jars, one of it is the directory of
Metadata for Webservices (jsr181) finalized and leaded by Bea?
ftp://ibiblio.org/pub/packages/maven2/javax/jws/jsr181/1.0I need to put
manually? or it has another name?
thanks


Are there a m2 plugin to izpack? and another?

2006-11-01 Thread Dudu

Are there a installer generator plugin to maven 2 ? I found only to maven 1
:(


Maven command to run the main class of a desktop application

2006-11-01 Thread Dudu

What is the Maven 2 pluginto run the main class of a desktop application?


eclipse plugin e WebTools

2006-11-01 Thread Dudu

I need to generate a project to WebTools, or transform a simple project to
web
The command eclipse:eclipse -Dwtpversion=1.0 does not genereate correct the
JSF application;
And adding and removing facets to the project is a bit poor.

How to work with webprojects with maven on a ide?
How to upgrade a maven plugin? Is it automatic?

--
--
Dudu
GoogleTalk: eduardopichler[at]gmail[dot]com
skype:eduardopichler


Install jdev plugin

2006-10-30 Thread Dudu

I downloaded the source code of jdev plugin of Trinidad (my faces)repository
and I did mvn install, all files was compiled and installed sucefully but
when I do mvn jdev:jdev, maven says that the jdev plugin doesn't exists

I am using the trunk source code.
Thanks
--
--
Dudu
GoogleTalk: eduardopichler[at]gmail[dot]com
skype:eduardopichler


Problems running a JSF application on Jetty:Run

2006-10-26 Thread Dudu

I can't discover the problem in this strack trace...
I'm running RI JSF implementation + tomahawk + ADF Faces:



this is the pom.xml
   
   
   junit
   junit
   4.0
   test
   
   
   hibernate
   hibernate
   3.0
   compile
   
   
   log4j
   log4j
   1.2.12
   compile
   
   
   ojdbc
   ojdbc
   14
   compile
   
   
   oracle.adf
   adf-faces-impl
   10.1.3.0.4
   compile
   
   
   oracle.adf
   adf-faces-api
   10.1.3.0.4
   compile
   
   
   oracle.adf
   adf-facelets
   1.0
   compile
   
   
   javax.faces
   jsf-impl
   1.1
   compile
   
   
   javax.faces
   jsf-api
   1.1
   compile
   
   
   org.apache.shale
   shale-test
   1.0.3
   test
   
   
   myfaces
   tomahawk
   1.1.2
   compile
   
   
   commons-configuration
   commons-configuration
   1.3
   compile
   
   
   javax.mail
   mail
   1.4
   compile
   
   
   javax.servlet
   servlet-api
   2.5
   compile
   
   
   javax.servlet
   jstl
   1.1.2
   compile
   
   
   commons-validator
   commons-validator
   1.1.4
   compile
   
   
   oro
   oro
   2.0.8
   compile
   
   
   jaybird
   jaybird-full
   2.0.1
   compile
   

   
   commons-el
   commons-el
   1.0
   compile
   
   
   
   sagweb
   
   
   maven-compiler-plugin
   
   1.5
   1.5
   
   
   
   org.mortbay.jetty
   maven-jetty-plugin
   
   
   
   8081
   
   
   

   
   
   



And this is the error:
(But I look to the error and it seems to me the application is using the
myfaces implementation)

2006-10-26 15:29:44.015::WARN:  /sagweb/faces/accesscontrol/login.jspx
java.lang.IllegalStateException: STREAM
   at org.mortbay.jetty.Response.getWriter(Response.java:470)
   at
org.apache.myfaces.renderkit.html.util.DefaultAddResource.writeRespon
se(DefaultAddResource.java:807)
   at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter
(Extensions
Filter.java:162)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(Servlet
Handler.java:1041)
   at org.mortbay.jetty.servlet.ServletHandler.handle(
ServletHandler.java:3
54)
   at org.mortbay.jetty.servlet.SessionHandler.handle(
SessionHandler.java:2
26)
   at org.mortbay.jetty.handler.ContextHandler.handle(
ContextHandler.java:6
15)
   at org.mortbay.jetty.handler.ContextHandlerCollection.handle
(ContextHand
lerCollection.java:149)
   at org.mortbay.jetty.handler.HandlerCollection.handle
(HandlerCollection.
java:123)
   at org.mortbay.jetty.handler.HandlerWrapper.handle(
HandlerWrapper.java:1
41)
   at org.mortbay.jetty.Server.handle(Server.java:269)
   at org.mortbay.jetty.HttpConnection.handleRequest(
HttpConnection.java:43
0)
   at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpCo
nnection.java:678)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
   at org.mortbay.jetty.nio.HttpChannelEndPoint.run(
HttpChannelEndPoint.jav
a:270)
   at org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool
.java:475)


Re: How to deploy 2 webapp at same time on Jetty Plugin

2006-10-23 Thread Dudu

Thanks...
But in the case of birtviewer I wont to save it on subversion because the
high activity of versions released may be someone has another idea?

Thanks..

On 10/23/06, Wayne Fay <[EMAIL PROTECTED]> wrote:


Generally multiple WARs are packaged together as an EAR.

Perhaps you need to create a single EAR and deploy it?

Wayne

On 10/22/06, Dudu <[EMAIL PROTECTED]> wrote:
> I have an application that use BIRT to run reports. Ant the Birt Viewer,
> that process the reports, is another webapp, that need to be runnint at
same
> time... I'm trying to run both, birt viewer and my webapp at same time
with
> the jetty maven plugin
> Is it possible? or I need to run Birt viewer in another instance?
> thanks!
>
> --
> --
> Dudu
> GoogleTalk: eduardopichler[at]gmail[dot]com
> skype:eduardopichler
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
--
Dudu
GoogleTalk: eduardopichler[at]gmail[dot]com
skype:eduardopichler


How to deploy 2 webapp at same time on Jetty Plugin

2006-10-23 Thread Dudu

I have an application that use BIRT to run reports. Ant the Birt Viewer,
that process the reports, is another webapp, that need to be runnint at same
time... I'm trying to run both, birt viewer and my webapp at same time with
the jetty maven plugin
Is it possible? or I need to run Birt viewer in another instance?
thanks!

--
--
Dudu
GoogleTalk: eduardopichler[at]gmail[dot]com
skype:eduardopichler


Re: Eclipse WTP setup

2006-10-10 Thread Dudu

mvn eclipse:eclipse -Dwtpversion=1.0
or mvn eclipse:eclipse -Dwtpversion=r7

On 10/10/06, Bill Manuel <[EMAIL PROTECTED]> wrote:


Anyone know the answer to this?  I have the same problem.

Thanks


On 10/10/06, Kev D'Arcy <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Would anyone have a sample set of Eclipse configuration files
> (.classpath mainly)
> that is configured for WTP? I have the java/class forlders configured
> properly to
> match the standard maven file structure, but I'm having problems getting
> the web
> root folder to be "src/main/webapp" instead of WebContent
>
> Thanks,
>
> Kev
>
>
>
>

> This document is strictly confidential and is intended for use by
> the addressee unless otherwise indicated.
>
> This email has been scanned by an external Email Security System.
>
> Allied Irish Banks
>
>

>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Bill Manuel





--
--
Dudu
GoogleTalk: eduardopichler[at]gmail[dot]com
skype:eduardopichler


Conflict with dependencies

2006-09-11 Thread Dudu

I'm using the RI implementation of JSF, and using shale-test too.
But Shale-test uses another JSF implementation, the MyFaces. And the two
implementation obviously has classes with identical names.

How can I manage conflicts like this? Is it correct to change the pom.xml of
shale to don't get the myfaces? I think no, because all developers of my
team would to do this...and the goal of maven is the distributed
development.

In case of jars conflicts, how to solve this in a automatic way to all
developers don't need to change their originally local repositories?

Thanks.


Managed bean always is null running on jetty

2006-09-11 Thread Dudu

I have a jsf application.
When I run my app on eclipse or other ide, it runs ok, but when I do
jetty:run, no errors is happen, but in parts of code that I get the managed
bean using ValueBinding objects, the valueBinding always return nullPointer
exception, but this behavior is happening only on jetty.
And to run in eclipse, I do eclipse:eclipse to libraries be the same.
Any idea? thanks all!


Re: problems running project on jetty

2006-09-08 Thread Dudu

Thanks Wayne...

the message error is not found on google :(.
I have removed all dependencies and putted again, but without sucess.
If I try with the jars on my pc, it works. I think there are a problem with
the jars on mvn repository, like calling wrong dependencies  or wrong
versions of it.


On 9/8/06, Wayne Fay <[EMAIL PROTECTED]> wrote:


This seems like a JSF problem, not really a Maven issue per se.

I'd send a similar email (minus the pom) to a couple JSF groups and
see what they say about it.

Also I'd try deploying your app to another app server to see if
perhaps its simply a Jetty bug.

Wayne

On 9/8/06, Dudu <[EMAIL PROTECTED]> wrote:
> I don't know what to do...
> i'm migrating my project to maven, but always happen a problem with
> dependencies...
> I'm using adf faces, tomahawk and Sun RI.
> To corrige this error, I'm trying to add some libraries...
>
> This is the error:
> HTTP ERROR: 500
>
> /sag/index.jspx(47,19) PWC6317: The attributes for a standard action
> cannot be deferred expressions
>
> RequestURI=/SagWeb/sag/index.jspx
>
> *Powered by Jetty:// <http://jetty.mortbay.org/>*
>
> My index.jspx is this:
> 
> http://java.sun.com/JSP/Page"; version="2.0"
>  xmlns:h="http://java.sun.com/jsf/html";
>  xmlns:f="http://java.sun.com/jsf/core";
>  xmlns:af="http://xmlns.oracle.com/adf/faces";
>  xmlns:afh="http://xmlns.oracle.com/adf/faces/html";
>  xmlns:x="http://myfaces.apache.org/tomahawk";>
>  
>  
>
>  
>  
>
>
>
>  
>  
>
>  
>  
>  
>  
>  
>  
>  binding="#{backing_sag_index.jscookMenu1}"
>  id="jscookMenu1">
>   binding="#{backing_sag_index.navigationMenuItems1}"
> id="navigationMenuItems1"
> value="#{backing_sag_index.menu}"/>
>
>  
>  
>  
>  
>  
>
>   rendered="#{backing_sag_pohecamp2.hasErrors}"
>id="vailink"
>   >
>id="erro"
>style="BORDER:0"
>url="/css/images/alerta.gif"
>title="#{msg.msgExisteErro}"
>/>
>
>  
>  
>  
>  
>  
>  
>
>  
>  
>
>  
>  
>  
>  
>Copyright
>  
>  
>Privacidade
>  
>  
>Sobre
>  
>  
>
>shortDesc="Entrar em outro módulo do SAG"
>  rendered="#{usuario.codfprod == null}"
>  immediate="true"
>
> action="#{backing_sag_index.actionSwitchModule}"/>
>   
>   destination="/logoff">
>
>  
>  
> id="_detail">
>
>  
>   styleClass="SagTextCentered">
> source="#{backing_sag_index.IMAGE_URL}">
>  
>
>
>
>
>errorClass="af_messages_error"
>warnClass="af_messages_message-text" layout="table"/>
>  
>
>  
> 
>
> And my pom.xml is this:
> http://maven.apache.org/POM/4.0.0";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>4.0.0
>br.com.sag
>SagWeb
>war
>1.0-SNAPSHOT
>Maven Webapp Archetype
>http://maven.apache.org
>
>
>junit
>junit
>4.0
>test
>
>
>org.hibernate
>hibernate
>3.1.3
>compile
>
>
>log4j
>log4j
>1.2.12
>compile
>
>
>  

problems running project on jetty

2006-09-08 Thread Dudu

I don't know what to do...
i'm migrating my project to maven, but always happen a problem with
dependencies...
I'm using adf faces, tomahawk and Sun RI.
To corrige this error, I'm trying to add some libraries...

This is the error:
HTTP ERROR: 500

/sag/index.jspx(47,19) PWC6317: The attributes for a standard action
cannot be deferred expressions

RequestURI=/SagWeb/sag/index.jspx

*Powered by Jetty:// *

My index.jspx is this:

http://java.sun.com/JSP/Page"; version="2.0"
 xmlns:h="http://java.sun.com/jsf/html";
 xmlns:f="http://java.sun.com/jsf/core";
 xmlns:af="http://xmlns.oracle.com/adf/faces";
 xmlns:afh="http://xmlns.oracle.com/adf/faces/html";
 xmlns:x="http://myfaces.apache.org/tomahawk";>
 
 
   
 
 
   
   
   
 
 
   
 
 
 
 
 
 
   
 
   
 
 
 
 
 

  
   
   
 
 
 
 
 
 
   
 
 
   
 
 
 
 
   Copyright
 
 
   Privacidade
 
 
   Sobre
 
 
   
 
  
 
   
 
 
   
   
 
 
   
 
   
   
   
   
   
 
   
 


And my pom.xml is this:
http://maven.apache.org/POM/4.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
   4.0.0
   br.com.sag
   SagWeb
   war
   1.0-SNAPSHOT
   Maven Webapp Archetype
   http://maven.apache.org
   
   
   junit
   junit
   4.0
   test
   
   
   org.hibernate
   hibernate
   3.1.3
   compile
   
   
   log4j
   log4j
   1.2.12
   compile
   
   
   oracle.adf
   adf-faces-impl
   10.1.3.0.4
   compile
   
   
   oracle.adf
   adf-faces-api
   10.1.3.0.4
   compile
   
   
   oro
   oro
   2.0.8
   compile
   
   
   myfaces
   tomahawk
   1.1.2
   compile
   
   
   commons-configuration
   commons-configuration
   1.2
   compile
   
   
   javax.mail
   mail
   1.4
   compile
   
   
   org.apache.shale
   shale-test
   1.0.3
   test
   
   
   javax.faces
   jsf-impl
   1.1_02
   compile
   
   
   javax.servlet
   servlet-api
   2.4
   compile
   
   
   javax.servlet.jsp
   jsp-api
   2.1
   compile
   
   
   javax.servlet.jsp
   jsp-api
   2.0
   compile
   
   
   javax.servlet
   jstl
   1.1.2
   compile
   
   
   javax.faces
   jsf-api
   1.1_02
   compile
   
   
   
   SagWeb
   
   
   maven-compiler-plugin
   
   1.5
   1.5
   
   
   
   org.mortbay.jetty
   maven-jetty-plugin
   
   
   



[Newbie] Where is the better place to put some resources...

2006-09-05 Thread Dudu

Where is the right place to put the ddl.sql of my database. I think is the
resource path. Am I right?
And the reports generated of a UML project developed under another tool?
Thanks


Error on compiling a webapp. Strange class is required.

2006-09-05 Thread Dudu

Sorry, I'm starting with maven and I'm migrating my projects. I added all
dependencies but the follow error is ocurring:

D:\workspace\proj\src\main\java\br\com\sag\components\grid\AjaxSortableTableTa
g.java:[7,7]
cannot access javax.servlet.jsp.tagext.JspIdConsumer
file javax\servlet\jsp\tagext\JspIdConsumer.class not found
public class AjaxSortableTableTag extends UIComponentTag {


I've looking for where would be the class JspIdConsumer.class  but without
sucess.
Why in any IDE it compile? Anyone knows where is the error?

And I don't know what dependency is, this is my pom.xml file:

   
   
   junit
   junit
   3.8.1
   test
   
   
   javax.faces
   jsf-api
   1.2
   compile
   
   
   javax.mail
   mail
   1.4
   compile
   
   
   javax.faces
   jsf-impl
   1.2
   compile
   
   
   myfaces
   tomahawk
   1.1.1
   compile
   
   
   oracle.adf
   adf-faces-impl
   10.1.3
   compile
   
   
   oracle.adf
   adf-faces-api
   10.1.3
   compile
   
   
   hibernate
   hibernate
   3.0
   compile
   
   
   javax.servlet
   servlet-api
   2.4
   compile
   
   
   log4j
   log4j
   1.2.9
   compile
   
   
   commons-configuration
   commons-configuration
   1.2
   compile
   
   
   myfaces
   tomahawk
   1.1.1
   compile
   
   
   jstl
   jstl
   1.1.0
   compile
   
   
   jspapi
   jsp-api
   2.0
   compile
   


Installing third party libraries

2006-09-05 Thread Dudu

When I install a third part library, the poom is not generated
automatically.
Is right this behavior?
Thanks


JavaServer Faces and maven on eclipse

2006-09-05 Thread Dudu

I have a jsf project and want to open in jsf perspective on eclipse (web
tools).
My maven project is a webapp, but when I run eclipse:eclipse the project
files generated is not for j2ee.
What I need to do?


Is maven good to small projects

2006-09-05 Thread Dudu

Is maven good to small teams, like two programmers?