IBM Information Server Web Console Error - datastage

I am Using IBM Information Server 8.7. When I login to the Web Console, I was successfully logged in. But, while Accessing the Navigation pane I got the error:
Error 404: javax.servlet.UnavailableException: SRVE0200E: Servlet [_ibmjsp.common._adminItemPickerLayout]: Could not find required class - class java.lang.ClassNotFoundException: _ibmjsp.common._adminItemPickerLayout
Can someone suggest me something?

Check your JAVA Path in your operating system. Make sure you are using the right JAVA in the PATH statement. It looks like you are calling the wrong JAVA, and when you do so, it'll fail because that java.exe does not have the libraries.

Related

java.xml.namepsace error - SOAP (Webservice) in Java

I have no experience with WebService, especially SOAP, but I have to deal with it. I work with Java 11 and with the latest Eclipse IDE. In the beginning I read a lot and also developed my own WebService. This service can only calculate the BMI. There are no errors in this service on the server side.
I had the client automatically generated with the Java API for XML Webservices. However, several errors are displayed in the generated classes.
First Error:
"The package javax.xml.namespace is accessible from more than one module: java.xml, jaxrpc"
If I try to fix the error, then there is a new error. Let's get back to trying to fix the bug. In some other forums I have read that in the module information "module-info.java" the "requires java.xml" should be commented out. The error seems to disappear for now, but it leads to two new errors:
"The type javax.xml.namespace.QName is not accessible" and "The type javax.xml.namespace.QName cannot be resolved. It is indirectly referenced from required .class files"
Here are a few code:
module Client {
exports ws;
requires axis;
requires java.instrument;
requires java.logging;
requires java.management;
requires java.naming;
requires java.net.http;
requires java.prefs;
requires java.rmi;
//requires java.xml;
requires jaxrpc;}
Here is a example of the DemolmplServiceLocater where java.xml.namepace are underlined red:
public DemolmplServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
super(wsdlLoc, sName);
}
This is the class DemolmplService.java with the second error and "fixed" first error.
The lost one ist the Build Path from my project.
Among other things I opened a client in Java-SE1.8 project and tried out the client there. There no error was displayed and the method bmi(weight,height) was executed successfully. But I need the project at least in Java 10 or higher.
Can anyone offer me a solution, preferably a step-by-step guide?
I thank you in advance!

starting tomcat manually via startup.bat doesn't seem to work

I have a jsp web-project which i wrote in eclipse. I can run it within eclipse, no problems there.
Now i have the final war-file and can access it via firefox (localhost:8080/program) WHEN the tomcat server is still up within eclipse.
The thing is, i want the program for other people to test it, but without having them to start tomcat via eclipse.
So i tried to start tomcat manually via bin/startup.bat - no success.
I tried changing the port number within the server.xml and excluded the localhost from proxy in the firefox settings. Still no success.
What did i miss? Can you please help me, give me some clue?
I'd highly appreciate!
Greetings from Germany
---edit(03-17-2016)---
Some more information:
I tried to access (i started the server via eclipse beforehand) the default examples ROOT/index.jsp + manager/index.jsp and got the following exception:
HTTP Status 404 - /manager/index.jsp
type Status report message
/manager/index.jsp description
The requested resource is not
available. Apache Tomcat/7.0.67
On my program i only get
address unkown
Firefox can not connect to the server at localhost:8080
Website might be temporary out of order
Consider enabling Proxy
P.S.: I translated the last exception myself so it's not the real exception

NeTBeans Web Application Project gives a error message HTTP Status 404

When I run the project directly right clicking the project name I get a error "HTTP status 404" but when i individually run a file (eg. home.html) it runs.The project is a servlet project, where my home.html is connected to a servlet file.There are no errors for sure. What's the real issue?
404 errors are generated by the web container when a resource is not found. Clearly there must be an issue with your paths or something, but based on the limited information you provide it is hard to spot the mistake...

Java Applet using jacob to load com dll method getting Errormessage : NoClassDefFoundError: com/jacob/activeX/ActiveXComponent

