Hi Daniel, Is there any way you could post your code outside of Nabble, and then post links to that? Nabble mangled the code contents of your post pretty badly, and the emails which got sent to the mailing list have portions of the code stripped.
Thanks, - Mike On Fri, Apr 7, 2017 at 4:28 AM, goldingerit <[email protected] > wrote: > hi all > > i tried to create a own guacamole app based on chapter 21 > (https://guacamole.incubator.apache.org/doc/gug/writing- > you-own-guacamole-app.html) > from guacamole manual. > > the created files are: > > pom.xml > _____________________________________________________ > <project xmlns="http://maven.apache.org/POM/4.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/maven-v4_0_0.xsd"> > > <modelVersion>4.0.0</modelVersion> > <groupId>org.apache.guacamole</groupId> > <artifactId>guacamole-tutorial</artifactId> > <packaging>war</packaging> > <version>0.9.12-incubating</version> > <name>guacamole-tutorial</name> > > <properties> > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> > </properties> > > <build> > <plugins> > > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>3.3</version> > <configuration> > <source>1.6</source> > <target>1.6</target> > </configuration> > </plugin> > > > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-war-plugin</artifactId> > <version>2.6</version> > <configuration> > <overlays> > <overlay> > <groupId>org.apache.guacamole</groupId> > <artifactId>guacamole-common-js</artifactId> > <type>zip</type> > </overlay> > </overlays> > </configuration> > </plugin> > > </plugins> > > </build> > > <dependencies> > > > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>servlet-api</artifactId> > <version>2.5</version> > <scope>provided</scope> > </dependency> > > > <dependency> > <groupId>org.apache.guacamole</groupId> > <artifactId>guacamole-common</artifactId> > <version>0.9.10-incubating</version> > <scope>compile</scope> > </dependency> > > > <dependency> > <groupId>org.apache.guacamole</groupId> > <artifactId>guacamole-common-js</artifactId> > <version>0.9.12-incubating</version> > <type>zip</type> > <scope>runtime</scope> > </dependency> > > </dependencies> > > </project> > _____________________________________________________ > > > > > src\main\java\org\apache\guacamole\net\example\ > TutorialGuacamoleTunnelServlet.java > _____________________________________________________ > package org.apache.guacamole.net.example; > > import javax.servlet.http.HttpServletRequest; > import org.apache.guacamole.GuacamoleException; > import org.apache.guacamole.net.GuacamoleSocket; > import org.apache.guacamole.net.GuacamoleTunnel; > import org.apache.guacamole.net.InetGuacamoleSocket; > import org.apache.guacamole.net.SimpleGuacamoleTunnel; > import org.apache.guacamole.protocol.ConfiguredGuacamoleSocket; > import org.apache.guacamole.protocol.GuacamoleConfiguration; > import org.apache.guacamole.servlet.GuacamoleHTTPTunnelServlet; > > public class TutorialGuacamoleTunnelServlet > extends GuacamoleHTTPTunnelServlet { > > @Override > protected GuacamoleTunnel doConnect(HttpServletRequest request) > throws GuacamoleException { > > // Create our configuration > GuacamoleConfiguration config = new GuacamoleConfiguration(); > config.setProtocol("rdp"); > config.setParameter("hostname", "10.1.1.5"); > > // Connect to guacd - everything is hard-coded here. > GuacamoleSocket socket = new ConfiguredGuacamoleSocket( > new InetGuacamoleSocket("localhost", 4822), > config > ); > > // Return a new tunnel which uses the connected socket > return new SimpleGuacamoleTunnel(socket); > > } > > } > _____________________________________________________ > > > > > > src\main\webapp\WEB-INF\web.xml > _____________________________________________________ > <?xml version="1.0" encoding="UTF-8"?> > > <web-app version="2.5" > xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd > "> > > > > <welcome-file-list> > <welcome-file>index.html</welcome-file> > </welcome-file-list> > > > <servlet> > <description>Tunnel servlet.</description> > <servlet-name>Tunnel</servlet-name> > <servlet-class> > org.apache.guacamole.net.example. > TutorialGuacamoleTunnelServlet > </servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name>Tunnel</servlet-name> > <url-pattern>/tunnel</url-pattern> > </servlet-mapping> > > </web-app> > _____________________________________________________ > > > > > > src\main\webapp\index.html > _____________________________________________________ > <!DOCTYPE HTML> > <html> > > <head> > <title>Guacamole Tutorial</title> > </head> > > <body> > <p>Hello World</p> > > > > > > <div id="display"></div> > > > > > > </body> > > </html> > _____________________________________________________ > > > connection is successfully established. syslog entry: > > Apr 7 11:30:20 gateway guacd[7722]: Protocol "rdp" selected > Apr 7 11:30:20 gateway guacd[7722]: Connection ID is > "$f2e19e9a-cee0-4701-92f4-3b7d1872bb21" > Apr 7 11:30:20 gateway guacd[7722]: No security mode specified. Defaulting > to RDP. > Apr 7 11:30:20 gateway guacd[7722]: Loading keymap "base" > Apr 7 11:30:20 gateway guacd[7722]: Loading keymap "en-us-qwerty" > Apr 7 11:30:20 gateway guacd[7722]: No available audio encoding. Sound > disabled. > Apr 7 11:30:21 gateway guacd[7722]: guacdr connected. > Apr 7 11:30:21 gateway guacd[7722]: guacsnd connected. > Apr 7 11:30:21 gateway guacd[7722]: Starting client > > > but website just shows "Hello World", without any remote screen. > > thanks in advance for any help. > > > regards, > daniel > > > > -- > View this message in context: http://apache-guacamole- > incubating-users.2363388.n4.nabble.com/Guacamole-App-not- > showing-remote-display-connection-established-tp759.html > Sent from the Apache Guacamole (incubating) - Users mailing list archive > at Nabble.com. >
