phase

Maven Run Project

Is there a Maven "phase" or "goal" to simply execute the main method of a Java class? I have a project that I'd like to test manually by simply doing something like "mvn run". ...

Axis2 Migration

Hi, We had an application using axis2 1.0. We recently migrated to axis2 1.4. After migration we are facing the following error at runtime: public static org.apache.axis2.context.ConfigurationContext org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromURIs(java.net.URL,java.net.URL) throws org.apache.axi...

JSF - Update model in invoke application phase

Hello, in my JSF application i need to update ui component during invoke application phase. Can it be done? Here's the code i've produced so far: public void resetDataScroller(ActionEvent actionEvent) { final FacesContext ctx = FacesContext.getCurrentInstance(); ctx.getViewRoot().invokeOnComponent(ctx, "paginator_and_tabl...

Request-scoped beans and datamodel initialization?

UPDATE II: OK, I managed to narrow it down a little. I have a page with a datatable with sorting and filtering functionalities, both taking place in the DB. In other words, I do not use the embedded functionality of the rich:datatable I use, but rather let the DB do the work. I work with request-scoped beans. The only session-scoped be...

How to perform ordered tasks in Maven2 build

Hi, I am trying to migrate a Java application built by Ant to Maven2. among other the build perform the following operations: 1) Running a javadoc doclet to find annotated Java files to be externalize later as web services 2) compile a small part of the code for step 3 3) run Axis java2wsdl on the compiled code from step 2 4) produce j...

Modifying JSF Component Tree in PhaseListener

Hi all, I'm having an issue. I've implemented a PhaseListener, which is meant to add a style class to any UIInput components in the tree that have messages attached to them, and removes the style class if it doesn't have any messages attached to them. The PhaseListener runs in the RENDER_RESPONSE phase, and does it's work in both the...

How can I execute several maven plugins within a single phase and set their respective execution order?

Hi all, I would like to breakup certain phases in the maven life cycle into sub phases. I would like to control the execution flow from one sub-phase to another, sort of like with ant dependencies. For example, I would like to use the NSIS plugin in order to package up my project into an installer at the package stage, AFTER my project...

"Phased" execution of functions in javascript

Hey there! This is my first post on stackoverflow, so please don't flame me too hard if I come across like a total nitwit or if I'm unable ot make myself perfectly clear. :-) Here's my problem: I'm trying to write a javascript function that "ties" two functions to another by checking the first one's completion and then executing the se...

Two-phase lookup: can I avoid "code bloat"?

Two-phase lookup question: Is there a more synthetic way to write this code, i.e. avoiding all those using directives? Something like using CBase<T>; is what I would like, but it is not accepted. #include <iostream> template <typename T> class CBase { protected: int a, b, c, d; // many more... public: CBase() { a = 1...

JSF skips phases - How to debug that?

Hey fellows, I have to debug a foreign jsf application thanks god. The problem is, that I submit a form, but the values aren't carried over. With a phase listener I can see, that the life cycle doesn't run completely through, so to say it skips phase 2 -5: After the restore view phase, the render response phase is directly called. I mi...

Maven String Replace of Text Web Resources

I have a Maven web application with text files in src/main/webapp/textfilesdir As I understand it, during the package phase this textfilesdir directory will be copied into the target/project-1.0-SNAPSHOT directory, which is then zipped up into a target/project-1.0-SNAPSHOT.war Problem Now, I need to do a string repl...

Maven - add custom phase to execute plugin with other configuration

I have two set of integration tests in one maven project - automatic and manual tests. The manual tests are few but tedious - they require pulling the plug of servers etc. I would like to create a separate goal for the manual tests, so i can run something like mvn manualtests to run the manual tests. If you just run a normal maven build ...

How to skip install phase in Maven build if I already have this version installed in repo.

I have a project that consist of 3 different libraries. When I run install script it takes all libraries from repo and run mvn clean install on them. But this version of library already installed in repo. Is there a way to skip install phase if version in pom.xml equal version in my local repo. I know that I can use local repo and just ...

Phases skipped when using PrettyFaces (JSF)

When using PrettyFaces to map a page containing a form, all phases after Restore View are skipped and the response is rendered. Thus the form is not submitted and the model is not updated. ...

SSIS Post Execute phase takes too long

I have a SSIS Package (SQL Server 2005) which has a very simple control flow and a data flow. The package runs acceptably fast, but the Post Execute phase is ridiculously slow - the whole package takes 90 minutes to execute, from which 37 are the PostExecute phase. I don't have any event handler on that step, the source and the destinat...

OpenSSH Two Phase Login

I would like it if when I use OpenSSH like so: ssh user@host that it asks for a passphrase Please enter Passphrase: then asks for the password Please enter Password: Is this possible? ...

How to redirect request from Phase Listener to another servlet?

Hi everyone How to redirect request from Phase Listener to another servlet on remote machine and get responce back? ...

RENDER_RESPONSE takes to long in seam

Hi, I write application using JBOSS Seam with Richfaces. Unfortunately some pages of it load very long especially when I want to show about 100 rows (or more) in table . Getting response from database takes about 2453 ms, so it is quite well. However the phase RENDER_RESPONSE takes about 23750 ms, so it is unacceptable. The object which ...

how to distinguish a jsf action or direct url link invoked the page

Hi, All I have a situation, I have a session bean with list, this list I show in html data table. When the user hits the url from browser or normal href, I have to show all records. There is provision to search for the data also, where I have to show the filtered list. Now after a user has made the search, the list contains filtered rec...

PHP shows Parse error while executing

I need to create thumbnails for all the jpg images in a folder. When I compile it, the error message pops out: Parse error: syntax error, unexpected T_VARIABLE in /volume1/web/CAL1/thumb.php on line 6 and here is my code: <?php $pathToImages = "./images/"; $pathToThumbs = "./images/thumbnails/"; $thumbWidth = 110;   ...