I need to create an Applet that can load a com method, for this purpose I used the java com bridge (jacob) deal with the com dll, and My Environment is set as follow:
os:win7x64
IDE:Eclipse32bit-version
COM DLL:BPIKeyCOM.dll 32-bit version
com bridge : jacob1.17-32bit version
server: Tomcatv7.0
I put jacob.dll under C:\Windows\System32 and jacob.jar under WEB-INF\lib
When I run the project, it's working fine in Eclipse. But when deployed on the web, the following error messages appear:
java.lang.NoClassDefFoundError: com/jacob/activeX/ActiveXComponent
at Fmain.Ikeycheck(Fmain.java:180)
at Fmain.init(Fmain.java:73)
at sun.applet.AppletPanel.run(AppletPanel.java:435)
at java.lang.Thread.run(Thread.java:724)
Caused by:
java.lang.ClassNotFoundException: com.jacob.activeX.ActiveXComponent
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:219)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:152)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)...
It looks like this message is talking about that it can't find com/jacob/activeX/ActiveXComponent.class, but I don't understand how.
I've already searched for many solutions and tried to solve it, but it still keeps showing this error message, I use to do sigh jar, make sure the classpath is correct, and even try to change the policy file...etc. But still, it's not working!
You've installed the dll and jacob.jar into your Java Web container; unfortunately, that is not the user's web browser (e.g. Applet Container). You need to add the dll and jacob.jar file into the applet jar. You should probably also read this. It's also important to point out that if your users install a 64-bit jdk, or aren't running Windows - then your Applet will not work.
Have a look at the example provided with jacob:
e.g.
jacob-1.17_src.zip\jacob-1.17\samples\com\jacob\samples\applet
This is a nice example how it works - it even has a readme.txt with a full description inside...

Getting SLF4JLogFactory exception while trying to access web services from Confluence 3.0

I have been able to understand about the dependencies and procedures to add Jar files into a Confluence project with the help of a friend from here.
But I am facing an error with the addition of these JAR's.
The exact cause of the error seen is :
javax.servlet.ServletException: Servlet execution threw an exception
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:313)
caused by: java.lang.ExceptionInInitializerError
at org.apache.axis.attachments.AttachmentsImpl.<clinit>(AttachmentsImpl.java:39)
caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.SLF4JLogFactory cannot be cast to org.apache.commons.logging.LogFactory
at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
What I am trying to do is :
Write a custom plugin.
Modify the UI so that I can accept user entered values say For Eg Credentials.
Use those credentials and hit a web service method and obtain a ticket for the valid user.
Now I can only consume the web services I do not have the authority to modify them. As a result it does work with 8 essential jars. Of these the ones which I use not created by me are the
popular ones.
commons-discovery 0.2
commons-logging 1.1
jaxrpc 1.0
log4j 1.0
wsdl4j
1.0 axis 1.4
If i use axis 1.2.1 instead of 1.4 ; i get the error .
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.axis.description.ParameterDesc.setOmittable(Z)V
But using axis 1.4 gives me the required ticket in my local NON CONFLUENCE test sample Java project.
(I am putting my code in paste bin lest the question becomes extremely long)
This is my POM.xml
This is the class I have written. I have in fact been able to add my custom tab in the 'Advanced' area and clicking on the tab triggers the execute method.
This is the error I am seeing on the resulting System Error (the one with the title Oops - an error has occured.)
Would like to have any hints from you which can greatly help understand what needs to be done to get out of this error.
I am sure calling web services from Confluence must be a not a complex chore. Is it the combination of JAR's I am reliant on that's giving me the trouble. Any leads to the same will be immensely helpful.
Atlassian forked the axis library and Jira now uses axis-1.3-atlassian-1 and not the latest axis-1.4 from Apache; axis-1.3-atlassian-1 uses the 1.0.4 version of commons-logging, not 1.1.1 like axis-1.4.
Changing the dependency of the plugin from axis-1.4 to axis-1.3-atlassian-1 solved a similar problem for me. It is my suspicion that SLF4JLogFactory could cast to org.apache.commons.logging.LogFactory in 1.0.4 but not 1.1.1, but I haven't tested that.
Edit: here's where you can get the jar and source.