[JBossWS] - new to jbossws
by santhoshitha
I am new to jbossws and web services in general. I have been able to follow the userguide and get my server side artifacts generated properly(usng wstools) and my deployment in the server is also fine. i am able to obtain the wsdl once the service is deployed successfully on the server, and now, i am trying to connect via a client.
I intend to use a static java process client and not a j2ee client(although j2ee is recommended in the user guide). I do not know how to configure the service reference and consume the service from my static java client. I am however able to accomplish the same using DII. I would like to know if there is any API for this purpose, and whether it is only possible to use DII if not.
If there are any links to source codes and samples, with illustrations in detail, it will be a big help.
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996439#3996439
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996439
19 years, 4 months
[JBoss Portal] - JSF Integration with JBoss Portal
by vikash.anand
Dear All;
I am new to JBoss Portal. I have a sample JSF Application which is running fine. I want that application to run under JBoss Portal. I have configured XML files. these files are:
1. faces-config.xml
2. jboss-app.xml
3. jboss-portlet.xml
4. portlet-object.xml
5. portlet.xml
6. web.xml
Whenever i am starting my JBoss server it gives following error:
17:47:09,938 WARN [ExtensionsFilter] Please adjust your web.xml to use org.apache.myfaces.webapp.filter.ExtensionsFilter
I have included all jar files in WEB-INF and server/default/lib. Please let me know where i am making mistake.
Snapshot of web.xml
| <web-app>
|
| <context-param>
| <param-name>javax.faces.CONFIG_FILES</param-name>
| <param-value>
| /WEB-INF/examples-config.xml
| </param-value>
|
| <description>
|
| Comma separated list of URIs of (additional) faces config files.
| (e.g. /WEB-INF/my-config.xml)
| See JSF 1.0 PRD2, 10.3.2
|
| </description>
| </context-param>
|
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>server</param-value>
|
| <description>
|
| State saving method: "client" or "server" (= default)
| See JSF Specification 2.5.2
|
| </description>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
| <param-value>true</param-value>
|
| <description>
|
| This parameter tells MyFaces if javascript code should be allowed in the
| rendered HTML output.
| If javascript is allowed, command_link anchors will have javascript code
| that submits the corresponding form.
| If javascript is not allowed, the state saving info and nested parameters
| will be added as url parameters.
| Default: "true"
|
| </description>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
| <param-value>false</param-value>
|
| <description>
|
| This parameter tells MyFaces if javascript code should be allowed in the
| rendered HTML output.
| If javascript is allowed, command_link anchors will have javascript code
| that submits the corresponding form.
| If javascript is not allowed, the state saving info and nested parameters
| will be added as url parameters.
| Default: "false"
|
| Setting this param to true should be combined with STATE_SAVING_METHOD "server" for
| best results.
|
| This is an EXPERIMENTAL feature. You also have to enable the detector filter/filter mapping below to get
| JavaScript detection working.
|
| </description>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
| <param-value>true</param-value>
|
| <description>
|
| If true, rendered HTML code will be formatted, so that it is "human readable".
| i.e. additional line separators and whitespace will be written, that do not
| influence the HTML code.
| Default: "true"
|
| </description>
| </context-param>
|
| <context-param>
| <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
| <param-value>true</param-value>
|
| <description>
|
| If true, a javascript function will be rendered that is able to restore the
| former vertical scroll on every request. Convenient feature if you have pages
| with long lists and you do not want the browser page to always jump to the top
| if you trigger a link or button action that stays on the same page.
| Default: "false"
|
| </description>
| </context-param>
| <!-- WelcomeFile Filter -->
|
| <!--
|
| <filter>
| <filter-name>WelcomeFile Filter</filter-name>
| <filter-class>org.apache.myfaces.webapp.filter.WelcomeFileFilter</filter-class>
| <description>
| Due to the manner in which the JSP / servlet lifecycle
| functions, it is not currently possible to specify default
| welcome files for a web application and map them to the
| MyFacesServlet. Normally they will be mapped to the
| default servlet for the JSP container. To offset this
| shortcoming, we utilize a servlet Filter which examines
| the URI of all incoming requests.
| </description>
| </filter>
|
| -->
| <!-- JavaScriptDetector Filter -->
| <!-- <filter>-->
|
| <!--
| <filter-name>javascriptDetector</filter-name>
| -->
|
| <!--
| <filter-class>org.apache.myfaces.webapp.filter.JavaScriptDetectorFilter</filter-class>
| -->
| <!-- </filter>-->
| <!-- Extensions Filter -->
|
| <filter>
| <filter-name>extensionsFilter</filter-name>
|
| <filter-class>
| org.apache.myfaces.component.html.util.ExtensionsFilter
| </filter-class>
|
| <init-param>
| <param-name>uploadMaxFileSize</param-name>
| <param-value>100m</param-value>
|
| <description>
| Set the size limit for uploaded files.
| Format: 10 - 10 bytes
| 10k - 10 KB
| 10m - 10 MB
| 1g - 1 GB
|
| </description>
| </init-param>
|
| <init-param>
| <param-name>uploadThresholdSize</param-name>
| <param-value>100k</param-value>
|
| <description>
| Set the threshold size - files
| below this limit are stored in memory, files above
| this limit are stored on disk.
|
| Format: 10 - 10 bytes
| 10k - 10 KB
| 10m - 10 MB
| 1g - 1 GB
|
| </description>
| </init-param>
|
| <!--
| <init-param>
| <param-name>uploadRepositoryPath</param-name>
| <param-value>/temp</param-value>
| <description>Set the path where the intermediary files will be stored.
| </description>
| </init-param>
| -->
| </filter>
| <!-- Filter Mappings -->
| <!-- see MyFaces Filter above for a description -->
|
| <!--
|
| <filter-mapping>
| <filter-name>WelcomeFile Filter</filter-name>
| <url-pattern>/*</url-pattern>
| </filter-mapping>
|
| -->
| <!-- <filter-mapping>-->
|
| <!--
| <filter-name>javascriptDetector</filter-name>
| -->
|
| <!--
| <url-pattern>/_javascriptDetector_</url-pattern>
| -->
| <!-- </filter-mapping>-->
|
| <filter-mapping>
| <filter-name>extensionsFilter</filter-name>
| <url-pattern>*.jsf</url-pattern>
| </filter-mapping>
|
| <filter-mapping>
| <filter-name>extensionsFilter</filter-name>
| <url-pattern>/faces/*</url-pattern>
| </filter-mapping>
|
| <!--
| Listener, that does all the startup work (configuration, init).
| -->
|
| <listener>
|
| <listener-class>
| org.apache.myfaces.webapp.StartupServletContextListener
| </listener-class>
| </listener>
| <!-- Faces Servlet -->
|
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
| <!-- Faces Servlet Mapping -->
| <!-- virtual path mapping -->
|
| <!--
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>/faces/*</url-pattern>
| </servlet-mapping>
|
| -->
| <!-- extension mapping -->
|
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.jsf</url-pattern>
| </servlet-mapping>
| <!-- Welcome files -->
|
| <welcome-file-list>
| <welcome-file>index.html</welcome-file>
| <welcome-file>index.htm</welcome-file>
| <welcome-file>index.jsp</welcome-file>
| <welcome-file>default.html</welcome-file>
| <welcome-file>default.htm</welcome-file>
| <welcome-file>default.jsp</welcome-file>
| </welcome-file-list>
| </web-app>
|
Thanks in advance for your help;
Regards;
Vikash Anand
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996435#3996435
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996435
19 years, 4 months
[Installation, Configuration & Deployment] - Class not found
by chrismalan
There is a utility class (UsernamePasswordHandler) in the war container. It is used for log-ins. When instantiated from any class in the war container, things are fine.
However, when the only class in the jar container that needs it tries to instantiate it, a java.lang.NoClassDefFoundError exception is thrown.
The package structure is as for EJB3, a war and a jar inside an ear.
The UsernamePasswordHandler is not mentioned in the web.xml - I don't know if this is relevant.
The jboss-app.xml looks like this:
<jboss-app>
| <loader-repository>
| transportsite:app=ejb3
| </loader-repository>
| </jboss-app>
Any idea how to solve this problem that seems to be class loader related?
As an aside, the time and dates displayed by the console as JBoss starts up are all 11 hours behind. Same for the log files. That safely places it in one of the USA time zones. I am in Aussie. The system time is correct. Is this a JBoss problem, a log4j problem or a Java problem? Any idea how to fix it? There is a timer which which needs times. Subtracting 11 hours from the time the timer should fire makes things work, but that is not really the way to go.
Thanks for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996434#3996434
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996434
19 years, 4 months
[JBoss Portal] - WSRP
by vpnuser
Hi,
I am trying to add a remote portlet to JBoss Portal Server V2.4 following the steps given in the JBoss Portal Server Reference guide. I added Oracle portlet in the required xml files and in the Management Portlet upon selecting oracle and clicking on "Change portlet provider" an exception is getting in the console and in the Management Portlet the none of the portlets are listed under Oracle.
The reference guide says "As of 2.4, the optional Portlet Management interface of WSRP is NOT supported". If the Management Interface is not supported in 2.4 is it possible for me to add a remote portlet, not using the
Management Portlet ?
Could anyone please help me in this matter ?
Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996433#3996433
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996433
19 years, 4 months