Win a copy of Terraform in Action this week in the Cloud forum!

Robert Eugene

Greenhorn
+ Follow
since Mar 05, 2014
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Robert Eugene

I have a need for users inside my network to access the Tomcat manager page. I don't have any users set up with privileges, because I'm concerned that I was able to reach the login page from outside the network (from the Internet). Without any users explicitly defined, I understand the default is that there are NO users defined... implying that even if you reached the admin page, it would not be possible to log in (e.g. via brute force, etc...). However, I still no not want this page to be displayed AT ALL for any users outside the network.

Every example that I have found seems to use something called a RemoteAddrValve that allows 127.0.0.1. Does anyone know how I can lock this down, so that ONLY users inside the network could get to the Tomcat manager login page?
5 years ago
I am able to retrieve a PDF and display it in the browser, but the PDF takes up the entire page when it is returned. I would like to wrap it in a div or something, so that I can provide a back button to return the user to an action. Right now, the user has to click on the back button, which is inconsistent with the rest of my application. This all happens despite all of my attempts to wrap the PDF in a div, iframe, specifying the width, etc...

In the JSP


In the struts.xml, I am returning an InputStream


How can I get this PDF to show up in a div or iframe, so that I can specify the width and a button for the user to provide consistent navigation? I can display XML files in this way with no problems, but the PDF documents are not behaving the way I want them to.
5 years ago
I am trying to use the jQuery File Tree plugin (found at http://www.abeautifulsite.net/jquery-file-tree/). I've been able to install it and get the demo working, so that I can provide a value for the root and see the files and folders on my local box. Eventually, I want to be able to information to the page from my application server and have the page display those folders and files. In my example, the left side is more or less what the demo provides on the web site I downloaded the plugin from. The right side shows a tree that I was able to put together by setting up unordered lists and list items. I just created a few of them and named them the same as the ones on the LHS (showing the contents of my C:\Windows folder). I have two questions: why won't the folders collapse and how can I get the file on in the tree I created (the one on the RHS) to return the filename in an alert box like files on the LHS do?

I've tried duplicating the jQuery block that refers to the fileTreeDemo_1 id (with the id changed to fileTreeDemo_Mine). However, when I do this, it just shows the contents of my C:\ directory (I think) and ignores the file structure I specified. I've included a copy of my code, here (some CSS omitted to make the code listing shorter):

I would like to have a Windows Explorer type of file picker on an HTML page to select local files, that comes up when the page loads... that is, I don't want the user to have to click on a button to make this happen. It seems like this should be possible with HTML/jQuery, but I don't know where to start. All of the examples I have found only have the dialog come up once the user presses a button.
I am writing a system that reads in XML files and processes the data. The core part of this system is nearly complete. I now have a requirement that allows users to submit image documents (e.g. jpg, jpeg, pdf, png, tif, and tiff) into a particular folder location. At a high level, when these files arrive, my process routes these files to another folder based on the filename. This works well enough for the more simple case, but I don't think it scales very well when you consider there may be more destination folders with more complex rules that determine the proper routing. I would like to take an approach based on reading metadata inside the files -- I understand that some files may have a file header section that is separate from the actual data.

This seems like it would be straightforward with However, I think that was introduced with the NIO in Java 7. Right now, I have a requirement to run on servers that are running Java 6. My first preference would be to find a way to code this in Java without too much effort and without relying on a third party solution. Any ideas?
6 years ago
I started looking at Adobe LiveCycle ES4. This is a suite that contains a lot of tools. One of them is the Adobe LiveCycle Designer. Most of the books that I have been able to find seem to zero in on that one part of the suite. I am looking for a book that covers the other parts of the suite (e.g. the workbench, forms manager). I haven't been able to find one for ES4. I also don't find the adobe site and the documentation very helpful, either. Sometimes YouTube has some useful stuff when I am researching, but that hasn't turned up anything useful to me either. Most of the videos seem to be overviews that were created for the purpose of marketing the product. Maybe I've overlooked something, but I would appreciate any suggestions.
I am developing and maintaining applications in an environment where some applications require IE compatibility mode to be running. I want all of the applications that I am responsible for to run in standards mode. However, some of the applications I am not responsible for do require IE to run in standards mode. This prevents me from requesting that IE browsers do not display intranet pages in compatibility mode.

I see examples where the following line can be added as the first line after the <head> tag in an HTML page...


Since the number of pages that I would have to add this to could be large, and may no longer be needed at some point in the future (and at such point, I could easily remove this line without modifying individual pages), is there a way to tell JBoss to add this tag as the first line of the document <head> on each page, at the application level? Is it possible to do this at the server level also, if the remaining applications are updated at some point?
6 years ago
The solution that worked for me ended up being a little more simple. It appears that I did not need the containing curly braces or the dollar/percent sign prefix.

6 years ago
I need to be able to take a parameter from my session and display it in a s:text tag.

I have a properties file that I am able to get static messages from with no problem. My assumption is that (like Struts 1.x validation and Java's printf command), that I should be able to use some type of escape characters that will allow me to imbed parameters in the messages. I suspect it would look something like the following example, where you would just need to supply some text to fill in the dates, assuming the session variables are strings.



In the JSP, my assumption would be that I could use that message by adding s:param tags inside my s:text tag, like the following example.



The page would show something like this...

The sales event will be held from July 1st through July 5th.




I've tried adding the % sign and curly-braces, and not having them. I seem to get either nulls (even though I can display the dates I want on the page with a s:property tag), or either see the stuff shown here in the curly-braces showing up exactly as shown.

Any idea what is missing or wrong?



6 years ago
I know this is a broad topic, but I'm looking for possible things to check.

I've been running JBoss 5.1.0.GA for quite a while. About a month back, I updated my JDK version from Java SE6.x to Java SE7 (1.7.0_41-b14). That has been running smoothly in Eclipse Juno.

Yesterday, I updated to Eclipse Luna to take advantage of JavaFX support. My existing projects appear to be building cleanly and the server appears to start up fine. However, all of my projcts are failing with these two types of error messages (the actual name of the application replaced with underscore)...

(1) ERROR [[/__]] StandardWrapper.Throwable java.lang.Error: Unresolved compilation problem
(2) ERROR [[/__]] Servlet /__ threw load() exception java.lang.Error: Unresolved compilation problem


In Eclipse, there are no red marks on the projects after a build and there are no errors reported in the console or on either the Markers or Problems view tabs. Where can I find more about where these "Unresolved compilation problems" are happening?
6 years ago
I have a Struts 1.x application that I am responsible for that probably will not be approved for a rewrite (to Struts 2, etc...) for the next few years. I don't currently have any problems that are preventing me from getting the work done, but I would like some clarification. Anyway, I was looking around in the project and noticed a few things:

Facts
A) The struts.jar [JAR] appears to be specification-version 1.2.9, according to the MANIFEST.MF file and the folder it is stored in. So, I think I can safely assume it is Struts 1.2.9.
B) In the same project, I see commons-validator-1.3.0.jar. I understand that this is a validator plugin for Struts.
C) Also in the same project, both validation.xml and validator-rules.xml have the same doctype that appears to reference version 1.1.3:

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1.3//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd">

