George Impagliazo

Ranch Hand
+ Follow
since Sep 25, 2010
Merit badge: grant badges
For More
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by George Impagliazo

Ulf Dittmer wrote:PDFBox and iText come to mind. (With iText, pay particular attention to the licensing differences between iText 2 and iText 5.)



Excellent.

Have you used either library?

Would either give the ability to digitally sign documents?

Would either give the ability to embed a PDF form in a JSP?

If so, are these capabilities well developed ( easily, quickly done in a reasonable amount of time ) or are those features more geared towards building most of it yourself?

Thanks
10 years ago
Having the name of a few of those would be a start.

My boss specifically mentioned being able to fill out a PDF form from within a Java web app, then sending the information directly to the database.

She wasn't sure about exactly what she wanted after that. She mentioned digital signatures. Mostly she met with .net developers from another project who told her about how nice the integration between .net and Adobe Acrobat Professional is, with the implication being that whatever Adobe had as far as features go can be easily integrated into .net. She asked me to research what is there as far as Java and bridges to Adobe Professional.

I think I just inherited the job of selling her on Java for new work and it would help to say "yes, there is this, this, this, and that" along those lines.
10 years ago
I'm interested in learning what resources there are for integrating Java and Adobe Professional, in general. If it helps, my projects already use the Spring Framework. My boss is particularly interested in being able to fill out a PDF form from within a Java webapp and have that data go directly to our database. She mentioned that .net had a lot of bridges to Adobe Professional. I would rather new projects be in Java so I am eager to find if there are any easy bridges between Java and Adobe Professional. Thanks in advance for any information.

So far a Google search on "Java Adobe Professional" didn't turn up anything, so I thought I would ask here. Thanks.
10 years ago

Paul Clapham wrote:Excellent! (That property still applies to the entire JVM, so now you're testing my theory that it won't make any difference to anything else. Good luck!)



The webapp runs on web logic, which has a sub module called "servers". The other webapps on mine are either not in use or also had to make adaptations because the physical servers are indeed headless.

I ended up adding this to my code and it worked


Admins: I wasn't sure which subforum to put this in, please feel free to move it, thanks.

I'm using Apache POI, WebLogic 11G, Java 1.6 and Spring 3.1 MVC to send data wrapped in Excel ( *.xlsx ) back to a browser screen.

Everything works on my computer using the above software and Windows 7 professional.

On the server ( Unix SunOS 5.10, weblogic 11g, Java 1. 6, Spring MVC
3.1 ), I am getting a "500 Internal Server Error"


According to my logs, retrieval of the data is completely successful.
Things are dying when it comes to wrapping the data in Excel, when
operating on SunOS 5.10. I found these messages in my log:



ManagersAndAlternates:getManagersInAACMEOrg(): records.size() == 38
[ACME]: [DEBUG] - 2013-Sep-24 10:12:44 - PhoneListView:createFirstSheet(): Completed database call to get SubAcmeOrg1 all federal mangers
<Sep 24, 2013 10:12:47 AM EDT> <Error> <HTTP> <BEA-101017> <[ServletContext@30304209[app:acme module:acme.war path:/acme spec-version:2.5]] Root cause of ServletException.
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.font.FontManager.initSGEnv(FontManager.java:1307)
at sun.font.FontManager.findFont2D(FontManager.java:1984)
Truncated. see log file for complete stacktrace



And ...



ManagersAndAlternates:getManagersInAACMEOrg(): records.size() == 38
[ACME]: [DEBUG] - 2013-Sep-24 10:12:44 - PhoneListView:createFirstSheet(): Completed database call to get SubAcmeOrg1 all federal mangers
<Sep 24, 2013 10:12:47 AM EDT> <Error> <HTTP> <BEA-101017> <[ServletContext@30304209[app:acme module:acme.war path:/acme spec-version:2.5]] Root cause of ServletException.
java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
at sun.font.FontManager.initSGEnv(FontManager.java:1307)
at sun.font.FontManager.findFont2D(FontManager.java:1984)
Truncated. see log file for complete stacktrace



I Googled on those exceptions and found a number of posts about people
trying to run Java GUI applications on Unix servers. The bottom line was
that many such servers are "headless", as such X11/Graphics libraries
which Java looks for aren't there and that leads to the errors.

The most advised solution is to use this JVM setting in any script that
starts WebLogic 11g:

-Djava.awt.headless=true

It tells Java not to look for those libraries.

My problem is that my networking department isn't very flexible. I was
wondering if there was a way, in the WebLogic 11g Admin interface, to set
that JVM option and ONLY set it for my webapp (ACME) that has the feature
that tries to download data in Excel.

Jeanne Boyarsky wrote:George,
The main site uses JavaScript to display the year so it depends on your browser/computer settings. The mobile site (coderanch.com/mobile/forums) always displays the full year.



What settings would I need to change in my browser to get the year? I was using Firefox on Windows 7 at work.
10 years ago

Stuart A. Burkett wrote:The year is displayed for me. For example, the first post in this topic that you have just posted in was made on May 12th 2008 and the post before yours was from November 21st 2011.



Yes, I do not see the year, I just see May 12th and the time. When I go to "My Profile" I don't see any options for displaying the date.
10 years ago
I couldn't find an option for displaying the year on posts.

I would like to suggest this be done by default.

Sometimes how old a technical answer is matters to the value of an answer.

Have a good weekend and thanks for the free, useful, forum
10 years ago

This stackoverflow post explains that you need to set the sender's from using MimeMessage.addFrom() (not MimeMessage.setFrom() ) and that you need to set the "mail.smtp.host".

