Win a copy of Java by Comparison (eBook) this week in the Java in General forum!

Michael Sideln

Greenhorn
+ Follow
since Sep 01, 2006
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 Michael Sideln

Rob,
But why this WAR works/recognize network printers when deployed on oc4j ?
Thank you,
Michael
5 years ago
Rob,
This Tomcat server is installed and running on my PC, Windows OS.
So as you recommended I choose the "This account" option on the Services screen, "Log On" tab and entered my Windows network account credentials and started the service. The result was the same - only local printers but no network printers are found.
About the other option that you mentioned above - "you should create a separate user for Tomcat, log in as the user and install the printers, then let Tomcat run as that user." - how to install these network based printers on my local Tomcat server ?
Thank you,

Michael
5 years ago
Rob, thank you very much for your timely, informative response. I am trying to fix it now.
5 years ago
I have a web application that runs perfectly on oc4j - all network/local printers are detected and I can submit jobs over there, but when I deployed the same WAR on Tomcat 7, the PrintServiceLookup.lookupPrintServices retrieves only the local printers. The application runs on Windows. I think there is a problem with the permissions/Tomcat settings. Any idea what should be fixed?

Thank you in advance
5 years ago
I am running into a problem when trying to sign the SAML assertion on WebLogic 10.3. The application deployes as a war file.
Here is the exception:
java.lang.NoClassDefFoundError: org/apache/xml/security/Init
at org.opensaml.DefaultBootstrap.initializeXMLSecurity(DefaultBootstrap.java:103)
at org.opensaml.DefaultBootstrap.bootstrap(DefaultBootstrap.java:79)
at servlets.CreateRequestServlet.(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
.........
This exception occurs when DefaultBootstrap attempts to load a default configuration:
// OpenSAML 2.3
DefaultBootstrap.bootstrap();
I did some home work - I tried all fixes that were mentioned on forums:
I created endorsed directories under the jre/lib and copied there the following jares:
log4j-1.2.14.jar
opensaml-2.2.3.jar
resolver-2.9.1.jar
serializer-2.7.1.jar
slf4j-api-1.5.6.jar
slf4j-jdk14-1.5.6.jar
slf4j-nop-1.5.6.jar
xalan-2.7.1.jar
xercesImpl-2.9.1.jar
xml-apis-2.9.1.jar
xmlsec-2.0.jar

I attached these jares to the classpath in the startWeblogic script and have added the weblogic.class.path property with all nessessary jars attached to it.
Also I added the following jars to the WEB-INF/lib folder:
catalina-root.jar
commons-codec-1.3.jar
jdom.jar
opensaml-2.2.3.jar
xmldsig.jar
xmlsec-2.0.jar
xmltooling-1.2.0.jar
and updated weblogic.xml with the following part:

<wls:container-descriptor>

<wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
</wls:container-descriptor>

All these attempts led me to the same result - runtime exception.
At this point I think that I need help to resolve this issue. And I'll continue researching it.

7 years ago