Questions
1) Is it safe to assume that these three items are independent to the point where this shouldn't be an issue (I think, most importantly the validator plugin and the XML files, referenced above)?
2) Does the version in the DOCTYPE refer only to the content and structure of the XML files, themselves, and not to anything having to do with the validator plugin?
7 years ago
I have inherited some legacy Java code that needs to be updated to a new release in the near future. I am looking for opinions to see if my migration strategy sounds reasonable and to hear from anyone who might have any alternative suggestions or useful comments. I have read all sorts of language compatibility summaries, but I haven't come across anything that relates on how I might best approach a migration having to do with more than one box/server.

------------------------------------------------------------
Java X is the version of Java that I inherited
Java Y is the version of Java that we would like to migrate to in the very near term
Java Z is the version of Java that is the next major release after Java Y
------------------------------------------------------------

At this time, Java Z does not appear to be an option. We plan to remove some current dependencies after the update to Java Y. These dependencies are currently preventing us from updating to Java Z.

Our version control system has the following stages, each stage with its own server.
Dev --> Unit --> System --> Qual --> Production

When code is moved from one stage to the next, a build and redeploy will eventually take place on that server. All servers are currently running Java X.

As a first step, I wanted to see what kind of problems we might run into with the update. So, I updated my developer box to Java Y and testing seems to be going well. Now, what might be the best approach going forward?

My gut feeling is that we should update the Dev server to use Java Y, then test, then upgrade the next server -- as long everything still looks good (rather than update all of the servers to Java Y at one time). My initial plan is for the other developers to remain on Java X until the migration has completed -- through production. My reasoning is that this avoids potential incompatibilities having to do with any of the newly added language features until our Java Y roll-out is complete. Then, once the other developer boxes are updated, they would be on the same Java Y version that all of our servers are running.

Does this sound like a reasonable plan? Is there anything in particular I need to be watching out for? I'm open to all suggestions, other than "just jump straight into Java Z"... that just isn't an option for now.
7 years ago
I am looking to upgrade JBoss 5.1.0 GA to WildFly, sometime early next year. I've been trying to find a good source to explain what all of the suffixes mean. Most of the explanations that I have seen point to the "Software release life cycle" article on Wikipedia. I found that GA is general availability, where I understand that it is supposed to be a polished version that is supposedly free of bugs. What is the real difference between that and the Final version? Is there a standard terminology for these definitions, or are these terms that are being used exclusively by the redhat download page.
7 years ago
Thanks, that makes it easy. I need to prepare for a presentation. Do you know where I can locate specific references that I can cite?
7 years ago
I understand that Java EE builds on Java SE, but is there somewhere I can find the exact relationship between the versions? For example, if I am looking to upgrade to Java 7 EE, how or where can I find out which version of Java SE is it built on? I've been reading the Java EE Platform spec and various other sources, but I can not seem to find where this information is explained to that level of detail.
7 years ago