Basically, it is up to the server to set the Return-Path header.

The test program below will send bounced messages to an email address different from the sender's email address and only to that special bounced message email address.

HTH



10 years ago
Hi,

I'm in completely new territory and I am unsure of where to start investigating.

I work for a big org with many Windows PCs controlled by a Microsoft network.
The org began using CACs ( smart cards ) to authenticate users who want to get into their PCs and into Windows.

My boss would like the users of our Java webapp ( Spring 3.1 and legacy servlets duct taped together ) to be able
to access our Java webapp, without authentication, if they are already in Windows via their CAC.

Like I wrote, I do not know what is involved or where to start for this goal.

Would I try to get the WebApp to talk to the Microsoft Network or the user's PC to ask if that person has been CAC authenticated?

Would I try to read a web certificate from the CAC with Java? If so, I have never used certificates before. Where could I go to learn about as if I am complete beginner, which I am?

Thanks in advance for any information or tips

Steve
10 years ago
Someone told me that WebLogic 11g comes with its own set of Spring jars, which were likely conflicting with the Spring jars I had inside of my WAR file.

I couldn't find any WAR files with "spring" in the label. I did see a number of other libraries in the admin page under "Deployments".

I'm not sure what I did, but after re-installing WebLogic 11g the libraries did not get reinstalled and the problem went away.

This is okay with me as the the test and production servers don't include those libraries, so I am probably avoiding further conflicts.

I would still like to know where the Spring libraries were in WebLogic 11g.
10 years ago
Microsoft Windows 7 Professional
WebLogic 11g
Java 1.6 ( the version with weblogic )
Spring 3.1


I was using WebLogic 11g and Spring 3.1 to do Java Webapp development on a Windows XP Professional PC. All was fine.

Then I had to migrate to a new computer running Windows 7 Professional.

I think I may have missed a step in setting everything up to get it all working again.

My webapp is "ACME", acme.war

When I try to navigate to my webapp on my computer I get the following error:

**weblogic.application.ModuleException: [HTTP:101216]Servlet:
"acme" failed to preload on startup in Web application: "acme.war".
org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/acme-servlet.xml];
nested exception is java.lang.NoSuchMethodError:
org.springframework.beans.MutablePropertyValues.add
(Ljava/lang/String;Ljava/lang/Object;)Lorg/springframework/beans/MutablePropertyValues;**



Here is a copy of my acme-servlet.xml file:



Here is a list of files I have in my war/WEB-INF/lib inside of acme.war:

aopalliance-1.0.jar
commons-beanutils-1.8.2.jar
commons-collections-3.2.1.jar
commons-digester-2.0.jar
commons-fileupload-1.2.2.jar
commons-io-2.4.jar
commons-jexl-2.0.1.jar
commons-lang-2.5.jar
commons-logging-1.1.1.jar
commons-validator.jar
dom4j-1.6.1.jar
geronimo-stax-api_1.0_spec-1.0.jar
hibernate-validator-4.3.0.Final.jar
jackson-core-asl-1.9.7.jar
jackson-mapper-asl-1.9.7.jar
jboss-logging-3.1.0.CR2.jar
jstl-api-1.2-rev-1.jar
jstl-impl-1.2.jar
jta-1.1.jar
log4j-1.2.16.jar
mail.jar
poi-3.7.jar
poi-ooxml-3.7.jar
poi-ooxml-schemas-3.7.jar
quartz-1.8.0.jar
quartz-all-1.8.0.jar
servlet-api.jar
slf4j-api-1.5.10.jar
slf4j-log4j12-1.5.10.jar
spring-aop-3.0.6.RELEASE.jar
spring-asm-3.1.1.RELEASE.jar
spring-beans-3.1.1.RELEASE.jar
spring-context-3.1.1.RELEASE.jar
spring-context-support-3.1.1.RELEASE.jar
spring-core-3.1.1.RELEASE.jar
spring-expression-3.1.1.RELEASE.jar
spring-jdbc-3.0.6.RELEASE.jar
spring-ldap-core-1.3.1.RELEASE.jar
spring-security-acl-3.1.0.RELEASE.jar
spring-security-config-3.1.0.RELEASE.jar
spring-security-core-3.1.0.RELEASE.jar
spring-security-crypto-3.1.0.RELEASE.jar
spring-security-ldap-3.1.0.RELEASE.jar
spring-security-taglibs-3.1.0.RELEASE.jar
spring-security-web-3.1.0.RELEASE.jar
spring-tx-3.0.6.RELEASE.jar
spring-web-3.1.1.RELEASE.jar
spring-webmvc-3.1.1.RELEASE.jar
stax-1.2.0.jar
stax-api-1.0.1.jar
urlrewritefilter-4.0.3.jar
validation-api-1.0.0.GA.jar
xml-apis-1.0.b2.jar
xmlbeans-2.3.0.jar


I have my JAVA_HOME envir variable pointed to
C:\Oracle\Middleware\jdk160_29
( this is withing the weblogic 11g installation )

I have that path in my PATH variable.

My system wide Windows CLASSPATH is just a '.'

Thanks in advance for any ideas

Steve









10 years ago

I've been finding it difficult to study for the SCJP course on my own. I haven't been able to find any brick and mortar classes in my area. Does anyone know of online or computer based training to prepare for a contemporary version of the test?

Thanks
I've seen a few video courses around for Spring.

Can anyone recommend one ( from personal experience ) that is up to date ( at least Spring 3 ) and has a means of asking questions and getting help?

Thanks
11 years ago