aptitude: upgrading only necessary stable-to-testing.

Good day.

I have mixed system: stable & testing. On

# aptitude full-upgrade

I often have a situation when a stable status packages needs to be upgraded up to testing status because of dependency (as I do understand that: when a testing status package being upgraded and in order it needs more fresh version (from testing) of a stable status package), but aptitude does not so – but rather offers diver mysterious solutions – anything but upgrading the package on dependency from its stable to testing status.

My question is what and where should I specify in its configuration so that it would include in its decision making – upgrading to testing status as well? – NOT that it will upgrade every stable package to testing, but only those without which – because of dependency – it is impossibly to upgrade others.

Thank You for Your time.

change version?

I have a multimodule maven project and I want to change the version number. Unfortunately, it looks like I have to manually edit each pom.xml (or write some sort of perl script) to accomplish this. Is there a better, cooler, faster way to do this? Maybe with a plugin of some sort?

mod_proxy: ProxyPass max parameter has no effect

Eric,

On Tue, Jul 6, 2010 at 12:15 PM, Eric Covener wrote:

I am using prefork MPM. Are you saying that since each request is handled by one process, the max parameter doesn’t work with prefork MPM? Then how should I go about doing this (i.e. setting a max number of connection per server, which in the “real” configuration are setup with BalancerMember in a cluster)?

Alex

is there a way to query maven for all the X type of modules it just built?

On 06/07/2010 2:24 PM, Shan Syed wrote: This is something that I have been asking about for the past 2 weeks with no success so far.

I have tried the maven-assembly-plugin 2.2-beta-2 with a dependencySet

It will bundle everything up but it unpacks all the dependencies of the JAR files and builds an output file (tar and zip) in my case that includes all the JARs that I have build which include their dependencies and adds the dependencies again at the top level.

It seems that there is no switch or option to tell the plug-in to just get the JAR files that are dependencies of the packaging project and zip them up without looking inside.

In my case, I want a zip/tar pair that include all the WARs that will go into tomcat/webapps and another pair that include all of the sharable JARs that need to go into tomcat/lib.

Ron

Conditional request handling

Hello all,

We are using Apache as the front end web servers for multiple JBoss application servers. These servers are receiving and replying SOAP messages ( XML ) to our front end application written in Flex ( Adobe ) that is served directly through Apache.

Now that we are receiving more and more visitors, we need to scale the load better across the JBoss servers. We want Apache to inspect the SOAP messages, look for a specific field, compare the filed content to an hash map then apply the proper ProxyPass.

We would have JBoss server group A, B. Each group would have a proxy pass configuration containing multiple servers connection information and would be balanced with round-robin. We initially thought of adding an http header but there are lots of application calls that we cannot modify for various reasons.

Anyone had success implementing something like this?

mod_proxy: ProxyPass max parameter has no effect

I am using the following Apache config to forward requests to a Tomcat server:

ProxyPass /myapp ajp://localhost:8009/myapp max=2

This is a simplified config, but is enough to reproduce the issue, which is that the max parameter has no effect. If I through 10 concurrent requests to Apache, all 10 are forwarded to Tomcat at the same time, while I would like to have them forwarded 2 by 2. Should I use something other than the max parameter for this?

Alex

Help With Interceptor

Hi, i need help to use interceptor, i create one to test if the user are logged in my application until he execute one Action, but when the server pass throw interceptor and back to action, all my var are null, this is my struts.xml

/jsp/usuario/loginUsuario.jsp /jsp/cliente/loginCliente.jsp

tks

Strange difference in behavior ELSupport in Tomcat 6.0.20 and Tomcat 6.0.26

Hi,

I have a problem that i don’t understand and i hope you can help me with.

I migrate from Tomcat 6.0.20 to Tomcat 6.0.26 and suddenly i get an exception like this:

05-Jul-2010 16:22:50 org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception javax.el.ELException: Cannot convert CREATION_TIME of type class com.docbox.tag.DocboxListColumn to class com.owt.tag.ListContent.GenericListColumn at org.apache.el.lang.ELSupport.coerceToEnum(ELSupport.java:155) at org.apache.el.lang.ELSupport.equals(ELSupport.java:110) at org.apache.el.parser.AstNotEqual.getValue(AstNotEqual.java:39) at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186) at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:935) at org.apache.jsp.owt.list_005fcontent_jsp._jspx_meth_c_005fwhen_005f1(list_005fcontent_jsp.java:876) at org.apache.jsp.owt.list_005fcontent_jsp._jspx_meth_c_005fchoose_005f1(list_005fcontent_jsp.java:846) at org.apache.jsp.owt.list_005fcontent_jsp._jspService(list_005fcontent_jsp.java:282) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) etc etc……………………………..

What i don’t understand is why, with the same code , Tomcat 6.0.20 didn’t complain. Is the type check in ELSupport stronger now? In my case i try to compare two different enums: DocboxListColumn and GenericListColumn, but they both implement interface ListColumn.

I hope you can help me with an answer

Thanks in advanced

Roxana Frunza

RAID Questions

On 06/07/2010 16:16, Kent West wrote:

Boasting that you “of course wiped W7 off” to then run in to problems with RAID and then come here, is amusing. Maybe you should do some research on RAID and how to do it in Debian, there are many helpful guides on settings up systems, however these are only guides and you also need to know how to recover from disk failures, raid controller failures and other such fun things. W7 has some very easy to use software raid tools which would have at least given you a helping start, I’m not saying they are the best, but they certainly are easy to get your head around.

Checkout some guides, check the archives and look up basic terminology, my fear is you will get a RAID1 set up for your data, to then spend countless hours trying to get your data back when something goes wrong, because you don’t know how to do it, something which can be all too commmon

favicon when serving non-html

Hi,

When I serve up, say, a PDF file, how do I control the favicon?

Here’s my code:

response.reset(); response.setContentType(IOUtilities.gMIMEType(fn)); response.setHeader(“Content-disposition”, “inline; filename=” + file.getName()); OutputStream outStream = response.getOutputStream(); synchronized(response.getOutputStream()){ outStream.write(IOUtilities.gFile2Bytes(file.getAbsolutePath())); } response.flushBuffer();

Thanks in advance